d98f60ef2e06f6d08ad5014421c09871dd13d134
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2009-06-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2
3         * ToolBar.cs: Isolate the event logic related to OnButtonClick. Also
4         set current_item when navigating with the keyboard, so we can use it
5         properly later. Finally, handle both Enter and Space to fire
6         OnButtonClick *only*, without any other impact, as .net does.
7         Fixes part of #509985.
8
9 2009-06-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10
11         * MenuAPI.cs: Close any active menu when we get a simple Alt.
12         Fixes #509299.
13
14 2009-06-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15
16         * ToolBar.cs: In OnButtonClick only change the Pushed value for
17         buttons with toogle style. We were previously doing it for
18         DropDownButton's buttons, but that's not what .net is doing.
19         Fixes #510030.
20
21 2009-06-26  Atsushi Enomoto  <atsushi@ximian.com>
22
23         * XplatUICarbon.cs : support multi-byte text input.
24           Fixed bug #501276.
25
26 2009-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
27
28         * ListBox.cs: When creating DrawItemEventArgs, pass either
29         Theme.ColorHighlightText or ForeColor depending on the selected state
30         of our item, as .net does.
31         Fixes #512115.
32
33 2009-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
34
35         * ComboBox.cs: When handling WM_CHAR, process the message first, and
36         send it to the textbox only if it wasn't handled.
37         Fixes #507459.
38
39 2009-06-18  Jonathan Pobst  <monkey@jpobst.com>
40
41         * ComboBox.cs: Only do my big sort at the end of AddRange if
42         the combobox is actually set to Sorted.
43
44 2009-06-18 Tom Hindle <tom_hindle@sil.org>
45         
46         * XplatUIX11.cs: Enabled Text to coexist with custom data formats.
47         Fixes #511849.
48
49 2009-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
50
51         * ListBox.cs: When calculating the scrollbars for non MultiColumn
52         mode, force the use of the horizontal scrollbar only if
53         ScrollAlwaysVisible is true as well.
54         Fixes #513029.
55
56 2009-06-17  Jonathan Pobst  <monkey@jpobst.com>
57
58         * ComboBox.cs: When using AddRange on a sorted combobox, don't
59         try to use our inefficient sorted insert method, just append
60         it and sort the whole thing at then end.
61         [Fixes bug #511247]
62
63 2009-06-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
64
65         * ToolBar.cs: Expose as internal the code used to show a dropdown menu.
66         * PrintPreviewDialog.cs: Handle the down/up arrow keys for our
67         DropDown element.
68         Fixes #509152.
69
70 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
71
72         * DataGridView.cs: Scrolling fixes.
73         [Fixes bug #512816]
74
75 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
76
77         * DataGridView.cs, DataGridViewRowCollection.cs: Clean up a bit and 
78         optimize for batch adding rows.
79
80 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
81
82         * DataGridView.cs: Avoid calling ReBind twice during the initial data 
83         binding.
84         [Fixes bug #512807]
85
86 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
87
88         * DataGridView.cs: Suppress invalidation during data binding.
89         [Fixes part of bug #512807]
90
91 2009-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
92
93         * PrintPreviewDialog.cs: Tune the navigation among the buttons and
94         controls that are part of our ToolBar, so we can mimic the behaviour
95         observed in .Net, by handling also the arrow keys and doing the
96         preprocess for them too.
97         Fixes the remaining bits of #509142.
98
99 2009-06-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
100
101         * ToolBar.cs: Expose the current item as internal.
102         * PrintPreviewDialog.cs: Tune the TabStop property for
103         PrintPreviewControl/ToolBar so we match the .net scenario regarding
104         Tab navigation. Also implement support to navigate throughout the
105         items in the ToolBar.
106         Fixes #509142.
107
108 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
109
110         * DataGridViewComboBoxCell.cs, DataGridViewComboBoxColumn.cs: 
111         Implement items syncing in the non-databound scenario.
112         [Fixes bug #494031]
113
114 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
115
116         * DataGridView.cs: Call OnCellValidating and OnCellValidated and 
117         handle the Cancel accordingly.
118         [Fixes bug #506838]
119
120 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
121
122         * DataGridViewBand.cs: Fix a typo in DefaultHeaderCellType.
123         [Fixes bug #506796]
124
125 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
126
127         * DataGridViewColumnCollection.cs, DataGridViewRowCollection.cs, 
128         DataGridView.cs: Fire CollectionChangeAction.Refresh collection 
129         changed when Clearing the collections so that the DataGridView 
130         can know and reset the current cell.
131         [Fixes bug #492549]
132
133 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
134
135         * BindingSource.cs: In ResetBindings use the ListChangedEventArgs ctor 
136         with the PropertyDescriptor parameter instead of index, because the 
137         latter will set some irelevant indices. Fixes a bug uncovered by recent
138          fix to ListChangedEventArgs.
139
140 2009-06-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
141
142         * DataObject.cs: When looking for any specific format, do a case
143         insensitive search, as .net does.
144         Fixes #509199.
145
146 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
147
148         * CurrencyManager.cs: In AllowNew firstly check if the list is a 
149         IBindingList and proxy to AllowNew. IBindingList has slightly differet 
150         logic and eventhough it's an IList IsReadOnly should not be used in this 
151         case as it might be True but AllowNew could be True as well.
152         Fixes a bug uncovered by a fix to the Array class.
153
154 2009-06-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
155
156         * ListBindingHelper.cs: In GetListItemType do a null check when
157         looking for IList.Item, since the impl could be explicit, and thus
158         private. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
159         Fixes the remaining part of #507120
160
161 2009-06-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
162
163         * DataObject.cs: Map StringFormat/Text/UnicodeText formats properly,
164         to match them in all the cases, as this is exactly what .net does.
165         Fixes #510728.
166
167 2009-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
168
169         * ListBindingHelper.cs: In GetListItemType handle gracefully the case
170         where an instance of IEnumerator returns a null value for its Current
171         property. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
172         Fixes #507120.
173
174 2009-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
175
176         * ComboBox.cs: Properly detect whether we need to use our vertical
177         scrollbar or not, specially for DropDownList/DropDown styles,
178         depending on the value of DropDownHeight.
179         Fixes #508541.
180
181 2009-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
182
183         * ToolTip.cs: Call the base implementation in Dispose, but do it
184         before anything else to avoid a regression. This way we do the default
185         routines related to any System.ComponentModel.Container.
186         Fixes #508586.
187
188 2009-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
189
190         * Clipboard.cs:
191         * XplatUIX11.cs:
192         * DataFormats.cs: Implement support for serializable types in our
193         clipboard.
194         Fixes #357642.
195
196 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
197
198         * ColorDialog.cs: Actually add the help button to the form, so it can
199         be visible.
200         Fixes #478555.
201
202 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
203
204         * PrintPreviewDialog.cs: Don't use Dock.Fill for the
205         PrintPreviewControl, since it will be hidden in the top by our
206         toolbar. Use manual location and anchoring instead.
207         Fixes #474889.
208
209 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
210
211         * FileDialog.cs: When saving the size of the dialog, use the
212         ClientSize instead of Size, so we have always the same size for the
213         form. Patch by Alex Shulgin.
214         Fixes #503064.
215
216 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
217
218         * MessageBox.cs: When showing the dialog call XplatUI.AudibleAlert to
219         show a beep, similar to what .net does. 
220         Fixes #473725.
221
222 2009-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
223
224         * ContainerControl.cs:
225         * MenuStrip.cs
226         * ToolStrip.cs: Implicit mnemonic processing should happen for every
227         ToolStrip child, not only for MenuStrip, so we are going to do that in
228         ToolStrip.ProcessMnemonic, where we already had that exactly
229         functionality, but we are only just checking that either this instance
230         is a ToolStripDropDownMenu instance or Alt has been pressed. Finally
231         remove the extra code, since we are not going to use it now.
232         Fixes the remaining bits of #503663.
233
234 2009-05-21  Neville Gao  <nevillegao@gmail.com>
235
236         * ContextMenu.cs: Cleaned up UIA properties.
237
238 2009-05-20  Dick Porter  <dick@acm.org>
239
240         * XplatUICarbon.cs: Add more locking around MessageQueue
241         manipulations.
242
243 2009-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
244
245         * DateTimePicker.cs: Call Focus in HideMonthCalendar to avoid
246         duplication of code, as well as actually getting the focus back in
247         *any* scenario where the drop down is closed.
248
249 2009-05-18 Tom Hindle <tom_hindle@sil.org>
250         * ScrollableControl.cs: Ignore setting properties HScroll and 
251         VScroll when AutoScroll is true.
252         [Fixes bug #500213]
253
254 2009-05-18  Jonathan Pobst  <monkey@jpobst.com>
255
256         * ToolStripRenderer.cs: Apply patch from Thomas Goldstein to make
257         disabled graphics look closer to the ones that .Net produces.
258         [Fixes bug #473660]
259
260 2009-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
261
262         * DateTimePicker.cs: When calculating the max width for the year part,
263         use the current value, since *all* the possible values are exactly a 4
264         digits number. This way we avoid a ArgumentOutOfRangeException trying
265         to check against different values.
266         Fixes #500917.
267
268 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
269
270         * MessageBox.cs: When handling ProcessDialogChar, check that
271         CancelButton is not null before trying to use it, to avoid a null ref
272         exception. We don't need to do that on the ok/yes buttons, since they
273         always exist.
274         Fixes #503935.
275
276 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
277
278         * ListBox.cs: Handle the key down event in WndProc instead of doing it
279         in an event handler, as we need to avoid any operation in case
280         the user has handled it in its own OnKeyDown handler, and this can't
281         be achieved since our handler would be the first one always.
282         * FontDialog.cs: Update the calls since our method handling key down
283         has been renamed.
284         Fixes #503469.
285
286 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
287
288         * Application.cs: We should dismiss the active ToolStrip when we
289         receive a WM_SYSKEYDOWN message, instead of WM_SYSKEYUP, so the next
290         keyboard short cut can be properly processed by another menu item.
291         Fixes part of #503663.
292
293 2009-05-13  Andreia Gaita  <avidigal@novell.com>
294
295         * HtmlDocument.cs: If the objects are strings, wrap them in ""
296
297 2009-05-13  Andreia Gaita  <avidigal@novell.com>
298
299         * HtmlDocument.cs: Fix InvokeScript call (duh).
300
301 2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
302
303         * TextBox.cs: Expose IsAutoCompleteAvailable as internal.
304         * ComboBox.cs: If auto complete is being used, it is needed to update
305         the actual value of the combo box, doing it immediately if the user
306         presses Enter, or doing it when our combo box loses focus. Finally,
307         when handling Enter and Escape keys for the combobox, don't try to
308         hide the listbox if it is not visible in the first place. 
309         Fixes part of #489339.
310
311 2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
312
313         * ToolStripDropDownMenu.cs: Use the height returned by
314         ToolStripItem.GetPreferredHeight to calculate our own height.
315
316 2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
317
318         * TreeNode.cs: When setting Checked, do a double null check, since the
319         current node can still get a null parent handling
320         TreeView.OnAfterCheck.
321         Fixes #502567.
322
323 2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
324
325         * Control.cs: When assigning ContextMenu, do a null check before
326         assigning its container field.
327
328 2009-05-08  Brad Taylor  <brad@getcoded.net>
329
330         * DateTimePicker.cs: Add a UIA-specific property to ensure that if
331         is_checkbox_checked is changed, we won't break.
332
333 2009-05-08  Andrés G. Aragoneses  <aaragoneses@novell.com>
334
335         * ToolStripItem.cs: Prevent NRE when our holder is a
336         ToolStripDropDownButton and we get Select()ed.
337
338 2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
339
340         * ToolStripControlHost.cs: DefaultSize must return the current size of
341         the Control, not the value returned by GetPreferredSize. Also connect
342         a handle to the control Resize event, and use it to fire
343         OnHostedControlReize.
344         Fixes the remaining bits of #483146.
345
346 2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
347
348         * ToolStripDropDown.cs: When performing the layout, use
349         ToolStripItem.GetPreferredSize ().Height instead of
350         ToolStripItem.Height, since we are already using it that way in this
351         same method.
352         Fixes part of ##483146.
353
354 2009-05-08  Brad Taylor  <brad@getcoded.net>
355
356         * DateTimePicker.cs: Wrap UIA specific code in NET_2_0 wrappers.  Send
357         OnUIASelectionChanged when ShowCheckbox is true and the checkbox
358         recieves focus.  Part of fix for #502029.
359
360 2009-05-06  Mike Gorse  <mgorse@novell.com>
361
362         * FileDialog.cs: Add UIAFocusedItemChanged to PopupButtonPanel.
363         Add PerformClick and PerformDoubleClick to PopupButton.
364         Fixes #499851.
365
366 2009-05-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
367
368         * TabControl.cs: call Focus() to emit GotFocus event at the
369         proper time when SelectionIndex changes. Fixes #499887.
370
371 2009-05-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
372
373         * MonthCalendar.cs: In SetBoundsCore always do the bounds check to
374         have valid values, even if BoundSpecified is not including
375         Size/Height/Width - this is useful when we are in a control using Dock
376         or Anchor.
377         Fixes part of #483146.
378
379 2009-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
380
381         * ComboBox.cs: When losing the focus, if our textbox is not null,
382         close its auto complete list, if any.
383         Fixes part of #489339.
384
385 2009-04-27  Andrés G. Aragoneses  <aaragoneses@novell.com>
386
387         * ListView.cs: Make OnColumnClick +internal to be used by a11y.
388
389 2009-04-27  Brad Taylor  <brad@getcoded.net>
390
391         * ToolStripButton.cs: Emit an internal event when CheckOnClick is
392         changed.
393
394 2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
395
396         * XplatUIX11.cs: Properly support UTF8 when handling the
397         SelectionRequest event - this is helpful supporting some window
398         managers, such KDE, that explictly request the text in utf8, as
399         opposed to gnome, that supports ascii.
400         Fixes #489393.
401
402 2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
403
404         * ToolStripDropDownItem.cs: When assigning a new
405         ToolStripDropDownMenu, let it know we are its OwnerItem. This way the
406         Capture duties performed by Application/ToolStripManager are handled
407         nicely and we don't end up in an inconsisten stat.
408         Fixes #492815.
409
410 2009-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
411
412         * ToolStrip.cs: Even if we are not exactly a MenuStrip instance, close
413         any ToolStripDropDownItem when receiving a mouse down event in an
414         empty area.
415
416 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
417
418         * ToolBarButton.cs: add UIA events for style and dropdownmenu changes.
419
420 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
421
422         * ToolBarButton.cs: rename a method to include UIA prefix.
423
424 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
425
426         * ToolBarButton.cs: change visibility of some UIA methods from
427         protected virtual to private.
428
429 2009-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
430
431         * ToolStripDropDown.cs: In OnVisibleChanged, if we have an OwnerItem,
432         fire OnDropDownOpened/OnDropDownClosed depending on the new
433         visibility. This also ensures that any direct access to this instance
434         will fire the mentioned events for the OwnerItem.
435         * ToolStripDropDownItem.cs: Remove the invocations to
436         OnDropDownOpened/OnDropDownClosed, since they are handled in
437         ToolStripDropDown, as well as updating the
438         OnDropDownHide/OnDropDownShow calls to be in the right order.
439         Fixes #496193.
440
441 2009-04-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
442
443         * Control.cs, ContextMenuStrip.cs, ToolStripMenuItem.cs: Only process any 
444         shortchut in ToolStripMenuItem.ProcessCmdKey if the control generating the 
445         event is the same as the owner of the menu item. Also set properly 
446         SourceControl for ContextMenuStrip, as well as add an internal field to 
447         contain the control that owns the ContextMenuStrip (we need to know this 
448         even before the public property is assigned).
449         Fixes bits of #393775.
450
451 2009-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
452
453         * StatusStrip.cs: Use the same icon as .net when the mouse is over the
454         size grip.
455         Fixes #492828.
456
457 2009-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
458
459         * ComboBox.cs: When calculating the height of the ComboListBox,
460         specially for the 2.0 profile, use MaxDropDownItems if the
461         DropDownHeight property hasn't been set, and use the later if it has
462         been set. This way we support both properties.
463         Fixes #493308.
464
465 2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
466
467         * ThreadExceptionDialog.cs: Draw the error icon, previously missing.
468         Fixes #474253.
469
470 2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
471
472         * ContainerControl.cs: Implement support for Control.CausesValidation,
473         by adding a pending list of controls to be validated in the top
474         container control, and postpone validation as needed. 
475         Also remove any control in the validation chain in case it gets removed 
476         from its owner before the pending validation actually happens.
477         Fixes #457170.
478
479 2009-04-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
480
481         * ListBox.cs: The default instance StringFormat field used to draw our
482         items should use the StringFormatFlags.NoWrap value, so it doesn't try
483         to put in a different line the text that doesn't fit our bounds, but
484         show it partially.
485         Fixes #475581.
486
487 2009-04-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
488
489         * CheckedListbox.cs: When executing OnItemClick check that the index
490         is different to -1 before trying to retrieve an item using that value.
491         Fixes a ArgumentOutOfRangeException thrown when the horizontal
492         scrollbar was visible but not needed, and then a clicked was received
493         on its area.
494
495 2009-04-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
496
497         * MaskedTextBox.cs: If Insert is pressed, change the internal
498         overwrite mode for our default value.
499         Fixes some bits of #477395.
500
501 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
502
503         * ListView.cs: In EnsureVisible avoid any direct access to items if we
504         are using virtual mode - otherwise use the bounds stored in a specific
505         item in a given index. This is specially important when using groups
506         or when items are re-arranged, since the position in the items
507         collection can be different than that one being displayed.
508         Fixes the rest of ##491978.
509
510 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
511
512         * ThemeWin32Classic.cs: Include the previous check for ListView in a
513         2.0 define as needed.
514
515 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
516
517         * ThemeWin32Classic.cs: Don't draw ListView's gridlines if we are using groups.
518         Fixes part of #491978.
519
520 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
521
522         * ToolTip.cs: New fields to store the title/icon information.
523         * ThemeWin32Classic.cs: Implement support for tooltip's title and
524         icon.
525         Fixes #491978.
526
527 2009-04-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
528
529         * TabControl.cs: When removing a tab that was previously selected, set
530         internally the value of selected_index to -1, to avoid trying to
531         access the previous one when trying to set the new one (and was
532         already removed from the collection). This is what .net seems to do
533         too.
534         Fixes #490937.
535
536 2009-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
537
538         * XplatUIX11.cs, X11Clipboard.cs: Text and Rtf formats must be
539         separated, and we cannot fallback on Text if Rtf is requested but not
540         present.
541         * Clipboard.cs: Actually use the format specified by our user when
542         putting data.
543
544 2009-03-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
545
546         * X11Clipboard.cs: Actually look for the RtfText format when calling
547         GetRftText in our clipboard formats list, instead of using the
548         generical Text format.
549
550 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
551
552         * TextBox.cs: Process auto completion properly when we are using the
553         internal source provided by ComboBox, and also remove some repeated
554         checks.
555         Fixes #489339.
556
557 2009-03-30 Tom Hindle <tom-hindle@sil.org>
558         
559         * DataGridView added Support for Invisible Columns to 
560         AutoFillColumnsInternal method.
561
562 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
563
564         * X11Structs:
565         * X11Clipboard.cs: Move internal ClipboardStruct from X11Structs to
566         its own file, since it is adding some functionality and thus is not a
567         simple struct as before.
568         * XplatUIX11.cs: Add support to store different formats that could
569         have been specified by the user when puting data in the Clipboard -
570         this is important when more than one format is supported (such plain
571         text and rtf text). Update in the needed places, as well as simplify
572         the code.
573         Fixes #489625.
574
575 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
576
577         * XplatUIX11.cs: When handling the SelectionRequest event, use
578         SelectionRequestEvent instead of SelectionEvent, so we get the right
579         data for the app asking for clipboard data. Set the member of
580         SelectioneEvent.property to indicate the place where we are storing
581         the information as well - this is specially important for gnome/kde
582         apps using the TARGETS atom to ask for the supported permission before
583         actually asking for a specific format.
584         Fixes #489393.
585
586 2009-03-28  Ivan N. Zlatev  <contact@i-nz.net>
587
588         * DataGridViewCell.cs: We don't support drawing all types of cell borders, 
589         so fallback and at least draw something instead of nothing.
590
591 2009-03-27  Ivan N. Zlatev  <contact@i-nz.net>
592
593         * DataGridView.cs: If the column header isn't visible allow resizing 
594         using the cell column border. Also be sure to reset the cursor properly.
595         [Fixes bug #489929]
596
597 2009-03-26   Carlos Alberto Cortez <calberto.cortez@gmail.com>
598
599         * ToolStrip.cs: When disposing, iterate over the items in reverse
600         order, since disposing the items modifies the collection.
601         * ToolStripItem.cs: Remove from the owner when disposing.
602         Fixes #485769.
603
604 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
605
606         * DataGridView.cs: Add an implementation for UpdateRowHeightInfo. No 
607         longer throws a NotImplementedException.
608           Based on a patch by Tom Hindle <tom_hindle@sil.org>
609         [Fixes bug #488319]
610
611 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
612
613         * DataGridView.cs: Implement IsCurrentRowDirty. No longer throws 
614         NotImplementedException.
615
616 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
617
618         * DataGridViewColumn.cs, DataGridViewTextBoxColumn.cs: 
619         Fix SortMode clash handling.
620         [Fixes bug #488263]
621
622 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
623
624         * DataGridView.cs: Do not show the vertical scrollbar if there is only 
625         one row or less. For the sake of MSNET compatibility.
626         [Fixes bug #487988]
627
628 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
629
630         * DataGridView.cs: When the current cell is moved out of the editing row 
631         be sure to reset it back to a place holder row.
632
633 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
634
635         * DataGridView.cs: If IsHandleCreated and the very first row is added 
636         to the grid in a non-databound scenario - select the first cell.
637         [Fixes bug #486881]
638
639 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
640
641         * DataGridView.cs: If we are not databound and empty once the first row 
642         gets added select the first cell.
643         [Fixes bug #486881]
644
645 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
646
647         * DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's
648         DataGridView. They do not belong to a DataGridView.
649         [Fixes bug #486645]
650
651 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
652
653         * DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs: 
654         Set indices and associate with DataGridView only after the item is 
655         add to the internal list.
656         [Fixes part of bug #486645]
657
658 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
659
660         * DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount. 
661         FullRowTemplate already contains all the cells.
662         [Fixes part of bug #486645]
663
664 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
665
666         * DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal 
667         to perform Pre and Post removal actions to allow the current cell to be 
668         moved and all events fired properly before the column is removed.
669
670 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
671
672         * DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and 
673         Post removal action to allow the current cell to be moved and all events fired 
674         properly before the row is removed.
675
676 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
677
678         * DataGridView.cs: Fire CellEnter and CellLeave events for the Cell.
679         [Fixes bug #486640]
680
681 2009-03-18  Jonathan Pobst  <monkey@jpobst.com>
682
683         * XplatUICarbon.cs: Commit patch from Alex Shulgin that fixes window
684         placement of popup windows on OSX.
685
686 2009-03-18  Matt Guo  <matt@mattguo.com>
687
688         * FontDialog.cs: Override "ToString" for FontDialog.ColorComboBox.ColorComboBoxItem
689         [Fixes bug #482690]
690
691 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
692
693         * DataGridView.cs: Implement the CellMouseDoubleClick event.
694         [Fixes bug #486262]
695
696 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
697
698         * DataGridView.cs: Fix scrolling to take into account that the 
699         scrollbars are actually inside the client area of the datagridview.
700
701 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
702
703         * DataGridView.cs: Implement mouse wheel scrolling.
704         [Fixes bug #486159]
705
706 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
707
708         * DataGridView.cs: When DataSource changes the rebinding should happen 
709         not if IsHandleCreated but if BindingContext != null.
710         [Fixes bug #486013]
711
712 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
713
714         * DataGridView.cs: Browsable(false) properties should be skipped when 
715         autogenerating the columns.
716         [Fixes bug #486021]
717
718 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
719
720         * DomainUpDown.cs: When ReadOnly is true, all the text entered by the
721         user should use a different handling, trying to use every pressed char
722         as a unique and only one prefix to compare against the items. Also,
723         refactor some input check code to avoid duplication.
724         Fixes #458607.
725
726 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
727
728         * DataGridViewCell.cs: In OwningColumng Handle invalid column index 
729         silently.
730         [Fixes bug #485278]
731
732 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
733
734         * DataGridViewBand.cs: Update our State whenever a property changes.
735         * DataGridView.cs: Don't be so generous in reseting Displayed, because 
736         it will spawn lots and lots of unneeded State changed events.
737         [Fixes bug #484989]
738
739 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
740
741         * DataGridView.cs, DataGridViewRow.cs, DataGridViewColumn.cs: 
742         Add support for invisible rows and columns.
743         [Fixes bug #484951]
744
745 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
746
747         * DataGridViewCell.cs: Escape literal { in ToString.
748         * DataGridViewTextBoxCell.cs: Fix ToString.
749         [Fixes bug #484923]
750
751 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
752
753         * MenuAPI.cs: When navigating items using the keyboard properly handle
754         the case when no item is selected - this way we should try to select
755         the first or the last item depending on the direction, but no the
756         second or third one, etc.
757
758 2209-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
759
760         * Form.cs: When calling ProcessCmdKey, just after checking for any
761         MainMenu, check if there's an active ContextMenu that is *not* owned
762         by the form - this is needed when a non-focusable control owns a
763         ContextMenu but its ProcessCmdKey method can't be called since it
764         can't receive any input.
765         Fixes #477655.
766
767 2009-03-13  Neville Gao  <nevillegao@gmail.com>
768
769         * ToolBar.cs: Sent ButtonClick events when button style is DropDown.
770         * ContextMenu.cs: Add UIA Framework property UIAVisible to detect if
771         ContextMenu is displayed.
772
773 2009-03-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
774
775         * XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
776         WM_HELP message for the associated window, don't call
777         NativeWindow.WndProc *at all*, since this could send a WM_*
778         key-related to Control.WndProc. Also, return the keypress message, in
779         case it needs to be preprocessed for any menu.
780         Fixes #478476.
781
782 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
783
784         * DataGridView.cs: When removing the first displayed row and moving 
785         the current cell up one we must invalidate the first displayed row 
786         index before calculating the row heights, etc.
787         [Fixes bug #483202]
788
789 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
790
791         * DataGridView.cs: Fix three column bugs:
792            - Rows should be cleared (but not removed) if columns become 0.
793            - The current cell should get moved
794            - ColumnCount increase was adding too many columns.
795
796 2009-03-07  Ivan N. Zlatev  <contact@i-nz.net>
797
798         * DataGridView.cs: Fix RowCount decrease which wasn't working well 
799         in both scenarions - with and without editing row.
800
801 2009-03-06  Ivan N. Zlatev  <contact@i-nz.net>
802
803         * DataGridView.cs: Be compatible with MS in that the scroll to 
804         selection has a synchronous effect. The trick here is that in 
805         order to avoid unnecessary calculations each time a row/column 
806         is added/removed we recalculate the whole grid size just before 
807         just before the scroll to selection.
808         [Fixes bug #482478]
809
810 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
811
812         * RichTextBox.cs: LoadFile(string path) should pass by default
813         RichTextBoxStreamType.RichText, without caring about the detection or
814         extension of the file.
815
816 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
817
818         * RichTextBox.cs: When calling LoadFile, remove the extra EOL
819         introduced by StreamReader, since it will convert the EOF to an EOL.
820         Fixes #479646.
821
822 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
823
824         * ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
825         preferred size twice.
826
827 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
828
829         * ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
830         string if we aren't on a ToolStripDropDownMenu.
831
832 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
833
834         * ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
835         code from Item to Button.  Patch from Alex Shulgin.
836
837 2009-03-05  Jonathan Pobst  <monkey@jpobst.com>
838
839         * ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
840         * ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
841         not a ToolStripDropDown.
842         * ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.
843
844 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
845
846         * DataGridView.cs: Fix RowCount/ColumnCount decreasing.
847
848           Based on a patch by Tom Hindle <tom_hindle@sil.org>
849           [Fixes bug #482133]
850
851 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
852
853         * DataGridView.cs, DataGridViewElement.cs: 
854            - Always calls OnDataGridViewChanged() if the new DGV is 
855            not the same/null as the current one.
856            - Do not throw NREs when setting TopLeftHeaderCell to null
857            - Unset the DGV for TopLeftHeaderCell when replacing it
858           Based on a patch by Tom Hindle <tom_hindle@sil.org>
859           [Fixes bug #481681]
860
861 2009-03-04  Jonathan Pobst  <monkey@jpobst.com>
862
863         * ToolStripDropDown.cs: When dismissing control due to ESC, don't
864         hit a NRE if we are a ContextMenuStrip and do not have a parent.
865         [Fixes bug #478616]
866
867 2009-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
868
869         * ListView.cs: When removing items from a ListViewItemCollection
870         contained in ListView (not in ListViewGroup), before actually removing
871         the items remove them also from their -if any- associated groups. If
872         the item is present in ListViewGroup.Items but not in ListView.Items,
873         then don't remove it - this is *exactly* what .net seems to do.
874         Fixes the remaining bits of #478689.
875
876 2009-02-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
877
878         * ListView.cs: In our MouseDown handler in ItemControl use the item in
879         the very specific *real* position where the mouse was pressed, using
880         GetItemAtDisplayIndex for that purpose, instead of directly accessing
881         Items - this is specially useful when groups with Details view is
882         used. This is what we do in other places when using groups.
883         Fixes part of #478689.
884
885 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
886
887         * MaskedTextBox.cs: Properly replace selection when a new valid key
888         is pressed - even when IsOverwriteMode is false. This is what .net
889         does.
890
891 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
892
893         * MaskedTextBox.cs: When setting Text and RejectOnFirstFailure is
894         true, use MaskedTextProvider.Set instead of MaskedTextProvider.Replace, 
895         since Set will keep the previous value in case of error (just what we
896         need), but still call MaskedTextProvider.Clear if
897         RejectOnFirstFailure is false - match .net.
898
899 2009-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
900
901         * MaskedTextBox.cs: When setting Text use the very precise algorithm
902         that .net uses: iterate over every char of the new value, trying to
903         use every char, and use a normal call to MaskedTextProvider.Replace
904         call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected 
905         in case of error in both cases, as well.
906         Fixes #477408.
907
908 2009-02-25  Neville Gao  <nevillegao@gmail.com>
909
910         * ColorDialog.cs: Added UIA Framwork Property:
911         UIASelectedSmallColorControl.
912
913 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
914
915         * MaskedTextBox.cs: Forgot to update the call of the new method
916         introduces in the previous patch.
917
918 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
919
920         * MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
921         key. Also create a new method to avoid code duplication between
922         OnKeyDown and OnKeyPress.
923         Fixes #477388.
924
925 2009-02-24  Ivan N. Zlatev  <contact@i-nz.net>
926
927         * DataGridViewCell.cs: Invalidate the datagrid when the cell is selected 
928         or deselected.
929         [Fixes bug #479124]
930
931 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
932
933         * MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
934         actually inversed, so put it the right way. Also, don't automatically
935         look for the next editable item after adding a new one, but way for
936         the next insertion (this is what .net does) - this is not needed when
937         MaskedTextProvider.InsertAt is called however, since it already looks for the
938         next editable position.
939         Fixes the remaining bits of #477383.
940
941 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
942
943         * MaskedTextBox.cs: In OnKeyPress handle backspace by calling
944         MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
945         property after the text was modified, adjust the testPosition value
946         depending on what method was called.
947         Fixes part of #477383.
948
949 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
950
951         * ListView.cs: For EnsureVisible, adjust the view port bounds based on
952         the existence of the column headers, as well as using this information
953         to adjust the vscrollbar value, so items never get hidden by the
954         column headers.
955         Fixes #478498.
956
957 2009-02-23  Ivan N. Zlatev  <contact@i-nz.net>
958
959         * DataGridView.cs: Make the ScrollBars property work properly.
960
961 2009-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
962
963         * TextBox.cs: Some code lifting for AutoComplete's support. First,
964         when handling non-navigation keys, save the original Text typed by the
965         user, and don't motify it BEFORE. This was a design mistake, since the
966         re-assignation happens only when navigating the append/suggest list,
967         not while creating the matches. Also, process the Delete key just like 
968         the backspace one. Finally, when handling WM_CHAR, ignore both Escape
969         and Enter keys.
970         Fixes some missing bits of #469967.
971
972 2009-02-22  Ivan N. Zlatev  <contact@i-nz.net>
973
974         * DataGridView.cs: Fix row removal in the data-bound scenario.
975
976 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
977
978         * DataGridViewCell.cs: Use strict equality comparison in order to 
979         prevent superfluous CellValueChanged events.
980
981 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
982
983         * DataGridView.cs: Do not reset the columns when the data list changes, 
984         but only the rows. Fixes multiple bugs related to sorting, custom 
985         column styles being reset and more.
986
987 2009-02-19  Jonathan Pobst  <monkey@jpobst.com>
988
989         * ThemeWin32Classic.cs: Respect a PictureBox's Padding when
990         drawing the image.
991
992 2009-02-18  Andrés G. Aragoneses  <aaragoneses@novell.com>
993
994         * ToolBarButton.cs: Oops, use the correct event (fix r127298).
995
996 2009-02-17  Andrés G. Aragoneses  <aaragoneses@novell.com>
997
998         * ToolBarButton.cs: Event for Enabled property (needed to fix
999           UIA #474197).
1000
1001 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1002
1003         * TextBox.cs: When handling WndProc with autocomplete activated,
1004         event if the new text is not causing any change in the look up
1005         algorithm, save it as we normally do when numbers and letters.
1006         Fixes #469967.
1007
1008 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1009
1010         * TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
1011         Invalidate the proper bounds in the TreeView, not only resetting the
1012         width.
1013         Fixes #475542.
1014
1015 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1016
1017         * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
1018         BackColor property. This is what .net does in both 1.1 and 2.0.
1019         * TreeView.cs: When selected_node is not the same as highlighted_node,
1020         we need to handle the back color in a different way, trying to use the
1021         node's BackColor if it's not Color.Empty.
1022         Fixes #464200.
1023
1024 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1025
1026         * TreeView.cs: When canceling selection in our MouseUp handler,
1027         invalidate also the previous selected node bounds.
1028         Fixes #464191.
1029
1030 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
1031
1032         * DataGridView.cs: End or if end fails then cancel the current edit 
1033         operation before clearing the data source.
1034
1035 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
1036
1037         * DataGridView.cs: Data-bind only after the handle is created.
1038         [Fixes bug #473680]
1039
1040 2009-02-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1041
1042         * TreeView.cs: When handling the MouseMove event, check if
1043         focused_node and selected_node fields are null - usually they are non
1044         null, since we have always a selected node, but canceling selection by
1045         handling BeforeSelect event leaves the two of them as null.
1046         Fixes #470451.
1047
1048 2009-02-06  Neville Gao  <nevillegao@gmail.com>
1049
1050         * TabControl.cs: Control enabled to support accessibility.
1051         [Fixes Bug #472428]
1052
1053 2009-02-05  Ivan N. Zlatev  <contact@i-nz.net>
1054
1055         * DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation: 
1056            - Use ArrayList.Insert instead of the Item property so that the item 
1057            is actually inserted and not an existing item replaced.
1058            - Call DataGridView.OnRowsAddedInternal and drop internal from 
1059            OnRowsAdded for binary compitability. This also fixes several 
1060            redrawing issues.
1061         [Fixes bug #472968]
1062
1063 2009-02-05  Andrés G. Aragoneses  <aaragoneses@novell.com>
1064
1065         * ToolBarButton.cs: Doh, fire OnUIATextChanged *after* setting
1066           the value.
1067
1068 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1069
1070         * ToolBarButton.cs: Add another event (OnUIATextChanged).
1071
1072 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1073
1074         * ToolBarButton: Fix typo in previous commit (r125704).
1075
1076 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1077
1078         * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
1079         when a button gets focus, firing the events from the ToolBar.
1080         r: jpobst
1081
1082 2009-02-04  Mario Carrion  <mcarrion@novell.com>
1083
1084         * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting 
1085         Width.
1086         * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
1087         ColumnHeader to raise ColumnWidthChanged.
1088         [Fixes Bug #467086]
1089
1090 2009-02-03  Ivan N. Zlatev  <contact@i-nz.net>
1091
1092         * DataGridViewRowCollection.cs, DataGridView.cs: Move row completion 
1093         code in the row collection code, so that the completion happens before 
1094         the CollectionChanged event, also better encapsulation.
1095         [Fixes bug #471987]
1096
1097 2009-02-02  Ivan N. Zlatev  <contact@i-nz.net>
1098
1099         * DataGridView.cs: When editing is finished do not remove the editing 
1100         row, because it has already become a real one. Instead add a new one.
1101         [Fixes bug #471754]
1102
1103 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1104
1105         * TreeView.cs: When drawing the node's image, check that the index
1106         specified by the node is valid for the ImageList.
1107         Fixes #471094.
1108
1109 2009-02-02  Andrés G. Aragoneses  <aaragoneses@novell.com>
1110
1111         * ToolBar.cs: Add new UIAPerformClick method to be called by
1112         UIAutomationWinforms when someone calls Invoke() on the
1113         ToolBarButtonProvider. r: jpobst
1114
1115 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1116
1117         * XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
1118         MapNotify/UnmapNotify events - we are already firing those events in
1119         the proper places, so we avoid this way to send the same message two
1120         times. I'm leaving the handling code in case we could break something
1121         in the future, as this change seems dangerous (but needed).
1122         Fixes #467546.
1123
1124 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1125
1126         * DataGridView.cs: Complete incomplete rows when they are added to 
1127         the grid.
1128         [Fixes bug #471068]
1129
1130 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1131
1132         * DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the 
1133         binding is cleared prior to setting it to null. Fixes a regression 
1134         causing exceptions when the DataSource is set to null and then set 
1135         again to a data source.
1136
1137 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1138
1139         * DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs: 
1140            - Make Image/Bitmap cells work.
1141            - Handle images with size greater than the cell.
1142            - Default to MiddleCenter alignment for image cells.
1143         [Fixes bug #471101]
1144
1145 2009-01-30  Ivan N. Zlatev  <contact@i-nz.net>
1146
1147         * UpDownBase.cs: Force Height to PreferredHeight.
1148
1149 2009-01-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1150
1151         * XplatUIX11.cs: We should use utf8 handling clipboard transference
1152         with other x11 applications, and use utf16 when handling clipboard
1153         data in the class library. Update the related points as well.
1154         Fixes #468683.
1155
1156 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
1157
1158         * DataGridViewCell.cs: Format strings according to the supplied 
1159         CellStyle.Format.
1160         [Fixes bug #470384]
1161
1162 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
1163
1164         * DataGridView.cs: Reset the hover cell if it gets moved due to row(s) 
1165         addition or removal. Fixes multiple crashes in OnMouseMove.
1166
1167 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
1168
1169         * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
1170
1171 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
1172
1173         * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the 
1174         current context.
1175         [Fixes bug #469239]
1176
1177 2009-01-26  Andreia Gaita  <avidigal@novell.com>
1178
1179         * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
1180         won't be disabled by default.
1181         Fixes #468690
1182
1183 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
1184
1185         * DataGridView.cs: Do not clear the rows if we are not databound.
1186
1187 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
1188
1189         * DataGridView.cs: Do not be too smart about selecting the first cell 
1190         when the first row is added as this is not what MS does. Fixes the 
1191         failing unit tests.
1192
1193 2009-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1194
1195         * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
1196         take into account the fact that OpenTreeNodeEnumerator needs to call
1197         MoveNext/MovePrevious to actually put the passed node as the one
1198         retrieved in Current. This way this property should work as really
1199         expected in .net.
1200         Fixes part of #467225.
1201
1202 2000-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1203
1204         * TreeView.cs: When calculating the scrollbars, don't use
1205         TreeNode.Bounds, since it still can have the values of the previous
1206         -and now invalid- layout -which depends on TreeView.skipped_nodes, and
1207         could not have been updated as well-, and use the actual number of
1208         visible number of nodes to compute the height needed to contain all
1209         the nodes. Also reset the value of vbar to 0 when disabled - this way
1210         we make sure that, when re-enabled, it will update the visible area of
1211         the treeview, even if the previous value before disabling it is the
1212         same as now. Finally don't do anything for the vbar.ValueChanged
1213         handler - for the case wheer we manually set the value but don't the
1214         vbar is disabled already.
1215         Fixes part of #467225.
1216
1217 2009-01-23  Jonathan Pobst  <monkey@jpobst.com>
1218
1219         * ToolStrip.cs: Switch from foreach to for, in case the collection
1220         somehow changes while enumerating it.
1221
1222 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
1223
1224         * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no 
1225         editing control.
1226
1227 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
1228
1229         * DataGridView.cs: Fix new row adding/editing in the non-databound 
1230         scenario.
1231
1232 2009-01-21  Mike Gorse  <mgorse@novell.com>
1233
1234         * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
1235           use them.
1236           Added UIAValueParamChangedEvent.
1237
1238 2009-01-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1239
1240         * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
1241         of trying to set as top node the highest parent of the previous top
1242         node. Moving to the bottom of the TreeView after a call to CollapseAll
1243         is exactly what .net does. This should avoid some nasty issue when
1244         CollapseAll is called and we don't need the vertical scroll bar.
1245
1246 2009-01-21  Mario Carrion <mcarrion@novell.com>
1247
1248         * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
1249         and UIATopMostChanged.
1250
1251 2009-01-21  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1252
1253         * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
1254         UIAEnabledChanged, and UIATextChanged events.
1255
1256         * Form.cs: Add UIAMenuChanged event.
1257
1258         * Menu.cs:
1259         * MenuAPI.cs: Note which internal APIs are being used by UIA.
1260
1261 2009-01-21  Neville Gao  <nevillegao@gmail.com>
1262
1263         * ToolBar.cs: Control enabled to support accessibility.
1264         [Fixes Bug #455950]
1265
1266 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1267
1268         * TreeView.cs: When handling mouse up event, check whether
1269         highlighted_node is null or not - usually it should be non-null
1270         alwaays, since the mouse down handler sets it, but some externa
1271         operations, such TreeNodeCollection.Clear, could set it to null.
1272         Fixes #438650.
1273
1274 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
1275
1276         * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu 
1277         item is disabled.
1278
1279 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
1280
1281         * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
1282         [Fixes bug #467285]
1283
1284 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1285
1286         * MonthCalendar.cs: When handling the selection changes using the
1287         mouse, don't set SelectionRange if the selection range didn't actually
1288         change. This matters because, even if we set the range to the same
1289         previous range, an extra DateChanged event is fired. Just to be clear:
1290         SelectionRage property doesn't check whether the new value is
1291         different to the previous one (by ref equals doesn't work here).
1292         Fixes other bits of #364914.
1293
1294 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1295
1296         * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
1297         selection using the keyboard, since we are already firing this event
1298         when setting SelectionRange. Also don't set SelectionRange if the
1299         previous and the new value are the same (the property, just as .net
1300         does, doesn't check whether the previous value and the new one are the
1301         same). This saves us from firing OnDateChanged event if the selection
1302         range didn't change actually.
1303         Fixes the remaining bits of #364914.
1304
1305 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1306
1307         * ListBox.cs: When removing an item and the last item is selected,
1308         remove it from the selection, and if selection mode is One try to
1309         select the new last item.
1310         Fixes #465422.
1311
1312 2009-01-16  Mike Gorse  <mgorse@novell.com>
1313
1314         * Splitter.cs: Make MaxSize internal so that UIA code can use it.
1315
1316 2009-01-16  Mario Carrion <mcarrion@novell.com>
1317
1318         * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged 
1319         when changing Text. 
1320
1321 2009-01-16  Carlos Alberto Cortez <calberto.cortez@ggmail.com>
1322
1323         * X11Structs.cs:
1324         * XplatUIX11.cs: Properly encode/decode the unicode strings we
1325         store/retrieve in the Clipboard. Also, since we try to convert the
1326         data to different formats, separate the source and the result of
1327         it, so we can always fallback to the original and don't mix wrong
1328         conversions.
1329
1330 2009-01-16  Mike Gorse  <mgorse@novell.com>
1331
1332         * TextControl.cs: Add UIASelectionChanged event.
1333
1334 2009-01-16  Ivan N. Zlatev  <contact@i-nz.net>
1335
1336         * DataGridView.cs: Forward the first key events to the editing control.
1337         [Fixes bug #457307]
1338
1339 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1340
1341         * Application.cs: Oops, launch the copied handler of PreRun instead of
1342         the global one (gendarme would bark otherwise). (Improving r123375)
1343
1344 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1345
1346         * XplatUI.cs:
1347         * Application.cs: Move the PreRun event fire to the end of the XplatUI
1348         static ctor (we don't move the PreRun event to this class because its
1349         usage would cause the call to the static ctor). This way we can get
1350         a11y support for dialogs that run without App.Run.
1351
1352 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1353
1354         * ListView.cs: New internal property to know the inner array's length of
1355         the location of items, in order to avoid a try-catch strategy for the
1356         case when this array has not been resized yet (for reference, look at
1357         r123288). r: jpobst
1358
1359 2009-01-13  Andrés G. Aragoneses  <aaragoneses@novell.com>
1360
1361         * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
1362         reflection calls. This requires UIAutomationWinforms r123213.
1363
1364 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1365
1366         * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
1367         handlers and fire the DateSelected event until MouseUp is reached,
1368         like .net does, instead of firing it for each mouse event.
1369         Fixes part of #364914.
1370
1371 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1372
1373         * TreeView.cs: When the selection gets canceled using the BeforeSelect
1374         event, invalidate the previous highlighted_node bounds, to show the
1375         user that the item was *not* selected.
1376         Fixes #464191.
1377
1378 2009-01-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1379
1380         * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
1381         well as -in DropDown and Simple modes- writing in the textbox should
1382         try to set the requested item as the top one, but navigating with the
1383         keyboard and handling mouse selection don't need that behaviour. Also,
1384         when resetting selected_index handling key press events, reset
1385         ComboListBox.HighlightIndex. 
1386         Fixes the remaining bits of #464188.
1387
1388 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1389
1390         * DataGridView.cs: Fix crashes when shortcut keys are pressed, but 
1391         there are no cells:
1392            - CurrentCellAddress should be -1, -1 and not 0, 0.
1393            - Be tolerant and fall back to clearing the current cell if either 
1394            column or row is -1 in MoveCurrentCell.
1395            - Misc. more -1 checks.
1396
1397 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1398
1399         * DataGridView.cs: Preserve the column index. Fixes a regression 
1400         introduced by the data binding position tracking code.
1401
1402 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1403
1404         * DataGridView.cs: If the bottom of the row matches the client height 
1405         do not regard the row as partially visible. Fixes the weird scrolling 
1406         when there is no scrollbar.
1407
1408 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1409
1410         * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
1411
1412 2009-01-09  Mario Carrion  <mcarrion@novell.com>
1413
1414         * MessageBox.cs: Fixed internal UIAIconRectangle property.
1415
1416 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1417
1418         * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
1419
1420 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1421
1422         * DataGridView.cs: Track the Position in the CurrencyManager.
1423
1424 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1425
1426         * DataGridView.cs: Implement data-bound new item editing/addition.
1427         * DataGridViewRowCollection.cs: Make it possible for us to internally 
1428         remove the edit row.
1429         [Fixes bugs #457107, #457308, #325240]
1430
1431 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1432
1433         * CurrencyManager.cs: Even if Position is set to a greater value than the 
1434         list count reset it to position of the last item.
1435
1436 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1437
1438         * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList. 
1439         Fix that in order to make CancelNew to work.
1440
1441 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1442
1443         * BindingSource.cs: When adding a new item try to delegate to the internal 
1444         list first before throwing an exception.
1445
1446 2009-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1447
1448         * ComboBox.cs: When setting the text and adjusting the top_item, do it
1449         *only* if the current item is *not* visible already.
1450         Fixes part of #464188.
1451
1452 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1453
1454         * DataGridView.cs: Requesting the CurrencyManager for the first time can 
1455         lead to unexpected OnBindingContextChanged calls and recursive rebinding. 
1456         Fix that.
1457         [Fixes bug #464493]
1458
1459 2009-01-08  Brad Taylor  <brad@getcoded.net>
1460
1461         * ComboBox.cs: Expose a few private fields as internal UIA properties.
1462
1463 2009-01-07  Mario Carrion <mcarrion@novell.com>
1464         
1465         * DataGrid.cs: CWL removed.
1466
1467 2009-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1468
1469         * RadioButton.cs: When setting Checked, we should first update the
1470         check state of the current RadioButton, as well as invalidating it,
1471         and after that actually update the siblings. This is done to match
1472         .net.
1473         Fixes the remaining bits of #463028.
1474
1475 2009-01-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1476
1477         * RadioButton.cs: Setting Checked to false should set TabStop to stop
1478         as well. Also, when we get the focus and no other RadioButton is
1479         selected in the parent control, we should mark ourselves as Checked.
1480         Fixes part of #463028.
1481
1482 2009-01-05  Mario Carrion <mcarrion@novell.com>
1483
1484         * DataGrid.cs: UIA suppport. internal events: 
1485         UIAGridCellChanged, UIAColumnsHeadersVisibleChanged, 
1486         UIASelectionChanged, UIACollectionChanged. Internal properties: 
1487         UIARowHeight, UIACellsArea, UIACaptionArea, 
1488         UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle, 
1489         UIAVScrollBar and UIAHScrollBar.
1490
1491 2009-01-05  Jonathan Pobst  <monkey@jpobst.com>
1492
1493         * ToolStripSplitStackLayout.cs: Enable the overflow button if any
1494         of the buttons are set to Overflow = Always.
1495         [Fixes bug #463013]
1496
1497 2009-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1498
1499         * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
1500         based on whether the binding source is availble or not. Fixes #463008.
1501
1502 2009-01-03  Ivan N. Zlatev  <contact@i-nz.net>
1503
1504         * DataGridViewCell.cs: We should return a value even if we are not bound 
1505         to a DataGridView.
1506
1507 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1508
1509         * CurrencyManager.cs, DataGrid.cs: 
1510            - Rename CanAddRows to AllowNew. The CurrencyManager has no 
1511            concept of "rows".
1512            - Add two more internal properties AllowRemove and AllowEdit.
1513         * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows, 
1514         AllowUserToDeleteRows and cell ReadOnly state to be also checked against the 
1515         CurrencyManager data source.
1516
1517 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1518
1519         * DataGridView.cs: Fix crashes caused by assigning negative values to 
1520         ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than 
1521         the column/row heights/widths.
1522         [Fixes bug #462684]
1523
1524 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1525
1526         * DataGridView.cs: Non-autogenerated columns that have a data property 
1527         set that exists in the current datasource should be set to be data-bound.
1528
1529 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1530
1531         * DataGridView.cs: Fix column sorting for columns containing null 
1532         values. A "null" value is not always "null" (e.g could be String.Empty) 
1533         and thus parsing numeric types throwed an exception for "null" values.
1534
1535 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1536
1537         * DataGridView.cs: Detach the editing control when the edit is 
1538         finished.
1539
1540 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1541
1542         * DataGridView.cs: Multiple fixes to handle last column/row removal 
1543         and cell movement after that instead of throwing exceptions.
1544
1545 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1546
1547         * DataGridViewCellCollection.cs: When cells are removed the column 
1548         indices become invalid if the cell is not the last one and have to 
1549         be refreshed.
1550
1551 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1552
1553         * DataGridView.cs: Return false in CommitEdit if there was an error.
1554
1555 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1556
1557         * DataGridView.cs: Remove a leftover Console.WriteLine.
1558
1559 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1560
1561         * DataGridViewRow.cs: Access the indexer of the data manager directly 
1562         instead of the internal list.
1563
1564 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1565
1566         * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs: 
1567         Rewrite the value getting, setting, parsing, formatting logic:
1568            - If data-bound value get/set should actually get and set from the 
1569              data source.
1570            - Make proper usage of TypeConverters for value parsing/formatting.
1571            - Raise DataError if setting the new value fails.
1572            - Get rid off the internal valueType field and get/set the ValueType 
1573            property instead.
1574         [Fixes bug #462051]
1575
1576 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1577
1578         * DataGridView.cs: Rewrite the DataBinding layer:
1579            - Get rid off all BindingSource/IBindingList/DataSet/DataTable 
1580            specific code.
1581            - Get rid off the per DataSource type column autogeneration code.
1582            - Use the CurrencyManager for everything that is DataBinding related.
1583
1584 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1585
1586         * CurrencyManager.cs: Do not fire duplicate ListChanged events.
1587
1588 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
1589
1590         * DataGridView.cs, DataGridViewRow.cs: Add a new internal property 
1591         DataManager to fetch the CurrencyManager for the DataGridView and to 
1592         spare this logic for the other components to follow.
1593
1594 2008-12-31  Mario Carrion  <mcarrion@novell.com>
1595
1596         * MessageBox.cs: UIA support: new properties: UIAMessage, 
1597         UIAMessageRectangle and UIAIconRectangle.
1598
1599 2008-12-31  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1600
1601         * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
1602         and DirComboBox.DirComboBoxItem.ToString override for UIA support.
1603
1604 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
1605
1606         * DataGridView.cs: Do not autogenerate duplicate column for a 
1607         data member that has already problematically been assigned one.
1608         [Fixes bug #457305]
1609
1610 2008-12-30  Jonathan Pobst  <monkey@jpobst.com>
1611
1612         * ProfessionalColorTable.cs: Better detection of user's theme.
1613         [Fixes bug #462766]
1614
1615 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
1616
1617         * DataGridView.cs: In the case where there are no autogenerated 
1618         columns and the user adds columns problematically we must generate 
1619         the rows after the very first column is added.
1620
1621 2008-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1622
1623         * DateTimePicker.cs: When increasing/decreasing the value of month
1624         with ShowUpDown set to true, moving from december to january, and
1625         moving from january to december should adjust the year to the next and
1626         the previous year, respectively.
1627         Fixes the remaining bits of #459674.
1628
1629 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
1630
1631         * DataGridView.cs: If a new cell is selected edit mode should be 
1632         immediately enabled only if EditOnEnter is set. Whether the mouse 
1633         or not was used to select the cell is irrelevant.
1634
1635 2008-12-29  Ivan N. Zlatev  <contact@i-nz.net>
1636
1637         * DataGridView.cs: Remove a bogus ReBind call, which was causing 
1638         recursive rebinding.
1639
1640 2008-12-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1641
1642         * DateTimePicker.cs: Handle the "MMMM" month format.
1643         Fixes #459674.
1644
1645 2008-12-23  Ivan N. Zlatev  <contact@i-nz.net>
1646
1647         * DataGridView.cs: 
1648            - Make ReBind private and refactor various calls to call ReBind 
1649            instead of ClearBinding/DoBinding
1650            - Rebind when the column collection changes
1651         * DataGridViewColumnCollection.cs: 
1652            - Leave the rebinding on change to be handled by the DataGridView.
1653
1654 2008-12-23  Jonathan Pobst  <monkey@jpobst.com>
1655
1656         * DataGridView.cs: Add a ReBind convenience method.
1657         * DataGridViewColumnCollection.cs: Rebind when a column is added.
1658         [Fixes bug #462019]
1659
1660 2008-12-23  Neville Gao  <nevillegao@gmail.com>
1661
1662         * StatusBar.cs: Modified argument variable.
1663         * SplitContainer.cs: Control enabled to support accessibility.
1664         [Fixes Bug #455950]
1665
1666 2008-12-22  Jonathan Pobst  <monkey@jpobst.com>
1667
1668         * ToolStripMenuItem.cs: Guard against an NRE.
1669         [Fixes bug #457110]
1670
1671 2008-12-22  Mario Carrion  <mcarrion@novell.com>
1672
1673         * Control.cs: AccessibleXXXX properties don't return 
1674         AccessibleObject.XXXX, instead a local referece is returned.
1675
1676 2008-12-22  Neville Gao  <nevillegao@gmail.com>
1677
1678         * PrintPreviewControl.cs: Added internal properties to support
1679         accessibility.
1680         [Fixes Bug #459699]
1681
1682 2008-12-19  Mario Carrion  <mcarrion@novell.com>
1683
1684         * Control.cs: Reverted r121561. 
1685
1686 2008-12-19  Andrés G. Aragoneses  <aaragoneses@novell.com>
1687
1688         * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
1689         it has been moved to the bridge.
1690
1691 2008-12-18  Brad Taylor  <brad@getcoded.net>
1692
1693         * DateTimePicker.cs: Add a few UIA specific events, and a couple
1694         internal methods useful for UIA.
1695
1696 2008-12-18  Mario Carrion <mcarrion@novell.com>
1697
1698         * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
1699         [Fixes Bug #455752]
1700
1701 2008-12-17  Mike Gorse  <mgorse@novell.com>
1702
1703         * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
1704           item's Focused property is set.
1705
1706 2008-12-17  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1707
1708         * TreeView.cs:
1709         * TreeNode.cs:
1710         * TreeNodeCollection.cs: Add events for UIA support:
1711         UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
1712         UIACollectionChanged.
1713
1714 2008-12-17  Bill Holmes  <billholmes54@gmail.com>
1715
1716         * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the 
1717           SubItemStyle member field. 
1718
1719         Contributed under MIT/X11 license.
1720
1721 2008-12-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1722
1723         * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
1724         y coord, since it's useless in this case, and we need to rely only on
1725         the number of rows and ItemHeight to compute this value.
1726         Fixes part of #257471.
1727
1728 2008-12-15  Mike Gorse  <mgorse@novell.com>
1729
1730         * StatusBar.cs: Send OnUIACollectionChanged in Remove().
1731
1732 2008-12-15  Mario Carrion  <mcarrion@novell.com>
1733
1734         * Control.cs: Accessibility properties instantiate AccessibilityObject when
1735         needed.
1736         [Fixes Bug #459223]
1737
1738 2008-12-15  Brad Taylor  <brad@getcoded.net>
1739
1740         * ToolStripItem.cs: Add a UIA specific event for listening for when a
1741         ToolStripItem becomes selected or deselected.
1742
1743 2008-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1744
1745         * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
1746         .net does. Use the date in the point of the mouse move coords as the
1747         new range as well, if the left button of the mouse is being pressed.
1748         Fixes #364914.
1749
1750 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1751
1752         * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
1753         MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
1754         effectively repaint the control.
1755         Fixes the remaining bits of #417961.
1756
1757 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1758
1759         * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
1760         range to contain only dates within the new possible range.
1761         Fixes part of #417961.
1762
1763 2008-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1764
1765         * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
1766         length of the text, but the end position, so we need to substract 1 to
1767         have a valid value. Also, in the same InputText method, don't use
1768         SelectionLength as the length of the text, since the selected text
1769         could actually be empty, but we need to set the value anyway.
1770         Fixes #457370.
1771
1772 2008-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1773
1774         * TextBox.cs: Don't do any auto complete task if the custom source is
1775         null or empty. Also avoid duplication of code.
1776         Fixes #457743.
1777
1778 2008-12-09  Ivan N. Zlatev  <contact@i-nz.net>
1779
1780         * DataGridView.cs: Refresh column sizes when new rows are added.
1781         [Fixes bug #457050]
1782
1783 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1784         * RichTextBox.cs: When parsing the contents of a rtf file, don't call
1785         Split to create a line - we are already doing this, by _adding_ a new
1786         one when rtf_cursor_x is 0 (this field gets this value just after we
1787         receive the newline param as true). This avoids having a proportional number
1788         of empty lines in the end of the rich text box.
1789         Fixes #396664.
1790
1791 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1792
1793         * RichTextBox.cs: When saving the contents as a plain text, don't add
1794         a new line for every Line structure, since the data in Document
1795         already contains the new line characters. This avoids duplicated new
1796         lines using the Save methods.
1797         Fixes #445618.
1798
1799 2008-12-09  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1800
1801         * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
1802         framework.  Fixes bug #457678.
1803
1804 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1805
1806         * DataGridViewRow.cs: Prevent an exception on a not yet databound grid, 
1807         where datasource is null.
1808         [Fixes exception reported in bug 441240]
1809
1810 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1811
1812         * DataGridView.cs: EndEdit validation fixes.
1813
1814 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1815
1816         * DataGridView.cs: This is the cool patch that adds support for 
1817         actually updating the data in the databinding backend after editing. 
1818         With bonus firing and handling the DataError event.
1819
1820 2008-12-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1821
1822         * Line.cs: When calculating the text tags's Shift value, store it as
1823         pixels instead of points. This way we can actually handle different
1824         fonts in the same RichTextBox, as well as the right size of the caret.
1825         Fixes part of #351938.
1826
1827 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1828
1829         * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was 
1830         casted to CheckState causing InvalidCastExceptions.
1831
1832 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1833
1834         * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior 
1835         to not depend on the item being clicked.
1836
1837 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1838
1839         * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no 
1840         longer throws a NotImplementedException.
1841
1842 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1843
1844         * DataGridView.cs: Set EditingControlFormattedValue when preparing an 
1845         IDataGridViewEditingControl for editing.
1846
1847 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1848
1849         * DataGridViewComboBoxCell.cs: Implement data binding support.
1850
1851 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1852
1853         * DataGridView.cs: Use the CurrencyManager to update the data source 
1854         binding position instead of casting the data sourcde to BindingSource.
1855         This enables position updating for other type of data sources.
1856
1857 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1858
1859         * ComboBox.cs: Update the SelectedIndex before updating the Text 
1860         in OnDisplayMemberChanged.
1861
1862 2008-12-07  Ivan N. Zlatev  <contact@i-nz.net>
1863
1864         * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
1865         [Fixes bug #457112]
1866
1867 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1868
1869         * DataGridView.cs: Sorting fixes:
1870            - Be strict when sorting is enabled.
1871            - If there is a data source delegate the sorting request.
1872
1873 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1874
1875         * Binding.cs: When converting the data also try with the destination 
1876         type typeconverter. This indirectly adds support for Nullable types 
1877         in our databinding layer.
1878
1879 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1880
1881         * DataGridView.cs: When cell editing is finished focus back the 
1882         DataGridView. Fixes keyboard navigation post-editing.
1883
1884 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1885
1886         * DataGridView.cs: Fix the cell editing by delaying the currentCell 
1887         setting to after EndEdit is called for the old cell.
1888
1889 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1890
1891         * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
1892
1893 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1894
1895         * XplatUIX11.cs: Send WM_HELP only to the focused window.
1896
1897 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1898
1899         * CurrencyManager.cs: Fix exceptions when resetting the data source 
1900         for the same time (e.g. in ComboBox): 
1901            - Do not set the list position if we are still transferring data
1902            - When resetting the list firstly push the data then update the 
1903            binding.
1904         * Binding.cs: Check BindingManager.Position == -1 instead of 
1905         BindingManager.Current == null in order to avoid unexpected 
1906         exceptions.
1907
1908 2008-12-05  Brad Taylor  <brad@getcoded.net>
1909
1910         * MonthCalendar.cs: Add UIA specific events so that we can know when
1911         the selection changes, and when MaxSelectedCount changes.
1912
1913 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1914
1915         * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not 
1916         used for anything.
1917
1918 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1919
1920         * DataGridView.cs: Fix scrolling and selection of cells/rows prior
1921         to the control being drawn for the first time by:
1922            - Implement DisplayedRowsCount to not rely on the control being
1923            already painted. Also added support for the partial row flag.
1924            - Fix scrolling to take into account partial rows and scroll to
1925            them.
1926         [Fixes bug #456527]
1927
1928 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1929
1930         * DataGridView.cs: Do not reset the CurrentCell when the handle is
1931         created if the user has already set it.
1932
1933 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1934
1935         * DataGridView.cs: Fix CurrentCell to actually select the cell.
1936
1937 2008-12-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1938
1939         * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
1940         text and then let the underneath users of IDataObject interpret and
1941         parse by themselves. 
1942         Fixes #439251.
1943
1944 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1945
1946         * DataGridView.cs: Fix my previous commit to actually update what it 
1947         was supposed to.
1948
1949 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1950
1951         * DataGridView.cs: Ensure that when a row is removed the all the 
1952         current row/column/cell get updated. Fixes multiple exceptions.
1953
1954 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1955
1956         * DataGridView.cs: Fix scrolling to the current cell when key navigation 
1957         is used.
1958         [Fixes bug #443560]
1959
1960 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1961
1962         * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
1963         * DataGridViewCell.cs: Set the cell as selected prior to setting the 
1964         new state.
1965         [Fixes issue 1 in bug #443560]
1966
1967 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1968
1969         * DataGridView.cs: Invalidate after the current row/column seletion 
1970         chagnes.
1971         [Fixes bug #438434]
1972
1973 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1974
1975         * DataGridView.cs: Refresh the data if the data list is reset, etc.
1976
1977 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1978
1979         * DataGridView.cs: Handle datasource state changes:
1980            - IBindingList - list changes
1981            - BindingSource - list changed and datasource changes
1982
1983 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1984
1985         * DataGridView.cs: Select the first cell when databound. 
1986         Visually select when CurrentCell is set.
1987
1988 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1989
1990         * DataGridView.cs: Set the current cell before raising CellClick.
1991
1992 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1993
1994         * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter, 
1995         CellLeave events as this is already done in SetCurrentCellAddressCore.
1996
1997 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1998
1999         * DataGridView.cs: Set the minimum size for the columns to be the 
2000         width of their header, so that the columns don't get squashed 
2001         all together.
2002
2003 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2004
2005         * DataGridView.cs: After the data is bound PerformLayout, so that 
2006         the columns get autosized.
2007
2008 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2009
2010         * DataGridView.cs: Move all currentCell setting code into 
2011         one central place - SetCurrentCellAddressCore. That way the 
2012         current cell is properly updated when programatically set.
2013         Fire RowEnter/Leave events.
2014
2015 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2016
2017         * DataGridView.cs: Update the CurrencyManager.Position, so that 
2018         when a BindingSource is used BindingSource.Current will be correct.
2019
2020 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2021
2022         * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
2023            - No caption text is drawn because Color.Empty is used.
2024            - Fix top and height off by 1.
2025
2026 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2027
2028         * DataGridViewRow.cs: Implement DataBoundItem.
2029
2030 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2031
2032         * BindingSource.cs: Return null for Current if there is no data present.
2033
2034 2008-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2035
2036         * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
2037         menus using the arrow keys. Also when handling the left arrow key, don't 
2038         assign the current menu to the parent one, if the parent is null.
2039         Fixes #446392.
2040
2041 2008-11-24  Everaldo Canuto  <ecanuto@novell.com>
2042
2043         * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
2044         #413501.
2045
2046 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2047
2048         * Scrollbar.cs:
2049         * ScrollableControl.cs: Simplify the code to manually set the size of
2050         the thum area, avoiding duplication of code, and also preserving the
2051         right value for different code paths - this can happen when size
2052         changes are made to the scrollbar after setting LargeChange, Maximum
2053         or related properties for the ScrollBar.
2054
2055 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2056
2057         * ScrollableControl.cs: When scrolling, don't invalidate the entire
2058         area, and call to XplatUIX11.ScrollWindow instead. This is exactly
2059         what .Net does: copy the visible area, and only invalidate the part of
2060         the area that wasn't visible before scrolling.
2061         Fixes #441738.
2062
2063 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
2064
2065         * DataGridView.cs: Listen for a DataTable's TableCleared event so we
2066         can clear ourselves when it is raised, we don't have a newrowindex
2067         if we don't have any columns.
2068         * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
2069         re-index after each delete so the NewRow will have the correct index.
2070         [Fixes bug #448005]
2071
2072 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
2073
2074         * Form.cs: Don't change min/max size if it is empty.
2075         [Fixes bug #447873]
2076
2077 2008-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2078
2079         * ScrollBar.cs:
2080         * ScrollableControl.cs: When the manual thumb size is used, the
2081         maximum allowed value should depend on that thumb size, instead of
2082         LargeChange (using the maximum - LargeChange + 1 value). But
2083         LargeChange should be used normally when incrementing/decrementing.
2084         Fixes the remaining part of #441546.
2085
2086 2008-11-23  Andreia Gaita  <avidigal@novell.com>
2087
2088         * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream 
2089         until an about:blank has been loaded (according to spec). Fix 
2090         ScrollbarsEnabled to set when a document is loaded (since we use js 
2091         for it). Fix url so it reflects the current loading document and not 
2092         the previous one. Send StatusChanged events.
2093
2094 2008-11-23  Andreia Gaita  <avidigal@novell.com>
2095
2096         * Application.cs: If a message comes in for an embedded control
2097         (like webbrowser) when we're capturing the keyboard, release the
2098         capture and continue.
2099         [fixes #429462]
2100
2101 2008-11-22  Andreia Gaita  <avidigal@novell.com>
2102
2103         * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
2104
2105 2008-11-21  Andreia Gaita  <avidigal@novell.com>
2106
2107         * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
2108         
2109 2008-11-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2110
2111         * ScrollBar.cs:
2112         * ScrollableControl.cs: Set manually the thumb size for the
2113         ScrollableControl scrollbars, so any further changes to the underneath
2114         scrollbars respect the original size.
2115         Fixes part of #441546.
2116
2117 2008-11-21  Geoff Norton  <gnorton@novell.com>
2118
2119         * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
2120         PlatformID.MacOSX now exists.
2121
2122 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2123
2124         * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
2125         Having something internal abstract isn't very nice for people who want
2126         to inherit from this class.
2127
2128 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2129
2130         * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
2131         invalid value.  Just return null for the Image, and use the ImageList's
2132         ImageSize for calculations.
2133
2134 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2135
2136         * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
2137         through DroppedDown so the proper events get called and state gets reset.
2138         [Fixes bug #446805]
2139
2140 2008-11-18  Jonathan Pobst  <monkey@jpobst.com>
2141
2142         * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
2143         the collection is modified.
2144
2145 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
2146
2147         * DomainUpDown.cs: Remove string cache and reflection optimizations.  They
2148         aren't always correct, and fixing them for every case is not worth the
2149         negligible benefit they provide.
2150         [Fixes bug #445713]
2151
2152 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
2153
2154         * DataGridView.cs: We should never add actual cells to the RowTemplate.
2155         Internally, use RowTemplateFull to give us a new row with cells.
2156         * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
2157         * DataGridViewRowCollection.cs: Use RowTemplateFull.
2158
2159 2008-11-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2160
2161         * XplatUIX11.cs: Forms without borders should be able to change its
2162         size - specially they should be able to be maximized, adding the
2163         respective MotifFunctions.Resize bit when setting window properties as
2164         well as *not* marking the Hwnd as size fixed.
2165         Fixes #444347.
2166
2167 2008-11-12  Jonathan Pobst  <monkey@jpobst.com>
2168
2169         * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
2170         an alpha value.
2171         [Fixes bug #444348]
2172
2173 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
2174
2175         * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
2176         * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes.  Raise
2177         AutoSizeColumnModeChanged.
2178         [Fixes bug #443609]
2179
2180 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
2181
2182         * DataGridViewRowCollection.cs: Guard against the user deleting the
2183         NewRow.  Add an internal delete so we can still delete it.
2184         * DataGridView.cs: Use the new internal delete when deleting the NewRow.
2185         [Fixes bug #442181]
2186
2187 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
2188
2189         * TextControl.cs: Add some order of operation to our math so
2190         we don't end up with a negative height for our invalidate rect.
2191         [Fixes bug #381889]
2192
2193 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
2194
2195         * Control.cs: When our enabled changes, notify our implicit children
2196         controls as well as our regular controls.
2197         [Fixes bug #441523]
2198
2199 2008-11-08  Andreia Gaita <shana@jitted.com> 
2200
2201         * HtmlElement.cs: Small code cleanup
2202
2203 2008-11-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2204
2205         * BindingNavigator.cs: MoveFirstItem should be enabled only if
2206         position is larger than 0, not only different than 0. Also Position
2207         and Count items should be enabled if the BindingSource is non null and
2208         non empty.
2209         Fixes #439961.
2210
2211 2008-11-05  Jonathan Pobst  <monkey@jpobst.com>
2212
2213         * TabControl.cs: Don't raise SelectedIndexChanged until we have
2214         actually modified the tab collection, so TabCount will be correct.
2215         [Fixes bug #441896]
2216
2217 2008-11-05  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2218
2219         * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
2220         NonSerialized to fix serialization of ListViewItem.
2221
2222 2008-11-04  Mike Gorse  <mgorse@novell.com>
2223
2224         * ListView.cs: Call OnUIAFocusedItemChanged after completing the
2225           focus change, and always call in SetFocusedItem.
2226         * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
2227
2228 2008-11-04  Jonathan Pobst  <monkey@jpobst.com>
2229
2230         * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
2231         mode.  Based on a patch by John Mortlock.
2232         [Fixes bug #436790]
2233
2234 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2235
2236         * ListView.cs: Use the UsingGroups property where needed, instead of
2237         duplicating the check in other places.
2238
2239 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2240
2241         * ListView.cs: When calculating layout, refresh the count of items
2242         belonging to the default item, insteas of doing it only one time. This
2243         was already working fine for icon views, not not for details.
2244         Fixes #438948.
2245
2246 2008-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2247
2248         * ListView.cs:
2249         * ListViewItem.cs:
2250         * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
2251         to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
2252         does.
2253         Fixes #437933.
2254
2255 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2256
2257         * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
2258
2259 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2260
2261         * ListView.cs: Add internal UIAFocusedItemChanged event.  Fixes bug
2262         #441280, patch by Mike Gorse <mgorse@novell.com>.
2263
2264 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2265
2266         * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
2267         if there is no scrollbar.
2268         [Fixes bug #440885]
2269
2270 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2271
2272         * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
2273         patch from Andy Hume that fixes many issues with ProgressBar.
2274         [See bug #440220]
2275
2276 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2277
2278         * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
2279         [Fixes bug #438866]
2280
2281 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2282
2283         * UpDownBase.cs:
2284         * DomainUpDown.cs:
2285         * NumericUpDown.cs: Internal events added to UpDownBase:
2286         UIAUpButtonClick and UIADownButtonClick.  Patch by Neville Gao
2287         <ngao@novell.com>.
2288
2289 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2290
2291         * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
2292
2293 2008-11-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2294
2295         * ListView.cs:
2296         * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
2297         Application.EnableVisualStyles hasn't been called.
2298         Fixes part of #437933.
2299
2300 2008-10-31  Andreia Gaita  <shana@jitted.com>
2301
2302         * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
2303           if the container is not focused already, we need to specifically set
2304           focus to the first available control, or to the form itself if there
2305           are no controls.
2306
2307 2008-10-31  Andreia Gaita  <shana@jitted.com>
2308
2309         activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
2310         WM_ACTIVATE have been processed before returning, so it is guaranteed that
2311         once it returns and the form is visible, it is actually on the screen on X11
2312
2313         * ContainerControl.cs: Only send focus to the control if the top container
2314           is already focused. This is so that, when a form is first shown, all
2315           the enter/leave events are done first before any focus stuff comes in.
2316           If a control has no top container, there's an extra check on Control.Focus
2317           to make sure it gets focused in this particular case.
2318
2319         * Control.cs: Force focus if the control is active but did not receive
2320           focus after being set as active.
2321
2322         * MdiClient.cs: Dispose the form when closing
2323
2324         * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
2325           doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
2326           if the window is a top Form.
2327           Reset all hwnd properties when the window has been destroyed so that
2328           we don't land in any codepaths that might try to do something with it.
2329           Added a bunch of debugging messages. If TRACE is defined, all X calls
2330           are logged through DebugHelper. Set a few missing EntryPoint attributes.
2331
2332 2008-10-29  Mario Carrion <mcarrion@novell.com>
2333
2334         * ListViewItem.cs: Control enabled to support Accessibility:
2335         - Internal events: UIATextChanged, UIASubItemTextChanged.
2336         - Internal event UIATextChanged in ListViewSubItem that triggers
2337         UIASubItemTextChanged.
2338         * ListView.cs: Control enabled to support Accessibility:
2339         - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged, 
2340         UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
2341         - Internal event UIACollectionChanged in ColumnHeaderCollection.
2342         - Internal event UIACollectionChanged in ListViewItemCollection.
2343         - Internal properties: UIAHeaderControl, UIAColumns, UIARows, 
2344         UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
2345         - Internal methods: UIAGetHeaderBounds.
2346
2347 2008-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2348
2349         * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
2350         the event from the respective scrollbars.
2351         Fixes #436709.
2352
2353 2008-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2354
2355         * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
2356         textbox to know whether any navigation key will be handled or not. If
2357         not, don't pass the message to the textbox, and use it here instead. 
2358         * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
2359         is more precise- than the previous AutoCompleteMatches one.
2360         This should the keyboard navigation in ComboBox when using auto
2361         complete modes.
2362
2363 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
2364
2365         * ComboBox.cs: Fix item height calculation based off Font to match .Net.
2366         [Fixes bug #436730]
2367
2368 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
2369
2370         * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
2371         overridden methods will get called.
2372         * ToolStripItem.cs: Raise Click before MouseUp.
2373         * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
2374         the item's location into account.
2375         [Fixes bug #437683]
2376
2377 2008-10-24  Neville Gao  <nevillegao@gmail.com>
2378
2379         * NumericUpDown.cs: Control enabled to support accessibility.
2380         [Fiexes bug #438135]
2381
2382 2008-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2383
2384         * TextBox.cs: Check that we actually have items no navigate, select
2385         text when pressing enter, as well as handle direction keys only if
2386         mode is different to Suggest or the suggest listbox is visible.
2387
2388 2008-10-23  Andreia Gaita  <shana@jitted.com>
2389
2390         * WebBrowser.cs: Use the new ContentStream property to retrieve
2391           a stream encoded from the document content
2392
2393 2008-10-23  Andreia Gaita  <shana@jitted.com>
2394
2395         * HtmlDocument.cs,
2396           HtmlElement.cs,
2397           HtmlWindow.cs: Fix GetHashcode for null objects
2398
2399 2008-10-22  Andreia Gaita  <shana@jitted.com>
2400
2401         * HtmlDocument.cs,
2402           HtmlElement.cs,
2403           HtmlWindow.cs: Fix equality operators (fixes #428173)
2404
2405 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
2406
2407         * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
2408         mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
2409         [Fixes bug #436772]
2410
2411 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
2412
2413         * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
2414         same item with the mouse as was already selected.
2415         [Fixes bug #436789]
2416
2417 2008-10-21  Brad Taylor  <brad@getcoded.net>
2418         
2419         * TextControl.cs: Break out code to get the visible range into
2420           GetVisibleLineIndexes to be used in UIA code.
2421         
2422         * Line.cs:
2423         * TextControl.cs:
2424         * TextBoxBase.cs: Add comments indicating that the method or property
2425           is used via reflection from UIA code.
2426
2427 2008-10-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2428
2429         * ListViewItem.cs: Match .net serialization.
2430         Fixes remaining part of #417520.
2431
2432 2008-10-20  Jonathan Pobst  <monkey@jpobst.com>
2433
2434         * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
2435
2436 2008-10-20  Mario Carrion <mcarrion@novell.com>
2437
2438         * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property 
2439         added: UIAToolTipRectangle.
2440
2441 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2442
2443         * ListViewItem.cs: When deserializing enumerate over the data, instead
2444         of accessing the data directly. This way we handle much better the
2445         cases were we lack information.
2446         Fixes #417520.
2447
2448 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2449
2450         * ListView.cs: When removing an item from a main ListView.Items
2451         collection (and not a ListViewGroupCollection.Items one), remove it
2452         also from the group, as .net does. Patch by Mario Carrion (mario at
2453         novell dot com).
2454         Fixes #436653.
2455
2456 2008-10-19  Andreia Gaita  <avidigal@novell.com>
2457
2458         * Form.cs: Forms that get closed without a handle being created are
2459         disposed in 2.0. Fixes failing FormTest.FormClose and
2460         FormTest.FormClose2 on windows.
2461
2462 2008-10-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2463
2464         * ListView.cs: If both scrollbars are visible, the vertical one
2465         shouldn't extend too far down.
2466         Fixes #435771.
2467
2468 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
2469
2470         * DataGridView.cs: Add the ability to resize columns and rows with
2471         the mouse.  Also support double-clicking to autoresize.
2472         * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
2473         * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
2474         * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
2475         isn't shown on autoresize.
2476         [Fixes bug #420193]
2477
2478 2008-10-17  Mario Carrion <mcarrion@novell.com>
2479
2480         * ComboBox.cs: Remove UIAListbox.
2481
2482 2008-10-17  Mario Carrion <mcarrion@novell.com>
2483
2484         * ComboBox.cs, ListBox.cs: Using added/removed item in 
2485           OnUIACollectionChangedEvent instead of index.
2486
2487 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
2488
2489         * ComboBox.cs: When we are sorting the items, if the item's type
2490         doesn't support IComparer, use a default one that compares based
2491         off the item's visible text.
2492         [Fixes bug #436328]
2493
2494 2008-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2495
2496         * ColumnHeader.cs: Invalidate ListView.header_control when setting
2497         ImageIndex/ImageKey.
2498         * ThemeWin32Classic.cs: When drawing the column header, draw a image
2499         for the column if available, and make the required adjustments to the
2500         text location.
2501         Fixes #435105.
2502
2503 2008-10-17  Neville Gao  <nevillegao@gmail.com>
2504
2505         * StatusBarPanel.cs: Control enabled to support accessibility.
2506         [Fixes bug #435988]
2507
2508 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2509
2510         * DataGridView.cs: When a user begins an edit in the 'new row',
2511         make that a real row, and add a new 'new row'.  If the user
2512         cancels the edit, remove the new 'new row' and reset everything.
2513         Also, ensure UserAddedRow and UserRemovedRow events are raised.
2514         [Fixes bug #430954]
2515
2516 2008-10-16  Ivan N. Zlatev  <contact@i-nz.net>
2517
2518         * TableLayoutSettings.cs: Fix NREs when deserializing and 
2519         panel is not yet set.
2520         [Fixes bug #436199]
2521
2522 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2523
2524         * DataGridView.cs: Invalidate after deleting a row.
2525
2526 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2527
2528         * DataGridView.cs: Handle Enter and Escape keys.
2529           - Move call to EndEdit to MoveCurrentCell.
2530           - Remove call to EndEdit from navigation key routines.
2531           - Fire CellLeave and CellEnter.
2532
2533 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2534
2535         * DataGridViewCell.cs: Some fixes to the new cell border
2536         painting code.
2537
2538 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2539
2540         * ThemeEngine.cs: Enable visualstyles rendering by default
2541         (on platforms that support it).
2542
2543 2008-10-15  Ivan N. Zlatev  <contact@i-nz.net>
2544
2545         * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before 
2546         MainForm.OnLoad has completed unless DoEvents is forced.
2547         [Fixes bug #412536]
2548
2549 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
2550
2551         * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
2552
2553 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
2554
2555         * Control.cs: Make our implementation of DrawToBitmap better 
2556         match WmPaint.  [Fixes bug #435579]
2557
2558 2008-10-14  Andreia Gaita  <avidigal@novell.com>
2559
2560         * WebBrowser.cs: Use DocumentElement as the document's root for the
2561         whole content. Should fix DocumentText and DocumentStream problems.
2562
2563 2008-10-14  Jonathan Pobst  <monkey@jpobst.com>
2564
2565         * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
2566         these will get called in DGV.OnCollectionChanged.  Make sure 
2567         OnCollectionChanged always gets called.
2568         * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
2569         from every row.  Call this in OnCollectionChanged.
2570         [Fixes bug #433669]
2571
2572 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2573
2574         * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
2575         textbox if auto complete is used, since we need to navigate over it.
2576         And in this case don't pass this messages to the base impl. Also hide
2577         the auto complete list box when displaying the drop down listbox.
2578         * TextBox.cs: new internal members to expose some of the auto complete
2579         functionality to combobox.
2580
2581 2008-10-13  Ivan N. Zlatev  <contact@i-nz.net>
2582
2583         * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before 
2584         MainForm.OnLoad has completed.
2585         [Fixes bug #412536]
2586
2587 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2588
2589         * TextBox.cs: Apply an old-approved patch that adds autocomplete's
2590         Append support to this controls. We need it to apply new patches.
2591
2592 2008-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2593
2594         * Control.cs: When updating z order in child controls, send to back
2595         the implicit controls. Also, do it explicitly, instead of making
2596         GetAllControls return the implicit controls in a specific order, and
2597         thus avoid depending on that, which could change in the future.
2598         Fixes #434304.
2599
2600 2008-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2601
2602         * X11Dnd.cs: Try to call Application.DoEvents before returning in a
2603         call to StartDrag, since we must fire DragDrop/DragLeave *before*
2604         that, as .net does - instead of firing DragDrop/DragLeave *after* the
2605         call to Control.DoDragDrop has completed. This is needed since at the
2606         point of returning, we have sent related dnd ClientMessages, but we
2607         need to wait for them to fire the wmf respective ones.
2608         Fixes #325076.
2609
2610 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
2611
2612         * LinkLabel.cs: Recreate link pieces when change Padding.
2613
2614 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
2615
2616         * LinkLabel.cs: Take Padding into account when recreate link pieces.
2617         [Fixes bug #412530]
2618
2619 2008-10-08  Everaldo Canuto  <ecanuto@novell.com>
2620
2621         * Control.cs: Implement internal property PaddingClientRectangle, it will be
2622         useful for drawing controls that must take care about Padding property.
2623
2624 2008-10-08  Jonathan Pobst  <monkey@jpobst.com>
2625
2626         * BindingSource.cs: Make item_type internal so we can access it in DGV.
2627         * DataGridView.cs: Add support for autogenerating columns from a
2628         BindingSource.
2629
2630 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2631
2632         * DataGridView.cs: Comment out an exception that is getting thrown
2633         too often currently.
2634
2635 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2636
2637         * DataGridView.cs: Always rebind to the datasource, as things may
2638         have changed in it that we aren't capturing yet.
2639
2640 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2641
2642         * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
2643         drawing mode.  If we are top aligned, give ourselves some top padding.
2644
2645 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2646
2647         * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
2648         events on the control under the mouse pointer, instead of firing them
2649         on the window generating the dnd operation. To achieve this re-use the
2650         code used to get the window under the pointer when getting MouseMove
2651         events.
2652         Fixes #381876.
2653
2654 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2655
2656         * X11Dnd.cs: Don't check that that the window sending the dnd events
2657         is the owner of the selection. Although Gtk+ sets it that way, it's
2658         not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
2659         So, just as Gtk+ does, we set our window sending the dnd events as the
2660         owner of the selection, but don't check it when receiving them. This
2661         should fix interoperability with Qt/Kde.
2662         Fixes #324251.
2663
2664 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
2665
2666         * DataGridView.cs: Make sure we take the vertical scrollbar into
2667         account when autosizing columns.
2668
2669 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
2670
2671         * DataGridView.cs: Handle sorting datetimes.
2672
2673 2008-10-04  Ivan N. Zlatev  <contact@i-nz.net>
2674
2675         * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs, 
2676         TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup 
2677         compilation warnings.
2678
2679 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2680
2681         * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs, 
2682         ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs, 
2683         ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs, 
2684         ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup 
2685         compilation warnings.
2686
2687 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2688
2689         * DataGridView.cs, DataGridViewCell.cs, 
2690         DataGridViewCellValidatingEventArgs.cs, 
2691         DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs, 
2692         DataGridViewRow.cs, DataGridViewRowHeaderCell.cs, 
2693         DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
2694
2695 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2696
2697         * HtmlElementEventArgs.cs, HtmlWindowCollection.cs: 
2698         Cleanup compilation warnings.
2699
2700 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2701
2702         * XplatUIWin32.cs: Cleanup compilation warnings.
2703
2704 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2705
2706         * PropertyGrid.cs: Cleanup compilation warnings.
2707
2708 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2709
2710         * DataGridViewRow.cs: Only clear the row background if we
2711         are going to paint a new background.
2712
2713 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2714
2715         * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
2716         DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
2717         use PaintBorder instead.        
2718
2719 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2720
2721         * DataGridView.cs: When CellBorderStyle is set, update the
2722         AdvancedCellBorderStyle to match.
2723
2724 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2725
2726         * DataGridViewCell.cs: Add helper methods to convert Alignment
2727         to TextFormatFlags and align rectangles.
2728         * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
2729         * DataGridViewImageCell.cs: Use Alignment when painting the image.
2730
2731 2008-10-02  Ivan N. Zlatev  <contact@i-nz.net>
2732
2733         * ToolTip.cs: Display tooltips only for controls on the active form.
2734         [Fixes bug #428115]
2735
2736 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2737
2738         * DataGridView.cs: Make OnCellValueNeeded internal.
2739         * DataGridViewCell.cs: Raise the CellValueNeeded event so the
2740         user can supply their own value if they choose.
2741
2742 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2743
2744         * DataGridViewColumnHeaderCell.cs: Create a new style object
2745         so the DefaultCellStyle doesn't get changed.
2746
2747 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2748
2749         * ToolStripItem.cs: Check to make sure the owner is actually
2750         changing in InternalOwner before doing any work.  Fixes some
2751         failing tests.
2752
2753 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2754
2755         * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
2756         * DataGridView.cs: Use a column header's inherited style instead
2757         of just using the default.
2758
2759 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2760
2761         * SplitContainer.cs: Raise SplitterMoved when the splitter is
2762         moved through code.
2763
2764 2008-10-01  Mario Carrion <mcarrion@novell.com>
2765
2766         * ScrollBar.cs: Internal property added: UIAThumbPosition.
2767
2768 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2769
2770         * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
2771
2772 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2773
2774         * ToolStripItem.cs: When the user sets Owner, we need to remove
2775         it from its previous owner and then add it to the new owner's
2776         item collection.  Also, create InternalOwner, so we can set the owner
2777         that doesn't do this new stuff.
2778         * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
2779
2780 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2781
2782         * ToolStripItem.cs: When our parent changes, recalculate our text
2783         size, since we may be getting our Font from our parent.  When our
2784         owner's Font changes, recalculate ourselves as we may be using
2785         that font.
2786
2787 2008-10-01  Everaldo Canuto  <ecanuto@novell.com>
2788
2789         * MenuAPI.cs: Select the first option of a popup when opening the popup via
2790         return key. [Fixes bug #413792].
2791
2792 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2793
2794         * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
2795         ambient properties.  (Get their value from their parents if
2796         values haven't been set.)
2797
2798 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2799
2800         * ToolStripSystemRenderer.cs: Call overridden methods' bases
2801         after our logic, so users can do painting by handling the events.
2802         Currently, we draw over any user painting.
2803
2804 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2805
2806         * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
2807         after our logic, so users can do painting by handling the events.
2808         Currently, we draw over any user painting.
2809
2810 2008-09-30  Everaldo Canuto  <ecanuto@novell.com>
2811
2812         * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
2813
2814 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2815
2816         * TreeNode.cs, TreeView.cs: Move logic that determines the node
2817         image to draw to TreeNode.  Give Index/Keys put on the node
2818         precedence over the global one for the TreeView.
2819
2820 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2821
2822         * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
2823
2824 2008-09-29  Mario Carrion <mcarrion@novell.com>
2825
2826         * ListBox.cs: Index fixed.
2827
2828 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2829
2830         * TabControl.cs: When expanding the tab -because it's selected now-,
2831         using Right alignment, instead of adding some selected delta value to
2832         the X origin, substract it, so it gets a location adjacent to the panel, 
2833         instead of be more separated.
2834         Fixes #409170.
2835
2836 2008-09-29  Jonathan Pobst  <monkey@jpobst.com>
2837
2838         * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
2839         own copies of them.
2840
2841 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2842
2843         * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
2844         as well as the other static fields, to avoid using their previous
2845         values my mistake when handling the dnd events. This should avoid
2846         handling any status event after the drop has been finalized/cancelled.
2847
2848 2008-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2849
2850         * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
2851         operation, instead of waiting until we get any movement - this will
2852         help us to have the data available in case no movement was detected
2853         and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
2854         Finally add a windows.forms-only fallback to fire the mentioned events
2855         if no movement at all was detected, just like .net does.
2856         Fixes #381876.
2857
2858 2008-09-27  Jonathan Pobst  <monkey@jpobst.com>
2859
2860         * ThemeWin32Classic.cs: When drawing a status bar panel, don't
2861         return early if the text is empty because the icon doesn't get
2862         drawn then.  [Fixes bug #428113]
2863
2864 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2865
2866         * FileDialog.cs: Implement basic support for sorting by columns in
2867         Details view. Patch by Eric Petit.
2868         Fixes #428006.
2869
2870 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2871
2872         * ThemeWin32Classis.cs: When drawing gridlines take into account the
2873         case where ListView.ItemSize hasn't been computed, and provide a
2874         fallback as well. This prevents a division by 0.
2875
2876 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2877
2878         * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
2879         correctly draw tooltip backgrounds.
2880
2881 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2882
2883         * ImageList.cs: Change CopyTo implementation to ensure clones are
2884         created of our images.
2885         [Fixes bug #409169]
2886
2887 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2888
2889         * Control.cs: When setting fonts, we need to ensure we change our
2890         reference to the new font object, even if it represents the same
2891         font as before.  If we don't, the original font can get disposed
2892         and we will still try to use it.
2893         [Fixes bug #386450]
2894
2895 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2896
2897         * FileDialog.cs: Take into account Tile view when selecting the view
2898         (2.0 profile).
2899
2900 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2901
2902         * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
2903         the item bounds, since we can't iterate over them in virtual mode.
2904         Also fix wrong calculation of the gridlines when using scrolling.
2905         Fixes #400390.
2906
2907 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2908
2909         * XplatUIX11.cs: When handling EnterNotify events, take into account
2910         both the public and implicit controls when trying to detect the
2911         grab/ungrab process. This should fix ListView selection in Details
2912         view.
2913
2914 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2915
2916         * TreeView.cs: Redraw the whole node area when the selected node changes.
2917         Things like state images were not getting redrawn because the invalid
2918         rectangle was too small.
2919         [Fixes bug #428211]
2920
2921 2008-09-23  Mario Carrion  <mcarrion@novell.com>
2922
2923         * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
2924         [Fixes bug #428993]
2925
2926 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2927
2928         * Form.cs: Do not set the Form's icon in the backend if showicon = false.
2929         [Fixes bug #428114]
2930
2931 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2932
2933         * ThemeWin32Classic.cs: Allow tooltips to be multiline.
2934         [Fixes bug #427884]
2935
2936 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2937
2938         * StatusBar.cs: Add tooltip support.
2939         [Fixes bug #428113]
2940
2941 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2942
2943         * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
2944         alignments of sub items in Details view. Patch by John Mortlock (johnm at 
2945         hlaustralia.com.au).
2946         Fixes #425360.
2947
2948 2008-09-23  Neville Gao  <nevillegao@gmail.com>
2949
2950         * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
2951         [Fixes bug #419079]
2952
2953 2008-09-22  Jonathan Pobst  <monkey@jpobst.com>
2954
2955         * TextBoxBase.cs: Set Text to "" instead of null in Clear().
2956         [Fixes bug #428107]
2957
2958 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2959
2960         * ListView.cs: Don't do anything when EnsureVisible is called inside a
2961         BeginUpdate/EndUpdate block.
2962         Fixes #425049.
2963
2964 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2965
2966         * ListViewItem.cs: The semantics for the public .ctor of
2967         ListViewSubItemCollection need us to already have a Text value for the
2968         item, which in our implementation have as available *after* adding the
2969         first sub item. So create an internal .ctor that satisfies our needs
2970         and let the public .ctor have the same semantics as .net.
2971         Fixes #427561.
2972
2973 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2974
2975         * ListControl.cs: Changes in Formatting related values should call
2976         RefreshItems, as .net does.
2977         * ComboBox.cs:
2978         * ListBox.cs: In the respective overrides of RefreshItems calculate
2979         layout as well as refreshing - again, this is what .net does.
2980         Fixes #426168.
2981
2982 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2983
2984         * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
2985         since we are already doing that when we change the value of the
2986         scrollbar or force the call to ScrollWindow in the same method. This
2987         way we don't cause a Invalidate call for all the listbox bounds for
2988         methods calling UpdateTopItem with an already updated top item. This
2989         was happening specially calling EnsureVisible with already visible
2990         items.
2991
2992 2008-09-18  Mike Gorse <mgorse@novell.com>
2993
2994         * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
2995           XplatUIStructs.cs: Added KeyFilter
2996         [Fixes bug #427039]
2997
2998 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2999
3000         * RelatedPropertyManager.cs: The properties returned by
3001         GetItemProperties should be that ones of the *actual* object returned
3002         by the property, not the property type - this is very special when the
3003         property exposes a type, but the returned object actually is a child
3004         class and implements more functionality and properties.
3005
3006 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3007
3008         * Binding.cs: Don't look for the property in the data source if the
3009         passed string is empty.
3010
3011 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
3012
3013         * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to 
3014         fix unused variable warnings.
3015
3016 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
3017
3018         * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
3019         [Fixes bug #427073]
3020
3021 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
3022
3023         * XplatUIX11.cs: 
3024          - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this 
3025          leads to the window manager overriding our border style and zorder. 
3026          - Allow the activation of non-modal forms, which are children of a 
3027          modal form.
3028         [Fixes bug #423417]
3029
3030 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
3031
3032         * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should 
3033         ask the window manager to do the work instead of changing the property 
3034         directly.
3035         [Fixes bug #423417]
3036
3037 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
3038
3039         * CurrencyManager.cs: Check for positon before call ChangeRecordState in
3040         AddNew to fix some navigation for empty datasets. [Fixes #323053]
3041
3042 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
3043
3044         * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set 
3045         InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
3046         border and fixes some drawing issues when resize form.
3047
3048 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
3049
3050         * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
3051         
3052         * ThemeWin32Classic.cs: We don't need to reduce button size when it is
3053         AcceptButton.
3054
3055 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
3056
3057         * TextBoxBase.cs: For standard textbox the scrollbars are always 
3058         visible if Multiline is true.
3059         [Fixes bug #426896]
3060
3061 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
3062
3063         * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
3064         patch.
3065         
3066 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
3067
3068         [Fixes most od DBNull and HeadersVisible problems]
3069         
3070         * DataGrid.cs:
3071         - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
3072         returns the value that we need.
3073         - Fixed FromPixelToColumn method that return zero for first     column and for
3074         row header cell, now it returns -1 for row header cell.
3075         - Fixed HitTest to check row header cell in column header area, it now
3076         returns HitTestType.None. [Fixes #322864]
3077         - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
3078         checks for RowHeadersVisible and other things.
3079         - If an exception occurs when setting CurrentCell and user type 'yes' in
3080         message dialog, invalidade current and new cell and set setting_current_cell
3081         to false to prevent future errors. [Partially fixes #323050]
3082
3083         * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
3084         value (SetColumnValueAtRow), it must be done by grid to properly show 
3085         messages. [Fixes #323050]
3086
3087         * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
3088         better draw column and row header. Also dont draw anything when column
3089         headers is not visible.
3090
3091 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3092
3093         * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
3094         logic.
3095
3096 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3097
3098         * TreeView.cs: Don't start editing a node on right click, only
3099         left click.
3100
3101 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3102
3103         * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
3104         disabled over a year ago.
3105         * Form.cs: Wrap calling Load in a try/catch because it can happen
3106         before the catch-all one in NativeWindow.
3107         [Fixes bug #425414]
3108
3109 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3110
3111         * ToolStripDropDownMenu.cs: Calculate the connected area better
3112         to take into account when the drop down is not directly under the
3113         owner item.
3114         * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
3115
3116 2008-09-16  Mario Carrion <mcarrion@novell.com>
3117
3118         * ScrollBar.cs: New event added: UIAValueChanged, generated when
3119           LargeChange, SmallChange, Maximum or Minimum values are changed.
3120         [Fixes bug #426464]
3121
3122 2008-09-16  Mario Carrion <mcarrion@novell.com>
3123
3124         * ErrorProvider.cs: Component enabled to support accessibility.
3125         * Application.cs: Updated to Initialize UIA in ErrorProvider.
3126         [Fixes bug #426459]
3127
3128 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3129
3130         * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
3131         so we don't highlight on first focus.
3132         [Fixes bug #360869]
3133
3134 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3135
3136         * TextControl.cs: Correctly calculate the height of the area we 
3137         need to invalidate when we have started scrolling and viewport_y
3138         is used.  [Fixes bug #387608]
3139
3140 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3141
3142         * TextControl.cs: When getting the SelectedText, don't add in
3143         NewLine characters, as they are already contained in the lines.
3144         [Fixes bug #388115]
3145
3146 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3147
3148         * TextBoxBase.cs: Replace the buggy Lines setter with one that
3149         simply concats the lines and send it to the Text setter.
3150         [Fixes issue #2 and #3 of 388115]
3151
3152 2008-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3153
3154         * Binding.cs: The default value of DataSourceNullValue should be
3155         Convert.DBNull actually. Also, the NullValue should only be used *if*
3156         itself is not null, and use the null/Convert.DBNull value instead.
3157
3158 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3159
3160         * TextControl.cs: Add a method to convert a string newline to the
3161         newline enum.
3162         * TextBoxBase.cs: When the user hits enter, insert a native newline.
3163         [Fixes part 1 of bug #388115]
3164
3165 2008-09-15  Mario Carrion <mcarrion@novell.com>
3166
3167         * ToolTip.cs: UnPopup event set to internal to match public API.
3168
3169 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3170
3171         * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
3172         have to remove the Ctrl in order for the focus moving code to kick in.
3173         [Fixes bug #426170]
3174
3175 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3176
3177         * CheckedListBox.cs: Return the real item index from Add.  It may not be
3178         the last item if the list is sorted.  The user can change the NewValue in
3179         the ItemCheck event, we need to use that value if so.
3180         * ListBox.cs: Return the real item index from a sorted Add.
3181         [Fixes bug #426166]
3182
3183 2008-09-15  Ivan N. Zlatev  <contact@i-nz.net>
3184
3185         * MimeIcon.cs: Add null checks in the GnomeHandler, because it might 
3186         happen that the icons from the theme is missing or the particular size 
3187         unavailable.
3188         [Fixes bug #424981]
3189
3190 2008-09-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3191
3192         * Binding.cs: When assigning null or DBNull depending on value/ref type,
3193         use IsValueType instead to get the precise desired value.
3194         Fixes #424276.
3195
3196 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3197
3198         * TreeNodeCollection.cs: When adding a new node to an opened node,
3199         we have to invalidate everything below the parent node because
3200         every node scoots down and we have to repaint them.
3201         [Fixes bug #411386]
3202
3203 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3204
3205         * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
3206         property into account when drawing.
3207         [Fixes bug #416064]
3208
3209 2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3210
3211         * ListBox.cs: When calling Items.Clear(), call
3212         SelectedIndexCollection.ClearCore instead of normal Clear method, to
3213         not fire any Selected*Changed event - this is done to match .net and
3214         don't have invalid values when changing the DataSourceProperty.
3215         Fixes #424273.
3216
3217 2008-09-12  Mario Carrion  <mcarrion@novell.com>
3218
3219         * HelpProvider.cs: Control enabled to support accessibility.
3220         * Application.cs: Updated to Initialize UIA in HelpProvider.
3221         [Fixes bug #425988]
3222
3223 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3224
3225         * Form.cs: When we are showing a dialog box, if its owner is TopMost,
3226         make the dialog TopMost as well.
3227         [Fixes bug #425984]
3228
3229 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3230
3231         * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
3232         clipboard data better.
3233         [Fixes bug #414446]
3234
3235 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3236
3237         * TextBoxBase.cs: Applied patch from John Mortlock that ensures
3238         TextChanged and SelectionChanged events fire in the same order as .Net.
3239         [Fixes bug #425725]
3240
3241 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3242
3243         * DataGridView.cs: When sorting a column, if it only contains numbers,
3244         do a numeric sort instead of a string sort.
3245         [Fixes bug #425849]
3246
3247 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3248
3249         * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
3250         against NRE's when the settings have a null panel.
3251         * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
3252         the panel gets set.
3253         [Fixes bug #425647]
3254
3255 2008-09-11  Mario Carrion  <mcarrion@novell.com>
3256
3257         * ToolTip.cs: Control enabled to support accessibility.
3258         * Application.cs: Updated to Initialize UIA in ToolTip.
3259         [Fixes bug #425277]
3260
3261 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3262
3263         * Control.cs: Make the custom Enumerator internal to fix build.
3264
3265 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3266
3267         * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
3268         already in edit mode, begin edit mode.  Generally edit mode isn't
3269         started until the second click, but CheckBoxes are special.
3270
3271 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3272
3273         * ErrorProvider.cs: Never try to add our icons to ContainerControl,
3274         since that can be set to anything.  Always add them to the Control's
3275         parent.  [Fixes bug #416058]
3276
3277 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3278
3279         * ListView.cs: Use a custom enumerator for ListViewItemCollection
3280         so items can be deleted in a foreach.
3281         [Fixes bug #425342]
3282
3283 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3284
3285         * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
3286         Store the user set explicit height so that the row can be AutoSized
3287         and then when AutoSize is turned off, it can get its original size back.
3288         * DataGridView.cs: Use the Row's GetPreferredHeight instead of 
3289         duplicating the logic.  When setting AutoSizeRowsMode to None, reset
3290         rows' heights back to their explicit values.
3291         [Fixes bug #415780]
3292
3293 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3294
3295         * DateTimePicker.cs: When getting focus, select the checkbox if we are
3296         already showing it. Also, don't change its value when pressing space
3297         if the checkbox is not visible (ShowCheckBox as false). Finally, the
3298         checkbox should remain selected as long as Checked is false, and the
3299         other parts are disabled.
3300         Fixes #424267.
3301         
3302 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3303
3304         * MessageBox.cs: Handle shortcut keys to dialog buttons.
3305         [Fixes bug #425425]
3306
3307 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3308
3309         * Binding.cs: When the value retrieved from the control property is
3310         null, don't return Convert.DBNull for Nullable instances, since they
3311         can *actually* get a null value.
3312         Fixes #424265.
3313
3314 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
3315
3316         * Control.cs: Add an internal field to force doublebuffering regardless
3317         of what the public mechanisms are set to.  This is because MS's native
3318         controls are doublebuffered even though their .Net bits are set to false.
3319         * ProgressBar.cs: Set force_double_buffer to true.
3320         [Fixes bug #406595]
3321
3322 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
3323
3324         * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
3325         the cell template.
3326         * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
3327         * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
3328         without EditingControls, paint background selection for types without
3329         EditingControls, reset the EditingCellValueChanged flag when the
3330         cell's value is committed.
3331         * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
3332         have EditingControls, remove a double call to a cell's OnContentClickInternal,
3333         don't do cell changing logic in OnMouseDown if the cell didn't change.
3334         [Fixes bug #420351]
3335
3336 2008-09-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3337
3338         * DateTimePicker.cs: Fix the edition of am/pm specifier.
3339
3340 2008-09-09  Jonathan Pobst  <monkey@jpobst.com>
3341
3342         * TextControl.cs: Add "&" to the list of valid characters in a URL.
3343
3344 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3345
3346         * DateTimePicker.cs: Before incrementing or decrementing any part in
3347         the textbox, end any current edit. Also when ending the current edit
3348         use the editing_part_index field instead of the current selected
3349         value, since they can be out of synch, and we really need to work on
3350         the *real* current edit part. Finally when PartData.Selected changes,
3351         always try to end any ongoing edit.
3352         This should fix some small errors handling mouse navigation and
3353         increase/decrease operations.
3354
3355 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3356
3357         * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
3358         respectively) should handled different, since the 12 hours format
3359         needs the value typed by the user to be adjusted depending on the
3360         a.m/p.m value, so it is preserved, and only changed when the value
3361         reaches the 12 value (when it changes from a.m to p.m).
3362         Fixes part of #416555.
3363
3364 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3365
3366         * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
3367         * ToolStripDropDownItem.cs: Don't fire events and such again if
3368         ShowDropDown is called on an already dropped down item.
3369         * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
3370         subitems, the user may add some in the DropDownOpening event.
3371         [Fixes bug #417877]
3372
3373 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3374
3375         * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
3376         [Fixes bug #424270]
3377
3378 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3379
3380         * MdiClient.cs: When looking for menustrips on a child form to merge,
3381         look inside ToolStripContainers.
3382         [Fixes bug #424264]
3383
3384 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
3385
3386         * ErrorProvider.cs: Unbreak my previous commit.
3387
3388 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
3389
3390         * ErrorProvider.cs: Icon should always be 16x16.
3391         [Fixes bug #424380]
3392
3393 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
3394
3395         * GridEntry.cs: Invalidate the child items cache when the property 
3396         value changes.
3397
3398 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
3399
3400         * GridEntry.cs, PropertyGridView.cs: 
3401            - Update the ReadOnly detection and rendering to finally hopefully 
3402            match the one of MSFT.
3403            - Niceify and move the debug CWLS.
3404         [Fixes bug #409028]
3405
3406 2008-09-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3407
3408         * ListView.cs: Don't call Invalidate at all from SetItemLocation,
3409         since we are already calling Invalidate for the entire control when
3410         needed - and call Redraw() when size changes, since we need to paint
3411         there by ourselved and not anymore from the mentioned method. 
3412         This should improve the layout process. Also clean some not needed calls 
3413         here and there.
3414
3415 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
3416
3417         * MenuAPI.cs: Add a null check to the Alt-F4 code.
3418         [Fixes bug #420309]
3419
3420 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
3421
3422         * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
3423         [Fixes bug #423040]
3424
3425 2008-09-04  Ivan N. Zlatev  <contact@i-nz.net>
3426
3427         * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs, 
3428         PropertyGridView.sc: Implement lazy/delayed propertygrid population 
3429         on item expansion. Improves performance and fixes bug #417955.
3430         [Fixes bug #417955]
3431
3432 2008-09-05  Stephane Delcroix  <sdelcroix@novell.com>
3433
3434         * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
3435         fix the build.
3436
3437 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3438
3439         * TextControl.cs: Add "_" to the list of valid characters in a URL.
3440         [Fixes bug #423408]
3441
3442 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3443
3444         * Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
3445         region gets set.
3446         [Fixes bug #414166]
3447
3448 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3449
3450         * FontDialog.cs: When storing our font size from the starting font,
3451         use SizeInPoints instead of Size in case Size is a different unit
3452         from Points.
3453         [Fixes bug #416489]
3454
3455 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3456
3457         * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
3458         don't use it for anything else, check if a directory is highlighted.
3459         If it is, navigate into it.
3460         [Fixes bug #422087]
3461
3462 2008-09-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3463
3464         * Binding.cs: When acquiring a BindingManagerBase for the first time,
3465         check that the specified property actually exists in the data source,
3466         and throw an ArgumentException if that's not the case - this is only
3467         done for this scenario, since for later cases (such Position changes)
3468         we throw different exceptions (match .Net).
3469
3470 2008-09-03  Ivan N. Zlatev  <contact@i-nz.net>
3471
3472         * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs, 
3473           FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs, 
3474           PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs, 
3475           TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs, 
3476           ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs, 
3477           ToolStripStatusLabel.cs: Add missing PerformLayout calls to various 
3478           properties.
3479           [Fixes bug #418684]
3480
3481 2008-09-03  Neville Gao  <nevillegao@gmail.com>
3482
3483         * StatusBar.cs: Control enabled to support accessibility.
3484         [Fixes bug #419079]
3485
3486 2008-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3487
3488         * Binding.cs: When connecting the event handler for the "Changed"
3489         event for the property, only do it for PropertyManager, and not for
3490         CurrencyManager - this is exactly what does .Net, totally ignoring any
3491         change in the property of the elements of a list.
3492         Fixes the tests.
3493
3494 2008-09-02  Jonathan Pobst  <monkey@jpobst.com>
3495
3496         * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
3497         to Windows when creating a window, as we fake MDI stuffs.
3498         [Fixes bug #421858]
3499
3500 2008-09-01  Ivan N. Zlatev  <contact@i-nz.net>
3501
3502         * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the 
3503         change takes effect.
3504
3505 2008-08-24  Ivan N. Zlatev  <contact@i-nz.net>
3506
3507         * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
3508         [Fixes bug #419001]
3509
3510 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
3511
3512         * DataGridView.cs: Raise CellContentClick event.
3513         [Fixes part of bug #420351]
3514
3515 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3516
3517         * ScrollBar.cs: Control enabled to support accessibility.
3518         [Fixes bug #416759]
3519
3520 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3521
3522         * ComboBox.cs: Control enabled to support accessibility.
3523         [Fixes bug #416663]
3524
3525 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3526
3527         * ListBox.cs: Control enabled to support accessibility.
3528         [Fixes bug #416640]
3529
3530 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
3531
3532         * ComboBox.cs: Don't suppress the TextChanged event when changing
3533         the SelectedIndex.
3534         * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
3535         and re-raise it.
3536         [Fixes bug #420673]
3537
3538 2008-08-26  Jonathan Pobst  <monkey@jpobst.com>
3539
3540         * ErrorProvider.cs: Fix a regression NRE when setting properties
3541         for a control before it has a parent.
3542         [Fixes bug #420305]
3543
3544 2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3545
3546         * Binding.cs: Use the BindingManagerBase.Current value to obtain
3547         connect the property "Changed" event, instead of using the data
3548         sources - this is useful when the property specifies actually a
3549         multiple objects path.
3550         Fixes part of #417973.
3551
3552 2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3553
3554         * RelatedPropertyManager.cs: PropertyManager instances associated to a
3555         nested properties should return not the properties of the data source
3556         itself, but the properties of the type of a specific property in the
3557         data source - match .net.
3558
3559 2008-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
3560
3561         * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
3562         AddRange overloads into AddItems method, and added missing NULL check.
3563         Added extra argument check to RemoveAt for compatibility with MS. 
3564         Modified IList implementation of Add, Contains, IndexOf and Remove to
3565         throw an ArgumentException if item is not an int. Modified IList.Insert
3566         to throw a NotSupportException instead of an Exception. Implemented
3567         ICollection.
3568         (ObjectCollection): To avoid duplication, use AddItems method from
3569         AddRange overloads. On 1.0 profile, first perform NULL check on items
3570         in AddItems.
3571
3572 2008-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
3573
3574         * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
3575          #419087.
3576
3577 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
3578
3579         * X11Keyboard.cs : comment out some Console.WriteLine().
3580
3581 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
3582
3583         * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
3584           even if premises are not filled. Also XLookupString() was not
3585           receiving correct input, which blocked precise input handling
3586           on non-XIM mode.
3587
3588 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3589
3590         * ListView.cs: When calling OnCacheVirtualItems, cast to the right
3591         type of delegate, instead of EventHandler - this was causing a type
3592         cast exception in all apps handling this event.
3593         Fixes #417876.
3594
3595 2008-08-20  Jonathan Pobst  <monkey@jpobst.com>
3596
3597         * ToolStripDropDownItem.cs: Always raise DropDownOpening in
3598         ShowDropDown to give the user a chance to dynamically add
3599         drop down items.  [Step 1 of fixing bug #417877]
3600
3601 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3602
3603         * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
3604         had any mouse motion since the call to StartDrag, to match the dnd
3605         behaviour of .net.
3606         Fixes part of #381876.
3607
3608 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3609
3610         * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
3611         if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
3612         Also, if we are actually moving into a different window after
3613         grabbing, generate a LeaveNotify event for the previous window, since
3614         we need to fire the leave events until the grab ends, not when
3615         actually moving outside of the control.
3616
3617 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3618
3619         * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
3620         events only for client windows was wrong - we need to compare the
3621         client window against the window receiving the EnterNotify event, not
3622         against zero (since client window is never Zero, btw).
3623         This prevents having unnecessary handling of EnterNotify events for
3624         non-client windows when a gran begins.
3625
3626 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3627
3628         * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
3629         MouseMove/MotionNotify events at all (which should only happen after
3630         MouseUp/ButtonRelease, as .Net does).
3631         This avoids firing an extra and unnecessary MouseMove event just after
3632         every MouseDown event.
3633
3634 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3635
3636         * LinkLabel.cs: Always clear any previous links when LinkArea
3637         is set.  [Fixes bug #410709]
3638
3639 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3640
3641         * ToolStripProfessionalRenderer.cs: Revert last change.
3642         * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
3643         for ToolStripDropDownBackground.
3644
3645 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3646
3647         * ToolStripProfessionalRenderer.cs: Use Window color for the 
3648         background of dropdowns to match .Net when the user is not
3649         using the default white.  [Fixes bug #418108]
3650
3651 2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>
3652
3653         * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
3654           it caused timer registration twice. Fixed bug #418107.
3655
3656 2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3657
3658         [Correction: This is the actual change to X11Dnd issue, not the
3659         previous one, which was actually a different issue.]
3660
3661         * X11Dnd.cs: Increase the interval for the Timer, to not fire our
3662         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3663         when the pointer is actually in motion, but only when the pointer
3664         seems to stop (as .net does).
3665         Fixes part of #381876.
3666
3667
3668 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
3669
3670         * ListBox.cs: Fix CopyTo implementation.
3671         [Fixes bug #409169]
3672
3673 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
3674
3675         * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
3676         drawing a ComboBox's background.  Fixes bad disabled rendering when
3677         the control is not at 0,0.
3678         [Fixes bug #416063]
3679
3680 2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>
3681
3682         * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the 
3683         ComponentModel layer, which will properly prioritize the attributes.
3684         Avoids wrong prioritization of duplicate attributes when retrieving 
3685         the converter and editor.
3686         [Fixes bug #417729]
3687
3688 2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3689
3690         * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
3691         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3692         when the pointer is actually in motion, but only when the pointer
3693         seems to stop (as .net does).
3694         Fixes part of #381876.
3695
3696 2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>
3697
3698         * GridEntry.cs: Perform stricter check for the ParentEntry's 
3699         PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor 
3700         implementation.
3701         [Fixes bug #417567]
3702
3703 2008-08-14  Geoff Norton  <gnorton@novell.com>
3704
3705         * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
3706         Fixes #396983.  Properly fix ActiveWindow trackin and do not
3707         prematurely show POPUP windows.
3708
3709 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3710
3711         * XplatUIX11.cs: Handle the obscured regions while scrolling using
3712         GraphicsExpose event, processing it just after we copy the scrolled
3713         area. This ensures that the next calls to ScrollWindow will copy
3714         regions already updated, and the scrolling will be smooth. Also remove
3715         the code that was trying to detect the obscured regions, since we are
3716         not using it anymore (too slow).
3717
3718 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3719
3720         * ListBox.cs: Fix the -temporary- broken selection in ListBox for
3721         MultiExtended mode, by separating some logic between the ctrl/shift
3722         handling. Also ignore any MouseMove events generated together with
3723         MouseDown events - we are only interested in the real motion event.
3724         Fixes part of #414963.
3725
3726 2008-08-08  Jonathan Pobst  <monkey@jpobst.com>
3727
3728         * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
3729         is selected.  [Fixes bug #414143]
3730
3731 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
3732
3733         * GridEntry.cs: Check if current property is a ICustomTypeDescriptor 
3734         and not the parent one (the propertyowner). Fixes the behavior of 
3735         GetConverter/GetEditor.
3736         [Fixes bug #415452]
3737
3738 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
3739
3740         * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
3741         [Fixes part of bug #415452]
3742
3743 2008-08-05  Ivan N. Zlatev  <contact@i-nz.net>
3744
3745         * GridEntry.cs: ITypeDescriptorContext should be relative to the parent 
3746         GridEntry, not the current.
3747         [Fixes bug #413896]
3748
3749 2008-08-04  Ivan N. Zlatev  <contact@i-nz.net>
3750
3751         * TextBoxBase.cs: De-internalize max_length field.
3752         * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox 
3753         share the same logic.
3754         [Fixes bug #414454]
3755
3756 2008-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3757
3758         * ListBox.cs: Selection changes made in the MouseDown handler should
3759         use the *Core versions of selection in SelectedIndices collection,
3760         since the SelectedIndexChanged/SelectedValueChanged events are fired
3761         until we get a MouseUp event, and thus we need to separate the logic
3762         from the events, as done in the keyboard navigation. Also, fire those
3763         selection events from keyboard navigation in SelectionMode.None, even
3764         if we don't have a selection, as .Net does.
3765
3766 2008-08-01  Jonathan Pobst  <monkey@jpobst.com>
3767
3768         * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
3769         last change introduced when an item is clicked but isn't on a toolstrip.
3770
3771 2008-07-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3772
3773         * ListBindingHelper.cs: When looking for an object's properties, check
3774         if it implements ICustomTypeDescriptor, in which case we should
3775         resolve the propertu based on its GetProperties method, not in its
3776         actual properties. This is what .Net seems to do.
3777         Fixes a UsingWebBrowser problem during initialization.
3778
3779 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3780
3781         * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
3782         sitting on a MenuStrip.
3783
3784 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3785
3786         * ToolStripButton.cs: If we "click" a top button on a menustrip that has
3787         no children with the keyboard, we need to release the keyboard capture.
3788         [Fixes bug #413567]
3789
3790 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3791
3792         * ToolStripMenuItem.cs: If we "click" a top level menu item that has
3793         no children with the keyboard, we need to release the keyboard capture.
3794         [Fixes bug #413567]
3795
3796 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
3797
3798         * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
3799         the GTK+-based implementation of VisualStyles.
3800         * ThemeWin32Classic.cs: Exposed various layout values for use in the
3801         GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
3802         ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
3803         ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
3804         TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
3805         TrackBarHorizontalTrackHeight.
3806
3807 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
3808
3809         * TabControl.cs: Added hot style handling for the scroll buttons.
3810         right_slider_state, left_slider_state are now of type PushButtonState to
3811         allow for a hot state. Added tracking of the mouse button being held down
3812         on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
3813         LeftScrollButtonArea.
3814         * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
3815         TabControlGetRightScrollRect.
3816
3817 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3818
3819         * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent 
3820         runtime errors.
3821
3822 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3823
3824         * Form.cs: Ensure that we reset the shown_raised flag after 
3825         the form is closed, so that we raise the show events the next 
3826         time the form is shown.
3827         [Fixes bug #413141]
3828
3829 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3830
3831         * Form.cs: Ensure closing events are raised only once.
3832         [Fixes bug #413143]
3833
3834 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3835
3836         * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode, 
3837         so that we can successfully generate the LParam in-place instead of 
3838         in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard 
3839         navigation for menus.
3840
3841 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3842
3843         * MenuAPI.cs: When montion don't set the keyboard navigation state to 
3844         'navigating'. Fixes bug #411356.
3845
3846 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3847
3848         [Fixed remaining issues of #406773 (#1)]
3849         * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
3850
3851         * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
3852         MainMenu (already done) and ContextMenu creation.
3853
3854         * ContextMenu.cs: Create tracker on construction. 
3855
3856 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3857
3858         * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
3859         possible to instantiate MenuTracker without GrabControl.
3860
3861 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3862
3863         * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
3864
3865         * MainMenu.cs: Set GrabControl on SetForm using current form.
3866
3867 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3868
3869         * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
3870
3871 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3872
3873         * MenuAPI.cs: Check if menu is activated before deactivate it in 
3874         ProcessShortcut.
3875
3876 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3877
3878         * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs, 
3879         ColumnStyle.cs: 
3880         Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
3881          - One style instance can only participate in a single style collection.
3882          - Styles can request their owner to layout whenever their properties 
3883          change.
3884          [Fixes bugs #412583 and #412582]
3885
3886 2008-07-29  Ivan N. Zlatev  <contact@i-nz.net>
3887
3888         * X11Keyboard.cs: Implement the generation of the LParam for 
3889         all keyboard messages.
3890         [Fixes bug #378728]
3891
3892 2008-07-29  Jonathan Pobst  <monkey@jpobst.com>
3893
3894         * ListBox.cs: Don't let the user set TopIndex so high that it
3895         scrolls up far enough to show empty items.
3896         [Fixes bug #412728]
3897
3898 2008-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3899
3900         * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
3901         (I'm an idiot and forgot to commit the actual changes, as well as
3902         specify the right file, which is this one, not ListView.cs).
3903
3904 2008-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3905
3906         * ListView.cs: Don't draw ListViewSubItem instances from
3907         DrawListViewItem - we need to reuse the main item's drawing for the
3908         first sub item in case owner draw is true, but wants the system to
3909         do the default draw for the first sub item, without incurring in a
3910         recursion problem.
3911         Fixes #410880.
3912
3913 2008-07-28  Jonathan Pobst  <monkey@jpobst.com>
3914
3915         * ToolStripButton.cs: Update Checked for CheckOnClick before
3916         raising the Click event.  [Fixes bug #412505]
3917
3918 2008-07-28  Ivan N. Zlatev  <contact@i-nz.net>
3919
3920         * Form.cs: Remove some seems leftover code for non-TopLevel's 
3921         CreateParams, which is breaking ClientSize sizing, because it 
3922         removes the border window styles.
3923
3924 2008-07-27  Ivan N. Zlatev  <contact@i-nz.net>
3925
3926         * PropertyGrid.cs: Invalidate the View when the PropertyTab 
3927         changes.
3928
3929 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>
3930
3931         * WebBrowser.cs: Removed debug output.
3932
3933 2008-07-25  Jonathan Pobst  <monkey@jpobst.com>
3934
3935         * FileDialog.cs: Apply patch from Ernesto to clean up some
3936         dialog messages.
3937
3938 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3939
3940         * TableLayoutPanel.cs: Perform layout on GrowStyle change, so 
3941         that the change has an immediate effect.
3942
3943 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3944
3945         * ScrollableControl.cs: Update PerformLayout calls to include 
3946         provide the name of the property that changed.
3947
3948 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3949
3950         * TableLayoutPanel.cs: Draw relative to the DisplayRectangle 
3951         location. Fixes drawing of border and cell borders if scrollable.
3952
3953 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3954
3955         * ScrollableControl.cs: Perform layouting after the AutoScroll 
3956         properties have changed, so that the changes have immediate 
3957         effect.
3958         [Fixes bug #409090]
3959
3960 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3961
3962         * XplatUIX11.cs: Non Client area is actually Client such in the 
3963         case of NotifyIcon, so double check WholeWindow == ClientWindow 
3964         when adding an expose.
3965         [Fixes bugs #324237 and #357022]
3966
3967 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3968
3969         * TableLayoutPanel.cs: Invalidate after layouting, so that we 
3970         repaint the cell borders.
3971
3972 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3973
3974         * PropertyGridTextBox.cs: Stop filtering messages prior to our 
3975         disposal to avoid unexpected ObjectDisposedExceptions.
3976
3977 2008-07-24  Ivan N. Zlatev  <contact@i-nz.net>
3978
3979         * TableLayoutPanel.cs: Layout on Row/Column count change.
3980
3981 2008-07-22  Gert Driesen  <drieseng@users.sourceforge.net>
3982
3983         * ListViewItem.cs: Changed binary serialization to match MS. Fixes
3984         bug #409351.
3985         * PictureBox.cs: When ImageLocation is set to null or an empty string,
3986         only set image to null if it was previously initialized from an url
3987         (or using ImageLocation). In ImageLocation, load specified image
3988         asynchronously if WaitOnLoad is false. Added support for local file
3989         paths to LoadAsync, and added missing argument check.
3990
3991 2008-07-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3992
3993         * DateTimePicker.cs: 
3994         * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
3995         order to set the value as required (which means: when selection
3996         changes for a part being edited, and not before that if not needed).
3997         Also use an enum to describe which part are we using, and use the
3998         selection as a property in PartData, in order to notify the
3999         DateTimePicker owner that we need to end the current edit.
4000         Fixes #383462.
4001
4002 2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
4003
4004         * PropertyGridTextBox.cs: Validation should be performed only if we 
4005         are focused. We can lose focus for example if the Return key is used 
4006         to set the entry and there is an error. When the message box is 
4007         displayed we would have validate on click in the message box.
4008
4009 2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
4010
4011         * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content 
4012         in order to determine that we are expandable is wrong. There was a bug, 
4013         now fixed, in TypeDescriptor that was causing the wrong converter to be 
4014         returned which caused GetPropertiesSupported == false in most cases.
4015         [Fixes bug #409027]
4016
4017 2008-07-15  Jonathan Pobst  <monkey@jpobst.com>
4018
4019         * ImageList.cs: Fix ICollection.CopyTo implementation for
4020         ImageListCollection.  [Fixes bug #409169]
4021
4022 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4023
4024         * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
4025         WorkingArea so that menus can appear on the second monitor
4026         when one has dual monitors.
4027
4028 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4029
4030         * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
4031         Fixes build.
4032
4033 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4034
4035         * TextBox.cs: Implement navigation support for auto complete in
4036         TextBox, as well as refactor the code to show the auto complete window
4037         when receiving a WM_CHAR message, instead of TextChanged, since
4038         autocomplete itself should be able to set the Text a lot of times and
4039         finally only typing should show it, not changes from code.
4040
4041 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4042
4043         * TabControl.cs: When expanding the selected tab, don't adjust the
4044         width if alignment is Right, since it has a different offset than 0,
4045         as opposed to the other alignments.
4046         Fixes the selected tab not being painted at all with alignment = Right
4047         and using FillToRight size mode.
4048
4049 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4050
4051         * TreeView.cs: Fix ToString to match MS.  [Fixes bug #409029]
4052
4053 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4054
4055         * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
4056         values from the textbox to the boundary values.  [Fixes bug #409026]
4057
4058 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4059
4060         * TreeNodeCollection.cs: We were copying one too many elements when
4061         doing our array copy.  Fixes a crash when RemoveAt is called.
4062         [Fixes bug #408999]
4063
4064 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4065
4066         * TabControl.cs: When doing the layout and need to call FillRow -using
4067         FillToRight size mode-, use the overload receiving a bool param
4068         indicating whether we need to do a vertical or horizontal calculation.
4069         Fixes part of #399583.
4070
4071 2008-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4072
4073         * TextBox.cs: When painting, use the value returned by
4074         GetLastVisibleItem instead of using the cached last_item field, since
4075         there could be a desynchronization between the layout and the
4076         painting. Fixes a AOOR exception in auto complete mode.
4077
4078 2008-07-12  George Giolfan  <georgegiolfan@yahoo.com>
4079
4080         * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
4081         NonClientAreaEnabled until our VisualStyles is modified to allow it.
4082
4083 2008-07-12  Gert Driesen  <drieseng@users.sourceforge.net>
4084
4085         * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
4086
4087 2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4088
4089         * TextBox.cs: When focus is lost, if the auto complete listbox is
4090         visible, hide it.
4091
4092 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
4093
4094         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
4095         tracking size for tool windows.
4096         * Theme.cs, ThemeWin32Classic.cs : Extracted
4097         ManagedWindowSpacingAfterLastTitleButton.
4098
4099 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
4100
4101         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
4102         They are bit-rotted and have always been listed as "unsupported".
4103
4104 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
4105
4106         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
4107
4108 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
4109
4110         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
4111
4112 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4113
4114         * ListBox.cs: Make sure last_item_visible gets reset before we try
4115         to do a layout due to scrollbars appearing or disappearing.
4116         [Fixes bug #408139]
4117
4118 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4119
4120         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
4121         for different window themes.  [Fixes bug #339140]
4122
4123 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4124
4125         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
4126         in ManagedWindowBorderWidth.
4127
4128 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4129
4130         * InternalWindowManager.cs: Change MouseMove to take a point, so
4131         we can use the same point later on.
4132         * MdiWindowManager.cs: Store point sent to MouseMove so we can
4133         later reset to it.  On Windows, the Cursor.Position had already
4134         changed by the time we were resetting to it.
4135         [Fixes bug #363239]
4136
4137 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4138
4139         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
4140         are inactive.
4141         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
4142         user requested it.
4143         [Fixes bug #398686]
4144
4145 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4146
4147         * MdiWindowManager.cs: Double-clicking on the title bar should not
4148         maximize a MDI form if MaximizeBox = false.
4149
4150 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4151
4152         * ThemeVisualStyles.cs: Fixed a warning.
4153
4154 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4155
4156         * ThemeVisualStyles.cs: Fixed warnings and formatted.
4157
4158 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4159
4160         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
4161         implementation produces a better result.
4162
4163 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4164
4165         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
4166         windows.
4167
4168 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4169
4170         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
4171         cannot be used from the ThemeEngine constructor.
4172         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
4173         Application.VisualStylesEnabled because it does not work on X11.
4174
4175 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
4176
4177         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
4178         that we did not always check for, as well as fixes to the IList
4179         implementations.  [Fixes bug #402703]
4180
4181 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4182
4183         * IDeviceContext.cs: Added Dispose.
4184
4185 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4186
4187         * Control.cs: Added OnSizeInitializedOrChanged.
4188         * Form.cs: OnLoadInternal: Added a call to
4189         Control.OnSizeInitializedOrChanged.
4190         * InternalWindowManager.cs:
4191          * HandleTitleBarMouseMove: No longer invalidates the parent window.
4192          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
4193          * TitleButton: Added Entered.
4194          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
4195         * MdiWindowManager.cs:
4196          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
4197          move over the maximized title buttons causes a change.
4198          * IsActive: Can now be called before the window is added to a MDI parent.
4199         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
4200         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4201         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
4202         * ThemeWin32Classic.cs:
4203          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
4204          * DrawTitleButton takes a new form parameter.
4205          * Added ManagedWindowTitleButtonHasHotElementStyle,
4206          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4207
4208 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4209
4210         * ThemeEngine.cs: ThemeVisualStyles is now selected if
4211         Application.EnableVisualStyles has been called, even if the current system
4212         configuration does not support rendering with Visual Styles.
4213         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
4214         Styles should not be used.
4215
4216 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
4217
4218         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
4219         ComboBox in FormsTest.
4220
4221 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
4222
4223         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
4224         for fixed toolwindows.
4225
4226 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
4227
4228         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
4229
4230 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4231
4232         * Control.cs: CreateControl just returns if the Control is diposed 
4233         and doesn't throw ObjectDisposedException.
4234         [Fixes bug #406566]
4235
4236 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4237
4238         * Control.cs: Do not create the control if the parent isn't created 
4239         yet, e.g in the case of a parented form on which .Show is called.
4240         It will be created when the parent is made visible/created.
4241         Improves #402446.
4242
4243 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4244
4245         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
4246         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
4247         [Fixes bug #406786]
4248
4249 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4250
4251         * Form.cs: When disposed set owner to null. Improves #402446.
4252
4253 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4254
4255         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
4256         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
4257         if not.
4258         * Form.cs: Take the Padding into account for the PreferredSize.
4259         [Fixes bug #402849]
4260
4261 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4262
4263         * TabControl.cs: Since we don't support more than one direction in
4264         TabControl rows alignment (this is, the row becomes the
4265         bottom row when selected), make Direction return always 1. This way
4266         the layout doesn't get confused about a bad calculation.
4267         Fixes #399582.
4268
4269 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4270
4271         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
4272         so that the wparam is properly set.
4273         Fixes form moving in the test case in bug 402446.
4274
4275 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
4276
4277         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
4278         the full tree instead of nothing.  [Improves bug #406584]
4279
4280 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
4281
4282         * ThemeWin32Classic.cs: Adjusted minimized window painting.
4283
4284 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
4285
4286         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
4287         children.
4288
4289 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
4290
4291         * TreeView.cs: Add a null check when using CollapseAll on an
4292         empty tree.  [Fixes bug #406449]
4293
4294 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4295
4296         * Form.cs: Make OnMenuComplete internal so we can call it.
4297         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
4298         [Fixes bug #399321]
4299
4300 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4301
4302         * TabControl.cs: Handle Up and Down keys when TabControl is in
4303         vertical alignment.
4304         [Fixes bug #399585]
4305
4306 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4307
4308         * TabControl.cs: Invalidate when we remove a tab.  Guard against
4309         an AOORE when trying to remove a tabpage that is not owned by the
4310         parent control.
4311         [Fixes bug #399927]
4312
4313 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4314
4315         * ScrollBar.cs: Change the LargeChange calculation to be correct.
4316         Ensure we are using LargeChange instead of large_change so we our
4317         calculations are correct.
4318         [Fixes bug #403122]
4319
4320 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4321
4322         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
4323         we need to ensure the ColumnCount/RowCount gets set.
4324         [Fixes bug #404851]
4325
4326 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4327
4328         * ListBox.cs: When handling item navigation, if selection mode is
4329         None, call EnsureVisible, since scrolling is normally handled by
4330         selection, that we are not calling in this case.
4331         Fixes #398345.
4332
4333 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
4334
4335         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
4336         a null check to our focus walking code.  [Fixes bug #394332]
4337
4338 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
4339
4340         * ComboBox.cs: Case missed in bug 379596 "Support item
4341         navigation by entering text": On _close_ drop-down select
4342         the first item matching the text in the textbox.  [Fixes bug #397265]
4343
4344 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
4345
4346         * DataGridView.cs: Fix a crash when sorting by column headers, 
4347         mentioned in bug #404841.  Remove some dead switch cases.
4348
4349 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4350
4351         * ComboBox.cs:
4352         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
4353         uses the AutoComplete support in the internal TextBox. Also TextBox
4354         can store a reference to ComboBox, in case AutoCompleteSource is set
4355         to ListItems (this is, ComboBox's items, and we don't want to pass an
4356         additional collection).
4357
4358 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4359
4360         * ListViewItem.cs: Restore the initial value of bounds rect to
4361         Rectangle.Empty, and is this value for Layout detection in virtual
4362         mode. Fixes the tests.
4363
4364 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
4365
4366         * XPlatUI.cs: Remove references to "new" X11 backend.
4367
4368 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
4369
4370         * Control.cs: Add an internal virtual OnDragDropEnd method 
4371         to allow controls such as ListBox, which depend on a sequence 
4372         of MouseDown+Move+End events, to handle the lack of a MouseUp 
4373         when a DnD operation is started in MouseDown.
4374         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
4375         get a MouseUp, so reset our state whenever a DnD operation ends.
4376
4377 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
4378
4379         * PropertyGrid.cs: Clear the root griditem first thing when 
4380         new object/s is/are selected. Fixes some rare cases where 
4381         the View will get a paint request and won't know that the 
4382         grid is in the process of repopulating.
4383
4384 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4385
4386         * XplatUIX11.cs, InternalWindowManager.cs: 
4387         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
4388         doesn't automagically update the FormBorderStyle, so we must 
4389         double check the CreateParams explicitly to determine if the 
4390         window is a toolwindow.
4391         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
4392         instead of doing custom checks.
4393
4394         Fixes toolwindows for the test case in bug #402446
4395
4396 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4397
4398         * Control.cs: Visibility of the control should be false 
4399         when the handle is destroyed in WmDestroy and not immediately 
4400         in Dispose(). This is effectively where the disposing process 
4401         ends even though the control is marked as Disposed immediately 
4402         after calling Dispose().
4403         [Fixes bug #402446]
4404
4405 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4406
4407         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
4408         when the textbox gets focus.
4409         [Fixes bug #402704]
4410
4411 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4412
4413         * PropertyGridTextBox.cs, PropertyGridView.cs: 
4414          - Alt + Down should show the drop down editor.
4415          - Focus the editor when showing it
4416         [Fixes bug #402710]
4417
4418 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
4419
4420         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
4421         that are not the first panel.
4422         * StatusBar.cs: Ensure that the X coordinate of panels is always
4423         stored.  Fix IList implementation of StatusBarPanelCollection to
4424         call the regular methods.
4425         [Fixes bug #403599, #402165]
4426
4427 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
4428
4429         * ThemeWin32Classic.cs: Fix position calculation for centered
4430         text on status bar panels.  [Fixes bug #402165]
4431
4432 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
4433
4434         * Splitter.cs: Fix Splitter to:
4435          - Work for arbitrary splitter size
4436          - Handle MinSize and MinExtra properly
4437          - Get rid of absolute positioning during drag and use relative
4438          - Multiple other fixes 
4439          [Fixes bug #338966]
4440
4441 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
4442
4443         * Cursor.cs: Show shouldn't hide the cursor.
4444
4445 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4446
4447         * ListViewItem.cs: When invalidating, add some extra space to bounds,
4448         since focus rectangle and selection can add some space and need to
4449         take into account those small offsets - specially in Details view.
4450         * ListView.cs: Instead of invalidate using item Bounds directly, call
4451         item.Invalidate, to have the code centralized.
4452         Fixes focused/selection garbage when selecting and deselecting items
4453         that are close.
4454
4455 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4456
4457         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
4458         mode we can check whether we have to force a Layout or not, and can
4459         cache based on this, instead of avoiding caching all the the time. Do
4460         this check in GetBounds and TextBounds.
4461         Fixes selection in Details view.
4462
4463 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4464
4465         * ListView.cs: Make HeaderControl internal, thus the theme engine can
4466         get its *real* height instead of trying to infere it.
4467         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
4468         get the position of them, since it's in general a bad idea in general,
4469         and because we can't do that in virtual mode. Instead get the first
4470         visible item as well as item height, and draw them.
4471         Fixes #400390.
4472
4473 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
4474
4475         * ToolStripSplitButton.cs: We can't add in extra width if
4476         the button is not AutoSize.  [Fixes bug #401279]
4477
4478 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
4479
4480         * PaddingConverter.cs: 
4481          - Implement conversion to InstanceDescriptor
4482          - Handle "All" in CreateInstance by using the supplied 
4483          ITypeDescriptorContext.
4484          [Fixes bugs #396076 and #396078]
4485
4486          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
4487          Code contributed under MIT/X11 license.
4488
4489 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
4490
4491         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
4492         ButtonBase.cs:
4493         Add Category attributes.
4494         Code is contributed under the MIT/X11 license.
4495
4496 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
4497
4498         * Form.cs: 
4499          - Fix a NRE when unparenting a form.
4500          - Do not recreate or destroy a parented form when 
4501         unparenting. 
4502
4503 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4504
4505         * TextBox.cs: Implement basic support for AutComplete with custom
4506         sources.
4507
4508 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
4509
4510         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
4511         DropDownButtonBounds should be from the origin of the button, not the
4512         ToolStrip.  [Fixes bug #401279]
4513
4514 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
4515
4516         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
4517           running gtk_init_check.  This prevents GAIL from loading
4518           unnecessarily, which was breaking UIA support.  Initial fix for bug
4519           #375987.
4520         * Application.cs: Add UIA support to Winforms.  New static constructor
4521           uses reflection to initialize UIAutomationWinforms assembly.  Added
4522           PreRun event so UIA can initialize before the mainloop starts, and
4523           FormAdded event so UIA can provide a11y support for new Forms in an
4524           Application.
4525
4526 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
4527
4528         * DataGridView.cs: When binding to a dataset, subscribe to table
4529         and column change events.  Unsubscribe to these when we clear bindings.
4530         [Fixes bug #399601]
4531
4532 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
4533
4534         [DataGrid drawing refactory]
4535
4536         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
4537
4538         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
4539         must be handle by Theme, now it call DataGridPaintColumnHeader.
4540
4541         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
4542         test cases must be also fixed because it checks for wrong size.
4543
4544         * ThemeWin32Classic.cs: 
4545                 - Draw the bottom line of grid caption.
4546                 - Prevent to draw caption text when it is empty.
4547                 - Use CPDrawBorder3D for 3D efects to simplify code.
4548                 - Uses 3D (when not flat) to paint corner shared between row and column
4549                 header.
4550                 - Fix header drawing issues on win32, now borders are drawing.
4551                 - Fix column header paint issues to mimic win32.
4552                 - Adjust header drawing for last column, like first one it must be draw
4553                 different.
4554                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
4555                 not an character.
4556                 - DataGridPaintColumnHeader created to draw column headers, it also
4557                 paint stuff right on Win32.
4558                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
4559                 class.
4560
4561         * Theme.cs: 
4562                 - DataGridPaintRowHeaderStar method added.
4563                 - DataGridPaintColumnHeader method added.
4564
4565 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
4566
4567         * Control.cs: Don't reset to Dock style layout if DockStyle is
4568         set to none.  [Fixes bug #399316]
4569
4570 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
4571
4572         * Win32DnD.cs: Fix the check for control not equal null.
4573         Fixes bug #341420 and #381886. 
4574
4575 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
4576
4577         * DataGridViewRowCollection.cs: Update the indexes of rows after
4578         one has been removed.
4579         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
4580         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
4581         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
4582         rows for the Rows collection, or deleting rows from the bound DataSet.
4583
4584 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
4585
4586         * DataGridView.cs: Listen to a DataSet's changed event even
4587         when autogeneratecolumns is false.  Refactor the changed event's
4588         add row code to use the same as the existing add row code.
4589         [Fixes bug #399601]
4590
4591 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4592
4593         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
4594         much any time the caret moves and there is text, not just when
4595         the selection changes as one would think.
4596         * RichTextBox.cs: Override RaiseSelectionChanged and fire
4597         SelectionChanged.
4598         [Fixes bug #397271]
4599
4600 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4601
4602         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
4603         instead of trying to duplicate the code.
4604         * ListBox.cs: Make method internal so we can send keyboard events.
4605         [Fixes bug #398344]
4606         
4607 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4608
4609         * TextBoxBase.cs: When pasting and checking the max length,
4610         subtract the selected text length (the text we will be replacing) from
4611         the document length.
4612         * TextControl.cs: Ensure every character insertion is reflected in
4613         charcount, so max length will work properly.
4614         [Fixes bug #398605]
4615
4616 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4617
4618         * ListBox.cs: Ensure scrollbars are updated when a single
4619         column listbox with an already set top-index is created.
4620         [Fixes bug #398342]
4621
4622 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4623
4624         * FontDialog.cs: Typing in the font/style textboxes should search
4625         the list boxes case-insensitively.  [Fixes bug #398343]
4626
4627 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
4628
4629         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
4630         widths of icon and buttons instead of hard coded values.
4631
4632 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4633
4634         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
4635         as well as generating a SelectedIndexChanged event, just like .Net does
4636         -surprise-.
4637         Fixes #398345.
4638
4639 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4640
4641         * ListBox.cs: When navigating items visually, use FocusedItem as the
4642         reference point instead of SelectedIndex, since even in
4643         SelectionMode.None we need to support navigation, and in that case we
4644         just can't use SelectedIndex.
4645         Fixes part of #398345.
4646
4647 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
4648
4649         * Control.cs: Make a SetBoundsInternal that avoids the new
4650         SetBounds code.
4651         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
4652         SetBoundsInternal instead of SetBoundsCoreInternal.
4653
4654 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
4655
4656         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
4657         SetBounds for the scrollbars.
4658
4659 2008-06-10  Andreia Gaita <avidigal@novell.com> 
4660
4661         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
4662           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
4663           OnMouseMove, OnMouseOver, OnMouseUp
4664         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
4665           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
4666         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
4667           to the WebControl object to pass to new collection objects
4668         * HtmlHistory.cs: Implement support for individual window histories.
4669         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
4670           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
4671           GotFocus, LostFocus, OnLoad, OnUnload
4672         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
4673           ContextMenu
4674         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
4675           security level changes and context menu event support.
4676
4677 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4678
4679         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
4680         as happens with Esc, patch my Andy Hume.
4681         Fixes #396294.
4682
4683 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4684
4685         * MdiWindowManager.cs: DrawMaximizedButtons now uses
4686         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
4687         * Theme.cs: Made MenuButtonSize platform dependent. Added
4688         ManagedWindowButtonSize.
4689         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
4690         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
4691
4692 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4693
4694         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
4695         Added support for rendering with VisualStyles.
4696
4697 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4698
4699         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4700         support for rendering the border with VisualStyles.
4701
4702 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4703
4704         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
4705         the icon is not shown.
4706         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
4707         its own logic.
4708
4709 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4710
4711         * InternalWindowManager.cs: Draw minimized windows even if they don't have
4712         borders.
4713
4714 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
4715
4716         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
4717
4718 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
4719
4720         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
4721         [Fixes bug #397943]
4722
4723 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4724
4725         * ComboBox.cs: When snaping height -because of IntegralHeight set to
4726         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
4727         if the requested height leaves the listbox area with *less* than the
4728         required are to see one item. We were setting it to PreferredHeight
4729         even for values matching the height for a single item.
4730         Fixes #396297.
4731
4732 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
4733
4734         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
4735
4736 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
4737
4738         * DataGridViewCell.cs: Use property instead of field.
4739
4740 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4741
4742         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
4743         null checks.
4744
4745 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4746
4747         * Theme.cs: Added #region around the managed window code. Made the managed
4748         window methods abstract.
4749         * ThemeWin32Classic.cs: Added #region around the managed window code.
4750
4751 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4752
4753         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
4754         if it has borders.
4755         * ThemeWin32Classic.cs: Removed HasBorders checks in
4756         DrawManagedWindowDecorations.
4757
4758 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4759
4760         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4761         Extracted ManagedWindowGetTitleBarIconArea.
4762
4763 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4764
4765         * DataGridViewCellStyle.cs: Don't clone the font.
4766
4767 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4768
4769         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
4770
4771 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4772
4773         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
4774         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
4775         in 64 bit machines.
4776
4777 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4778
4779         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
4780         Use Format/FormatProvider before trying converters.
4781         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
4782         are 'set'.  Change constructor to not use ApplyStyle since it wants
4783         everything applied.  Clone the Font.
4784         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
4785         ApplyStyle the rest.
4786
4787 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4788
4789         * ListView.cs: We need to calculate the scrollbars even if the handle
4790         hasn't been created - this is needed when methods using scrollbars
4791         info, such EnsureVisible, are called before control has been created.
4792         Fixes #397272.
4793
4794 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
4795
4796         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
4797         only if the elements are defined. 
4798
4799 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4800
4801         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
4802         section. Also, when setting bounds, snap height as well as save the
4803         requested height if Dock has any value affecting the height: Left,
4804         Right and Bottom - important if using IntegralHeight as true.
4805
4806 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4807
4808         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
4809         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
4810         instead of doing that only in our SetBoundsCore override, since the 
4811         bounds cached can be the same as saved one and we could not get the
4812         new height applied.
4813         Fixes #396297.
4814
4815 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4816
4817         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
4818         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
4819         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
4820         ToolWindowCaptionButtonSize.
4821         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
4822
4823 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4824
4825         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
4826         hard coded values.
4827         * Theme.cs: Made DoubleClickTime plaform dependent.
4828
4829 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4830
4831         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
4832         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4833         ToolWindowCaptionHeight.
4834
4835 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4836
4837         * InternalWindowManager.cs: The adjustment to ensure positive client area
4838         sizes is now platform dependent (disabled on Windows).
4839         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4840         RequiresPositiveClientAreaSize.
4841
4842 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4843
4844         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
4845
4846 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4847
4848         * InternalWindowManager.cs: Changed IconicSize to use
4849         SystemInformation.MinimizedWindowSize.
4850         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
4851         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
4852
4853 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4854
4855         * ComboBox.cs: If the combobox is anchored both on top and bottom,
4856         adjust height if IntegralHeight is true when calling SetBoundsCore (as
4857         likely the height was modified even if Height wasn't specified in
4858         BoundsSpecified parameter).
4859         Fixes part of #396297.
4860
4861 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
4862
4863         * InternalWindowsManager.cs: Changed minimum window size while resizing to
4864         SystemInformation.MinWindowTrackSize.
4865         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
4866         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
4867
4868 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
4869
4870         * MenuItem.cs: Fixed Dispose.
4871
4872 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
4873
4874         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
4875         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
4876         EnteredHeaderCell, PressedHeaderCell: Added.
4877         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
4878         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
4879         theme a chance to override default painting.
4880         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
4881         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
4882         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
4883         ListView and DataGridView header rendering.
4884         
4885 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
4886
4887         * RichTextBox.cs: GetPositionFromCharIndex should return the 
4888         visual position of the character relative to the viewport.
4889         [Fixes part of bug #396664]
4890
4891 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
4892
4893         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
4894         and not just for the existance of an UITypeEditor. In some cases 
4895         there is an editor associated just to do PaintValue, but which 
4896         doesn't actually support editing.
4897         [Fixes bug #396632]
4898
4899 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4900
4901         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
4902         if needed, instead of 0 - this should help us in the corner case where
4903         we have more than one item but we are only partially showing 1 item.
4904         Fixes part of #374713.
4905
4906 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4907
4908         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
4909         control, return immediately if the any parent control's handle hasn't
4910         been created or isn't visible, as well as avoiding creating the parent
4911         Form if the handle hasn't been previously created.
4912         Fixes tests.
4913
4914 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
4915
4916         * TableLayoutPanel.cs: Use border sizes when calculating the
4917         panel's preferred size.  [Fixes part of bug #396433]
4918
4919 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
4920
4921         * SplitContainer.cs:
4922          - Fix SplitterDistance to update only if needed. 
4923          - Make it force min and max validation.
4924          - Handle properly mouse moves outside the resizeable area.
4925          [Fixes bug #396232]
4926
4927 2008-06-02  Andreia Gaita <avidigal@novell.com> 
4928
4929         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
4930           (which also suppresses all popup dialogs). Throw NotSupported
4931           exceptions for activex getters/setters.
4932         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
4933           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
4934           StatusText, Version, GoSearch
4935         * HtmlDocument.cs: Add DocType support
4936
4937 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
4938
4939         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
4940         [Fixes bug 396124]
4941
4942 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
4943
4944         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
4945
4946 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
4947
4948         * TableLayoutPanel.cs: When calculating preferred size, use the
4949         actual number of columns and rows, not what the user set them to.
4950         [Fixes bug #396141]
4951
4952 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
4953
4954         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
4955         394311.
4956
4957 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4958
4959         * XplatUIX11.cs: When detecting areas obscured in a control by other
4960         toplevel windows while scrolling, return if the control hasn't a 
4961         container form.
4962         Fixes some tests.
4963
4964 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4965
4966         * XplatUIX11.cs: Properly detect the visible area of a control being
4967         scrolled (obscured by other winforms controls and any X toplevel
4968         windows), to mark as invalid the requested area to be scrolled that
4969         isn't visible and thus can't be copied.
4970         Fixes #324513.
4971
4972 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4973
4974         * ListBox.cs: Compute the precise amount to vertically scroll when
4975         using DrawMode.OwnerDrawVariable.
4976         Patch by jkeymer (j.keymer@gmx.net).
4977
4978 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4979
4980         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
4981         to avoid setting an invalid value for the verticall scrollbar 
4982         when navigating items. And, duh, also remove my silly debug messages
4983         from previous commits.
4984         Fixes #374713.
4985
4986 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
4987
4988         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
4989         make it MS compatible.
4990
4991 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
4992
4993         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
4994          - Allow the editing of entries even if their parent is read-only.
4995          - Do not render expandable properties read-only.
4996          - Refactor expansion checks form PropertyGrid into PropertyGrid.
4997
4998 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
4999
5000         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
5001         support for the hover style.
5002
5003 2008-05-29  Andreia Gaita <avidigal@novell.com> 
5004
5005         * ContainerControl.cs: Check for null dead-end when traversing the tree
5006           of parent controls.
5007         
5008           [Fixes #394332, patch by Ernesto Carrea]
5009
5010 2008-05-29  Geoff Norton  <gnorton@novell.com>
5011
5012         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
5013         constant that it is.  Fixes #393981
5014
5015 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
5016
5017         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
5018         that the user probably doesn't want to set this.
5019
5020 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
5021
5022         * ThemeWin32Classic.cs: Don't let the text size be bigger than
5023         the control size for CheckBox/RadioBox.
5024         [Fixes part of bug #394645]
5025
5026 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
5027
5028         * PropertyGrid.cs: Update the state of the sorting buttons in 
5029         the toolbar if PropertySort is set programatically.
5030
5031 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
5032
5033         * GridItemCollection.cs: Add multiple items with conflicting names 
5034         support and also preserve name ordering.
5035         [Fixes #395345]
5036
5037 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
5038
5039         * GridItemCollection.cs: Revert my multiple items with same 
5040         name patch.
5041
5042 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5043
5044         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
5045         or middle ones.
5046         Fixes part of #393908.
5047
5048 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
5049
5050         * ToolStripDrowDown.cs: When using the Show () methods that have a
5051         Control parameter, set the menu owner to that Control.
5052         [Fixes bug #394345]
5053
5054 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
5055
5056         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
5057         [Fixes bug #362756]
5058
5059 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5060
5061         * GridItemCollection.cs: Refactor to support multiple items with the 
5062         same name.
5063         [Fixes bug #394314]
5064
5065 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
5066
5067         * Control.cs: The 2.0 check for illegal cross thread calls in 
5068         Control.Handle were throwing an exception when we were getting
5069         the Handle in order to invoke correctly.  Created a private
5070         version that does not contain this check.
5071         [Fixes bug #394531]
5072
5073 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5074
5075         * PropertyGrid.cs: Respect DefaultTabType.
5076
5077 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5078
5079         * ListView.cs: SPACE selects an item.
5080         [Fixes bug #393023]
5081
5082 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5083
5084         * ListView.cs: Reset the search string whenever the items are 
5085         modified.
5086         [Fixes bug #393020]
5087
5088 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5089
5090         * ListControl.cs: For the first added item PositionChanged is fired
5091         _before_ ItemChanged, which leave us in a temporary invalid state - so
5092         we need to set the selected index from ItemChanged handler *if* we
5093         know that the first item has just been added *and* the items have been
5094         actually added to the ListControl.
5095         Fixes #369048.
5096
5097 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5098
5099         * TabControl.cs: Only clicks with the left button should be
5100         handled.
5101         Fixes #393908.
5102
5103 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5104
5105         * ComboBox.cs: 
5106         * FIleDialog.cs:
5107         * TextBox.cs: Expose an internal method in TextBox to restore the
5108         original context menu, and call it from ComboBox to re-use it in the
5109         combobox containing the file name in FileDialog.cs.
5110         Fixes part of #393775.
5111
5112 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
5113
5114         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
5115         style.
5116
5117 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
5118
5119         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
5120         down button style.
5121
5122 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5123
5124         * ComboBox.cs: Minor correction to previous patch: PageDown should
5125         also *try* to move by one item if the computed offset is negative,
5126         just like the PageUp case.
5127
5128 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5129
5130         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
5131         should be done for at least 1 item, and not stay at the same item.
5132         Fixes part of #374713.
5133
5134 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
5135
5136         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
5137         directories.  [Fixes bug #393931]
5138
5139 2008-05-22  Andreia Gaita <avidigal@novell.com> 
5140
5141         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
5142           Don't fire events until the initial about:blank page has finished
5143           loading. Clean up events.
5144
5145 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
5146
5147         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
5148           FocusIn() too. This should fix the issue on switching
5149           scim keyboards.
5150
5151 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
5152
5153         * X11Keyboard.cs : set XIM font size to somewhat reasonable
5154           number (ideally the input textbox size, but that could be
5155           too messy).
5156
5157 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
5158
5159         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
5160         the ToolStripItem's TextChanged.  [Fixes bug #393597]
5161
5162 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5163
5164         * TabControl.cs: When invalidating in SelectedIndex and we need to
5165         inflate to take into account the border of the tabs, make sure that
5166         the invalidated rect doesn't overflow the control bounds, since that
5167         would avoid updating at all.
5168
5169 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5170
5171         * TabControl.cs: Don't substract scroller width from the row width,
5172         since we need to take into account the total width of the control when
5173         calculating the position of the tabs. This avoids showing scroller
5174         when it is actually not needed.
5175         Fixes part of #322325.
5176
5177 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5178
5179         * ThemeVisualStyles.cs: Added support for TextBoxBase.
5180
5181 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5182
5183         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5184         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
5185
5186 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5187
5188         * DataGridView.cs: Only paint the top left header cell if there
5189         are columns.
5190
5191 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5192
5193         * DataGridView.cs: When binding to a BindingSource, get the underlying
5194         list to bind to.  [Fixes bug #345483]
5195
5196 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5197
5198         * DataGridView.cs: Do not bind to collection properties.
5199         [Fixes bug #337470]
5200
5201 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5202
5203         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
5204
5205 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5206
5207         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
5208         thumb style.
5209
5210 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5211
5212         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
5213
5214 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5215
5216         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
5217         background.
5218
5219 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5220
5221         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
5222
5223 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5224
5225         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
5226         checked styles.
5227
5228 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5229
5230         * TabControl.cs: Extended to handle the hot style.
5231
5232 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5233
5234         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
5235         Extended UpDownBase code to handle hot and disabled styles.
5236
5237 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5238
5239         * DataGridView.cs: Handle databinding to generic list type things.
5240         [Fixes bug #325239]
5241
5242 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5243
5244         * DataGridViewCellCollection.cs: Add a method to find the cell
5245         with the given DataPropertyName.
5246         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
5247         * DataGridViewColumnCollection.cs: Add a method to clear all
5248         autogenerated columns.
5249         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
5250         columns.
5251         [Fixes bug #348082]
5252
5253 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5254
5255         * DataGridView.cs: Don't try to update the RowTemplate with
5256         a null CellTemplate.
5257
5258 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5259
5260         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
5261         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
5262         * DataGridView.cs: Lots of fixes/enhancements to databinding to
5263         a DataSet.
5264
5265 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5266
5267         * Control.cs: Remove invalidating implicit child controls when
5268         control is invalidated.  It was causing too many redraws on
5269         controls with implicit scrollbars.
5270         * ListView.cs: Listen to the Invalidated event and invalidate
5271         child controls.
5272
5273 2008-05-20  Andreia Gaita <avidigal@novell.com> 
5274
5275         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
5276         * HtmlDocument.cs: Check for nulls
5277
5278 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5279
5280         * Control.cs: In ControlCollection.RemoveInternal, remove the
5281         internal control before calling PerformLayout and OnControlRemoved,
5282         which was leaving us in an invalid state and causing a X error (bad
5283         match). Observe that Remove () call has the same order.
5284         Fixes an X error changing ComboBoxStyle.DropDownStyle.
5285
5286 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5287
5288         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
5289         being fired if ControlStyles.UserPaint style is activated.
5290         Fixes #371905.
5291
5292 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5293
5294         * GridEntry.cs: Don't be so strict when setting the value - 
5295         do not check if what we set is what we get.
5296         [Fixes bug #389245]
5297
5298 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5299
5300         * XplatUIX11.cs: If there are no timers timeout should be 0
5301         [Fixes bug #363522]
5302
5303 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
5304
5305         * Control.cs: As a followup to invalidating implicit children when
5306         a control is invalidated, only invalidate them if they are in the
5307         clip rectangle.
5308
5309 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5310
5311         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
5312
5313 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5314
5315         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
5316
5317 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5318
5319         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
5320         * XplatUIWin32.cs: Made Win32DeleteObject public.
5321
5322 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5323
5324         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
5325         PropertyDescriptor.ShouldSerializeValue.
5326         [Fixes bug #391924]
5327
5328 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5329
5330         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
5331         in the classic theme.
5332
5333 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5334
5335         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
5336         ThumbPressed.
5337         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
5338         ScrollBarHasPressedThumbStyle.
5339
5340 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5341
5342         * TextRenderer.cs: Included some methods in the 1.1 profile.
5343
5344 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
5345
5346         * Control.cs: When we make a control visible, it may have been
5347         previously visible and while it wasn't visible, the z-order of
5348         things may have been shuffled, so the control needs to have its
5349         z-order updated just in case.  [Fixes bug #391518]
5350
5351 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5352
5353         * ThemeVisualStyles.cs: Added support for GroupBox.
5354
5355 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5356
5357         * GroupBoxRenderer.cs: Included in the 1.1 profile.
5358
5359 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
5360
5361         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
5362           bug #389996; XSelectInput() behaved as mouse handler robber,
5363           so remove extra call to it.
5364
5365 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5366
5367         * Control.cs: Simplify ControlCollection.Contains method.
5368
5369 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5370
5371         * DataGridViewRow.cs: Implement GetPreferredSize.
5372
5373 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5374
5375         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
5376
5377 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5378
5379         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
5380         painting and edit control fixes.
5381
5382 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5383
5384         * DataGridView.cs, DataGridViewCell.cs: Work around some external
5385         checks to make sure we are in an actual row/col for top left header cell.
5386         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
5387
5388 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5389
5390         * Control.cs: Use long instead of int when handling WParam from
5391         mousewheel scrolling.  Int was overflowing on Win64.
5392
5393 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5394
5395         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
5396         flow panel without scrolling first, and then calculate the 
5397         scrolling based on the new layout.  [Fixes bug #390149]
5398
5399 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5400
5401         * ListBox.cs: Invalidate after scrolling up when selected index
5402         changes.  [Fixes bug #390151]
5403
5404 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5405
5406         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
5407         set, default height to 150. I tried first with DefaultSize, but this
5408         is not generating a SetBoundsCore call before handle creation time, so
5409         we can take it into account. This is just what .net does.
5410
5411 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
5412
5413         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
5414         as it broke some stuff.  Calberto is filing a bug for eno to
5415         work with.
5416
5417 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5418
5419         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
5420         to 0 is the current value is -1, and if style is not Simple, just
5421         return, like .net does.
5422         Fixes part of #374713.
5423
5424 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
5425
5426         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
5427         progress bar stuffs, use doubles instead of ints to prevent
5428         overflow.  [Fixes bug #389798]
5429
5430 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
5431
5432         * XplatUIX11.cs, X11Keyboard.cs :
5433           Significant refactoring on XIM support. Now IM engine UI
5434           should show up, at mostly-correct preedit position.
5435           - Eliminated use of FocusWindow, as it is never mapped
5436             and hence blocks correct preedit position. XIC is now
5437             created per window, and it must be destroyed too when
5438             the window is destroyed.
5439           - WM_QUIT messages should not be filtered even when hwnd
5440             is zombie. Filtering it could cause endless loop.
5441           - Preedit position must move only when the window is alive.
5442           - Make it IDisposable and make sure to release XIM/XICs.
5443
5444 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
5445
5446         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
5447           XplatUIX11.cs, XplatUIWin32.cs :
5448           fix for bug #325033 and #387693;
5449           - WM_QUIT should not be sent when no running application
5450             exists.
5451           - SetTimer/KillTimer (especially on win32) should be
5452             invoked for the window that the timer is/will_be attached.
5453           - There could be unattached timers to a window when it's
5454             started. For those timers, hold pending timers and when
5455             a window is mapped, attach them to it.
5456           - WaitForHwndMessage() could run into loop when
5457             WM_SHOWWINDOW is handled before this method is called.
5458             So, strictly check wm_showwindow state.
5459           - Tick handler should not be invoked while one Tick handler
5460             call is still running (introduced Busy state).
5461
5462 2008-05-13  Andreia Gaita <avidigal@novell.com> 
5463
5464         * WebBrowserBase.cs: Override Internal alternative methods for
5465           SetBoundsCore and OnResize instead of the protected ones.
5466         * Control.cs: Move SetBoundsCore and OnResize implementations to
5467           SetBoundsCoreInternal and OnResizeInternal, so they can be
5468           overriden internally (WebBrowserBase needs to catch them but can't
5469           override the protected methods without api compat problems)
5470
5471 2008-05-13  Andreia Gaita <avidigal@novell.com> 
5472
5473         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
5474
5475 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5476
5477         * Binding.cs:
5478         * ListView.cs: Remove debug messages.
5479
5480 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5481
5482         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
5483         area is empty. Also calculate scrollbars in Simple mode based in area
5484         height and total number of items, not in MaxDropDownItems.
5485         Fixes part of #371991.
5486
5487 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5488
5489         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
5490
5491 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5492
5493         * BindingSource.cs: GetListSortDescription is not public.
5494
5495 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5496
5497         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
5498
5499 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5500
5501         * HtmlElement.cs: Fix parameter names to match MS.
5502         * HtmlWindowCollection.cs: Should not be sealed.
5503
5504 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5505
5506         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
5507         button, because the thumb button will not get drawn if the scrollbar
5508         is disabled.  [Fixes bug #389262]
5509
5510 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5511
5512         * ListBox.cs: Handle End key for multi-column listboxen.
5513         [Fixes bug #389266]
5514
5515 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5516
5517         * ListBox.cs: Fix algorithm to determine which column our item is in.
5518         [Fixes bug #389265]
5519
5520 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5521
5522         * ListBox.cs: Invalidate when the listbox is resized.
5523         [Fixes bug #389256]
5524
5525 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5526
5527         * ListBox.cs: There is always at least one row in the ListBox (if
5528         we are doing these calculations.)  [Fixes bug #389253]
5529
5530 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5531
5532         * ListBox.cs: There is always at least one column in the ListBox.
5533         [Fixes bug #389250]
5534
5535 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5536
5537         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
5538         ensure in Simple mode that the height is exactly the requested one.
5539         Also add the ComboBoxListControl to the controls collection in Simple
5540         mode even if handle hasn't been created.
5541         Fixes part of #371991.
5542
5543 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5544
5545         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
5546         our ComboBox owner instead of giving it back to the previous control (
5547         as done in other controls). Also remove the empty override of Select
5548         method, since we want to be selected *and* give focus to our owner.
5549         This should let the user do keys-navigation in Simple mode. 
5550
5551 2008-05-10  Geoff Norton  <gnorton@novell.com>
5552
5553         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
5554         problems with rapid scrolling of treeviews. Fixes #381084
5555
5556 2008-05-10  Geoff Norton  <gnorton@novell.com>
5557
5558         * XplatUICarbon.cs: Deactivate the active window before
5559         activating the desired window.  Completes fixing #386504
5560
5561 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5562
5563         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
5564         SmallChange to the item size width plus the padding, to match .net.
5565
5566 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5567
5568         * FileDialog.cs: Apply the custom filter typed by the user in the file
5569         name combobox as much as possible while navigating in the file dialog.
5570         Fixes #385261.
5571
5572 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5573
5574         * Binding.cs: Actually use NullValue if the retrieved value of
5575         data source is null or DBNull. Makes a test pass.
5576
5577 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
5578
5579         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
5580         * MimeIcon.cs: Provide a way to get icons from resources.
5581
5582 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5583
5584         * Binding.cs: When the value retrieved from the control to be assigned
5585         to the data source is null, actually use the 2.0 DataSourceNullValue
5586         value. Make pass a data binding test.
5587
5588 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5589
5590         * Control.cs: We need to invalidate implicit children even when
5591         invalidate is called with invalidatechildren = false.  (Implicit
5592         children are really part of the parent.)
5593         * ListView.cs: Double-buffer internal child controls for less
5594         flicker.
5595         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
5596         owner ListView subitems for greatly increased performance.
5597         [Fixes bug #388477]
5598
5599 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
5600
5601         * FileDialog.cs: When the user types a wildcard character in the
5602         filename combobox, update the contents of the folder using the text as
5603         a filter.
5604         Fixes part of #385261.
5605
5606 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5607
5608         * ListBox.cs: Various fixes for MultiColumn listboxen.
5609         [Fixes bug #388114]
5610
5611 2008-05-08  Andreia Gaita <avidigal@novell.com> 
5612
5613         * HtmlElement.cs: Implement Style property
5614
5615 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5616
5617         * ListBox.cs: Respect checkboxes when measuring item size.
5618         * ThemeWin32Classis.cs: When drawing list items, don't draw
5619         text outside of the item's bounds to prevent overlapping.
5620         (.Net actually overlaps, but that's just silly.)
5621         [Fixes bug #388117]
5622
5623 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
5624
5625         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
5626         Gert Driesen. Fixes bug #324830. 
5627
5628 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
5629
5630         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
5631         method implemented.
5632
5633 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5634
5635         * BindingSource.cs: When calling IsSynchronized, return the value of
5636         the related IList list.
5637
5638 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5639
5640         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
5641         make a test pass.
5642
5643 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
5644
5645         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
5646         navigation to scroll the grid if the current cell is not visible.
5647
5648 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5649
5650         * HtmlElement.cs: Implement TabIndex
5651
5652 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
5653
5654         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
5655         properties, even when there are no items.
5656         [Fixes bug #387611]
5657
5658 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
5659
5660         * NativeWindow.cs: Add support for multiple handles per window.
5661         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
5662         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
5663         directly - use FromHandle instead.
5664         [Fixes bug #374660]
5665
5666 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5667
5668         * HtmlElement.cs: Implement InnerHTML setter
5669
5670 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5671
5672         * HtmlDocument.cs: Implement Focused
5673
5674 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5675
5676         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
5677         methods, as well as add messages to the exceptions.
5678
5679 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5680
5681         * BindingSource.cs: Setting DataSource should only reset DataMember if
5682         the previous value was null (make pass a not working test).
5683
5684 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5685
5686         * BindingSource.cs: When EndInit call is postponed and is called until
5687         DataSource.EndInit is called, remove the handler for data source.
5688
5689 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5690
5691         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
5692
5693 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5694
5695         * ToolStripManager.cs: Store references to toolstrips as
5696         weak references so they do not prevent forms from getting collected.
5697         [Fixes bug #386483]
5698
5699 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5700
5701         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
5702         on .Net.  So do the same thing in WndProc.
5703
5704 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5705
5706         * TrackBar.cs: Commit patch from Andy Hume that corrects
5707         the clickable areas to better match .Net.
5708         [Fixes bug #387074]
5709
5710 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5711
5712         * TrackBar.cs: Commit patch from Andy Hume that adds the
5713         ResizeRedraw control flag so the track bar repaints itself
5714         when it is resized.  [Fixes bug #387072]
5715
5716 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5717
5718         * TrackBar.cs: Commit patch from Andy Hume that adds better
5719         support for keyboard navigation when the TrackBar is vertical.
5720         [Fixes bug #387071]
5721
5722 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5723
5724         * BindingSource.cs: Implement ISupportInitializeNotification support.
5725
5726 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
5727
5728         * ThemeVisualStyles.cs: Added support for ToolBar.
5729
5730 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
5731
5732         * ToolBar.cs: Made the Vertical property internal.
5733
5734 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5735
5736         * ThemeVisualStyles.cs: Added support for TrackBar.
5737
5738 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5739
5740         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
5741         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
5742         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
5743         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
5744         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
5745         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
5746
5747 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5748
5749         * ThemeVisualStyles.cs: Added support for UpDownBase.
5750
5751 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5752
5753         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
5754         Extracted Theme.UpDownBaseDrawButton.
5755
5756 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
5757
5758         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
5759         removed from the static toolstrips collection in ToolStripManager
5760         when they are disposed.  Provides a workaround for bug #386483.
5761
5762 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
5763
5764         * GridEntry.cs: Read-only properties with Editor with 
5765         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
5766         [Fixes bug #384184]
5767
5768 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
5769
5770         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
5771         the menu key and there are no items on the menu.
5772         [Fixes bug #386644]
5773
5774 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
5775
5776         * Control.cs: Avoid calling ToString on a string.
5777         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
5778         * GroupBox.cs: In FlatStyle property throw, not just create, the 
5779         exception. Avoid calling ToString on a string.
5780         * ProgressBar.cs: Avoid calling ToString on a string. 
5781         * ScrollBar.cs: Avoid calling ToString on a string. 
5782         [All issues were found using Gendarme]
5783
5784 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
5785
5786         * NotifyIcon.cs: Prevent click events to be trigger after double click 
5787         events. Fixes remaining issues of bug #324832.
5788
5789 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
5790
5791         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
5792         to mimic win32 behavior. Partially fixes bug #324832.
5793
5794 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5795
5796         * BindingSource.cs: Implement Find methods.
5797
5798 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5799
5800         * BindingSource.cs: Implement Sort, ApplySort overloads, and
5801         RemoveSort methods.
5802
5803 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5804
5805         * ListBindingHelper.cs: When calling GetListItemProperties and the
5806         passed object is ITypedList, return the result of
5807         ITypedList.GetItemProperties instead.
5808
5809 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5810
5811         * LinkLabel.cs: Set default value of name on constructor of Link class
5812         only for 2.0 profile.
5813
5814 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5815
5816         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
5817         Fixes remaining issues of bug #346154.
5818
5819 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5820
5821         * LinkLabel.cs: Set a default value for name on internal contructor of
5822         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
5823
5824 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5825
5826         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
5827         and refer all instances to owner.links. Partially fixes #346154.
5828
5829 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5830
5831         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
5832         length equal zero. Also called CreateLinkPieces in constructor. It fixes
5833         the LinkLabel test 'TestLinkArea'.
5834
5835 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5836
5837         * Form.cs: Remove menu before close form to prevent form to be not gaced.
5838         [Fixes #386460]
5839
5840 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5841
5842         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
5843         [Fixes #386463]
5844
5845 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5846
5847         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
5848         [Fixed bug #357004]
5849
5850 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5851
5852         * MenuAPI.cs: Remove unused ProcessCmdKey method.
5853
5854 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5855
5856         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
5857         [Fixes bug #375398]
5858
5859 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5860
5861         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
5862         of bug #367492.
5863
5864 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5865
5866         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
5867         sometimes we open a conext menu on mouse down of some controls and the mouse
5868         up is dispatched to menu and dont need to. It fix remaining issues of 
5869         #363711 and other problems related to menu mouse click events.
5870
5871 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5872
5873         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
5874         some var names to better fit changes, now we have month_menu and today_menu
5875         vars. Fixes bug #363711.
5876
5877 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5878
5879         * MonthCalendar.cs: Handle every right mouse click to open context menu,
5880         right now the default month menu but it will be change to have "Go to today"
5881         menu.
5882
5883 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5884
5885         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
5886
5887 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5888
5889         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
5890
5891 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5892
5893         * ThemeVisualStyles.cs: Added support for TreeView.
5894
5895 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5896
5897         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
5898         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
5899
5900 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5901
5902         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
5903
5904 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5905
5906         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
5907         Implement 2.0 SP1 stuffs.
5908
5909 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5910
5911         * FileDialog.cs: Implement 2.0 SP1 stuffs.
5912
5913 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5914
5915         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
5916         Implement CanEnableIme property. (2.0 SP1)
5917
5918 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5919
5920         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
5921         from the 2.0 API.
5922
5923 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5924
5925         * Control.cs: Provide an internal way for a control to override
5926         the setting of Height.
5927         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
5928         set height using new method.
5929
5930 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5931
5932         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
5933
5934 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5935
5936         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5937         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
5938
5939 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5940
5941         * ThemeVisualStyles.cs: Added support for StatusBar.
5942
5943 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5944
5945         * DataObject.cs: Add the other IDataObject interface.
5946
5947 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5948
5949         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
5950         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
5951
5952 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5953
5954         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
5955         * ListView.cs: Hide non-public API.
5956         * MaskedTextBox.cs: Remove extra attribute.
5957
5958 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5959
5960         * DataGridViewImageCell.cs: Use formatted value instead of value
5961         to calculate preferred size.
5962
5963 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5964
5965         * ListBox.cs: Move some initialization around so that selected_indices
5966         is not accessed before it is created.
5967
5968 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5969
5970         * InputLanguageCollection.cs: Implement the collection better.
5971         [Fixes bug #385506]
5972
5973 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5974
5975         * ToolStripDropDownItem.cs: Get the correct event object for
5976         DropDownItemClicked.
5977         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
5978         [Fixes bug #385475]
5979
5980 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5981
5982         * DataGridViewRowCollection.cs: We don't currently support shared 
5983         rows.  Should fix test failures caused by previous commit.
5984
5985 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5986
5987         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
5988         datagridview gets set.  Only paint cells in visible columns.
5989         * DataGridViewCell.cs: Draw border after cell content.
5990         * DataGridView.cs: Invalidate after setting some properties.  Only
5991         use visible columns.  Fit hit test bug with areas in the col/row header
5992         area but not in a row or col.  Implement UpdateCell/Row methods.
5993
5994 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5995
5996         * DataGridViewElement.cs: Don't throw NIEX.
5997         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
5998         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
5999         * DataGridViewCheckBoxColumn.cs: Implement ToString.
6000         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
6001         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
6002         if the user filled in the formatting Value, use it.
6003
6004 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
6005
6006         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
6007         to a string.
6008
6009 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6010
6011         * BindingSource.cs: Some corrections to Filter property, as well as
6012         setting it for our list when resetting it.
6013
6014 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
6015
6016         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
6017         than the maximum.  Fixes reopened bug #384182.
6018
6019 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6020
6021         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
6022         Fixes remaining issues of #367490.
6023
6024 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6025
6026         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
6027         SystemInformation.WorkingArea to get max_screen value.
6028
6029 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6030
6031         * BindingSource.cs: Implement Filter and RemoveFilter.
6032
6033 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6034
6035         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
6036
6037 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6038
6039         * X11Dnd.cs: When trying to convert data and we know we started the
6040         dnd loop, don't try to use the cached data if the loop is not running,
6041         which means that the data has been resetted.
6042         Fixes #378191.
6043
6044 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6045
6046         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
6047         win32 behavior.
6048
6049 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6050
6051         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
6052         it to drawn off screen edge. Fixes bug #367490.
6053
6054 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6055
6056         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
6057         menu position to have only one assignment of Location var.
6058
6059 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6060
6061         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
6062         for this patch. Fixes bug #384115.
6063
6064 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6065
6066         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
6067         the same.  If LargeChange is zero, set a minimum size for the scroll
6068         thumb grip.  [Fixes bug #384182]
6069
6070 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6071
6072         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
6073         [Fixes bug #384181]
6074
6075 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6076
6077         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
6078
6079 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6080
6081         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
6082         patch from Ernesto).
6083
6084 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6085
6086         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
6087
6088 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6089
6090         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
6091
6092 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6093
6094         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
6095
6096 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6097
6098         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
6099
6100 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
6101
6102         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
6103
6104 2008-04-27  Andreia Gaita <avidigal@novell.com> 
6105
6106         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
6107           supposed to return a reference to an mshtml interface, which we
6108           don't support).
6109         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
6110           reference to an mshtml interface, which we don't support). Code
6111           formatting cleanup.
6112         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
6113           DomDocument getter (it's supposed to return a reference to an
6114           mshtml interface, which we don't support). Code formatting cleanup.
6115
6116 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6117
6118         * ListView.cs: Ouch, forgot to commit.
6119
6120 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6121
6122         * ListView.cs: 
6123         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
6124
6125 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6126
6127         * ListView.cs: When calculating box selection for virtual mode, don't
6128         look for intersection with item's text, but item bounds, since that
6129         would mean read ListViewItem's text for _every_ item, and that's
6130         something we just can't do in virtual mode (items are only requested
6131         when drawn).
6132
6133 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
6134
6135         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
6136         partial support for managed windows (based on the patch from Ernesto).
6137
6138 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6139
6140         * ListView.cs: When doing a key search use FindItemWithText method
6141         instead of doing the search by ourselves, this way we avoid
6142         duplicating the code and also we handle the special case for virtual
6143         mode. To achieve that make our private overload of FindItemWithText
6144         internal and also have a 'roundtrip' parameter.
6145
6146 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6147
6148         * ListView.cs: When doing the layout don't request the
6149         ListViewItem instance if we are in virtual mode (since we can't request it
6150         until the item is actully drawn).
6151
6152 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6153
6154         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
6155         from Ernesto).
6156
6157 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6158
6159         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
6160         the patch from Ernesto).
6161
6162 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6163
6164         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
6165         * ThemeVisualStyles.cs: Added.
6166
6167 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6168
6169         * IDeviceContext.cs: Added a missing using.
6170
6171 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6172
6173         * ButtonBase.cs: Made IsDefault protected internal.
6174         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
6175
6176 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6177
6178         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
6179         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
6180         RadioButtonRenderer.cs: Included in the 1.1 profile.
6181         * IDeviceContext.cs: Added.
6182         * TextRenderer.cs: Included a member in the 1.1 profile.
6183
6184 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6185
6186         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
6187
6188 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6189
6190         * ErrorProvider.cs: Make the error icons come after the control
6191         they refer to.  It isn't the way the MS does it, but its better
6192         than what we were doing.  See bug #368587.
6193
6194 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6195
6196         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
6197         from Eric Albright that lazy loads the input language as ensures
6198         everything gets properly initialized.  Fixes bug #373871.
6199
6200 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6201
6202         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
6203         implicit mnemonics.  [Fixes bug #383000]
6204
6205 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6206
6207         * X11Dnd.cs: When canceling the operation, automatically restore the
6208         default cursor - normally the default cursor is restored when the
6209         mouse buttons are released, but we should be able to restore it even
6210         if the buttons are still pressed (for example, when pressing ESC to
6211         cancel).
6212         Fixes #381894.
6213
6214 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6215
6216         * X11Dnd.cs: When starting a new drad and drop operation, set control
6217         field to null, just as the other fields, to avoid calling any
6218         operation on a previous control. Also, when calling DndLeave on a
6219         control, set it to null, thus we don't fire that event multiple times
6220         for that control.
6221         Fixes #209264.
6222
6223 2008-04-23  Geoff Norton  <gnorton@novell.com>
6224
6225         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
6226         the whole_window object.  Fixes #377084.
6227
6228 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6229
6230         * HtmlElement.cs: Implement RaiseEvent (event injection into the
6231           embedded browser)
6232
6233 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
6234
6235         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
6236
6237 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6238
6239         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
6240           invocation
6241
6242 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6243
6244         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
6245           attaching/detaching
6246
6247 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6248
6249         * X11Dnd.cs: When the drop was cancelled, or could just not be
6250         performed, return DragDropEffect.None always (match .net).
6251
6252 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6253
6254         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
6255
6256 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6257
6258         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
6259
6260 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6261
6262         * DataGridView.cs: Add support for error icon tool tips.
6263         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
6264         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
6265
6266 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
6267
6268         * X11Structs.cs: Add mouse button masks enum.
6269         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
6270         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
6271         form resize/move operation instead of for each step of it.
6272         [Fixes bug #346529 for the x11 backend]
6273
6274 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6275
6276         * DataGridView*: Implement support for drawing error icons.
6277
6278 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6279
6280         * TreeView.cs: Make vbar and hbar internal.
6281         * TreeNode.cs: If collapsing the node removes one of the TreeView's
6282         scrollbars, invalidate the whole thing.
6283         [Fixes bug #382001]
6284
6285 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6286
6287         * TreeView.cs: Calling Sort() sets Sorted = true.
6288         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
6289         if the nodes need to be sorted.
6290         [Fixes bug #382028]
6291
6292 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
6293
6294         * Form.cs: Fire SizeChanged for both when the form is minimized and 
6295         restored.
6296         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
6297         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
6298
6299 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6300
6301         * ComboBox.cs: If the combobox is disabled, draw a disabled
6302         background before painting anything else.
6303         [Fixes bug #381729]
6304
6305 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6306
6307         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
6308         forget to send a Leave event to the target window - just as .net does
6309         when cancelling dnd operations.
6310
6311 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6312
6313         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
6314         soon as possible - this happens when we send the drop message to the
6315         target window. This way we avoid firing any DragOver _after_ drop finished.
6316         Fixes #378179.
6317
6318 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6319
6320         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
6321         * Form.cs: Handle form minimization as a special state, where size doesn't 
6322         change, but we have to fire SizeChanged.
6323         [Fixes bug #325122 for the win32 and x11 backends]
6324
6325 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6326
6327         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
6328         if the handle is disabled.
6329         [Fixes bug #371751]
6330
6331 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6332
6333         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
6334         for forms with FormBorderStyle.None.
6335         [Fixes bug #349571]
6336
6337 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6338
6339         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
6340         WM_EXITSIZEMOVE.
6341         [Fixes bug #346529 for the X11 backend]
6342
6343 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6344
6345         * XplatUIX11.cs: 
6346           - Send a mouse Enter message after say dragging the mouse with a 
6347           button down and then release it in another client.
6348           - Reset the cursor to prevent X11 from remembering it and setting it 
6349           before the control gets WM_SETCURSOR.
6350           - Qeueue a mouse move after a mouse enter like win32.
6351           [Fixes bug #323234]
6352
6353 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6354
6355         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
6356         It's sent when the form gets moved, resized, closed.
6357         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
6358         [Fixes bug #359193 for X11]
6359
6360 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6361
6362         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
6363         the build.
6364
6365 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6366
6367         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
6368         group. Fixes the 1.1 build.
6369
6370 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6371
6372         * ListView.cs: Use display indexes for selection in Details view, as
6373         well as do the proper layout based on display indexes for that view
6374         too.
6375
6376 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6377
6378         * ListView.cs: Focused item information is now stored as a display
6379         index, and display indexes are used all over the place for selection,
6380         instead of ListViewItem.Index values, which doesn't give us enough
6381         information to modify the selection in groups mode, and was broken.
6382
6383 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
6384
6385         * Control.cs: Do not fire MouseDown if validation of the control has 
6386         failed.
6387         * Form.cs: Validate the form before closing.
6388         [Fixes bugs #330501 and #353310]
6389
6390 2008-04-18  Andreia Gaita <avidigal@novell.com> 
6391
6392         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
6393           CreateWebBrowserSiteBase implementations
6394         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
6395           Style and TabIndex setters
6396
6397 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6398
6399         * ListViewGroup.cs: When returning the actual item count, return the
6400         proper count for default group.
6401         Fix the tests.
6402
6403 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6404
6405         * ListView.cs:
6406         * ListViewGroup.cs: When calculating groups layout, get the actual
6407         number of items per group, since groups added to the group BUT not
6408         added to the ListView are just ignored, and can cause some nasty
6409         exceptions because of the lack of synchronization. Also for
6410         ListViewGroup don't use lazy initialization for items, since we 
6411         the common scenario is to use it always - and it helps us to  refactor
6412         and clean the .ctor overloads.
6413
6414 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6415
6416         * ListView.cs: When adding an item to a ListViewItemCollection
6417         belonging to a group (ListViewGroup.Items), don't generate a redraw if
6418         the added item hasn't beeen previously added to the ListView instance
6419         refered by the group, since it will be ignored. This should avoid some 
6420         really nasty flickering.
6421
6422 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6423
6424         * ListView.cs: When accessing an item in a specific display
6425         position, use the helper method GetItemAtDisplayIndex, instead of
6426         direct access to the reordered_items_indices array. When doing layout
6427         for groups set the correct Items index for the display position (since
6428         in groups mode items don't have the same position as in Items
6429         collection).
6430         * ListViewGroup.cs: Add a field to store the starting item number,
6431         which is later used when calculating the layout.
6432
6433         Fixes #360805.
6434
6435 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
6436
6437         * Application.cs: Fixed ProductVersion to fallback to the assembly
6438         version. Fixes regression for bug #325413.
6439
6440 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6441
6442         * ListView.cs: New helper method to retrieve an item in a _specific
6443         display_ position (the items can be displayed in a different order
6444         than one of Items collection).
6445         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
6446         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
6447         specific display position (again remember that items can be sorted
6448         different than Items).
6449
6450 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6451
6452         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
6453         list and update it when the collection changes.  We were recreating
6454         this several times per row paint and for every pixel the mouse moved
6455         across the grid.
6456         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
6457         changes.
6458
6459 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6460
6461         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
6462         list to use generics.
6463         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
6464         and remove unneccessay casts.
6465
6466 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6467
6468         * DataGridViewBand.cs: Add internal way to set displayed variable.
6469         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
6470         * DataGridView.cs: Make sure we always keep track of Displayed
6471         rows and columns, and only draw things that are displayed.
6472
6473 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
6474
6475         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
6476           whether the key events are filtered or not. Introduced
6477           PreFilter() process for this purpose. This fixes atokx3/iiimx
6478           shift state issue.
6479
6480 2008-04-16  Andreia Gaita <avidigal@novell.com> 
6481
6482         * HtmlHistory.cs: Implement Length property
6483
6484 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
6485
6486         * DataGridView.cs: Call EndEdit when a sort is performed so we take
6487         away the edit textbox.  Refactor to reuse column sort code.
6488
6489 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
6490
6491         * MenuAPI.cs: Remove the code that save and restore capture status of 
6492         grab_control, this fixes some Menu and Context menu bugs but maybe it can
6493         cause some others, I cant figure the possible problems of this patch but
6494         right now remove the code looks to be better than keep it. This patch fixes
6495         bugs #357638, #378721 and #379570.
6496
6497 2008-04-12  Andreia Gaita <avidigal@novell.com> 
6498
6499         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
6500         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
6501         add missing properties and event handlers.
6502         
6503 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
6504
6505         * ListBox.cs: Make sure the LargeChange we are setting is at least
6506         zero, to prevent an IOORE.  [Fixes bug #379531]
6507
6508 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
6509
6510         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
6511         in DropDownList mode, for each key-press select the next item 
6512         starting with that letter.
6513         For other modes, when no item selected, on arrow-up/-down and open 
6514         drop-down select the first item matching the text in the textbox.
6515
6516 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
6517
6518         * X11Keyboard.cs : Control.FromHandle() could return null
6519           in MoveCurrentCaretPos().
6520
6521 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6522
6523         * ListView.cs: When changing the size in VirtualMode, also Reset the
6524         selection.
6525         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
6526         changing selection info for VirtualMode.
6527         Fixes #372618.
6528
6529 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6530
6531         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
6532         view, don't use LineLimit for the first item - use NoWrap *always*
6533         instead, since ListView.LabelWrap is not used for this view.
6534         Fixes #378054.
6535
6536 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6537
6538         * Binding.cs: Call UpdateIsBinding when setting control - probably
6539         Binding is already usable and we don't need to wait to check the
6540         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
6541         Created, just like 2.0 does.
6542         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
6543
6544 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6545
6546         * Binding.cs: Just realized we don't need to have a handler for
6547         BindingContextChanged, since this info should be now consumed directly
6548         in the BindingManagerBase. And also, the manager.IsBindingSuspended
6549         state info is checked directly, instead of caching it.
6550
6551         * CurrencyManager.cs: IsSuspended should return always false if Count
6552         == 0.
6553
6554 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6555
6556         * Binding.cs: When calling PushData, return if manager.Count == 0,
6557         since we just don't have data to be read. Also, when setting the
6558         Control for binding, hook up some events to refresh the IsBinding
6559         state when BindingContext change or control gets created; use
6560         Control.IsHandleCreated instead of Control.Created check to set
6561         IsBinding state - we *actually* need to modify IsBinding when control
6562         is created, but we don't have any Created event, only HandleCreated.
6563         Fixes part of #349364.
6564
6565 2008-04-11  Geoff Norton  <gnorton@novell.com>
6566
6567         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
6568         warping a null Caret.
6569
6570 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6571
6572         * DataGridView.cs: Implement row/column autosizing methods. Implement
6573         autosorting.
6574         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
6575         * DataGridViewRowCollection.cs: Add an internal sorting method.
6576
6577 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6578
6579         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
6580         value in ListView drawing code.
6581
6582 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6583
6584         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
6585         is clicked.  Respect the user setting Cancel in FileOk.
6586
6587 2008-04-11  Geoff Norton  <gnorton@novell.com>
6588
6589         * ListView.cs: Avoid setting and resetting control Width/Heights and
6590         calculate the final value and set it once.  Prevents a feedback loop
6591         on the mac.
6592
6593 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6594
6595         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
6596         [Fixes bug #378869]
6597
6598 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
6599
6600         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
6601           Add some on-the-spot code, but it seems we don't need it.
6602
6603 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6604
6605         * Form.cs: Add method for DataGridView to trigger focus cues
6606         even when it handles the tab keypress.
6607
6608 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6609
6610         * DataGridView.cs: More keyboard handling, tab, esc.
6611         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
6612         when at the beginning or end of the text in the text box.
6613
6614 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6615
6616         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
6617
6618 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6619
6620         * DataGridView.cs: Some fixups for showing and adding the edit control.
6621         * DataGridViewButtonColumn.cs: Implement ToString.
6622         * DataGridViewCell.cs: Size and position the control simultaneously.
6623         * DataGridViewTextBoxCell.cs: Use base to position control.
6624
6625 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6626
6627         * DataGridViewCell.cs: Fix up some formatting and painting code.
6628         * DataGridViewImageCell.cs: Implement some NIEX methods.
6629
6630 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6631
6632         * ToolStripItemCollection.cs: What moving an item from one owner
6633         to another, remove from source owner before adding to destination.
6634         [Fixes bug #378109]
6635
6636 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6637
6638         * PictureBox.cs: Call Load when ImageLocation is set.
6639         [Fixes bug #378308]
6640
6641 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
6642
6643         * X11Keyboard.cs, XplatUIX11.cs :
6644           Implement over-the-spot mode (with some odd offsets).
6645           - set preedit position when caret is set.
6646           - Wrap XMoveResizeWindow() to move preedit position.
6647
6648 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6649
6650         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
6651         array lenght.
6652
6653 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6654
6655         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
6656         and ScanTableIndex public, it fix compilations errors when compiling
6657         WinForms to generate keyboard layout resources.
6658
6659 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6660
6661         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
6662         different element count than scan table. It prevents some errors in non
6663         standard keyboards.
6664
6665 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
6666
6667         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
6668
6669 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
6670
6671         * DataGridView.cs: Call OnContentClick.
6672         * DataGridViewCell.cs: Do a null check on ValueType instead
6673         of valueType.
6674         * DataGridViewCheckBoxCell.cs: Implement.
6675
6676 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6677
6678         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
6679
6680 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6681
6682         * X11Keyboard.cs : Check XGetIMValues() return value in
6683           case it does not return input styles in some environment.
6684
6685 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6686
6687         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
6688
6689 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6690
6691         * BindingContext.cs: Stub UpdateBinding method.
6692
6693 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
6694
6695         * X11Structs.cs : added couple of structs for XIM support.
6696         * X11Keyboard.cs :
6697           Release XIM in case it failed to create XIC. 
6698           Use consts for XNblah string.
6699           Add support for IM style customization and XIC creation
6700           for preedit-position and preedit-callback.
6701           Right now use MONO_WINFORMS_XIM_STYLE environment variable
6702           (list of: over-the-spot | on-the-spot | root). Only root
6703           mode works so far.
6704
6705           (redoing r99172 with fix.)
6706
6707 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6708
6709         * TreeView.cs: Center the checkbox a little better.
6710
6711 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6712
6713         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
6714         Apply very nice patch from Ernesto Carrea that simplifies our
6715         scrollbar drawing.  [From bug #376146]
6716
6717 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6718
6719         * TreeView.cs: Correct the location of the root node checkbox when
6720         ShowRootLines = false.  Don't draw the root lines for the root node
6721         when ShowRootLines = false.  [Fixes bug #377535]
6722
6723 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
6724
6725         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
6726         Fixed line endings.
6727         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
6728         line endings.
6729         * MaskedTextBox.cs: Added missing attribute. Code formatting.
6730         * PageSetupDialog.cs: Added missing attribute. Code formatting.
6731         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
6732         * ImeMode.cs: Added missing field.
6733         * HtmlWindow.cs: Code formatting. Fixed line endings.
6734         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
6735         warnings.
6736         * HtmlHistory.cs: Code formatting. Fixed line endings.
6737         * HtmlDocument.cs: Code formatting. Fixed line endings.
6738         * ToolStripPanel.cs: Added missing IList implementation.
6739         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
6740
6741 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
6742
6743         * BindingContext.cs: Changed argument names to fix corcompare errors.
6744         * DataGridView.cs: Removed extra explicit interface implementation
6745         of IDropTarget. Code formatting.
6746         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
6747         * ComboBox.cs: Changed argument names to fix corcompare errors.
6748         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
6749         errors.
6750         * GridColumnStylesCollection.cs: Changed argument names to fix
6751         corcompare errors. Removed extra tabs.
6752         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
6753         errors.
6754         * Control.cs: Changed argument names to fix corcompare errors. Code
6755         formatting. Removed extra explicit IList implementation.
6756         * TextBox.cs: Changed argument names to fix corcompare errors. Code
6757         formatting. Use string.Empty instead of "".
6758         * GridItemCollection.cs: Changed argument names to fix corcompare
6759         errors. Code formatting.
6760         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
6761         corcompare errors. Code formatting.
6762         * ImageList.cs: Changed argument names to fix corcompare errors.
6763         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
6764         * DataGridViewRowCollection.cs: Changed argument names to fix
6765         corcompare errors. Code formatting.
6766         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
6767         * DataGridViewSelectedCellCollection.cs: Changed argument names to
6768         fix corcompare errors. Code formatting.
6769         * DataGridViewComboBoxCell.cs: Changed argument names to fix
6770         corcompare errors. Code formatting.
6771         * LinkLabel.cs: Changed argument names to fix corcompare errors.
6772         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
6773         formatting.
6774         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
6775         Code formatting.
6776         * BindingSource.cs: Changed argument names to fix corcompare errors.
6777         Removed extra explicit interface implementations.
6778         * DataGridViewSelectedRowCollection.cs: Changed argument names to
6779         fix corcompare errors. Code formatting.
6780         * ToolStripItemCollection.cs: Removed extra explicit interface
6781         implementation of IList.ReadOnly.
6782         * DataGridViewColumnCollection.cs: Changed argument names to fix
6783         corcompare errors. Code formatting.
6784         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
6785         * ListView.cs:  Changed argument names to fix corcompare errors.
6786         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
6787         errors.
6788         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
6789         errors.
6790         * ListBindingHelper.cs: Changed argument names to fix corcompare
6791         errors.
6792         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
6793         fix corcompare errors. Code formatting.
6794         * ToolStripPanel.cs: Removed extra explicit implementation of
6795         IDropTarget interface.
6796         * ListBox.cs: Changed argument names to fix corcompare errors. Code
6797         formatting. Removed extra tabs and spaces.
6798         * DataGridViewCellCollection.cs: Changed argument names to fix
6799         corcompare errors.
6800         * Help.cs: Changed argument names to fix corcompare errors. Code
6801         formatting.
6802         * TabControl.cs: Changed argument names to fix corcompare errors.
6803         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
6804         errors.
6805         * TableLayoutSettings.cs: Changed argument names to fix corcompare
6806         errors.
6807
6808 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6809
6810         * ListBindingHelper.cs: When returning properties, only return those
6811         that are browsable. Also, don't do a linear search of the properties,
6812         but use the indexer of the PropertyDescriptorCollection class.
6813
6814 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6815
6816         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
6817         Dictionary containing the related (child) currency managers. Also,
6818         when setting DataSource, add datasource to our List if it is not a list.
6819
6820 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6821
6822         * PropertyGridTextBox.cs: Fix background color of the buttons.
6823         * PropertyGridView.cs: Make the entry less jumpy.
6824
6825 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6826
6827         * PropertyGrid.cs: Fix unused variable warnings.
6828
6829 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6830
6831         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
6832         double-click. It expanded it once in the mouse down and then 
6833         again in the double-click handler.
6834
6835 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6836         
6837         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
6838         TypeConverter and UITypeEditors.
6839
6840 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6841
6842         * Control.cs: Visibility should be set synchronously, 
6843         so we must also redraw once it is and not rely on layouting or 
6844         other code to repaint.
6845         [Fixes bug #339898]
6846
6847 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
6848
6849         * DataGridViewCell.cs: Respect DataGridView.GridColor.
6850
6851 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6852
6853         * Control.cs: Invalidate when the alpha channel is less than 255,
6854         not only when control is transparent.
6855
6856 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6857
6858         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
6859         Implement some painting convenience methods that threw NIEX.
6860
6861 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6862
6863         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
6864         * DataGridViewLinkCell.cs: Implement.
6865
6866 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
6867
6868         * GridEntry.cs: Report the conversion exception error description.
6869         [Fixes bug #375792]
6870
6871 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
6872
6873         * PropertyGridView.cs: Do not scroll to item on resize.
6874         [Fixes bug #375789]
6875
6876 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6877
6878         * BindingContext.cs: When retrieving a BindingManagerBase, if the
6879         dataSource parameter is ICurrencyManagerProvider, then return
6880         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
6881         instead of creating a new one.
6882
6883 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6884
6885         * BindingSource.cs: Implement support for Type instances as
6886         DataSource.
6887
6888 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
6889
6890         * DataGridView.cs: Minor cleanups and call CellMouseUp.
6891         * DataGridViewCell.cs: Make some painting routines internally virtual.
6892         * DataGridViewButtonCell.cs: Implement.
6893
6894 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
6895
6896         * Control.cs: We always need to invalidate our children with
6897         transparent backgrounds when we are invalidated.
6898         [Fixes bug #376081]
6899
6900 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6901
6902         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
6903         and CancelCurrentEdit on CurrencyManager respectively. Implement
6904         support for ICancelAddNew too.
6905
6906 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6907
6908         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
6909         call EndNew/CancelNew if list is ICancelAddNew.
6910
6911 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
6912
6913         * DataGridView.cs: Guard against an exception while painting
6914         if there are no rows.
6915
6916 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
6917
6918         * DataGridView.cs: Implement a bunch of keyboard commands.
6919
6920 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
6921
6922         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
6923         isn't set, don't call OnPaint.  [Fixes bug #375300]
6924
6925 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6926
6927         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
6928         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
6929         hookup the remaining events related to CurrencyManager, and fire
6930         OnListChanged also for the Clear () method.
6931
6932 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6933
6934         * BindingSource.cs: Use Current and Position implementations in
6935         CurrencyManager instead of using our own routines, since we need 
6936         to be in synch with it. Count should NEVER return a -1 value, and 
6937         also report ListChanged events for both simple IList data 
6938         sources (manually) as well for IBindingList ones (by hooking up an
6939         event handler for it).
6940
6941 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6942
6943         * BindingSource.cs: Make one .ctor call the another, to avoid
6944         duplicate code. Add the CurrencyManager property, and also for AddNew
6945         throw the proper exceptions and show better error messages.
6946
6947 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6948
6949         * ComboBox.cs: Only adjust selectedindex if Handle has been
6950         created.  Fixes failing test.
6951
6952 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6953
6954         * ComboBox.cs: Adjust selectedindex if we insert a new item
6955         above the current selectedindex in a sorted ComboBox.
6956         [Fixes bug #374654]
6957
6958 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6959
6960         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
6961         [Fixes bug #374712]
6962
6963 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6964
6965         * DataGridViewTextBoxCell.cs: Implement stuffs.
6966
6967 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6968
6969         * TreeView.cs: Create the scrollbars even earlier to be
6970         double dog certain they are created before they are accessed.
6971
6972 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6973
6974         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
6975
6976 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6977
6978         * ScrollBar.cs: Create an internal safe Value setter so we
6979         won't crash if we try to set a value outside the min and max.
6980         * TextBoxBase.cs: Use safe value setter to guard against a
6981         potential NRE that is being reported by Reflector.
6982
6983 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6984
6985         * TreeView.cs: Create the scrollbars earlier in the constructor
6986         to attempt to guard against an NRE in SetTop in Reflector.
6987
6988 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6989
6990         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
6991         DataGridViewRowCollection.cs: Do not scroll column and row headers,
6992         show messagebox on data format error, use column display index
6993         correctly, make sure HitTest supports new layout stuff,
6994         make sure scrollbars support new layout stuff.
6995
6996 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
6997
6998         * XplatUIX11.cs : Patch by Doug Rintoul.
6999           For some IM engines, keypress events need to delay call
7000           to XPending() and XNextEvent() in the loop so that it
7001           does not mess the orders in XIM commit callback.
7002           Some KeyRelease events such as shift keys need to be
7003           processed both in the IM engine and winforms driver
7004           itself since winforms holds its own state check.
7005
7006           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
7007
7008 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
7009
7010         * X11Keyboard.cs, XplatUIX11.cs :
7011           add primitive support for XIM input support (preedit-
7012           nothing and status-nothing). It requires precise event
7013           capturing (XSelectInput/"filterEvents") and different
7014           call to XFilterEvent against root window.
7015           Get composed string and send dummy WM_IME_COMPOSITION.
7016           Free XIM and XIC instances in finalizer.
7017
7018           (This first patch does not include suggested changes
7019            by Doug Rintoul. It will follow.)
7020
7021 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
7022
7023         * DataGridView.cs: When binding to a property, if the property
7024         doesn't have a setter, set the column to readonly.
7025         [Fixes bug #343965]
7026
7027 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
7028
7029         * ComboBox.cs: Guard against NRE if an arrow key is hit while
7030         we aren't dropped down.  Support Home/End in DropDownList mode.
7031         [Fixes bug #371990]
7032
7033 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
7034
7035         * TreeNodeCollection.cs: Don't increment count until we've
7036         saved our index to return.
7037         [Fixes bug #373603]
7038
7039 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7040
7041         * Label.cs: Add padding to the label's AutoSize calculation.
7042         [Fixes bug #373792]
7043
7044 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7045
7046         * ListBindingHelper.cs: Actually implement GetListName method.
7047
7048 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7049
7050         * BindingSource.cs: Throw the propert expceptions for some methods, as
7051         well as detect the list item type for Add method if DataSource is null.
7052
7053 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7054
7055         * DataGridViewCell.cs: I don't know why I commented this out,
7056         putting it back for now.
7057
7058 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7059
7060         * DataGridViewCell.cs: Remove storage for owning column, just
7061         use column index.
7062         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
7063         * DataGridViewColumnHeaderCell.cs: If the header text has been
7064         explicitly set, return it.
7065         [Fixes bug #325979]
7066
7067 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7068
7069         * DataGridViewRowCollection.cs: Disable row sharing when
7070         using data binding.  Its a great feature, but lets work on
7071         getting DGV usable first before we worry about optimizations.
7072
7073 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7074
7075         * BindingSource.cs: When resetting our internal list, compute list
7076         item type information to be used for indirect list access. Also
7077         implement/tune some properties and methods related to the list access
7078         too.
7079         * ListBindingHelper.cs: Add a stub for GetListName method, used from
7080         BindingSource.
7081
7082 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7083
7084         * DataGridView.cs: If RowCount is increased while ColumnCount
7085         is zero, add a column.  [Fixes bug #331649]
7086
7087 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7088
7089         * DataGridViewRowCollection.cs: When adding new rows for
7090         databinding, make sure they are place before the add row.
7091         [Fixes bug #343961]
7092
7093 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7094
7095         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
7096         instead of Index order.
7097
7098 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7099
7100         * DataGridView.cs: If columns are added by increasing ColumnCount,
7101         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
7102         [Fixes bug #325588]
7103
7104 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7105
7106         * DataGridView.cs: Turn off and on the "new row" when 
7107         AllowUserToAddRows is toggled.  When the handle is created,
7108         set current cell and selected cell/row/col.
7109
7110 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7111
7112         * ComboBox.cs: When navigating the drop down by keyboard, we
7113         need to scroll the list box if our selection moves out of the
7114         currently shown items.  [Fixes bug #371990]
7115
7116 2008-03-24  Luke Page <luke.a.page@gmail.com>
7117
7118         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
7119         on the control. Also now handles unicode compatibility characters and
7120         stores the unicode compatibility length on the stack. Fixes Bugs
7121         #355198 and #366436.
7122
7123 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7124
7125         * BindingSource..cs: Take into account DataMember when re-creating the
7126         List property, and also create a specific kind of list as needed.
7127
7128 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7129
7130         * ListBindingHelper.cs: Add a new case for GetList () method - when we
7131         get an empty IEnumerable, try to detect whether the datamember is
7132         valid or not for that type, if true, return null, and throw exception
7133         otherwise.
7134
7135 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
7136
7137         * ComboBox.cs: Alt-Down should drop down the list, Esc should
7138         retract it.  [Fixes bug #371989]
7139
7140 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
7141
7142         * PropertyGrid.cs: Initialize the sorting button as pushed.
7143
7144 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
7145
7146         * PropertyGrid.cs: 
7147          - Visually select the PropertyTab.
7148          - Filter Properties by Attributes properly.
7149
7150 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7151
7152         * MenuItem.cs: Remove menu item from parent when disposed.
7153         [Fixes bug #372845]
7154
7155 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7156
7157         * ToolBar.cs: Don't reset layout_type if Dock = None.
7158
7159 2008-03-21  Andreia Gaita <avidigal@novell.com> 
7160
7161         * UserControl.cs: Select the first available control when we get focus.
7162           Fixes #372616
7163
7164 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7165
7166         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
7167         the content if we are in edit mode.  [Fixes bug #343964]
7168
7169 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7170
7171         * DataGridViewCell.cs: Fix border painting for column headers.
7172
7173 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7174
7175         * BindingSource.cs: When setting or resetting data source,
7176         use ListBindingHelper.GetList () method, since it will get the list in
7177         case datasource is IListSource.
7178
7179 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
7180
7181         * DataGridViewCell.cs: Implement lots more stuffs.
7182
7183 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7184
7185         * PropertyGridView.cs, GridEntry.cs: Implement support for 
7186         UITypeEditor.IsDropDownResizable.
7187
7188 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
7189
7190         * DataGridViewCell.cs: Remove unused variables, improve how
7191         several of the property getters work.
7192         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
7193         get its size from the parent row/col.
7194
7195 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7196
7197         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
7198         user alters manually the PropertyTabs collection via the 
7199         PropertyTabs property.
7200
7201 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7202
7203         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
7204         new tests for them to be sure to be compatible with .net.
7205
7206 2008-03-20  Andreia Gaita <avidigal@novell.com> 
7207
7208         * WebBrowserBase.cs: Fix attributes, add events
7209         * WebBrowser.cs: Fix Padding signature
7210
7211 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7212
7213         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
7214
7215 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
7216
7217         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
7218         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
7219         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
7220         passes the new suite of tests for it.
7221
7222 2008-03-18  Andreia Gaita <avidigal@novell.com> 
7223
7224         * WebBrowser.cs: Add missing attributes, missing Padding and
7225           DefaultSize properties, remove extraneous getters
7226
7227 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7228
7229         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
7230         method overloads.
7231
7232 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7233
7234         * ComboBox.cs: Move resetting the selected index to keypress
7235         instead of textchanged.  Changing the text programmatically
7236         should not trigger resetting the selected index.  Fixes test.
7237
7238 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7239
7240         * ComboBox.cs: When the user types into the textbox, reset
7241         the selected index to -1.  [Fixes bug #371672]
7242
7243 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7244
7245         * FileDialog.cs: Support Control-A for selecting everything
7246         in an OpenFileDialog.  [Fixes bug #371564]
7247
7248 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
7249
7250         * DataGridView.cs: When row/column visible/height properties
7251         change, invalidate.  Take the NIEX out of InvalidateRow/Column
7252         etc.  We don't support them yet, but we can just invalidate
7253         everything until we do support them.  (Added MonoTODO).  Set
7254         proper control styles.
7255         * DataGridViewRow.cs: Don't call PaintHeader if row headers
7256         are turned off. 
7257
7258 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7259
7260         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
7261
7262 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
7263
7264         * DataGridViewRow.cs: Only paint the white background in
7265         cell bounds, the row bounds extends past the cells if the 
7266         grid width isn't as wide as the DGV.
7267
7268 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
7269
7270         * DataGridView*: Completely revamp the drawing to match the
7271         public API.  Our grids now look better, and call all the
7272         appropriate methods and event to allow users to override
7273         the painting and do their own.
7274
7275 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7276
7277         * ListBindingHelper.cs: Implement 2.0 GetList methods.
7278
7279 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7280
7281         * DataGridView.cs: Implement BorderStyle.
7282
7283 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7284
7285         * FileDialog.cs: Apply patch from Andy Hume: Any time we
7286         are comparing attributes, make sure we only look at the
7287         one we are interested.  These calls were failing if there
7288         were more than one attribute.
7289         [Fixes bug #370385]
7290
7291 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7292
7293         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
7294
7295 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7296
7297         * PageSetupDialog.cs: Stub EnableMetric.
7298         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
7299         * PrintPreviewDialog.cs: Add ProcessDialogKey,
7300         ProcessTabKey.
7301
7302 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7303
7304         * MonthCalendar.cs: Remove unused variable.
7305
7306 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7307
7308         * DataGridView*.cs: corcompare stuffs.
7309
7310 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7311
7312         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
7313         The savings aren't worth the extra code to fix the optimization.
7314         [Fixes bug #368585]
7315
7316 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7317
7318         * ToolBar.cs: Always call base.Dock in the Dock override so that
7319         Control's layout_type gets reset correctly.
7320         [Fixes bug #368882]
7321
7322 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
7323
7324         * X11Dnd.cs: End DnD operation also for the middle mouse button.
7325
7326 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7327
7328         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
7329         at the same time we do explicit ones, because we have to give all
7330         other controls on the container a chance to handle explicit ones
7331         first.  If no one has an explicit mnemonic, then we can let the
7332         MenuStrip have a shot at implicit mnemonics.
7333         * MenuStrip.cs: Create an implicit mnemonic function.
7334         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
7335         mnemonics for MenuStrips.
7336         [Fixes bug #368493]
7337
7338 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7339
7340         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
7341         DataGridColumnStyle.cs: corcompare stuffs.
7342
7343 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7344
7345         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
7346         Details - This is needed after we added the bits to use any available
7347         column also for List and SmallIcon view. 
7348
7349 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7350
7351         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
7352         at the proper place, not only when changing SelectedIndex and changing
7353         the selection using keys/mouse, as .net does.
7354
7355 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7356
7357         * ControlBindingsCollection.cs: Implement last 2.0
7358         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
7359         in the new 2.0 Add methods.
7360
7361 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7362
7363         * ListBox.cs: When calling SelectedIndexCollection.Clear,
7364         return if no items are previously selected - this is done to avoid 
7365         firing OnSelectedIndexChanged without need to do so. Also,
7366         when creating handle ensure that the focused item is visible (as
7367         .net does).
7368
7369 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7370
7371         * ListBox.cs: Rewrote/refactored most of selection code. We require
7372         the following things in selection: a) keep selection sorted (both
7373         indices and items), b) SelectedIndices automatically detect the
7374         selection mode, c) SelectedIndex should be the first selected item
7375         index, d) Need to Focus/adjust scroll bar when selecting a new item,
7376         not only for SelectedIndex, which is specially important in Multi*
7377         selection modes. To achieve this we are moving the selection core to
7378         SelectedIndexCollection and make depend all selection modifications on
7379         it.
7380         Fixes #366438.
7381
7382 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7383
7384         * ToolStrip.cs: Enable implicit mnemonics for drop down
7385         menu strips.  [Fixes part of bug #367692]
7386
7387 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7388
7389         corcompare - fix parameter names [stragglers].
7390         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
7391         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
7392         TabControl.cs.
7393
7394 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7395
7396         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
7397         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
7398         mnemonic, let the ToolStripManager have it even if it doesn't
7399         have a matching mnemonic.
7400         [Fixes bug #367499]
7401
7402 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7403
7404         corcompare - fix warning about implicit implementation
7405         * ToolStrip.cs: Add IToolStripData interface.
7406         * IToolStripData.cs: Add.
7407
7408 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7409
7410         corcompare - fix warning about implicit implementation
7411         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
7412         * IBounds.cs: Add.
7413
7414 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7415
7416         corcompare - fix parameter names [N-Z].
7417         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
7418         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
7419         PropertyManager.cs, RichTextBox.cs,
7420         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
7421         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
7422         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
7423         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
7424         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
7425         ToolStripContentPanel.cs, ToolStripDropDown.cs,
7426         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
7427         ToolStripPanel.cs, ToolStripSeparator.cs,
7428         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
7429         UICuesEventHandler.cs, UpDownBase.cs.
7430
7431 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7432
7433         corcompare - fix parameter names [G-M].
7434         GridColumnStylesCollection.cs, GridItemCollection.cs,
7435         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
7436         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
7437         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
7438         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
7439         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
7440
7441 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7442
7443         corcompare - fix parameter names [A-F].
7444         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
7445         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
7446         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
7447         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
7448         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
7449         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
7450         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
7451
7452 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
7453
7454         * GridEntry.cs: Do not convert not only if the types match, 
7455         but also if the property type is assigneable from the value's
7456         type.
7457         [Fixes bug #366566]
7458
7459 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
7460
7461         * PropertyGridView.cs: 
7462          - Subscribe to the listbox only once and not everytime.
7463          - Update the textbox even if SetValue fails.
7464          - Close the listbox before calling TrySetValue just in case.
7465          [Fixes bug #366569]
7466
7467 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
7468
7469         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
7470
7471 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7472
7473         * ListView.cs: Implement support for custom column width based on
7474         Columns collection (we were previously using this collection only
7475         with Details view).
7476         Fixes #364484.
7477
7478 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7479
7480         * ListViewItem.cs: For Tile view, always set bounds for the first
7481         subitem (which is the main one), and also don't let Width be larger
7482         than ListView.TileSize.Width. Improve code readibility also.
7483         * ThemeWin32Classic.cs: When painting the ListViewItem instances
7484         in Tile view, _always_ use the NoWrap flag.
7485         Fixes #360798.
7486
7487 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
7488
7489         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
7490         in case.
7491         * GridEntry.cs: For MS compitability make all child properties 
7492         readonly if the parent is readonly. Ugh.
7493         [Fixes bug #365945 and #365944]
7494
7495 2008-02-29  Andreia Gaita <avidigal@novell.com> 
7496
7497         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
7498           relative to the history
7499
7500 2008-02-29  Andreia Gaita <avidigal@novell.com>
7501
7502         * HtmlElement.cs: More handlers for mouse and key events
7503
7504 2008-02-28  Andreia Gaita <avidigal@novell.com>
7505
7506         * WebBrowserBase.cs: MouseClick sig changed.
7507         * HtmlHistory.cs: Implement history navigation
7508         * HtmlElement.cs: Add event handlers, and connect them.
7509
7510 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
7511
7512         * GridEntry.cs: 
7513          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
7514            so that DisplayNameAttribute doesn't get ignored.
7515          - Check for ParenthesizeNameAttribute and parenthesize the Label.
7516          - Add support for PasswordPropertyTextAttribute
7517         * PropertyGridView.cs: Check if an entry is a password.
7518         [Fixes bugs #365589, #365586, #365588]
7519
7520 2008-02-28  Andreia Gaita <avidigal@novell.com>
7521
7522         * PropertyGridView.cs: Revert the message filtering change, as we
7523         need it to block after all. Remove block parameter, unnecessary.
7524
7525 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
7526
7527         * UserControl.cs: Better implementation of GetPreferredSize.
7528         First step to fixing bug #361441.
7529
7530 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7531
7532         * Binding.cs: Actually implement data binding support for 
7533         classes implementing IBindableComponent.
7534         * ControlBindingsCollection.cs: Likewise.
7535
7536 2008-02-26  Andreia Gaita  <avidigal@novell.com>
7537
7538         * PropertyGridView.cs: Use a message filter to check when to 
7539         close the dropdown
7540
7541 2008-02-26  Andreia Gaita  <avidigal@novell.com>
7542
7543         * Application.cs: Change the message_filters loop so a filter 
7544         can be removed while looping.
7545
7546 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
7547
7548         * GridEntry.cs: Optimization in ToggleValue so that it caches
7549         the current value.
7550         * PropertyGridView.cs: An optimization so that the property isn't 
7551         re-read twice for each StandardValue added to the drop-down menu.
7552         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
7553         license.
7554         [Fixes bug #362755]
7555
7556 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
7557
7558         * Application.cs: Apply patch from Justin Cherniak to match
7559         MS better for ProductName, ProductVersion, and CompanyName.
7560         [Fixes bug #361709]
7561
7562 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7563
7564         * Binding.cs: Actually implement 2.0 NullValue property. Also
7565         when changing the formatting related properties, only update the state
7566         if formatting_enabled is true (we don't mind otherwise).
7567
7568 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
7569
7570         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
7571         [Fixes bug #364486]
7572
7573 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
7574
7575         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
7576         of GetType on the current value as it uses reflection to 
7577         determine the type. This fixes the case where the new value is 
7578         null. 
7579
7580 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
7581
7582         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
7583         past the view.
7584
7585 2008-02-24  Luke Page  <luke.a.page@gmail.com>
7586
7587         * Line.cs, TextControl.cs: Implement offset x and y so that a
7588         document doesn't have to begin  at (0,0) on the viewpoint.
7589         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
7590         bars and switches the text alignment (and therefore is now
7591         implemented for textbox). Fixes #321383.
7592
7593 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7594
7595         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
7596         properties. Also when changing FormattingEnabled update the control
7597         property -as .Net does-.
7598
7599 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
7600
7601         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
7602         * Binding.cs: Add stubs for the overloads of the Add method in
7603         CBCollection.
7604
7605 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7606
7607         * Binding.cs: PullData () returns a false value if we got an exception.
7608         Also when validating the control and we get an error, instead of
7609         setting the value of the previous one, cancel the event (tested in 1.1
7610         and 2.0).
7611
7612 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
7613
7614         * TreeView.cs: Make selected_node and highlighted_node internal.
7615         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
7616         to null when Nodes.Clear is called.
7617         [Fixes bug #363884]
7618
7619 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7620
7621         * FontDialog.cs: Ensure that when the Font is set in code,
7622         all the gui pieces are updated accordingly.
7623         [Fixes bug #361020]
7624
7625 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7626
7627         * TextRenderer.cs: Respect proposed size for MeasureString.
7628         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
7629         autosize, use a proposed width to force wrapping for long text.
7630         [Fixes bug #360981]
7631
7632 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7633
7634         * TreeView.cs: Factor in checkboxes = false and state images in
7635         to HitTest.  [Fixes bug #363360]
7636
7637 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7638
7639         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
7640         when drawing the selected range.
7641         [Fixes bug #363648]
7642
7643 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7644
7645         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
7646         ResizeRedraw control styles.
7647         [Fixes bug #363555]
7648
7649 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7650
7651         * TreeView.cs: StateImages are basically custom checkboxes, so
7652         factor their size the same as real checkboxes when determining
7653         what got clicked.
7654         [Fixes bug #363367]
7655
7656 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7657
7658         * MessageBox.cs: Make the message box wider if the form caption
7659         is longer than the text in the form.
7660         [Fixes bug #361137]
7661
7662 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
7663
7664         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
7665
7666 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7667
7668         * TreeNode.cs: Guard against an NRE when the parent's
7669         StateImageList hasn't been set.
7670         [Fixes bug #363353]
7671
7672 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7673
7674         * SplitContainer.cs: Add SupportsTransparentBackColor and
7675         OptimizedDoubleBuffering control styles.
7676         [Fixes bug #363303]
7677
7678 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7679
7680         * Application.cs: For the app data paths and the registry key paths,
7681         ensure they are created before returning them to the user.
7682         [Fixes bug #361709]
7683
7684 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7685
7686         * Application.cs: Guard against an NRE in CompanyName and
7687         ProductName.
7688
7689 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7690
7691         * Application.cs: For CompanyName, ProductName, and ProductVersion,
7692         make sure we handle all three cases correctly: attribute is present,
7693         attribute is present but is an empty string, and attribute is not
7694         present.
7695
7696 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
7697
7698         * PropertyGridView.cs: 
7699          - Fix a NRE that caused a test failure
7700          - Another performance improvement - cache the standard values
7701          listbox.
7702
7703 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7704
7705         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
7706         code paths.
7707
7708 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
7709
7710         * PropertyGridView.cs: Fix a big performance bug.
7711
7712 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7713
7714         * SelectionRange.cs: Apply patch from Andy Hume to make
7715         constructor behavior more accurate.  [Fixes bug #362117]
7716
7717 2008-02-19  Andreia Gaita <avidigal@novell.com> 
7718
7719         * Control.cs: Added a new flag is_disposing to track if the
7720         window is currently in the process of being disposed of.
7721         This is used so that, when firing visibility changes triggered
7722         by unparenting controls during Dispose, the control doesn't
7723         get created again.      
7724
7725 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7726
7727         * ComboBox.cs: Set height to preferred height when the handle
7728         is created.  [Fixes bug #360862]
7729
7730 2008-02-18  Andreia Gaita <avidigal@novell.com>
7731
7732         * XplatUIX11.cs: Create FosterParent with border width at 0.
7733         With the previous value of 4, everytime a control got reparented
7734         from parent = null, it's location would be shifted right and 
7735         down by 4, since these coordinates would be offset by the 
7736         FosterParent's border width.
7737
7738 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
7739
7740         * Control.cs: During diposing firstly remove ourselfes from
7741         the parent and *then* destroy our handle, because removing
7742         ourselfes from the parent controls collection causes 
7743         VisibilityChange, etc events, which require a handle and end
7744         up recreating the control.
7745
7746 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
7747
7748         * GridEntry.cs: Set expanded state before notifying that the
7749         expansion has taken place.
7750         * PropertyGridView.cs:
7751          - Set the propertygridtextbox text to the selected 
7752          StandardValue before proceeding to setting it.
7753          - Scrolling bugfixes.
7754
7755 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7756
7757         * GridEntry.cs:
7758          - Fix ValueText to not return null.
7759          - Fix conversion error reporting to actually happen.
7760         * PropertyGridView.cs: Set entry only if the text has changed.
7761         [Fixes bug #362116]
7762
7763 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7764
7765         * GridEntry.cs: 
7766          - Fix handling of a null current value.
7767          - Swallow editor exceptions.
7768         [Fixes bug #362114]
7769
7770 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7771
7772         * PropertyGrid.cs: Clear current items first thing before 
7773         repopulating subitems.
7774         * GridEntry.cs: 
7775          - Handle null StandardValuesCollection.
7776          - Mark as not editable if there is no PropertyDescriptor and
7777          if the Converter cannot convert from string.
7778         [Part of fix for bugs #360666 and #358332]
7779
7780 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7781         * MaskedTextBox.cs: Now skips non editable characters after a
7782         character has been entered and we are progressing to the next
7783         position in the MaskedTextBox.
7784
7785 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7786         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
7787         that it changes the selection rather than just repositioning the
7788         cursor. Fixes Bug #360873.
7789
7790 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7791         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
7792         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
7793         correctly. See #359330
7794
7795 2008-02-15  Andreia Gaita <avidigal@novell.com>
7796
7797         * XplatUIX11.cs: If the handle is null when posting a message, use the
7798         current thread queue to post instead. Fixes #332409
7799
7800         * SendKeys.cs: Slight optimization
7801
7802 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
7803
7804         * PropertyGrid.cs, PropertyGridView.cs:
7805         Fix multiple scrolling and sizing issues.
7806         [Fixes bug #359199]
7807
7808 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7809
7810         * PropertyGridView.cs: Ensure that drop down editors are shown
7811         in the WorkingArea of the screen.
7812         [Fixes bug #359807]
7813
7814 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7815
7816         * GridEntry.cs: Fail silently when UITypeEditor is missing.
7817         [Fixes bug #360666]
7818
7819 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7820
7821         * Binding.cs: Implement 2.0 DataSourceNullValue property.
7822
7823 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7824
7825         * PropertyGridView.cs:
7826          - Clear the controls in the drop down form after it is hidden.
7827          - Fix Width sizing of the dropdown editors to match MSFT.
7828
7829 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7830
7831         * PropertyGridView.cs: 
7832          - Fix height for drawing the grid entry
7833          text value, so that it clips multiline text properly.
7834          - Fix unfocusing to match MSFT.
7835
7836 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7837
7838         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
7839         Fixes a bug where on repopulation after value changed items become
7840         expandable.
7841
7842 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7843
7844         * Binding.cs: For the 2.0 profile, look for a 
7845         'PropertyChanged' event in the target control, and add checks for
7846         DataSourceUpdateMode property to change -or not- the data source
7847         from validation/control property change.
7848
7849 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
7850
7851         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
7852           not compare struct with null in 2.0).
7853
7854 2008-02-10  Luke Page <luke.a.page@gmail.com>
7855
7856         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
7857         updates the provider and if not using a provider, uses the internal document
7858         class implementation of password char. Also when showing text, uses display string
7859         from the provider, instead of the actual text.
7860
7861 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7862
7863         * Binding.cs: Ooooops, forgot to take into account the data_source
7864         and binding_member_info null case (it was breaking the Binding tests).
7865
7866 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7867
7868         * Binding.cs: Implement support for data source changes exposed by
7869         'PropertyNameChanged' events, and update the control property as
7870         needed.
7871
7872 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7873
7874         * Binding.cs: Implement 2.0 WriteValue method.
7875
7876 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7877
7878         Commit patch from James Purcell for better AutoScale implementation:
7879
7880         * ScaleControl should call GetScaledBounds with the control's total size rather
7881         than client size.  GetScaledBounds should handle ignoring the borders in its
7882         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
7883         (for the most part they just call the base code now since that is fixed).
7884         * Added ScaleChildrenInternal to allow controls to disable scaling of children
7885         without having to override ScaleChildren (since none of .NET's controls do). 
7886         This is required for most controls in Mono that have scrollbars to prevent the
7887         scrollbars from being moved/resized.
7888         * Nested ContainerControls can have a different scale mode than their parent. 
7889         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
7890         designer produce different results both of which look incorrect).
7891         * Default AutoScaleMode for ContainerControl should be Inherit.
7892         * Simplified workaround for ComboBox scaling issue.
7893         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
7894         1.0 style auto scaling should scale the whole control's size instead of
7895         ignoring the borders (except for Form) and the rounding is done differently to
7896         preserve control alignment.
7897         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
7898         GetAutoScaleSize.
7899         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
7900         * CurrentAutoScaleDimensions should round the estimated character width instead
7901         of truncating.
7902         * ListBox's GetScaledBounds should always use the height it was set to instead
7903         of the height that was passed in.  This prevents rounding errors from
7904         accumulating quickly with IntegralHeight.
7905         [Bug #359098]
7906
7907 2008-02-08  Andreia Gaita <avidigal@novell.com>
7908
7909         * Form.cs: Add a null check (darn it). 
7910
7911 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7912
7913         * MdiClient.cs: Make sure the requesting form actually owns the
7914         control menu items before removing them.  Also, use
7915         Suspend/ResumeLayout when adding or removing items so we only
7916         layout once.
7917         [Fixes bug #359887]
7918
7919 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7920
7921         * Control.cs: Guard against an NRE in ShowFocusCues.
7922         [Fixes bug #359830]
7923
7924 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7925
7926         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
7927         property, as well as stubbing DataSourceUpdateMode.
7928
7929 2008-02-08  Andreia Gaita <avidigal@novell.com>
7930
7931         * Form.cs: When closing forms, get focus back to the active control of the
7932         active form. [Fixes #341314, corner case]
7933         
7934 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7935
7936         * MdiClient.cs: After we move the scrollbars, invalidate the NC
7937         area, so any old scrollbar artifacts are cleaned up.
7938         [Fixes bug #336305]
7939
7940 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7941
7942         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
7943         for our menus, display that control box menu instead of the 1.1
7944         menu one.
7945
7946 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7947
7948         * MdiControlStrip.cs: Add property to access the mdi form tied to
7949         each toolstripitem.
7950         * MdiClient.cs: Be smarter about removing and adding toolstripitems
7951         to the implicitly merged menu.  Every time we clicked the form, items
7952         were getting removed and the re-added, causing the form to jump around
7953         as the menu resized.
7954
7955 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7956
7957         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
7958         was being reset by the implicit menu merge for menustrips.
7959         [Fixes bug #336296]
7960
7961 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7962
7963         * Form.cs: Don't do the previous change when WindowState = Normal,
7964         or it messes up where the window is placed.  Fixes test failure.
7965
7966 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7967
7968         * Form.cs: When becoming visible, if we are an MDI child, call
7969         SetWindowState with a dummy old_state so that changes will actually
7970         be made.
7971         [Fixes the 2nd part of bug #325473]
7972
7973 2008-02-07  Andreia Gaita <avidigal@novell.com>
7974
7975         * Control.cs: Reset properties to their pre parent-change values in case
7976         the new parent == null (in which case we're basically removing the control, 
7977         and don't want any events fired due to fake property changes)
7978         [Fixes #355850]
7979
7980 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
7981
7982         * PropertyGridView.cs: 
7983          - Refactor SetValue to allow setting the value
7984         when a custom editor is used, but the entry is not editable.
7985          - Remove the custom editor control on CloseDropDown.
7986         [Fixes #359196]
7987
7988 2008-02-06  Andreia Gaita <avidigal@novell.com>
7989
7990         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
7991         reflection only on 1.1, this property is public on system.drawing on 2.0.
7992         Fixed #359247
7993
7994 2008-02-06  Andreia Gaita  <avidigal@novell.com>
7995         
7996         * WebBrowser.cs: Do a normal page refresh by default.
7997
7998 2008-02-05  Andreia Gaita  <avidigal@novell.com>
7999
8000         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
8001         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
8002         platforms. Fixes #359036
8003         
8004         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
8005         platform-specific flags.
8006
8007 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8008
8009         * Binding.cs: Add 2.0 BindableComponent property - just return control
8010         by now.
8011
8012 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
8013
8014         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
8015         Jonathan for this patch. Fixes #358442.
8016
8017 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
8018
8019         * Form.cs: If we change the active MDI child form, let the others
8020         know they need to repaint their title bar so it will appear inactive.
8021         [Fixes part 1 of bug #325473]
8022
8023 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
8024
8025          * PropertyGridView.cs: Do not trucate custom editors' width
8026          and align them to the left.
8027          [Fixes #358353 and #358349]
8028
8029 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8030
8031         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
8032         Also fix the arguments passed to CollectionChangeEventArgs in the
8033         related methods.
8034
8035 2008-02-04  Geoff Norton  <gnorton@novell.com>
8036
8037         * Hwnd.cs: The conversion to Quartz coordinates happens in
8038         System.Drawing.  Removing this translation from here.
8039
8040 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
8041
8042          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
8043          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
8044          GridItemCollection.cs:
8045          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
8046
8047 2008-02-04  Geoff Norton  <gnorton@novell.com>
8048
8049         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
8050         SYSKEYUP if any other key has been pressed in the mean time.
8051         Fixes #324404
8052
8053 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8054
8055         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
8056         when the item in current position is different than 0. Also, save the
8057         item index in the beginning of the operation, instead of getting the
8058         index of the item when the event is actually performed. Lastly clean
8059         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
8060         triggered.
8061         [Fixes #357873]
8062
8063 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8064
8065         * Form.cs: Alt-Minus for MDI children system menu should work
8066         with both the minus keys on the keyboard.
8067         [Fixes bug #336295]
8068
8069 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8070
8071         * Control.cs: Don't invalidate on region change.  The WM should
8072         take care of this automagically.  Keeps us out of an infinite
8073         paint loop if someone changes the Region in the OnPaint.
8074         [Fixes bug #358327]
8075
8076 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
8077
8078          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
8079
8080 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8081
8082         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
8083         down the MonthCalendar only on F4, not Alt+F4.
8084         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
8085         [Fixes bug #358340]
8086
8087 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8088
8089         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
8090         if its part of a DateTimePicker, else, use the back color.
8091         [Fixes bug #358339]
8092
8093 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8094
8095         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
8096         [Fixes bug #358342]
8097
8098 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8099
8100         * CurrencyManager.cs: When we get a ListChanged event from our source,
8101         always fire our own ListChanged event, as .Net does.
8102
8103 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8104
8105         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
8106         #358379.
8107
8108 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8109
8110         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
8111         property. Removed if for richtext property that was always true.
8112         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
8113
8114 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8115
8116         * TextBoxBase.cs - commited patch from James Purcell that
8117         correctly sets the FixedHeight control style when the MultiLine
8118         property is changed on a TextBox control. Fixes bug 358229.
8119
8120 2008-02-02  Luke Page  <luke.a.page@gmail.com>
8121
8122         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
8123         Fixes bug 351938 - caret is positioned correctly when drawn
8124         and when calculating textual position of caret, no longer
8125         has a NRE in certain situations.
8126         
8127 2008-02-01  Geoff Norton  <gnorton@novell.com>
8128
8129         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
8130         get that region removed from the paint event.
8131         * XplatUICarbon.cs: Remove the window mapping after disposing of 
8132         window.  Prevents a crash with handle reuse.  Optimize exposes
8133         only onto visible windows (rare; but possible).
8134
8135 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8136
8137         * UpDownBase.cs: Make sure the internal textbox calls the base's
8138         OnMouseDown and OnMouseUp so the textbox will function correctly.
8139         There were notes saying it doesn't chain up, but its an internal
8140         class, so our implementation may differ.
8141         [Fixes bug #357482]
8142
8143 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8144
8145         * ListBox.cs: Fix a logic error and don't process MouseDown
8146         for mouse buttons other than Left.
8147
8148 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8149
8150         * Control.cs: Remove HeightInternal.
8151         * ListBox.cs: Commit patch from James Purcell that correctly
8152         calculates heights for ListBoxen.
8153         [Fixes bug #357152]
8154
8155 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8156
8157         * Label.cs: Apply patch from James Purcell that corrects the 
8158         signature of the AutoSize property.
8159         [Fixes bug #357605]
8160
8161 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8162
8163         * ListBox.cs: Don't throw [Mouse]Click events for buttons
8164         other than the left mouse button.
8165
8166 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
8167
8168         * Control.cs: Remove my awesome optimization as it caused some
8169         regressions with control ordering.  :(
8170         [Fixes bug #357467]
8171
8172 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
8173
8174          * PropertyGridView.cs: Fix a NRE on double click when there is no
8175          selected object.
8176
8177 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8178
8179         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
8180
8181 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
8182
8183         * ListBox.cs: Call MouseClick and MouseDoubleClick.
8184         [Fixes bug #357146]
8185
8186 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8187
8188         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
8189         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
8190         instead of Hwnd.bmp_g.
8191
8192 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8193
8194         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
8195         Use the Hwnd one instead.
8196
8197 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8198
8199         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
8200
8201 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8202
8203         * Form.cs: corcompare for RestoreBounds.
8204
8205 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8206
8207         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
8208
8209 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8210
8211         * Form.cs: Handle Alt-Minus for MDI children forms.
8212         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
8213         Add mnemonics to the control menu.
8214         [Fixes bug #336295]
8215
8216 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8217
8218         * Binding.cs: Initial implementation bits of FormattingEnabled
8219         property and BindingComplete event (2.0). 
8220         * BindingCompleteEventArgs.cs: Internal methods for setting error text
8221         and exception.
8222
8223 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
8224
8225         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
8226         table.Location.  [Fixes bug #354672]
8227
8228 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
8229
8230         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
8231         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
8232
8233 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8234
8235         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
8236         of doing all the re-bound work, just invalidate and call SetControlText 
8237         to set the updated text of selected item to our textbox.
8238         Fixes #333750.
8239
8240 2008-01-28  Andreia Gaita <avidigal@novell.com>
8241
8242         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
8243         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
8244         missing properties and methods. Add Load, Unload, Error, GotFocus, 
8245         LostFocus, Resize, Scroll events (only load and unload are connected)
8246
8247 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
8248
8249         * AccessibleObject.cs: Modified argument names to match MS.
8250         * Button.cs: Modified argument names to match MS.
8251         * BindingContext.cs: Modified argument names to match MS.
8252         * BindingMemberInfo.cs: Modified argument names to match MS.
8253         * ButtonBase.cs: Modified argument names to match MS.
8254         * ComboBox.cs: Modified argument names to match MS.
8255         * Control.cs: Modified argument names to match MS.
8256         * CheckedListBox.cs: Modified argument names to match MS.
8257         * CommonDialog.cs: Modified argument names to match MS.
8258         * DataGrid.cs: Modified argument names to match MS.
8259         * CursorConverter.cs: Modified argument names to match MS.
8260         * ControlPaint.cs: Modified argument names to match MS.
8261         * CheckBox.cs: Modified argument names to match MS.
8262         * ControlBindingsCollection.cs: Modified argument names to match MS.
8263         * BindingSource.cs: Modified argument names to match MS.
8264         * DataFormats.cs: Modified argument names to match MS.
8265         * ContainerControl.cs: Modified argument names to match MS.
8266         * CurrencyManager.cs: Modified argument names to match MS.
8267         * Application.cs: Modified argument names to match MS.
8268         * ContextMenuStrip.cs: Modified argument names to match MS.
8269         * ContextMenu.cs: Modified argument names to match MS.
8270         * BindingManagerBase.cs: Modified argument names to match MS.
8271         * WindowsFormsSection.cs: Fixed line ending.    
8272
8273 2008-01-27  Andreia Gaita <avidigal@novell.com>
8274
8275         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
8276         detecting that the dropdown toolwindow is hidden. EndLoop outside the
8277         while.
8278
8279 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
8280
8281         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
8282         MS. Code formatting.
8283
8284 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8285
8286         * Binding.cs: Don't avoid the Format event if the control 
8287         property type is object. Also, if the value retrieved by 
8288         the data source is null _and_ the control proeprty type 
8289         is object, return Convert.DBNull (match .Net).
8290         Fixes part of #324286.
8291
8292 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8293
8294         * ListControl.cs: Since we are getting two BinginContextChanged events
8295         for the same binding context instance (when the control is added to
8296         form, and when the form is actually shown), take it into account only the
8297         first time for a given binding context instance.
8298         Fixes part of #324286.
8299
8300 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
8301
8302          * PropertryGridView.cs: Ops.
8303
8304 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
8305
8306          * PropertyGridView.cs: Close dropdown form if the owner form is
8307          moved or minimized.
8308          [Fixes bug #322446]
8309
8310 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
8311
8312          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
8313          RootGridEntry.cs, CategoryGridEntry.cs:
8314          PropertyGrid rewrite.
8315          - Rewrite all of the control logic in PropertyGrid.
8316          - Rewrite all of the ComponentModel logic in GridEntry.
8317          - Rewrite all UI work in PropertyGridView.
8318          - Many bugfixes, etc.
8319
8320 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
8321
8322         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
8323         when all contained controls are autosize or dock-fill.  Also take into
8324         account when the total percentage of column/row sizes is not 100%.
8325         [Fixes bug #354672]
8326
8327 2008-01-24  Andreia Gaita <avidigal@novell.com>
8328
8329         * HtmlDocument.cs:
8330         - Save a reference to the IDocument in the instance and
8331           use that one instead of going to WebHost.Document; the document that the 
8332           WebHost returns might not be the right one (in case of frames).
8333         - Use the hashcode returned from the IDocument interface.
8334         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
8335           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
8336           LinkColor, Url, VisitedColor, Window
8337
8338         * HtmlElement.cs: 
8339         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
8340           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
8341           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
8342           SetAttribute, Equals, equality operators.
8343         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
8344           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
8345         
8346         * HtmlElementCollection.cs: Change implementation to use a generic
8347         collection. Implemented Enumerator and CopyTo
8348
8349         * HtmlHistory.cs: Add constructor, no implementation yet.
8350
8351         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
8352         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
8353         Equals, equality operators.
8354
8355         * HtmlWindowCollection.cs: Implemented. 
8356
8357         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
8358         has been deprecated).
8359
8360         * WebBrowserBase.cs: Use Completed event to track document loading
8361         (Navigated has been deprecated)
8362
8363 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
8364
8365         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
8366         level MenuItems do not respect tabs.
8367         [Fixes bug #355196]
8368
8369 2008-01-23  Geoff Norton  <gnorton@novell.com>
8370
8371         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
8372         FormWindowState.  Finished fixing Fullscreen windows on Carbon
8373
8374 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8375
8376         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
8377         be used as grab_control. Also save status of capture before show ContextMenu
8378         and restore it after close.
8379
8380 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8381
8382         * Control.cs: Internal FindRootParent method added to return high control
8383         in parent tree.
8384
8385 2008-01-23  Geoff Norton  <gnorton@novell.com>
8386
8387         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
8388         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
8389         it work again.  Handle HITTEST events.
8390
8391 2008-01-23  Geoff Norton  <gnorton@novell.com>
8392
8393         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
8394         a crash in certain cases.  Support for fullscreen windows in certain cases.
8395
8396 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
8397
8398         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
8399         [Fixes bug #355703]
8400
8401 2008-01-23  Geoff Norton  <gnorton@novell.com>
8402         
8403         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
8404
8405 2008-01-23  Geoff Norton  <gnorton@novell.com>
8406
8407         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
8408
8409 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8410
8411         * SplitContainer.cs: Remove unused declarations.
8412         * Binding.cs: Remove unused declarations.
8413
8414 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8415
8416         * Form.cs: Remove unused declaration of 'active' in Activate method.
8417         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
8418         prevent compilation warnings.
8419         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
8420         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
8421         * Bindings.cs: Remove unused formatting_enabled declaration.
8422         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
8423         warnings.
8424         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
8425         warnings.
8426         * PropertyGridView.cs: Remove usused 'ex' declaration.
8427         * DataGridView.cs: Remove unused declarations.
8428
8429 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8430
8431         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
8432         
8433         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
8434         to Control class, it makes possible to grab menu to controls that can't 
8435         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
8436         WmMouseMove removed since it was used only to track menu events.
8437
8438         * Control.cs:
8439         - Moved all active_tracker stuff from Form.
8440         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
8441         can call this method instead of reimplement all necessary code handle for
8442         menu tracker.
8443         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
8444         and WmMouseMove).
8445         
8446         * MenuAPI.cs: 
8447         - Remove special handle to ToolStripOverflow, now we can grab menu to 
8448         controls that can't reach Form using parent tree.
8449         - Change type of grab_control from Form to Control.
8450
8451 2008-01-22  Geoff Norton  <gnorton@novell.com>
8452
8453         * TextBoxBase.cs: Split up the sizing of controls and placing of 
8454         controls.  Fixes a bug where scrollbars in Reflector could be sized
8455         wrong and have non-working thumbers.
8456
8457 2008-01-23  Geoff Norton  <gnorton@novell.com>
8458
8459         * XplatUI.cs: Refactor environment variables to default support to the
8460         Carbon driver on the Mac.
8461
8462 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8463
8464         * Label.cs: Uses new LabelPainter for drawing operations.
8465         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
8466         * Theme.cs: DrawLabel and LabelDefaultSize removed.
8467
8468 2008-01-22  Geoff Norton  <gnorton@novell.com>
8469
8470         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
8471
8472 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8473
8474         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
8475         through the normal flat button code and don't draw the checkbox glyph.
8476         * Theme.cs: Button->ButtonBase signature change.
8477         [Fixes bug #324755]
8478
8479 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
8480
8481         * LinkLabel.cs: Uses new class LinkLabelPainter.
8482
8483 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
8484
8485         * MessageBox.cs: Adjust right border space, we don't need to add 
8486         "space_border*2" two times.
8487
8488 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8489
8490         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
8491         becomes a wrapper around Padding.
8492         [Fixes a part of bug #354676]
8493
8494 2008-01-22 Geoff Norton  <gnorton@novell.com>
8495
8496         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
8497         acquired.  Also ensure the buffer is large enough to grab the header
8498         we need on linux boxes.
8499
8500 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8501
8502         * Control.cs: Implement a custom enumerator so people can delete
8503         from the Controls collection while in a foreach.
8504         [Fixes bug #355074]
8505
8506 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8507
8508          * PropertyGridView.cs: Fix focusing behavior:
8509          - Tab should focus the grid text box.
8510          - Clicking on the labels shouldn't focus the grid text box.
8511
8512 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8513
8514          * PropertyGridView.cs: IsValueTypeGridItem should return true 
8515          for Arrays as well.
8516
8517 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8518
8519          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
8520           - Renamed GridEntry.SelectedObjects to TargetObjects to better
8521           reflect the property name role.
8522           - PropertyGrid.GetTarget is not required as the target is known
8523           (TargetObjects).
8524           - Setting values will handle value types as a special case now and
8525           populate them up in the chain.
8526           [Fixes #354990]
8527
8528 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
8529
8530         * Hwnd.cs: Create a public property for the Graphics we keep around.
8531
8532 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
8533
8534          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
8535          when the current object selection changes. 
8536          Fixes failing test SelectedObject_Null2.B5.
8537
8538 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
8539
8540          * PropertyGrid.cs: Process Browsable properties with 
8541          DesignerSerializationVisibilityAttribute.Content as being expandable.
8542          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
8543          will not be expandable. We should be nested components-friendly now.
8544
8545 2008-01-21  Andreia Gaita <avidigal@novell.com>
8546
8547         * WebBrowserBase.cs: Check if control was loaded properly, 
8548         don't bind if it wasn't.
8549
8550         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
8551         GetElementFromPoint, equality operators, OpenNew, Write.
8552         Remove extra set_Body
8553
8554 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
8555
8556         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
8557         that makes our AutoScale* stuff more tolerant to different orders
8558         of being set.  [Fixes bug #354669]
8559
8560 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
8561
8562          * PropertyGridView.cs, PropertyGridTextBox.cs: 
8563          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
8564          [Fixes #339005 and #348209]
8565
8566 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
8567
8568          * PropertyGridView.cs: Hide the grid text box before adjusting it
8569          for the newly selected GridItem.
8570          [Fixes #338999]
8571
8572 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
8573
8574         * Form.cs: Give MDI children the opportunity to cancel the parent form
8575         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
8576         properly for both the parent and child.
8577         * Application.cs: Signature of internal method changed, pass the previous
8578         default of false.
8579         [Fixes bug #354286]
8580
8581 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
8582
8583         * PropertyGridView.cs: Set the property value only if it has changed.
8584         [Fixes bug #338997]
8585
8586 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
8587
8588         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
8589         If the mouse hasn't actually moved, ignore these messages so the currently
8590         highlighted menuitem isn't reset to the one under the mouse.
8591         [Fixes bug #333668]
8592
8593 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
8594
8595         * PropertyGridView.cs: When the property changes Invalidate the GridItem
8596         in order for the properties with UITypeEditor.GetPaintValueSupported == true
8597         to reflect the change visually.
8598         [Fixes bug #338998]
8599
8600 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
8601
8602         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
8603         to 2.0 button drawing.
8604         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
8605         the button text is tall enough for one line.  LineLimit says it will
8606         always draw at least one line, but it is a lie.
8607         [Fixes bug #324941]
8608
8609 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
8610
8611         * XplatUIStructs.cs, X11Keyboard.cs :
8612           added some more VK_* keys to be handled.
8613
8614 2008-01-16  Andreia Gaita <avidigal@novell.com>
8615
8616         * Control.cs: Check if there is a container before setting or getting
8617         the validation flag.
8618
8619 2008-01-16  Andreia Gaita <avidigal@novell.com>
8620
8621         * ContainerControl.cs: Add flag to track if a control cancels validation, 
8622         so we don't fire click events.
8623
8624         * Control.cs: 
8625         - (HandleClick) Check if validation was cancelled before  firing the click
8626         events (doubleclicks are fired, but not clicks)
8627         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
8628         ContainerControl.set_ActiveControl, but in the case of non-selectable
8629         controls, like a Label, activecontrol is not set. 
8630
8631         * ButtonBase.cs: Only fire clicks if validation passes.
8632         
8633         Fixes #353310
8634
8635 2008-01-16  Geoff Norton  <gnorton@novell.com>
8636
8637         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
8638         trunk
8639
8640 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
8641
8642         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
8643         SelectedPath, just display the default dialog instead of crashing.
8644         [Fixes bug #348989]
8645
8646 2008-01-16  Geoff Norton  <gnorton@novell.com>
8647
8648         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
8649         AddExpose instead of trusting apples compositing manager which doesn't
8650         work for our use case.  Remove some dead code causing warnings and 
8651         redecorate some other code to prevent warnings.
8652
8653 2008-01-16  Geoff Norton  <gnorton@novell.com>
8654
8655         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
8656         carbon signals us to redraw.  Fixes another portion of the flickering bug
8657
8658 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8659
8660         * Form.cs: Prevent the MdiParent property to be set when value is the same
8661         as value already set. Fixes bug #328019.
8662
8663 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8664
8665         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
8666         it prevents NRE when closing mdi child windows. Fixes bug #325211.
8667
8668 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8669
8670         * InternalWindowManager.cs: Invalidade close button after mouse up when 
8671         mdi form is prevented to close.
8672
8673 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8674
8675         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
8676         thanks to Andy Hume. Fixes bug #325433.
8677
8678 2008-01-16  Andreia Gaita <avidigal@novell.com>
8679
8680         * LinkLabel.cs: Reset focused_index when resellecting the control.
8681         Fixes #323190
8682
8683 2008-01-15  Geoff Norton  <gnorton@novell.com>
8684
8685         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
8686         messages.
8687
8688 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
8689
8690         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
8691         of truncate.
8692
8693 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
8694
8695         * ContainerControl.cs: Setting AutoScaleMode to anything should set
8696         Form.AutoScale to false.
8697         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
8698         AutoScaleBaseSize should be changed on Font change unless it has been
8699         explicitly set.
8700         [Fixes bug #353827]
8701
8702 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
8703
8704         * MenuAPI.cs: On instance of MenuTracker check if source control is
8705         ToolStripOverflow and use properly method to find form.
8706         [Fixes bug #338511]
8707
8708 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
8709
8710         [Fixes bug #323241 Transparent toolbar support]
8711
8712         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
8713         is flat.
8714
8715         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
8716         defined in control style to mimic win32 behavior.
8717
8718         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
8719         it will be transparent.
8720
8721 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
8722
8723         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
8724         CreateParams for ToolBar controls.
8725
8726 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8727
8728         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
8729         FixedToolWindow, SizeableToolWindow, or None for border styles have
8730         different minimum sizes than regular forms.  Implemented to fix
8731         regression in PDN with toolbox being too wide.
8732
8733 2008-01-14  Andreia Gaita <avidigal@novell.com>
8734
8735         * HtmlElementCollection.cs: Implemented
8736
8737         * HtmlElement.cs: Implemented:
8738           - All
8739           - InnerHtml
8740           - InnerText
8741           - Id
8742           - Name
8743           - FirstChild
8744
8745         * HtmlDocument.cs: Implemented GetElementsByTagName.
8746
8747 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8748
8749         * Screen.cs: Stub BitsPerPixel to always return 32.
8750
8751 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8752
8753         * Form.cs: Implement RestoreBounds.
8754
8755 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8756
8757         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
8758         Sebastien and his fabulous magical problem-finding machine:
8759         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
8760         respect the value set.
8761
8762 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
8763
8764         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
8765         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
8766
8767 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8768
8769         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
8770         messages (to match .Net), we need to remove the capture ourselves.
8771
8772 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
8773
8774         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
8775         will process the message and close our window.
8776         [Fixes bug #324328]
8777
8778 2008-01-10  Geoff Norton  <gnorton@novell.com>
8779
8780         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
8781         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
8782         window manager.
8783
8784 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8785
8786         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
8787         failing test.
8788
8789 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8790
8791         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
8792         Linux doesn't care, having a minimum matches MS and keeps the window
8793         from becoming too small to use window decorations.
8794         [Fixes bug #338996]
8795
8796 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8797
8798         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
8799         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
8800         control.  [Fixes bug #325419]
8801
8802 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8803
8804         * ComboBox.cs: Guard against an NRE if the user open a new form from a
8805         SelectedIndexChanged event.  This closes the combobox dropdown, and we
8806         were trying to dispose it.  [Fixes bug #352830]
8807
8808 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8809
8810         * Control.cs, Form.cs: Implement the necessary semantics for
8811         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
8812         to determine if a focus rectangle should be drawn.
8813         * PropertyGrid.cs: Fix property visibility to match override.
8814         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
8815
8816 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8817
8818         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
8819         [Fixes bug #323552]
8820
8821 2008-01-09  Geoff Norton  <gnorton@novell.com>
8822         
8823         * XplatUICarbon.cs: Scroll windows in the correct direction.
8824
8825 2008-01-09  Geoff Norton  <gnorton@novell.com>
8826
8827         * XplatUICarbon.cs: Track all created utility windows so we can hide them
8828         when the app is deactivated or spaces is enabled.
8829
8830 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8831
8832         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
8833         extra separation pixel for the label rect origin if SmallImageList is
8834         null, and thus we don't need that separation between icon and label
8835         rects.
8836         Patch by Ernesto Carrea.
8837         Fixes # 340195.
8838
8839 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
8840
8841         * StatusStrip.cs: Invalidate after completing a layout.  The base
8842         OnLayout does this, but we don't call the base.
8843         * ToolStripItem.cs: Revert the previous change to invalidate after
8844         the item moves.
8845         [Fixes bug #351341 better.]
8846
8847 2008-01-07  Geoff Norton  <gnorton@novell.com>
8848
8849         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
8850         not a notification to exit the application.  Listen for WM_QUIT
8851         instead.
8852
8853 2008-01-07  Andreia Gaita <avidigal@novell.com>
8854
8855         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
8856
8857 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
8858
8859         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
8860         so it can repaint at the correct location.
8861         [Fixes bug #351341]
8862
8863 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8864
8865         * ListControl.cs: SelectedValue should return a null value if
8866         SelectedIndex is -1. Also, when setting it, it should throw an
8867         ArgumentNullException if the value is null, as well as taking
8868         into account the String.Empty value, instead of ignoring it (we have
8869         tests for that now).
8870         Fixes part of #324286.
8871
8872 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
8873
8874         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
8875         SelectionStart is updated after pressing enter.  Fixes bug #351918.
8876
8877 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8878
8879         * TextControl.cs: Revert a piece r92316 that prevented the fix
8880         from working when there were multiple tags in the text box.
8881         Fixes bug #351881.
8882
8883 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8884
8885         * TextControl.cs: Apply patch from Luke Page that prevents an
8886         NRE when determining the beginning of a paragraph.
8887         Fixes bug #351886.
8888
8889 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8890
8891         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
8892         caret gets moved with clicking away from a selected block of
8893         text.  Fixes bug #351885.
8894
8895 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8896
8897         * TextControl.cs: Apply patch from Luke Page that takes line
8898         alignment into account for mouse selection, so that center and
8899         right aligned text can be selected.
8900         Fixes bug #351881.
8901
8902 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8903
8904         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
8905         issues after loading an RTF file by using the correct line feeds.
8906         Fixes bug #351841.
8907
8908 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8909
8910         * TextControl.cs: When deleting multiple line selections, we need
8911         to invalidate every line beginning at the first line of the selection.
8912         Patch from Luke Page fixes bug #351791.
8913
8914 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8915
8916         * ListControl.cs: When getting a CurrencyManager.PositionChanged
8917         event, don't set SelectedIndex if the number of items is 1. This is
8918         because, for the first item, PositionChanged is fired _before_
8919         ItemChanged (the place where we actually populate the items), and
8920         leave us in a temporary invalid state (since items collection is
8921         empty).
8922         Fixes #349655.
8923
8924 2008-01-04  Geoff Norton  <gnorton@novell.com>
8925
8926         * XplatUICarbon.cs:  Create native toolwindows instead of
8927         the managed drawing ones.
8928
8929 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8930
8931         * LineTag.cs: If the line doesn't have any characters, return
8932         0 for GetCharIndex.  Fixes an AOORE exception after certain
8933         caret movements.  Fixes bug #351683.  Patch by Luke Page.
8934
8935 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8936
8937         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
8938         is hit when there is selected text, only the selected text gets
8939         deleted, not the character in front of the selection as well.
8940         Fixes bug #351578.
8941
8942 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8943
8944         * ComboBox.cs: When the values are displayed, calculate the
8945         ComboListBox scrollbar's LargeChange based on the visible area's
8946         height and  the actuall ItemHeight, instead of calculating it
8947         based on MaxDropItems value, since it's not used by our _current_ 
8948         2.0 profile.
8949         Fixes #332366.
8950
8951 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8952
8953         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
8954         Patch from Luke Page that fixes issues with font colors and styles
8955         not showing up in a readonly RichTextBox.  Fixes bug #324354.
8956
8957 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8958
8959         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
8960         from Luke Page.  This one fixes bug #349926.
8961
8962 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8963
8964         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
8965         an item in the IBindingList source changes with
8966         ListChangedType.ItemAdded. Ignore for now firing the event for other
8967         changes, since we want to have tests for those cases as well.
8968
8969 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8970
8971         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
8972         created.
8973
8974 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8975
8976         * TextBoxTextRenderer.cs: Implement a cache for measuring each
8977         character.  This is effective because the typical usage of a
8978         TextBox is with a limited amount of fonts and characters, and
8979         the current implementation of TextBox measures everything one
8980         character at a time.  Another second or two speedup for bug #347238.
8981
8982 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8983
8984         * Control.cs: Rewrite the Font getter to only query the parent's
8985         Font property once instead of twice.  Since this operation is
8986         recursive, the queries were growing exponentially as the control
8987         tree got deeper.  Another second or two speedup for bug #347238.
8988
8989 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8990
8991         * Control.cs: Avoid setting a parent (and more importantly, updating
8992         the zorder of all its children) if the parent is already correct in
8993         WmShowWindow.  Decreases the startup time of the test case on bug
8994         #347238 from 35 seconds to 11 seconds.
8995
8996 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8997
8998         * X11Dnd.cs: When the dnd operation has started and we are 
8999         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
9000         This is done to match .Net, which doesn't send those messages after
9001         dnd operation was completed/cancelled.
9002         Fixes #349922.
9003
9004 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
9005
9006         * ToolStrip.cs: Previous change should be != null, not == null.
9007         Thanks Gert!
9008
9009 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
9010
9011         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
9012         user may have moved the mouse off the current item during the event.
9013
9014 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9015
9016         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
9017         calling GetItemAt for every MouseMove event by also taking into
9018         account whether any mouse button is pressed (probably dragging); 
9019         if so, we can call GetItemAt, and if not, try to not call it 
9020         (GetItemAt can be quite expensive when used with a large number of items).
9021
9022 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9023
9024         * ListView.cs: Implement -finally- support for dnd, by calling
9025         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
9026         authors list ;-).
9027         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
9028         simple calculation of distances for all the items in the owner
9029         listview.
9030
9031 2007-12-21  Geoff Norton  <gnorton@novell.com>
9032
9033         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
9034         for windows that are originally created as invisible.  Fixes missing
9035         main window in paint-mono.
9036
9037 2007-12-21  Geoff Norton  <gnorton@novell.com>
9038
9039         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
9040         subclass handler for com.novell.mwfview subclassing HIView.  Implement
9041         Pasteboard and Dnd methods.
9042
9043 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9044
9045         * ListBox.cs: When we got focus, give focus to first item if there
9046         wasn't any pervious focused item. Also update navigation to depend on
9047         SelectedIndex rather than FocusedItem, just as .Net does.
9048         Fixes #349174.
9049
9050 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9051
9052         * ListBox.cs: Both FindString and FindStringExact methods must do an
9053         case insensitive search, should allow the last valid index to be
9054         passed in the overload taking an initial index, and should also
9055         continue searching from the top back to the specified index when it
9056         reaches the bottom.
9057
9058 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9059
9060         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
9061         redraw issue, and allows RichTextBox to draw colored text even while
9062         disabled or readonly.
9063
9064 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9065
9066         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
9067         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
9068         and doesn't grey text in a disabled RichTextBox.
9069
9070 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9071
9072         * RichTextBox.cs: Apply patch from Luke Page that adds better support
9073         for many RTF commands: quad alignment, separate formatting for blocks
9074         inside groups, and ParDef support.  Makes the test case from bug #324589
9075         look much better.
9076
9077 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9078
9079         * LineTag.cs: Fix an error in the new Draw method that caused
9080         a crash when rendering the document on bug #324589.
9081
9082 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9083
9084         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
9085         TextControl.cs: Apply patch from Luke Page that adds support
9086         for URL links in RichTextBox.
9087         [Fixes enhancement #342516]
9088
9089 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
9090
9091         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
9092         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
9093
9094 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9095
9096         * ListBox.cs: When a key gets pressed, try to find a string
9097         if the key is a character or a digit.
9098         Fixes #343971.
9099
9100 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9101
9102         * TableLayoutPanel.cs: Remove some unused variables.
9103
9104 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9105
9106         * DateTimePicker.cs: Commit patch from Luke Page that ensures
9107         we don't end up at an invalid date when we click the up/down
9108         spinner to change the month or year.  Fixes bug #348682.
9109
9110 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9111
9112         * Application.cs: Calling Exit in 2.0 should chain to the
9113         Exit (CancelEventArgs) version so it can be cancelled.
9114         * Form.cs: Create a flag to allow raising the Closing
9115         events to be skipped.  We raise them once in Application.Exit
9116         and don't want to raise them again when the Form is actually
9117         closed.  [Fixes bug #349073]
9118
9119 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
9120
9121         * ToolStripDropDown.cs: Guard against an NRE when there
9122         hasn't been a mainform set in the application context.
9123         [Fixes bug #349108]
9124
9125 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9126
9127         * ListBox.cs: When SetBoundsCore gets called, besides
9128         calling UpdateScrollBars, update the value of
9129         last_visible_index, since we could need to show more items
9130         than before, and we need to let the paint routines know that.
9131         Fixes #344445.
9132
9133 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9134
9135         * ListView.cs: Add DesignerSerializationVisibility attribute to
9136         InsertionMark property.
9137         * ListViewItem.cs: Add same attribute to Position property.
9138
9139 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9140
9141         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
9142         is 2.0 only.
9143
9144 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
9145
9146         * ThemeWin32Classic.cs: Don't draw the background on a
9147         flat button if there is a background image.
9148         [Fixes bug #348649]
9149
9150 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9151
9152         * ListBox.cs: If we remove the item currently selected,
9153         remove it not only from SelectedItems, but also
9154         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
9155         the items count decreased and focused_item has bigger value than that.
9156
9157 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
9158
9159         * Control.cs: Perform our layout after we resize ourselves
9160         if we had to adjust our AutoSize.  Missed commit for bug
9161         #346246.
9162
9163 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
9164
9165         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
9166         we can provide an implementation of AutoSize.
9167         [Fixes bug #346246]
9168
9169 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9170
9171         * ListBox.cs: Add the internal overload Sort (bool paint),
9172         to indicate whether we actually need a paint or we will
9173         call Refresh ourselves. This way we don't request a paint
9174         _before_ having an updated and valid layout.
9175         Fixes #347233.
9176
9177 2007-12-12  Andreia Gaita <avidigal@novell.com>
9178
9179         * XPlatUIX11.cs: Send paint messages when updating a systray icon
9180         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
9181         properly invalidated. 
9182         Fixes #324237
9183
9184 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9185
9186         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
9187         don't simply assign it to our internal group field, but instead 
9188         use our Group property, which should do all the neccessary work
9189         required to support groups. Fixes an issue reported to me (mail) by a 
9190         guy using this new feature.
9191
9192 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
9193
9194         * Control.cs: Use Scale instead of ScaleControl to ensure the
9195         whole hierarchy gets scaled.
9196         [Fixes bug #347282]
9197
9198 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9199
9200         * DateTimePicker.cs: Don't set the internal MonthCalendar's
9201         Parent property.  Doing this causes the control to be hosted by
9202         the Form instead of being a popup window.
9203         [Fixes bug #347665]
9204
9205 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9206
9207         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
9208         at an index higher than Count, just use Add instead of Insert.
9209         [Fixes bug #347669]
9210
9211 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9212
9213         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
9214         DrawPictureBox, this is handled by Control.PaintBackground.
9215         [Fixes bug #347276]
9216
9217 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
9218
9219         * MenuAPI.cs: When process menu keys return true by default only if menu is
9220         active. Fixes bug #342892.
9221
9222 2007-12-09  Andreia Gaita <avidigal@novell.com>
9223
9224         * Control.cs: check if windows are actually mapped before
9225         trying to zorder. Fixes #342509, #346955
9226
9227 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9228
9229         * ListView.cs:
9230         * ListViewInsertionMark.cs:
9231         * ThemeWin32Classic.cs: Implement the drawing side of the
9232         new 2.0 ListView.InsertionMark property.
9233
9234 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
9235
9236         * CurrencyManager.cs: Silence some debug spew.
9237
9238 2007-12-07  Geoff Norton  <gnorton@novell.com>
9239         
9240         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
9241         masks for our children as well as siblings to avoid having to query
9242         Quartz for this information.
9243         * XplatUICarbon.cs: Implement a delegate based system to pass
9244         information to System.Drawing.  Implement Async methods.  Remove
9245         the hack for the resize thumb and imlpement a transparent Grow Box.
9246         Rework the messaging system to proplery create window's and messages,
9247         fixes TabControl.
9248
9249 2007-12-06  Andreia Gaita <avidigal@novell.com>
9250
9251         * X11Keyboard.cs: Use Xutf8LookupString to support international 
9252         characters under alternate codepages. Patch from #340878
9253
9254 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9255
9256         * ListView.cs: When doing layout computations, set position in the
9257         ListView instances (we cache the position just as .Net does).
9258         * ListViewItem.cs: New internal setter method for Position. Also set
9259         position field as also available in 1.1, since we are going to use it
9260         now in the common case.
9261
9262 2007-12-06  Andreia Gaita <avidigal@novell.com>
9263
9264         * Control.cs: When removing controls, get the actual container
9265         to notify about active control changes. Fixes 341314.
9266
9267 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9268
9269         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
9270
9271 2007-12-05  Andreia Gaita <avidigal@novell.com>
9272
9273         * Control.cs: When updating the zorder, ignore windows that are not
9274         mapped. Fixes #342509
9275
9276 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9277
9278         * ListViewItem.cs: Actually implement serialization on this class.
9279
9280 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
9281
9282         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
9283         LinkCollection. Spaces to tabs, and removed extra tabs.
9284
9285 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9286
9287         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
9288           tests to fail (hopefully).
9289
9290 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9291
9292         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
9293         the image margin so custom renderers can correctly place it.
9294
9295 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9296
9297         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
9298         so custom renderers can correctly place it.
9299
9300 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9301
9302         * Application.cs: Let WM_CHAR messages flow through to controls
9303         hosted in Strips.  [Fixes bug #343972]
9304
9305 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
9306
9307         * ToolStripManager.cs: Guard against an NRE I ran into.
9308
9309 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
9310
9311         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
9312         a Link is manually added to the Links collection, we need to set
9313         its owner, so it can invalidate properly.
9314         [Fixes bug #344012]
9315
9316 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9317
9318         * ListView.cs: When changing ListViewItem.Position (which calls
9319         ListView.ChangeItemLocation), invalidate not only the area
9320         corresponding to the main item, but also to the area occupied
9321         by the items being moved.
9322
9323 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9324
9325         * ListView.cs: When changing the position of a given item,
9326         don't use item bounds, but item areas (which includes the item spacing
9327         between them). Also, use first/last position if the requested
9328         position is outside bounds (as .Net does). Invalidate the previous and
9329         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
9330         in a specific position, instead of directly accessing Items collection
9331         (this is done to get the right item - remember an Item can have a
9332         different position in the grid than in the Items collection).
9333
9334 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9335
9336         * MessageBox.cs: Calculate text area instead of just top left, this rect 
9337         area will be used in DrawString. Fixes bug #343364.
9338
9339 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9340
9341         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
9342         screen width. Partially fixes bug #343364.
9343
9344 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9345
9346         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
9347         code inside recalculate, it makes code more simple.
9348
9349 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
9350
9351         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
9352         between update or add icon. Fixes bug #324344.
9353
9354 2007-11-21  Andreia Gaita <avidigal@novell.com>
9355
9356         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
9357         window manager, since that stretches the drawing area to include
9358         the window decorations, and they get hidden. Reverts r84444 and fixes
9359         #335849 and #342790 (mdi and pdn3 regression)
9360
9361 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9362
9363         * ListView.cs: When setting focused item, try to give focus to the
9364         previous one _only_ if the previous one remains valid. 
9365         Fixes #342504.
9366
9367 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
9368
9369         * Application.cs: Revert r89650, as it broke a common case to fix
9370         an obscure case.  Fixes bug #342606.
9371
9372 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
9373
9374         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
9375
9376 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
9377
9378         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
9379         alignment. [Fixes #324228]
9380
9381 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
9382
9383         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
9384         [Fixes bug #342123]
9385
9386 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
9387
9388         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
9389         it prevent problems when empty captions. [Fixes #342141]
9390
9391 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
9392
9393         * Label.cs: Use Size instead of None.  Fixes bug #342077.
9394
9395 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9396
9397         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
9398
9399 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
9400
9401         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
9402         but there isn't a MdiContainer.
9403         [Fixes bug #342358]
9404
9405 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
9406
9407         * TextControl.cs: Don't recalculate document if the recalc_start and
9408         recalc_end hasn't changed.
9409         [Fixes bug #342505]
9410
9411 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
9412
9413         * DataGridViewTextBoxCell.cs: Removed CWL.
9414
9415 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9416
9417         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
9418
9419 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
9420
9421         * TextControl.cs: Missed some code for bug 341534 to trigger a
9422         recalculation when the font changes.
9423
9424 2007-11-16  Andreia Gaita <avidigal@novell.com>
9425
9426         * Control.cs: When updating the zorder, check if the child to update is
9427         the same control that is set to always be on top (i.e., scrollbars), and 
9428         just put it on top directly. Fixes BadMatch error on pdn3
9429
9430 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9431
9432         * ListView.cs: Throw the needed exceptions for FindNearestItem.
9433
9434 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
9435
9436         * Control.cs: Don't perform a new layout when a label changes its text,
9437         cause label handles its own autosizing.
9438         [Fixes bug #342077]
9439
9440 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9441
9442         * ListView.cs: Implement 2.0 FindNearestItem methods.
9443
9444 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
9445
9446         * ToolStripPanel.cs: Make Join at least add the control to the panel,
9447         even if the rest of what Join does isn't supported.  Add some more
9448         support for vertical toolbars.
9449         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
9450         [Fixes the application breaking parts of bug #341998]
9451
9452 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
9453
9454         * ToolStripItem.cs: When determining if we have a check/image margin,
9455         we need to look at ShowCheckMargin as well as ShowImageMargin.
9456
9457 2007-11-15  Geoff Norton  <gnorton@novell.com>
9458
9459         * XplatUIOSX.cs: Rename to...
9460         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
9461         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
9462
9463 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
9464
9465         * KeysConverter.cs: The default values should be an array of Keys, not
9466         strings.  Also, the array has more values for 2.0.
9467         [Fixes bug #341851]
9468
9469 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9470
9471         * Application.cs: Change ExecutablePath to use 
9472         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
9473         [Fixes bug #323552]
9474
9475 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9476
9477         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
9478         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
9479         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
9480         be ignored.  Create a new GetLineEnding that can specify which types of
9481         line endings to look for.  On Insert, only create new lines for \n and \r\n.
9482         [Fixes bug #324274]
9483
9484 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9485
9486         * TextBoxBase.cs: As we loop through each line changing the font, tell
9487         the document that the line needs to be recalculated.  Fixes bug #341534.
9488
9489 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
9490         [Another round of refactoring]
9491         * Line.cs: Add DeleteCharacters.
9492         * LineTag.cs: Add Delete.
9493         * TextBoxBase.cs: Update to use new methods.
9494         * TextControl.cs: Refactor the Delete* methods.
9495
9496 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
9497
9498         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
9499         the patch. [Fixes #324856]
9500
9501 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9502
9503         * ListView.cs:
9504         * ListViewItem.cs: Add an initial implementation of
9505         2.0 ListViewItem.Position getter.
9506
9507 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9508
9509         * ListView.cs: Add a reordered_items_indices array, to allow us
9510         to have a different sorting than that of Items (the sorting in Items
9511         could not match the actual sorting in screen). This is needed to
9512         implement a pair of 2.0 features.
9513         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
9514         actual position in the ListView grid, since it could have a position
9515         different than its Index (position in ListViewItemCollection). 
9516
9517 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
9518
9519         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
9520         not draw partial lines.
9521         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
9522         LineLimit flag from the base is preserved.
9523         Fixes the windows part of bug #338965.
9524
9525 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
9526
9527         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
9528         so that it can be canceled in KeyPress.
9529         Fixes bug #340078.
9530
9531 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9532
9533         * ListView.cs: In ItemControl, reset mouse-handling related
9534         fields even if we dont' have items (we still should reset them when
9535         we had items but then called Items.Clear). Partially based in a patch
9536         by George Giolfan.
9537         Fixes #338399.
9538
9539 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
9540
9541         * Application.cs: In ProductVersion first try AssemblyFileVersion
9542         before falling back to assembly version. Fixes bug #339787.
9543
9544 2007-11-08  Andreia Gaita <avidigal@novell.com>
9545
9546         * HtmlElement.cs: Implement InnerText setter.
9547         * WebBrowserBase.cs: Implement Navigated event support.
9548         Add flag to track when the browser "document" is ready to be retrieved.
9549         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
9550         Make sure browser document is ready before retrieving it.
9551         Clean up cached objects (document) when moving to a new page through
9552         any of the navigation methods.
9553         Use the new Mono.WebBrowser.INavigation interface to control navigation.
9554         Implement OnNavigated event.
9555
9556 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
9557
9558         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
9559         DrawLinkLabel, this is handled by OnPaintBackground.
9560         Fixes bug #339565, part II.
9561
9562 2007-11-07  Andreia Gaita <avidigal@novell.com>
9563
9564         * Control.cs: Revert r88915. Selecting text on a textbox depends on
9565         getting a Select call on click, so this call needs to be here for now.
9566         Unfixes #325809
9567
9568 2007-11-07  Geoff Norton  <gnorton@novell.com>
9569
9570         * OSXStructs.cs: Add the kEventClassApplication constants.
9571         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
9572         application is deactivated otherwise Menu overlays linger on top of
9573         other application windows.
9574
9575 2007-11-07  Geoff Norton  <gnorton@novell.com>
9576
9577         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
9578         dont support cursors yet anyways.  This allows Reflector to run.
9579
9580 2007-11-07  Geoff Norton  <gnorton@novell.com>
9581
9582         * XplatUIOSX.cs: Implement DragSize.
9583
9584 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9585
9586         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
9587         ItemControl, request the focus, as .Net does. This is needed after 
9588         Control does not request focus anymore when it receives a
9589         WM_LBUTTONDOWN.
9590
9591 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
9592
9593         * Label.cs: Make DrawImage internal so it can be called from Theme code.
9594         Remove the DrawImage call from OnPaint.
9595         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
9596         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
9597         but before we draw the text for DrawLabel and DrawLinkLabel.
9598         Fixes bug #339565.
9599
9600 2007-11-05  Andreia Gaita <avidigal@novell.com>
9601
9602         * Control.cs: Remove select call on click. Fixes #325809
9603
9604 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9605
9606         * ListViewItem.cs: Add 2.0 Position property getter.
9607
9608 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9609
9610         * ListView.cs: Add 2.0 BackgroundImageTiled property.
9611         Also, to make it work properly, change item's BackColor and
9612         BackgroundImageLayout as needed.
9613         * ThemeWin32Classic.cs: Don't fill any background rectangle 
9614         in ListView.ItemControl when drawing items; just let the Control
9615         base implementation fill it.
9616
9617 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9618
9619         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
9620         as well as adding a custom 'dummy' Converter, as .net does.
9621
9622 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9623
9624         * PropertyGridView.cs: When clicking drop-down button,
9625         select an index in the listbox only if our standard values collection 
9626         has one or more items.
9627
9628 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9629
9630         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
9631         property.
9632
9633 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
9634
9635         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
9636         the value is not changed. This ensure a pushed button remains in that
9637         state when clicked again. When switching the value of PropertySort
9638         between Categorized and CategorizedAlphabetical, do not update the
9639         grid items and do not fire a PropertyChangedEvent. When clicking the
9640         sorting buttons, do not modify the PropertySort value when switching
9641         between Categorized and CategorizedAlphabetical but only update the
9642         button state.
9643
9644 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
9645
9646         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
9647         formatting.
9648         * PropertyGrid.cs: Also put Categorized button in pushed state when
9649         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
9650         for help description label.
9651
9652 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9653
9654         * ListView.cs: When calculating the biggest item for a given column,
9655         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
9656         the item's width.
9657
9658 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
9659
9660         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
9661         value for PropertySort on 1.0 profile. PropertySortChanged event
9662         should only be fired on 2.0 profile. Fixed NullReferenceException
9663         in UpdateSortLayout when PropertyGrid contains no items.
9664
9665 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
9666
9667         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
9668         [Fixes bug #338554]
9669
9670 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9671
9672         * ListViewItem.cs: Implement 2.0 IndentCount property.
9673
9674 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9675
9676         * X11Dnd.cs: When sending status in a dnd operation, compare current
9677         effect with the 'allowed' field instead of 'drag_data.Allowed', since
9678         the later is only created when a Winforms application is both the
9679         source and the target, but not when we are the target only.
9680         Fixes part of #324251.
9681
9682 2007-11-01  Geoff Norton  <gnorton@novell.com>
9683
9684         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
9685         order of Z-Order.
9686         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
9687         children out of the drawing view on mac.
9688         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
9689         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
9690         
9691 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
9692
9693         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
9694         on the non-hosted-control part of it shouldn't do anything.
9695         Fixes part of bug #327498.
9696
9697 2007-11-01  Andreia Gaita <avidigal@novell.com>
9698
9699         * WebBrowserBase.cs: revert previous change, resize can be called anytime
9700
9701 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
9702
9703         * Application.cs: When a toolstrip has the keyboard input loop, let messages
9704         it does not use flow through to controls that are hosted in menus.
9705         Same with mouse clicks.
9706         * Form.cs: Don't close all menus on click if the click is on a
9707         control hosted in a menu.
9708         Fixes part of bug #327498, and part of bug #325969.
9709
9710 2007-10-31  Andreia Gaita <avidigal@novell.com>
9711
9712         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
9713
9714 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
9715
9716         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
9717         Addresses an issue raised in bug #336218.
9718
9719 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
9720
9721         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
9722         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
9723
9724 2007-10-30  Andreia Gaita <avidigal@novell.com>
9725
9726         * ContainerControl.cs: Check if the active control is a
9727         child of a removed control and update active_control accordingly.
9728         Fixes #329718
9729
9730 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9731
9732         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
9733         or the MaxDate.  Fixed bug #337693.
9734
9735 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9736
9737         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
9738         after calling SetWindowLong for a form, to force an immediate NC refresh.
9739         Fixes first part of bug #325150.
9740
9741 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9742
9743         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
9744         simple.  Fixes the last part of bug #322668.
9745
9746 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9747
9748         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
9749         needs to be TopMost as well, or else the MessageBox is under the form.
9750         Patch by George fixes bug #325300.
9751
9752 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9753
9754         * X11Dnd.cs: When starting a new drag operation, reset the static
9755         'dropped' field to false (previously the implementation didn't reset
9756         it and got confused after the first drag).
9757         Fixes #325071.
9758
9759 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9760
9761         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
9762         items instead of re-creating them all. For this purpose we now cache
9763         both CategoryGridEntry items and the GridEntries for the main object's
9764         properties.
9765         * GridItem.cs: Make SetParent method abstract.
9766         * GridEntry.cs: Override the SetParent method (already there, but now
9767         we override it).
9768         Fixes #324866.
9769
9770 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9771
9772         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
9773         depending on its depth (as .Net does). Update the needed values in
9774         MouseDown handler. Also draw the plus/minus rect after the label,
9775         so we don't draw on top of it.
9776
9777 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
9778
9779         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
9780         processed by forms or controls when menu is active. [Fixes #333548]
9781
9782 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9783
9784         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
9785         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
9786         focus on mouse over.
9787
9788 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9789
9790         * TextControl.cs: Code cleaning, simplifying.
9791
9792 2007-10-24  Geoff Norton  <gnorton@novell.com>
9793
9794         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
9795         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
9796
9797 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9798
9799         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
9800         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
9801
9802 2007-10-24  Andreia Gaita <avidigal@novell.com>
9803
9804         * SendKeys.cs: apply jpobst's patch to bug #332409
9805
9806 2007-10-23  Andreia Gaita <avidigal@novell.com>
9807
9808         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
9809         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
9810         for some reason
9811
9812 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9813
9814         * PropertyGridView.cs: If a property has an UIEditor available,
9815         make the drop-down/editor button available only if the property
9816         is _not_ read only.
9817
9818 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9819
9820         * PropertyGridView.cs: Don't make the grid item textbox 
9821         editable when a drop-down control is available, but 
9822         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
9823         true. The same bur the color of the grid item value's label.
9824
9825 2007-10-22  Geoff Norton  <gnorton@novell.com>
9826
9827         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
9828         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
9829         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
9830         driver.  Padd the bottom of all real windows so the resize thumb doesn't
9831         obscure scroll/status bars.
9832
9833 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
9834
9835         * WindowsFormsSection.cs: Implement.
9836
9837 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9838
9839         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
9840         closed see #325434 patch.
9841
9842 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9843
9844         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
9845         see #325434 patch.
9846
9847 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9848
9849         * PropertyGridView.cs: When showing the textbox for a grid item,
9850         have two local variables to store the read-only and non-editable
9851         status of a grid item (we were previously using just one variable
9852         to do this, when actually they are slightly different).
9853         Fixes part of #325023.
9854
9855 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9856
9857         * PropertyGridView.cs: When showing a drop-down list, try to get the
9858         values using TypeConverter.ConvertTo (to convert to a string). Fixes
9859         part of #325023.
9860
9861 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9862
9863         * PropertyGrid.cs: When updating a property and populating sub grid
9864         items, remove the previous ones, and invalidate the specific area.
9865         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
9866         area behind a grid item.
9867         * GridItemCollection.cs: Add an internal Clear method, to allow us to
9868         clean the items if needed (specially for controls implementing 
9869         ICustomTypeDescriptor and returning a variable number of properties).
9870         Fixes #324865.
9871
9872 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
9873
9874         * TextControl.cs: Clean up and document the Insert function.
9875
9876 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9877
9878         * TextControl.cs: Make sure we know our start point for updating the view
9879         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
9880         update the view.
9881
9882 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9883
9884         * ListView: Couple of corcompare fixes.
9885
9886 2007-10-17  Geoff Norton  <gnorton@novell.com>
9887
9888         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
9889         the title caption of real window.
9890
9891 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9892
9893         * ErrorProvider.cs: Add the error provider's internal window to a 
9894         containercontrol when the parent changes.  [Fixes bug #329714]
9895
9896 2007-10-17  Geoff Norton  <gnorton@novell.com>
9897
9898         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
9899         When we make a new window; restore the old active window - fixes dialogs.
9900
9901 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9902
9903         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
9904         when modifying a property, and if found then invalidate as
9905         requested.
9906         Fixes part of #324865.
9907
9908 2007-10-17  Geoff Norton  <gnorton@novell.com>
9909
9910         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
9911         highly experimental.  Fixed coordinate translation.  Fixed window locations.
9912         Initial support for clipping. Implemented NC areas and menus.  Support for
9913         launching from command line from Will Johansson (wjohansson@atacomm.com).
9914         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
9915         wjohansson@atacomm.com)
9916         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
9917         Hwnds now track the existence of all of their children for Mac clipping.
9918     * XplatUI.cs: Re-enabled the native driver on the Mac.
9919
9920 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9921
9922         * Line.cs: Move the InsertString function to here.
9923         * TextControl.cs: Cleanup some duplicate code, move some InsertString
9924         functionality to Line.
9925
9926 2007-10-17  Geoff Norton  <gnorton@novell.com>
9927
9928         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
9929
9930 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
9931
9932         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
9933         always setting value to true.
9934         * Form.cs: When changing AcceptButton, notify new and original button.
9935
9936 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
9937
9938         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
9939         a custom control that implements IButtonControl instead of an actual
9940         button.  [Fixes bug #334244]
9941
9942 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
9943
9944         * Form.cs: Change SelectActiveControl to internal, we need to call it in
9945         MdiWindowManager.
9946         
9947         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
9948         active control when activate a new mdi window.
9949         
9950         [Fixes bug #330495]
9951
9952 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
9953
9954         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
9955         is already added.
9956         [Fixes bug #333617]
9957
9958 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9959
9960         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
9961         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
9962         so we always recalculate the whole document instead of just the new part.
9963         [Fixes bug #325082]
9964
9965 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9966
9967         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
9968         when the mouse was to the left of the first character in the line.
9969
9970 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9971
9972         * TextBox.cs, TextBoxBase.cs: When setting the document's password
9973         character, use the property instead of the variable so that the
9974         UseSystemPasswordChar property is taken into account.
9975         [Fixes bug #333748]
9976
9977 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9978
9979         * FolderBrowserDialog.cs: When a node is right clicked and the "New
9980         folder" contex menu appears, actually add the new folder to it, even
9981         if the node is not currently selected. Still use SelectedNode in case 
9982         there wasn't found a node under the pointer.
9983         Fixes #325452.
9984
9985 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9986
9987         * ListViewItem.cs: When retrieving the focused state, the index check
9988         should be done only when ListView is in virtualmode, as it is an
9989         expensive check for normal mode.
9990
9991 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9992
9993         * ListViewItem.cs: Make the focus state information be stored
9994         in the ListView, not in the items. This is done to match the MS
9995         behaviour for items that are not yet part of a ListView control;
9996         besides that, since just one item can be focused at the same time,
9997         we save a little space in our items.
9998         Fixes part of #331643.
9999
10000 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
10001
10002         * ComboBox.cs: When focus is lost, deselect the text. When setting
10003         text of control, select all text. Do not hide selection when control
10004         does not have focus. Fixes bug #333663.
10005
10006 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
10007
10008         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
10009         instead of ArgumentException when SelectionLength is set to negative
10010         value. Added same check to SelectionStart. Code formatting.
10011
10012 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
10013
10014         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
10015         or SelectionStart. Code formatting.
10016
10017 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10018
10019         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
10020         indicating that there was not a previous drag-and-drop operation going
10021         on.
10022         Fixes part of #325071.
10023
10024 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10025
10026         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
10027         AllowedEffect, don't let the drop operation happen. 
10028         Fixes #32580.
10029
10030 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
10031
10032         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
10033
10034 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
10035
10036         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
10037         is called.
10038
10039 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
10040
10041         * Line.cs: Add a method that finds the tag that contains an x-coord.
10042         * LineTag.cs: Add a method that finds the character at an x-coord using
10043         a binary search, the old way was a linear search.
10044         * TextControl.cs: Change FindCursor to use the above new methods.
10045
10046 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10047
10048         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
10049         value different than AllowedEffect). This should be possible to
10050         indicate that dragging is not possible in some control/area.
10051
10052 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
10053
10054         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
10055         descent internally when font changes instead of outside code being responsible
10056         for setting it.
10057         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
10058         instead of accessing internal variables.
10059
10060 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
10061
10062         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
10063         remove special treatment for ArrangeIcons since it is already arranged.
10064
10065 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10066
10067         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
10068         the Win32 backend uses Color.
10069         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
10070         Refactor to store a Color instead of a Brush for Color.
10071
10072 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10073
10074         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
10075         away.  I didn't realize I needed this when I refactored these earlier.
10076
10077 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10078
10079         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
10080         store a Color structure and use the ResPool for back color instead of
10081         holding onto brushes.
10082
10083 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10084
10085         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
10086         [Fixes bug #325592]
10087
10088 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10089
10090         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
10091         to recalculate its size.  Fixes a part of bug #331052.
10092
10093 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10094
10095         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
10096         button.  Fixes a part of bug #331052.
10097
10098 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10099
10100         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
10101         the CreateParams.
10102         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
10103         decorations.
10104         [Fixes bug #330986]
10105
10106 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10107
10108         * TextBoxTextRenderer.cs: Don't make this a static class, as static
10109         doesn't exist in 1.1.  (Thanks jb!)
10110
10111 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10112
10113         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
10114         class to allow us to use different backends on different platforms.
10115         Linux uses the current [Draw|Measure]String backend.  Windows uses
10116         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
10117         of GDI+.  This leads to better looking text and more accurate measurements
10118         on Windows, fixing many of the reported issues.
10119         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
10120
10121 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10122
10123         * FolderBrowserDialog.cs: When running on Windows,
10124         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
10125         since we must match both "C:" and "C:\" forms. A little hackish, but
10126         works.
10127         Fixes #325247.
10128
10129 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10130
10131         * ListView.cs: When calling EndEdit (after editing an item),
10132         create a new instance of LabelEditEventArgs to keep clean the fields
10133         in case we get a new call to BeginEdit; also do Application.DoEvents
10134         to have focus in synch. This is a fix similar to TreeView's #325244.
10135
10136 2007-10-07  Andreia Gaita <avidigal@novell.com>
10137
10138         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
10139         * WebBrowserBase.cs: Added dialog support, calling the
10140           WebBrowserDialogs classes for each specific dialog type.
10141
10142 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10143
10144         * ListView.cs: When the last item is focused and is removed,
10145         move the focus to the previous item (in Items order). This is what MS
10146         does.
10147         Fixes #330415.
10148
10149 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10150
10151         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
10152         instead of the opposite (RemoveAt call Remove). This is a better
10153         approach since we don't need to to a pair of traversals when using
10154         RemoveAt.
10155
10156 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10157
10158         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
10159         check that the node actually has nodes, and if not, move to the
10160         parent node instead. 
10161         Fixes #325265.
10162
10163 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10164
10165         * TreeView.cs: Move the previous change to the general case (to
10166         call Application.DoEvents in cases where the method was called by
10167         different places).
10168
10169 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10170
10171         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
10172         call Application.DoEvents. This is neccessary when we get a call to
10173         BeginEdit from an AfterLabelEdit handler, because the focus always
10174         goes to the TreeView, even if we try to give it to our
10175         LabelEditTextBox. The call do Application.DoEvents seems to
10176         synchronize the focus, basically.
10177         Fixes #325244.
10178
10179 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10180
10181         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
10182         should be false. This also removes some nasty recursive paths. Fixes
10183         part of #325244.
10184
10185 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
10186
10187         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
10188         state to normal. Also resize window when cascading. Fixes #325433. 
10189
10190 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
10191
10192         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
10193         DefaultForeColor, as drawing empty colored lines isn't very useful.
10194         [Fixes the not drawn lines part of bug #324358]
10195
10196 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
10197
10198         * TextControl.cs: Move Line and LineTag classes into separate files to
10199         make things easier to find.
10200         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
10201         * RichTextBox.cs: Capitalize LineTag.Length property access.
10202         - This is purely an organizational/formatting change, no logic changed. -
10203
10204 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10205
10206         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
10207         text is empty.
10208
10209 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10210
10211         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
10212         text is empty.
10213
10214 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10215
10216         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
10217         prevent calling of OnBackColorChanged. Fixes #325321.
10218
10219 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10220
10221         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
10222         because control can be disabled because owner is disabled.
10223
10224 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
10225
10226         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
10227         string.Empty, test failed from previous change.
10228
10229 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
10230
10231         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
10232         is null, not String.Empty.  See bug #323038.
10233
10234 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
10235
10236         * TextControl.cs: Change the margins to match MS a little better.
10237         Still not perfect for X11 due to some DrawString differences, but
10238         is still an improvement over the old stuff.
10239         Partially fixes #324467.
10240
10241 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10242
10243         * FolderBrowserDialog.cs: When using MyComputer as 
10244         RootFolder, let absolute paths be considered as valid ones. Also, use
10245         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
10246         for Windows compatibility.
10247         Partially fixes #325247.
10248
10249 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10250
10251         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
10252         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
10253         method, since it causes the dialog to not select folders directly
10254         under the root path (when setting SelectedPath property).
10255
10256 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10257
10258         * TreeNode.cs: When calling Expand/Collapse and need to call 
10259         ExpandBelow/CollapseBelow respectively, take into account
10260         partially visible nodes (previously Expanding/Collapsing
10261         a partially visible node in the bottom was not updating its +- sign).
10262
10263 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10264
10265         * TreeView.cs: When calling Expand on a TreeNode, and we need to
10266         expand nodes below (ExpandBelow), scroll the entire Viewport
10267         area if the node is above it and not visible (instead of scrolling
10268         the area from node's Bottom, which applies only when the node is
10269         visible).
10270         Fixes #325266.
10271
10272 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10273
10274         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
10275         node in the bottom area (as .Net does). This is done to preserve the
10276         scroll position when ExpandAll is called before handle is created for
10277         the 1.1 profile (bottom area, as opposed to top area in 2.0).
10278         Fixes #324103.
10279
10280 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10281
10282         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
10283         bottom area if we are in fact not using the vertical scroll bar.
10284         Fixes #324824.
10285
10286 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
10287
10288         * Control.cs: Comment out a double buffering optimization that doesn't
10289         take into account invalidates created in OnPaint, causing the control
10290         to never be redrawn.  It would take quite a bit of work to work around
10291         this, but I left it commented with an explanation for later possible
10292         optimization.
10293         [Fixes bug #328681]
10294
10295 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
10296
10297         * Control.cs: Ask parent to perform a layout if control is AutoSize and
10298         the text changes.
10299         * RadioButton.cs: Implement GetPreferredSizeCore.
10300         [Fixes bug #328672]
10301
10302 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
10303
10304         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
10305         corcompare stuffs.
10306
10307 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
10308
10309         * Application.cs: Move the sync context stuff to Run instead of RunLoop
10310         so that it doesn't get uninstalled on modal forms.
10311         * Control.cs: Install a sync context when a control is created.
10312         * WindowsFormsSyncronizationContext.cs: Create a private static control
10313         to invoke on.  This is easier than trying to find a created control we
10314         can use.
10315         [Fixes bug #327608]
10316
10317 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
10318
10319         * Application.cs: Install a WindowsFormsSynchronizationContext in the
10320         run loop, and uninstall it when done.
10321         * WindowsFormsSynchronizationContext.cs: Implement.
10322         [Fixes the common case in bug #327608]
10323
10324 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
10325
10326         * DataGridViewCellCollection.cs: Added argument checks for indexers.
10327         Use case-insensitive lookup of column name in indexer. Code
10328         formatting.
10329
10330 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10331
10332         * TreeNode.cs: When collapsing or expanding a node, check whether its
10333         change will affect the visible area (we were previously doing a
10334         IsVisible check, but that check is not enough since children nodes
10335         could be still visible). Fixes part of #325266.
10336
10337 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
10338
10339         * TreeView.cs: Always select the first node when the TreeView gets
10340         focus if there is no currently selected node.
10341         [Fixes bug #324279]
10342
10343 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
10344
10345         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
10346         node being selected is null.
10347         [Patch from Yves Bastide fixes bug #326858]
10348
10349 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10350
10351         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
10352         whether all the parent nodes are expanded.
10353         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
10354         call RecalculateVisibleOrder if all previous nodes are expanded.
10355         Before that we were doing a IsVisible check, but sometimes the node
10356         is not in the visible area, but _should_already be ready, because of
10357         all previous nodes are expanded. Fixes #325259.
10358
10359 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10360
10361         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
10362         portion of the item is clicked.
10363
10364 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10365
10366         * TextControl.cs: Do not tell the system to move the cursor if the
10367         textbox isn't focused.  Fixes part of bug #322668.
10368
10369 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10370
10371         * ComboBox.cs: When there are no items, do not show the dropdown if
10372         the down arrow is clicked.  Fixes part of bug #322668.
10373
10374 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10375
10376         * ToolStripComboBox.cs: Manually set the size of this control in the
10377         constructor, as it doesn't seem to be the same as DefaultSize.
10378         Fixes a failing monobuild test.
10379
10380 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
10381
10382         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
10383         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
10384
10385 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
10386
10387         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
10388         Desktop.  This lets it work for people who have moved their desktops
10389         from the default location on windows.  For people who have not, both
10390         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
10391
10392 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10393
10394         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
10395         but when the base constructor sets this, the control is null.  Set it
10396         again in the constructor.  Fixes a failing monobuild test.
10397
10398 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10399
10400         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
10401         get called.
10402         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
10403         called.
10404
10405 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10406
10407         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
10408         will handle it themselves.
10409         * ToolStripItem.cs: When deciding what the text of a tooltip should
10410         be, use the Text property instead of the text field.
10411         * ToolStripTextBox.cs: Handle tooltips.
10412         [Fixes bugs #325417 and #325973]
10413
10414 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10415
10416         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
10417         left click.  Fixes the easy part of bug #325969.
10418
10419 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10420
10421         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
10422         bug #325406, but set a minimum for StatusStrip to 22 to keep
10423         bug #325390 fixed.  I think this minimum would have been figured
10424         up automatically if the grip was actually a ToolStripItem, but it
10425         currently is not.
10426
10427 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10428
10429         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
10430         as this is apparently the actual value used by .Net. Also apply
10431         ItemPadding in Details view only, and decrease the general width padding,
10432         to have only the needed. This should fix #324340 in Windows too.
10433
10434 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10435
10436         * ListViewItem.cs: Don't Invalidate item if parent is inside
10437         a BeginUpdate/EndUpdate block. This prevents to have differences
10438         between the ListView and items state, as well as avoid some exceptions
10439         there.
10440         * ListView.cs: Make 'updating' field internal.
10441
10442 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10443
10444         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
10445         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
10446         size if appropriate.
10447         Fixes reopened bug #325414.
10448
10449 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10450
10451         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
10452         * ToolStripItem.cs: Invalidate before and after our new autosize when
10453         text changes.
10454         Fixes reopened bug #325390.
10455
10456 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10457
10458         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
10459         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
10460         #325044.
10461
10462 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10463
10464         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
10465
10466 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10467
10468         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
10469         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
10470         #82734.
10471
10472 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
10473
10474         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
10475         item to select when the ToolStrip is selected.
10476         * ToolStripControlHost: Realign the control when the bounds or visibility
10477         change.
10478         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
10479         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
10480         preferred height.
10481         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
10482         base.OnPaint.  Was causing text not to be drawn.
10483
10484 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
10485
10486         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
10487
10488 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10489
10490         * TreeView.cs: When creating the label edit text box,
10491         set is initially to Visible = false. This is done to
10492         prevent a confusion in the layout which makes it to lose
10493         focus when shown the first time. Fixes part of #82592.
10494
10495 2007-09-13 Andreia Gaita <avidigal@novell.com>
10496
10497         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
10498
10499 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10500
10501         * ToolStrip.cs: Take Margin into account when calculating preferred
10502         size.  Also, allow preferred size to get smaller than the explicit
10503         size.
10504         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
10505         First step towards fixing bug #82747.
10506
10507 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10508
10509         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
10510         full row select background over the plus/minus glyph.  Also, turn
10511         off the focus rectangle for full row select since MS doesn't seem
10512         to ever paint it.  [Fixes bug #81839]
10513
10514 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10515
10516         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
10517         This was causing keyboard opened dropdowns to lose focus.
10518         [Fixes bug #82803]
10519
10520 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10521
10522         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
10523         ClientRectangle instead.  [Fixes bug #82838]
10524
10525 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10526
10527         * SplitContainer.cs: We can't reset Visible on every layout because
10528         someone may have set Visible = false explicitly on a SplitterPanel.
10529         Make sure when we switch orientation the SplitterDistance does not
10530         change.  Fixes two failing tests.
10531
10532 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10533
10534         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
10535         TextRenderer, since the latter is only available in 2.0.
10536
10537 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
10538
10539         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
10540         * SplitContainer.cs: Implement FixedPanel layouting.
10541
10542 2007-09-12  Andreia Gaita  <avidigal@novell.com>
10543
10544         * WebBrowserBase.cs: setup shutdown routine
10545
10546 2007-09-12  Andreia Gaita  <avidigal@novell.com>
10547
10548         * Application.cs: Let keyboard events that are targetted 
10549                 to non-mwf windows hosted inside mwf (as in, webbrowser),
10550                 propagate properly. Fixes keyboard handling on the webbrowser.
10551
10552 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10553
10554         * ListView.cs: When handling MouseUp event and we are 
10555         highligting a node with the mouse right button, don't trigger
10556         Before/AfterSelecting event, since we are not actually selecting
10557         the node.
10558
10559 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10560
10561         * TreeView.cs: When editing a node, modify the edit text box
10562         depending on the text length (as you are typing), like MS does.
10563
10564 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
10565
10566         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
10567         Override GetPreferredSizeCore to perform calculations.  Remove custom
10568         autosize logic.  [Fixes bug #82739]
10569
10570 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
10571
10572         * TextBoxBase.cs: Modified should default to false.
10573
10574 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10575
10576         * Control.cs: Update the anchoring distances even when layout is supspended.
10577         Patch provided by George fixes bug #82805.
10578
10579 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10580
10581         * Control.cs: Provide a setter for ExplicitHeight.
10582         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
10583         remove the hacks in here for requested_height.
10584         [Fixes bug #82749]
10585
10586 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10587
10588         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
10589         Maximum to lower that its current Value caused an ArgumentException by setting
10590         the Value to the new Maximum.
10591
10592 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10593
10594         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
10595         handle moves to the closest tick when it is being dragged.
10596         [Fixes bug #82751]
10597
10598 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10599
10600         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
10601         can't let them count as real items when calculating where to merge in the
10602         user's items.  [Fixed bug #82786]
10603
10604 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10605
10606         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
10607         who want to add a menu item directly onto a toolstrip.
10608         [Fixes bug #82775, part II]
10609
10610 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10611
10612         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
10613         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
10614         don't set it to available.
10615         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
10616         [Fixes bug #82727, part II]
10617
10618 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10619
10620         * StatusStrip.cs: Change item placement to None if not visible.
10621         * ToolStripItem.cs: Invalidate when InternalVisible changes.
10622         These should have been committed to fix 82723, but I missed them.
10623
10624 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10625
10626         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
10627         Click, and that it is only called once.
10628         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
10629         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
10630         dropped down.
10631         [Fixes bug #82775]
10632
10633 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10634
10635         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
10636         to match .Net.
10637         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
10638         instead of 8, just like above. Partially fixes #82734.
10639
10640 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10641
10642         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
10643         fixes #82734.
10644
10645         * ListView.cs: Remove extra space between rows in Details view (match
10646         .Net). 
10647         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
10648         the DefaultFont.
10649
10650 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
10651
10652         * Application.cs: Modified ProductVersion to return value of
10653         AssemblyInformationVersion if available, and fallback to assembly
10654         version. Fixes bug #82746. Code formatting.
10655         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
10656         instead.
10657
10658 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10659
10660         * Control.cs: When updating ZOrder for a child control,
10661         take into account the implicit ones (we need it in our controls
10662         using them). Fixes #82642.
10663
10664 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
10665
10666         * ToolStripItem.cs: Add support for animated images.
10667         [Fixes bug #82726]
10668
10669 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
10670
10671         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
10672         visible.  [Fixes bug #82727]
10673
10674 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10675
10676         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
10677         so we repaint using the new size.  [Fixes bug #82723]
10678
10679 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10680
10681         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
10682         option.  [Fixes bug #81779]
10683
10684 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10685
10686         * TreeView.cs: Override HandleClick because the StandardClick style is
10687         set to false.  According to MSDN (and testing), the click events should
10688         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
10689
10690 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10691
10692         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
10693         the border will disappear.  Fixes reopened #82653.
10694
10695 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10696
10697         * Control.cs: If the control is autosize, and its preferred size changes
10698         when it lays out its children, tell its parent so it can be re-layed out.
10699         Fixing some of the fallout from r85433.
10700
10701 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10702
10703         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
10704         and CheckBox share some code.
10705
10706 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10707
10708         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
10709         the TrackBar, not every mouse move.  [Fixed bug #82718]
10710
10711 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10712
10713         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
10714         under 2.0 rendering.  [Fixes bug #82657]
10715
10716 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10717
10718         * TreeView.cs: If we found a TreeNode to display a context menu, but
10719         it doesn't have one to show, let the TreeView display its menu
10720         instead.  [Fixes bug #82680]
10721
10722 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10723
10724         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
10725         OnPaintInternal instead.  Give the internal TextBox a Border property
10726         so it can draw itself more correctly.  [Fixes bug #82653]
10727
10728 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
10729
10730         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
10731
10732 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10733
10734         * ComboBox.cs: Adjust combobox button state to reflect current state when
10735         back to enabled = true. Fixes first issue of #82654.
10736
10737 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10738
10739         * Control.cs: Fix last patch regression, prevent forms to update zorder when
10740         setting visible property.
10741
10742 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10743
10744         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
10745         fix zorder for controls initially created as non visible. Fixes #82667.
10746
10747 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
10748
10749         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
10750         mimic win32 look. Fixes #82656.
10751
10752 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
10753
10754         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
10755         Stubs for new net 3.5 classes.
10756
10757 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10758
10759         * ListViewItem.cs: In ListViewItemCollection operations calculate
10760         Layout for owner as well as invalidate it. Fixes part of #82642.
10761
10762 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
10763
10764         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
10765         when returning Enabled.  [Fixes bug #82651]
10766
10767 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
10768
10769         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
10770
10771 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10772
10773         * ListView.cs: Put item padding info in a single place
10774         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
10775         columns again.
10776         * ThemeWin32Classic.cs:
10777         * Theme.cs: Likewise.
10778
10779 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10780
10781         * ListView.cs: When a ListViewSubItem instance is invalidated,
10782         invoke Invalidate on parent ListViewItem, not parent ListView.
10783         Fixes #81570.
10784
10785 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10786
10787         * ListView.cs, ListViewItem.cs: corcompare stuffs.
10788
10789 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10790
10791         * BindingMemberInfo.cs: Implement == and != operators.
10792
10793 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10794
10795         * HtmlElementEventArgs.cs: Implement properties.
10796
10797 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10798
10799         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
10800
10801 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10802
10803         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
10804         Add (string,string,string) to implement the imagekey.  It turns out, we
10805         use the requested imagekey whereas .Net does not.  So I broke ours to match
10806         theirs.  :(
10807
10808 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10809
10810         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
10811
10812 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10813
10814         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
10815
10816 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
10817
10818         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
10819         up-to-date. Fixes bug #82618.
10820
10821 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
10822
10823         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
10824         reflect document changes. Fixes #82367.
10825
10826 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10827
10828         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
10829         as well as add new ones. This should make work the BackgroundImage
10830         property for ListView again.
10831
10832 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10833
10834         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
10835         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
10836         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
10837
10838 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10839
10840         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
10841         IsKeyLocked.
10842
10843 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10844
10845         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
10846         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
10847
10848 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10849
10850         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
10851         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
10852
10853 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
10854
10855         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
10856
10857 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
10858
10859         * GridEntry.cs: Implement GetService.
10860
10861 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
10862
10863         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
10864         for label editting, make sure we focus back on the TreeView.
10865         [Fixes bug #82590]
10866
10867 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10868
10869         * ListView.cs: Add some 2.0 overrides.
10870
10871 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10872
10873         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
10874         because getter dont returns right value before handle creation. Thanks 
10875         to George. Fixes #82569.  
10876
10877 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10878
10879         * Theme.cs: Revert last patch, it causes error under win32. 
10880
10881 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10882
10883         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
10884         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
10885         logical Desktop rather than the physical file system location. Fixes #82603. 
10886
10887 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
10888
10889         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
10890         for the patch. Fixes #82568.
10891
10892 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10893
10894         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
10895         methods.
10896
10897 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10898
10899         * ListViewInsertionMark.cs: New stubbed class.
10900
10901 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10902
10903         * FolderBrowserDialog.cs: When adding folder, immediately create the
10904         directory with temporary name and rename the directory when editing
10905         finishes. This matches MS. Ensure the node for the new folder is 
10906         selected and LabelEdit is disabled, when editing is either finished
10907         or cancelled.
10908
10909 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10910
10911         * TreeView.cs: When editing label of node, ensure node is visible.
10912
10913 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
10914
10915         * PropertyGridView.cs: Set the value only if it has changed.
10916
10917 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10918
10919         * ListView.cs: Some more code refactoring to add support sorting
10920         with groups (now for Details view). Remove unused code also.
10921
10922 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10923
10924         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
10925         Not a big fan of reacting immediately to a field in an EventArg, but that's
10926         the way it's done.  (This is part of the previous commit that got left out.)
10927
10928 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10929
10930         * FolderBrowserDialog.cs: Removed need for separate description field.
10931         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
10932         has focus when dialog box is displayed again, regardless of what
10933         button was pressed the previous time. Set RootFolder and SelectedPath
10934         each time dialog box is displayed. This ensures the treeview is
10935         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
10936         when it does not have focus. Added support for more special folders.
10937
10938 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10939
10940         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
10941         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
10942         it resets the edit_args.
10943         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
10944         [Fixes bug #82577]
10945
10946 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
10947
10948         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
10949         button to match MS. Provide more meaningful exception message for
10950         invalid RootFolder value. Use zero-length string when SelectedPath
10951         is set to null. Allow non-rooted paths in SelectedPath, but ignore
10952         them in FolderBrowserTreeView. Allow folders to be created in
10953         RootFolder. Fixes bug #82576.
10954
10955 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10956
10957         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
10958         since we need to take into account the group headers and the margin
10959         between them.
10960         * ListViewGroup.cs: Add a rows field to store the number of rows per
10961         group.
10962
10963 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10964
10965         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
10966           Anyways, let's just follow the lead.
10967
10968 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10969
10970         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
10971         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
10972         controls in GetPreferredSizeCore.
10973         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
10974         [Fixes bug #82488]
10975
10976 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10977
10978         * PrintDialog.cs: Need to instantiate the form variable here too.
10979
10980 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10981
10982         * ListView.cs: Do some reorganization to support sorting in groups,
10983         by doing the layout sequentially in ListView.Items. Also add support
10984         for the Default Group, which should be available for items with no
10985         group assigned.
10986         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
10987         for storing layout info also.
10988         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
10989         collection, as well as providing internal members to do a traversal
10990         including the default group (needed when doing layout/drawing).
10991         * ThemeWin32Classic.cs: When drawing group headers use internal
10992         ListViewGroupCollection members to take into account the default
10993         group.
10994
10995 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
10996
10997         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
10998
10999 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11000
11001         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
11002         been created.  If handle is created, we want arror keys.  If we are editing
11003         a node, we want things like enter, esc, home, end, page up, page down.
11004         Allows Esc to work for FolderBrowserDialog.
11005
11006 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11007
11008         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
11009         they close when ESC is pressed.  Thanks Andy!
11010
11011 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11012
11013         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
11014         This way we can tell if this is a CommonDialog provided with mono, or one
11015         that is being implemented outside by a developer.  If it is an external one,
11016         the developer is responsible for showing their own form.  We were showing
11017         our blank form after the developer showed his.
11018         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
11019         PageSetupDialog.cs: Instantiate form variable in our constructor.
11020         [Fixes bug #82531]
11021
11022 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11023
11024         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
11025         and always return true.  [Fixes bug #81616]
11026
11027 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11028
11029         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
11030         TextBox.  [Fixes bug #82549]
11031
11032 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
11033
11034         * FileDialog.cs: When Save/Open is clicked and no filename is selected
11035         or entered then do not close the dialog. Fixes bug #82539. Removed
11036         CWLs.
11037
11038 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
11039
11040         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
11041         code to this method. It is calling every time filter changes. This method
11042         will help to fix the bug #80887.
11043
11044 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
11045
11046         * CheckBox.cs: Implement AutoSize calculation.
11047
11048 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
11049
11050         * CheckBox.cs: Use new 2.0 rendering for 2.0.
11051         * Theme.cs: Method declarations for 2.0 rendering path.
11052         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
11053
11054 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11055
11056         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
11057
11058 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11059
11060         * ListViewGroupCollection.cs: Implement AddRange the right way, to
11061         only call Redraw on the parent one time.
11062
11063 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11064
11065         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
11066           GetClipboardContent.
11067         * DataGridViewCell.cs: Implemented GetClipboardContent,
11068           GetEditedFormattedValue, GetFormattedValue.
11069         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
11070
11071 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
11072
11073         * TableLayoutStyleCollection.cs: corcompare fix.
11074
11075 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11076
11077         * DataObject.cs: Implemented retrieval of convertible / not convertible
11078           objects.
11079
11080 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
11081
11082         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
11083         ourselves.  This ensures the entire old bounds are repainted, in case our new
11084         size is smaller.  [Fixes bug #82518]
11085
11086 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
11087
11088         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
11089         flag to make fast handle of mouse events, without this the mouse move is
11090         handled in some manner, whether it is a mouse move or not. Fixes #81588.
11091
11092 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11093
11094         * ListView.cs: When doing layout calculations don't use a ref
11095         param to keep the current item; instead use its Index value (this 
11096         is specially important when doing the layout with Groups
11097         and Items being sparse). Also don't take into account items added to
11098         the Group but not yet added to the main ListView.Items collection.
11099
11100 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11101
11102         * ListViewGroupCollection.cs: Forgot to mimic an issue
11103         in the indexer (don't assign the ListView owner for new values).
11104
11105 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11106
11107         * ListViewGroupCollection.cs: Make the string indexer use
11108         the int based indexer to re-use code, instead of duplicate the code.
11109         Also Redraw as needed and take into account null values.
11110
11111 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
11112
11113         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
11114         [Fixes bug #82481]
11115
11116 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
11117
11118         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
11119         when other buttons are clicked or navigated to.
11120
11121 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11122
11123         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
11124           it's XplatUIX11 that attaches them.
11125
11126 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11127
11128         * DataGridView.cs: If a column has been added, recreate the editing row.
11129           Fixes #82226.
11130
11131 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11132
11133         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
11134           of the tag to draw. Makes disappearing text show up again.
11135
11136 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11137
11138         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
11139           Contents. Fixes #82487.
11140
11141 2007-08-19  Andreia Gaita  <avidigal@novell.com>
11142
11143         * Added HtmlElement.cs, HtmlElementCollection.cs, 
11144           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
11145           
11146 2007-08-19  Andreia Gaita  <avidigal@novell.com>
11147
11148         * BindingSource.cs: Implement this, dispose and getenumerator.
11149         * DataGridViewRowCollection.cs: Move the InvalidOperationException
11150         out of AddInternal, throw it only on public Add calls. The 
11151         UsingWebBrowser sample was blowing up with this when setting the
11152         DataSource after adding DataBindings, so it's likely that .net
11153         only throws this exception when Add is called directly. 
11154         
11155         * ToolStripControlHost.cs: Return the hosted control's text
11156         property, and not the ToolStripItem one (it would always return
11157         the initial value).
11158         
11159         * HtmlDocument.cs: Implement GetElementById and All
11160         * WebBrowser.cs: Remove exception on set_DocumentStream.        
11161
11162 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11163
11164         * Form.cs: Fix the max and min value for opacity (0~1).
11165
11166 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11167
11168         [Fixes #80118]
11169         * DataGridTableStyle.cs: Default header font is now null, on getter it 
11170         returns datagrid font when is null. On setter permits null.
11171
11172         * DataGrid.cs:
11173         - When ResetHeaderFont set header font to null.
11174         - On EndInit set grid_style.DataGrid.
11175
11176 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11177
11178         * TabControl.cs: Fix regression in default padding x.
11179
11180 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11181
11182         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
11183
11184 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11185
11186         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
11187         not 2. Fixes #82229.
11188
11189 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11190
11191         * TabControl.cs: Fix tab size when image height is less than text height.
11192         Partially fixes #81837.
11193
11194 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11195
11196         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
11197         "alt + tab". It works only for Win32, for X11 theres no way to remove window
11198         from taskbar and keep it on "alt_tab". Fixes #81722.
11199
11200 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11201
11202         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
11203         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
11204         Fixes #80877 and #79418.
11205
11206 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11207
11208         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
11209         between position and one of the screen borders. Fixes #82349.
11210
11211 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11212
11213         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
11214         the MessageBox in the taskbar. Fixes #82457.
11215
11216 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11217
11218         * MessageBox.cs: Fix form size when icon is set and text height is bigger
11219         than icon. Fixes #82468.
11220
11221 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11222
11223         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
11224         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
11225           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
11226           Refactored HandleNCCalcSize somewhat to avoid code duplication.
11227         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
11228           FormBorderStyle to decide if we're calculating a new size from the
11229           client size or not. CreateParams: Don't fake tool windows, only the X11
11230           backend manages toolwindows manually.
11231
11232 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11233
11234         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
11235         ObjectDisposedException.
11236
11237 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11238
11239         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
11240         in OnLoad should not have any effect.  [Fixes bug #82470]
11241
11242 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11243
11244         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
11245         paint for controls that create their own ToolTipWindow instead of
11246         going through ToolTip.
11247
11248 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11249
11250         * ToolTip.cs: Make Hide internal instead of public to match MS API.
11251
11252 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11253
11254         * ListViewGroupCollection.cs: Use generic List instead of an
11255         ArrayList, since this collection is 2.0 only.
11256
11257 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
11258
11259         * ToolTip.cs (Hide): Made public to make the build work (should
11260         this not be public?).
11261
11262 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11263
11264         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
11265         ToolTipWindow.
11266         * ToolTip.cs: Add an internal Visible property to facilitate transition.
11267
11268 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11269
11270         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
11271         PopupEventHandler.cs: Make these internal for 1.1.
11272         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
11273         use ToolTipWindow internals.
11274         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
11275         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
11276
11277 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11278
11279         * X11Dnd.cs: Add a null check.
11280
11281 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11282
11283         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
11284           nothing else succeeds. Fixes #82453.
11285
11286 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11287
11288         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
11289           rectangle if we're painting to another window than the one the paint
11290           message was generated on. Simplify the code somewhat, which makes
11291           PaintEventEnd also simpler.
11292
11293 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11294
11295         * Control.cs: When changing parent of a form, let the form decide whether
11296           XplatUI.SetParent should be called or not.
11297         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
11298           recreating the handle. If the new parent's handle isn't created, don't
11299           recreate our handle, just destroy it. CreateParams: Check if the
11300           parent's handle is created before fetching it.
11301
11302 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11303
11304         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
11305           Update calls to PaintEventStart/End to take a Message argument.
11306         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
11307           take a Message argument.
11308         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
11309           Message argument, and handle the case where we don't paint to the window
11310           for which the paint message was generated.
11311
11312 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11313
11314         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
11315           Marshal.GetLastWin32Error. Plug nasty memory leak in
11316           PaintEventStart/End, we were creating a DC we weren't releasing.
11317
11318 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11319
11320         * ListView.cs: Add Groups support in Details view. Also have a small
11321         method to do the layout of the group header. Don't use a separate
11322         method to do the groups calculation in Icons view, since our methods
11323         are now a little simpler.
11324         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
11325         `Bounds'.
11326         * ThemeWin32Classic.cs: Likewise.
11327
11328 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
11329
11330         * Application.cs: Add FilterMessage method and rework our message loop
11331         logic to use it.
11332
11333 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
11334
11335         * Application.cs: Add some methods and stub a few methods that are
11336         pretty much never used.
11337
11338 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
11339
11340         * TreeNode.cs: Add some serialization methods.
11341
11342 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11343
11344         * ListView.cs: In ListViewItemCollection have a 
11345         'is_main_collection' field to not modify ListViewItem.ListView
11346         when using it as ListViewGroup.Items (and not ListView.Items)
11347         and also don't modify selection state (.Net behaviour). 
11348         Instead, set group for items contained in a ListViewGroup.Items collection.
11349         * ListViewItem.cs: Simplify some code in Group setter.
11350         * ListViewGroup.cs: use the new .ctor to pass the current instance
11351         to the ItemsCollection.
11352         * ListViewGroup.cs: Set the ListView property for ListViewGroup
11353         instances when adding/removing. Also make Remove use RemoveAt, which
11354         should perform better.
11355
11356 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11357
11358         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
11359         that crept into the 1.1 profile.
11360
11361 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11362
11363         * ToolBarButton.cs: Implement ImageKey.
11364
11365 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11366
11367         * ToolBar.cs: Implement ScaleControl/ScaleCore.
11368
11369 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11370
11371         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
11372           created, it might have gotten destroyed since we last checked. Fixes
11373           #82405.
11374
11375 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
11376
11377         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
11378         tooltip will hide when mouse is moved off the control.
11379         [Fixes bug #82407]
11380
11381 2007-08-11 Andreia Gaita <avidigal@novell.com>
11382
11383         * WebBrowserBase.cs, WebBrowser.cs: add implementation
11384         using Mono.Mozilla for loading and navigating webcontrol
11385         with xulrunner.
11386         The initial implementation was done on 
11387         /trunk/mozembed/tests/browser , and copied here.
11388
11389 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
11390
11391         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
11392         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
11393
11394 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11395
11396         * DataGridView.cs: Add support for an editing row. Fixes #82226.
11397           RowTemplateFull: throw an exception if a column doesn't have a template.
11398         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
11399           add the row just before it.
11400         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
11401           selected.
11402         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
11403           DataGridView field to be able to reach the grid's editing row.
11404
11405 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11406
11407         * ToolTip.cs: If the control's handle hasn't been created when it has a
11408         tooltip set on it, don't check to see if we need to show the tooltip.  This
11409         check was causing the control's handle to be created.
11410         [Fixes bug #82399]
11411
11412 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11413
11414         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
11415                                         1.1             2.0
11416         Handle Not Created      -1              0
11417         Handle Created          0               0
11418         [Fixes bug #82371]
11419
11420 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11421
11422         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
11423         [Fixes bug #82348]
11424
11425 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
11426
11427         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
11428         * ToolTip.cs: Implement some properties and owner draw.
11429
11430 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11431
11432         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
11433           show them again, since setting visibility causes a paint, causing an
11434           endless loop (instead use a temporary and set it all when it's known if
11435           they should be shown or not). Fixes #79265.
11436
11437 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11438
11439         * DataGridView.cs: Only do a full column/row selection if a header was
11440           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
11441           isn't pressed, deselect everything before selecting something.
11442
11443 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11444
11445         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
11446           behaviour according to bug #81075 - they are returned in the order they
11447           are selected. Fix HitTest to check if the point is within any of the
11448           headers. Allow for row/column selection when in ColumnHeader or
11449           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
11450           the row and column to call when their selected state changes, and
11451           updated selected_[rows|columns] whenever SetSelected* is called.
11452         * DataGridViewBand.cs: Initialize isRow correctly. Call
11453           SetSelected[Row|Column]CoreInternal when the selected state changes, and
11454           add a SelectedInternal to avoid StackOverflows.
11455         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
11456           ReadOnly no matter what.
11457         * DataGridViewSelectedColumnCollection.cs,
11458           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
11459           the items in reverse order (just as MS does...)
11460
11461 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
11462
11463         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
11464         itself, not part of a mnemonic.  [Fixes bug #82378]
11465
11466 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11467
11468         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
11469         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
11470           the DGV, the column, the row, or the cell itself is readonly.
11471
11472 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
11473
11474         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
11475         OSVersion.Platform.
11476         * FileDialog.cs: Same.
11477         * TextRendered.cs: Same.
11478         * FolderBrowserDialog.cs: Same.
11479         * TextBoxBase.cs: Same.
11480         * Application.cs: Same.
11481         * Cursors.cs: Same.
11482         * ThemeClearLooks.cs: Same.
11483
11484 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
11485
11486         * XplatUI.cs: Added RunningOnUnix property to be used by controls
11487         instead of duplicating these checks everywhere.
11488         * FileDialog.cs: Use case-insensitive comparison for populating the
11489         DirComboBox when not running on unix. Fixes bug #82385.
11490         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
11491         "Look in".
11492
11493 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11494
11495         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
11496           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
11497           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
11498           cell and column selection with ctrl and shift pressed. Call the correct
11499           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
11500           the corresponding virtual method (PaintBackground to paint background,
11501           etc).
11502         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
11503           either the column, row or the cell itself is selected.
11504         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
11505           OnRowsAdded.
11506         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
11507           here. When the row is selected, don't select all cells. Each cell now
11508           queries the row to see if the row is selected.
11509
11510 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11511
11512         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
11513           SelectionMode.
11514
11515 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11516
11517         * ListView.cs: In ListViewItemsCollection check that owner is
11518         not null before trying to access it (this happens quite often
11519         using Groups). Also don't duplicate calls by calling CollectionChanged
11520         method.
11521
11522 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11523
11524         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
11525         when we are dismissed to clear keyboard mnemonics.
11526         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
11527         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
11528         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
11529         was activated by keyboard or the OS tells us to always draw them.
11530         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
11531         [Fixes bugs #82376, #82377]
11532
11533 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11534
11535         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
11536         shot at having it because Alt was pressed.
11537         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
11538         the first real menu item.
11539         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
11540         a mnemonic if Text is null.
11541         [Fixes bug #82374]
11542
11543 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11544
11545         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
11546         search do check whether the item is already contained in the
11547         collection or not; instead check if the owner of the item is the same
11548         as ours. Also, remove a redundant check in the same method. 
11549
11550 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11551
11552         * Control.cs: Allow the clip region to be set back to null.
11553         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
11554         [Fixes button still showing up in bug #82370 when Show Through is turned off]
11555
11556 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11557
11558         * GridEntry.cs: Add a null check.
11559         * PropertyGrid.cs: When checking for existing grid entries, ignore category
11560           entries. Fixes #82297.
11561
11562 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
11563
11564         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
11565         for 2.0.
11566
11567 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
11568
11569         * ListBox.cs: Implement ScaleControl.
11570
11571 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11572
11573         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
11574           have a menu strip.
11575         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
11576           parent has a menu strip. Fixes #81689.
11577
11578 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11579
11580         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
11581           moments, so apply some fuzzy logic to determine if the mouse is still
11582           inside a control or not. Fixes #82288 (for the third time).
11583
11584 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11585
11586         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
11587           Don't create the child if it has been disposed already (may happen if
11588           the user closes the form the Load event).
11589
11590 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11591
11592         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
11593           #82288.
11594
11595 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11596
11597         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
11598           might call us after we've been destroyed, in which case our own private
11599           parent field is null. Fixes #82326.
11600
11601 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
11602
11603         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
11604         check for setting the dropdown's owner.
11605
11606 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
11607
11608         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
11609         before removing system menu items.
11610
11611 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
11612
11613         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
11614         folding.
11615         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
11616         folding.
11617         * ToolStrip.cs: Add a null check to mnemonics.
11618         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
11619         no ConnectedArea.
11620         [Fixes most of bug #81689]
11621
11622 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11623
11624         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
11625
11626 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11627
11628         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
11629
11630 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11631
11632         * DataGridViewCell.cs: EditType: returns
11633           DataGridViewTextBoxEditingControl always.
11634
11635 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
11636
11637         * TextRenderer.cs: Remove the LineLimit string format flag from the
11638         DrawString fallback method so that things like buttons that aren't
11639         tall enough to draw a full line will still draw part of the text.
11640         [Fixes part of bug #82272]
11641
11642 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11643
11644         * DataGridView.cs: Implemented AutoResizeColumn(s).
11645         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
11646           according to the Alignment.
11647         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
11648           Implement alignment and padding when painting.
11649         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
11650           exists.
11651         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
11652           way.
11653         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
11654           a column is added.
11655
11656 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11657
11658         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
11659         which is internal.
11660
11661 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11662
11663         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
11664         hide GetPreferredSize from public API.
11665         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
11666         * ToolStripItem.cs: Stub out drag and drop methods and events.
11667         * ToolStripManager.cs: Stub out Save/LoadSettings.
11668         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
11669         * ToolStripPanel.cs: Fix corcompare error.
11670         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
11671         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
11672         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
11673
11674 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11675
11676         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
11677         bounds height instead of PreferredHeight.  Puts things back the way 
11678         they were for height while still fixing the width.  Fixes broken unit
11679         tests.
11680
11681 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11682
11683         * Binding.cs: Implement 2.0 constructors and add a null check.
11684
11685 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11686
11687         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
11688           and fix row index (off by one).
11689
11690 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11691
11692         * PropertyGridView.cs: Remove debug output.
11693
11694 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11695
11696         * Control.cs: We need to reset the is_created flags when the handle is
11697           destroyed. Fixes #82187.
11698         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
11699           client coordinates if the window doesn't have a parent.
11700           Win32GetParent returns the parent or the owner, and for top-level
11701           windows with no parent (but with an owner) we were calculating the
11702           location from the location of the owner.
11703         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
11704           form has been disposed.
11705         * MdiClient.cs: Add a null-check.
11706
11707 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
11708
11709         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
11710         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
11711         so we can provide an implementation that returns the current width
11712         and preferred height.  Allows anchor = right to work with TextBox 2.0.
11713         [Fixes bug #82233]
11714
11715 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11716
11717         * ListView.cs: Add support for navigating items in Groups mode, by
11718         creating a big matrix containing all rows and cols of all groups. When
11719         are in other mode than Details, pressing Up should have a similar
11720         behaviour as that one of Down (moving to the next available column if
11721         current one doesn't have an item in the requested row). Also, don't
11722         proceed to use groups if ShowGroups is false.
11723         * ListViewGroup.cs: Add an internal int field to store the starting
11724         row of the group (used by the big matrix used for navigating the
11725         ListView).
11726         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
11727         false.
11728
11729 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
11730
11731         * ToolStripDropDown.cs: When we do Show, start with the 
11732         DefaultDropDownDirection, but if our popup menu is going to off-screen,
11733         modify the direction to keep it on screen.  [Fixes bug #82210]
11734
11735 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
11736
11737         * FileDialog.cs: Accept any FilterIndex value, and store it
11738         unmodified. When FilterIndex is less than 1, or greater than number
11739         of filters, then default to first filter. Only add filter extension to
11740         file if user did not specifiy an extension. When type of dialog is
11741         OpenFileDialog and DefaultExt is set, then only use filter extension
11742         if: CheckFileExists is true and no file wih the default extension
11743         exists, or CheckFileExists is false, and user specified file does not
11744         exist. When CheckFileExists is true, then add first extension of 
11745         selected filter that matches existing file. Perform checks for
11746         existing file, overwrite and create after extension has been added to
11747         file name. When CheckFileExists is true and type is SaveFileDialog,
11748         then only consider first filter extension if DefaultExt is set.
11749         When CheckFileExists is true, then ignore DefaultExt if file with that
11750         extension does not exist. Also perform check for existing file when
11751         type is SaveFileDialog. Changed some field to constants.
11752
11753 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11754
11755         * ListView.cs: Take into account the region used by header
11756         control when doing the vertical scroll (this way we invalidate
11757         the precise area, and don't get any dirty one).
11758
11759 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
11760
11761         * FileDialog.cs: Check for valid filterIndex on button open/save. 
11762         Fixes #82184.
11763
11764 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11765
11766         * ListView.cs: Update some layout calculations in details view
11767         and clean the code in a pair of assignations.
11768
11769 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11770
11771         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
11772         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
11773         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
11774         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
11775
11776 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11777
11778         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
11779         performance of thread-safe Graphic methods.  (Thanks rolf!)
11780
11781 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11782
11783         * ListView.cs: When doing the layout calculations, don't calculate
11784         scroll bars before handle is created. This is unnecessary and also
11785         calculating them before handle creation item causes a number of random
11786         bugs (which begin to appear after Chris' big patch for handle creation
11787         fixes). 
11788
11789 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11790
11791         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
11792         for things that don't have a Graphics object.  Currently, things just use
11793         the static Hwnd.bmp_g which is not thread safe.
11794
11795 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11796
11797         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
11798           dialog. Fixes #82187.
11799
11800 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11801
11802         * DataGridViewElement.cs: Initialize state.
11803         * DataGridView.cs: Forward a few Mouse events to cells. Add
11804           GetRowInternal and GetCellInternal that doesn't unshare rows.
11805           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
11806           don't use the index, but look it up. Add
11807           DataGridViewControlCollection.RemoveInternal to remove controls
11808           that Remove won't remove (scrollbars, edit control).
11809         * DataGridViewColumn.cs: Initialize State correctly.
11810         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
11811           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
11812           implementing this.
11813         * DataGridViewRowCollection.cs: Implemented shared rows.
11814         * DataGridViewRow.cs: Throw exceptions as MS do.
11815         * DataGridViewCell.cs: A few properties are implemented by a
11816           Get<Property> method, so move implementation there and remove the
11817           NIEX in the method. Add a bunch of OnXInternal that DataGridView
11818           calls when necessary.
11819         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
11820           complicates matters.
11821         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
11822           unshare any rows.
11823
11824 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11825
11826         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
11827         the children controls.  Instead, we will just set up the proper docking for the
11828         children controls so we don't have to worry about it.  [Fixes bug #82188]
11829
11830 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11831
11832         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
11833         canceling and correct Before/AfterLabelEdit properties as layed out in bug
11834         81847.  [Fixes bug #81847]
11835
11836 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11837
11838         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
11839         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
11840         an explicit size based on the design-time size of the text.  Since our fonts
11841         may not match this explicit size, we tend to cut off the ends of people's labels.
11842
11843 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
11844
11845         * Menu.cs: Add some missing methods to MenuItemCollection.
11846
11847 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11848
11849         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
11850         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
11851         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
11852         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
11853         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
11854         * DataGridViewElement.cs: State defaults to Visible.
11855         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
11856         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
11857
11858 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11859
11860         * Control.cs: Minor 1.1 corcompare fix.
11861
11862 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11863
11864         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
11865         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
11866
11867 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11868
11869         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
11870           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
11871           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
11872           DataGridViewSelectedColumnCollection.cs,
11873           DataGridViewSelectedRowCollection.cs: Corcompare work.
11874
11875 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11876
11877         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
11878         it is autoset by VS2005 designer and the effect is barely noticeable.
11879
11880 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11881
11882         * TreeView.cs: Implement HitTest.
11883
11884 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11885
11886         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
11887           manually adding and removing the control from the Controls
11888           collecftion.
11889         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
11890           EditingControlInternal property that tracks the editing control.
11891           Always keeping the scrollbars in the Controls collection, as MS
11892           testing confirms is the right behaviour.
11893
11894 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11895
11896         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
11897           according to MSDN and new test.
11898
11899 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11900
11901         * TreeNode.cs: Implement ToolTipText.
11902         * TreeView.cs: Implement tooltips, NodeMouse* events.
11903
11904 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11905
11906         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
11907
11908 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11909
11910         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
11911         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
11912
11913 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
11914
11915         * Control.cs, Form.cs, ContainerControl.cs,
11916         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
11917         for misc properties.
11918
11919 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11920
11921         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
11922         * TreeView.cs: Implement StateImageList.
11923
11924 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11925
11926         * Form.cs: Don't check if the current form is the active form before
11927           activating it. Fixes #81904.
11928
11929 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11930
11931         * Form.cs: Don't check if the current form is the active form before
11932           activating it. Fixes #81904.
11933
11934 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11935
11936         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
11937
11938 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11939
11940         * Form.cs: Don't try to position the form after loading if the form was
11941           disposed. Fixes #81969.
11942
11943 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11944
11945         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
11946           properties. Had to change ToolBar into ToolStrip, which required a
11947           few #ifs.
11948
11949 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11950
11951         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
11952           resized, fixes part of #79829 (vertical lines in toolbar).
11953           PropertyGrid: Refactored Populate* to something that's easier to
11954           follow at least for me, as well as splitting it up into several new
11955           methods, required to update only subitems when something has
11956           changed by a popup editor or listbox. Don't use events to check
11957           when any values are changed, since the events are unreliable (we're
11958           changing the objects the events are registered with, and if the
11959           event handling requires the objects to be immutable (objects stored
11960           in hashtables for instance), the events will never be raised).
11961         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
11962           everytime we change a value, since events are unreliable.
11963           DropDownButtonClicked: For the same reason don't compare objects to
11964           check if it has changed or not, it would require all objects to
11965           derive Equals. Fix dialog location on windows, MS is doing weird
11966           things when creating parented forms.
11967         * GridEntry.cs: Add a SelectedObject setter.
11968
11969 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
11970
11971         * TreeNode.cs: Add some corcompare attributes.
11972         * TreeNodeCollection.cs: Implement 2.0 stuffs.
11973         * TreeView.cs: Implement some 2.0 stuffs.
11974
11975 2007-07-18  Andreia Gaita  <avidigal@novell.com>
11976
11977         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
11978         for moma.
11979
11980 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
11981
11982         * ListBox.cs: Implement custom tab offsets.
11983
11984 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11985
11986         * ToolStripContentPanel.cs: Support System renderer.
11987         * ToolStripControlHost.cs: Set RightToLeft to default to No.
11988
11989 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11990
11991         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
11992
11993 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11994
11995         * CheckBox.cs: Chain TextAlign to base implementation instead of
11996         maintaining another one.
11997
11998 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11999
12000         * ButtonBase.cs: Fix an incorrect string constant.
12001
12002 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12003
12004         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
12005         of creating one for measuring strings.
12006
12007 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12008
12009         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
12010         Implement MaxItemSize.
12011
12012 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
12013
12014         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
12015         for DeviceContext.  Instead, use the static one available in Hwnd.
12016         Informal tests show this saves about 500k on formtest.exe.
12017
12018 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
12019
12020         * ContainerControl.cs: Implement 2.0 AutoScaling.
12021
12022 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12023
12024         * ComboBox.cs: Work around bug #82120 (bug in mcs).
12025
12026 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
12027
12028         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
12029         Darken the focus color.
12030
12031 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
12032
12033         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
12034         for the checkbox.
12035         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
12036         X, Y instead of a rect for drawing text.
12037         - For ControlPaint.DrawCheckBox, center the check a little better when the
12038         checkbox is odd width.  When drawing a flat checkbox, use a white background
12039         when state != inactive.
12040         [Fixes bugs #82097, 82100]
12041
12042 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
12043
12044         * ListControl.cs: When changing CurrencyManager, disconnect event
12045         handlers from previous one. Fixes bug #81771. Code formatting.
12046
12047 2007-07-15  Andreia Gaita <avidigal@novell.com>
12048
12049         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
12050         full preview invalidation from layout invalidation, and only invalidate
12051         the layout when setting zoom or other properties. Invalidation should
12052         always be done even when resetting properties with the same values as
12053         what is there. Fixes #81744 and #79830.
12054
12055 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12056
12057         * ListView.cs: Implement initial support for Groups. Split some of the
12058         LayoutIcons code to render a partial list of the items (needed by
12059         items contained in ListViewGroup instances). Let the
12060         ListViewItemsCollection.ListView property be modifiable (needed when
12061         using Groups, too).
12062         * ListViewGroup.cs: Use a Bounds property rather than a Location
12063         one. Also invalidate the bounds when they get changed.
12064         * ThemeWin32Classic.cs: When drawing items, also draw the group header
12065         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
12066         method as well.
12067
12068 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12069
12070         * ListView.cs: When space gets pressed and CheckBoxes is true, 
12071         don't invoke the Begin and EndUpdate methods. We are generating 
12072         a redraw of the entire control without need to do so.
12073
12074 2007-07-13  William Holmes <billholmes54@gmail.com> 
12075
12076         * Control.cs: Changing logic in FindFlatForward and 
12077           FindFlatBackward to handle multiple Controls with 
12078           the same TabIndex.  
12079           This fixes bug 81687.
12080
12081 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
12082
12083         * OSFeature.cs: Enable IsPresent.
12084
12085 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12086
12087         * Control.cs: Don't do anything in WmShowWindow if the control has been
12088           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
12089           control is created, put on a form, the control is disposed (the
12090           form is never shown), and then we get a MapNotify, triggering a
12091           WM_SHOWWINDOW.
12092         * Form.cs: Exclude the current form when sending Deactivate to all
12093           MdiChildren.
12094         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
12095           there was a race condition because assigning the handle raises
12096           events, we can get more messages, therefore trying to assign the
12097           handle again, which would fail if any of those event handlers
12098           closed/disposed the control.
12099
12100 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12101
12102         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
12103
12104 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
12105
12106         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
12107         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
12108
12109 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12110
12111         * DateTimePicker.cs: If there's no part format specifier, return an
12112           empty string.
12113
12114 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
12115
12116         * FlatButtonAppearance.cs: Throw NotSupportedException for a
12117         Transparent BorderColor.
12118
12119 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12120
12121         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
12122           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
12123           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
12124           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
12125           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
12126           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
12127           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
12128           Remove warnings.
12129         * X11Structs.cs: Remove warnings, add ToString implementations.
12130
12131 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12132
12133         * XplatUIX11.cs: Translate min/max size according to the actual min/max
12134           size, and not the current size. Fixes #81798.
12135
12136 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12137
12138         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
12139           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
12140           to the control yet).
12141
12142 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12143
12144         * PropertyGridTextBox.cs: Add a method that sends any forwarded
12145           mousedowns to the contained textbox.
12146         * X11Structs.cs: More ToString implementation.
12147         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
12148           #81791.
12149
12150 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12151
12152         * PropertyGridView.cs: Add a null-check, fixes a few tests.
12153
12154 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
12155
12156         * TableLayoutPanelCellPosition.cs: TypeConverter.
12157
12158 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12159
12160         [ Fixes #79761]
12161         
12162         * PropertyGridTextBox.cs: Propagate any color changes to all contained
12163           controls.
12164         * PropertyGridView.cs: A few color fixes.
12165
12166 2007-07-10  Jackson Harper  <jackson@ximian.com>
12167
12168         * TextControl.cs: Remove some old unused text formatting stuff.
12169
12170 2007-07-10  Jackson Harper  <jackson@ximian.com>
12171
12172         * TreeView.cs: Update full row select invalidation to match the
12173         newer DrawSelection... method.
12174         - Make sure to invalidate the entire width when selecting a new
12175         node, if we have full row selection enabled.
12176
12177 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12178
12179         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
12180           display of properties again.
12181
12182 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
12183
12184         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
12185         to existing collections.
12186
12187 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12188
12189         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
12190         that changed between 1.1 and 2.0.
12191
12192 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12193
12194         * PowerStatus.cs: Added.  This is just a data class, it is filled
12195         in by SystemInformation.
12196
12197 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12198
12199         * Message.cs: Add op_Equality and op_Inequality.
12200
12201 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12202
12203         * MenuStrip.cs: Finish corcompare work.
12204
12205 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12206
12207         * LinkArea.cs: Add op_Equality and op_Inequality.
12208
12209 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12210
12211         * Application.cs: Add MessageLoopCallback delegate.
12212
12213 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12214
12215         * ListBox.cs: First set of 2.0 stuffs.
12216
12217 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12218
12219         * Control.cs: Make an internal Height property we can override
12220         without messing up the public API.
12221         * ListBox.cs: Override HeightInternal to always return the size
12222         the user set.  [Fixes bug #80466]
12223
12224 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
12225
12226         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
12227         paint cell borders if we haven't calculated where they go yet.
12228         [Fixes bugs #82040 and #82041]
12229
12230 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12231
12232         * ListView.cs: In Details view, set the location of item_control
12233         in the (0,0) position (and the header_control is thus on the
12234         item_control). This way the Bounds of the Items are relative to the
12235         ListView control (before this, they had a Bounds value without the
12236         header_control offset, which wasn't matching .Net). Fixes #82004.
12237
12238 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12239
12240         * ListControl.cs: When DataSource is set to null, pass an empty
12241         array of object to SetItemsCore. This is done to clean the items
12242         in the ListContol children. Fixes #81788.
12243
12244 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12245
12246         * ListControl.cs: Add 2.0 stuffs.
12247
12248 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12249
12250         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
12251         Refresh is overkill for just about every repaint request.
12252
12253 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12254
12255         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
12256         so remove my custom Get method and fix the property getter.
12257
12258 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12259
12260         * Label.cs: DefaultMargin for 2.0.
12261
12262 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12263
12264         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
12265         reported issue where other controls with mnemonics would steal strokes
12266         from a selected ComboBox.
12267
12268 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12269
12270         * ScrollOrientation.cs: Make internal for 1.1.
12271         * ScrollEventArgs.cs: Add 2.0 stuffs.
12272
12273 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
12274
12275         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12276         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
12277         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
12278
12279 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12280
12281         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
12282
12283 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12284
12285         * ListView.cs: Implement the so-incredibly broken 2.0 
12286         VirtualItemsSelectionRangeChanged event.
12287
12288 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12289
12290         * ListView.cs: When enter is pressed and selection is non empty,
12291         an OnItemActivate event must be fired.
12292
12293 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12294
12295         * ListView.cs: Store the FocusedItem information as an
12296         int instead of a ListViewItem (needed by VirtualMode).
12297         Update the calls to SetFocusedItem to pass an index instead of
12298         an item.
12299         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
12300         the Focused state from the owner ListView. 
12301
12302 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12303
12304         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
12305         property. Also, invalidate previous focused item in the mentioned
12306         property (match .Net).
12307
12308 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12309
12310         * ListView.cs: Implement 2.0 FocusedItem property setter.
12311
12312 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12313
12314         * ListView.cs: Implement 2.0 TopItem property setter.
12315
12316 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
12317
12318         * StatusStrip.cs: The default renderer is System.
12319         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
12320         if the user specifies it.
12321         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
12322         if we are ManagerRenderMode.
12323         * ToolStripMenuItem.cs: Calculate our text color better.
12324         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
12325         from Professional to the base class based off working with the System renderer.
12326         * ToolStripSystemRenderer.cs: Added.
12327
12328 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12329
12330         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
12331
12332 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
12333
12334         * ToolTip.cs: Implement 2.0 Tag property.
12335
12336 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12337
12338         * ListView.cs: Implement 2.0 HitTest methods.
12339
12340 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12341
12342         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
12343         item is under the pointer or not (sugar). Also remove the TODO
12344         regarding to the cursor changes in OneClick activation.
12345         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
12346         the subitems use the parent's HotFont if UseItemStyleForSubItems is
12347         true; otherwise don't show the underline style.
12348
12349 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12350
12351         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
12352         the code to retrieve the item at position only one time. Also
12353         change cursor when Activation is ItemActivation.OneClick as well
12354         as invalidate the item if HotTracking is true (to show/hide the
12355         underline style). Add an internal HotItemIndex property to retrieve
12356         the current hot item's index.
12357         * ListViewItem.cs: Add an internal HotFont property to cache the
12358         font used when HotTracking is true and the pointer moves within the
12359         item's borders.
12360         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
12361         HotFont depending on the hot state of the item.
12362
12363 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12364
12365         * ListView.cs: Implement 2.0 HotTracking property.
12366
12367 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12368
12369         * ToolStripControlHost.cs: If our hosted control never got created,
12370         don't try to dispose it.  [Fixes bug #81909]
12371
12372 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12373
12374         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
12375
12376 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12377
12378         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
12379
12380 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12381
12382         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
12383         Details view.
12384         * DrawListViewColumnHeaderEventArgs.cs:
12385         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
12386         using the DrawText () methods.
12387
12388 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
12389
12390         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
12391         background which got erased in my changes yesterday.
12392
12393 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12394
12395         * ListViewItem.cs: Actually set bounds for subitems in Details view
12396         (2.0 feature).
12397         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
12398         can invoke from the owner draw routines if we need it. Also, add
12399         support for Owner draw in Details view.
12400
12401 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12402
12403         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
12404         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
12405         ShowImageMargin setting, properly align text in a ToolStripLabel
12406         hosted on a ToolStripDropDown.
12407
12408 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12409
12410         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
12411         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
12412
12413 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12414
12415         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
12416
12417 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12418
12419         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
12420         location to match ToolStripMenuItems.
12421
12422 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12423
12424         * DrawListViewColumnHeaderEventArgs.cs:
12425         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
12426         column headers in ListView. 
12427
12428 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
12429
12430         * UserControl.cs: Implement AutoSize.
12431
12432 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12433
12434         * DrawListViewItemEventArgs.cs:
12435         * ListView.cs:
12436         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
12437         ListView.
12438
12439 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
12440
12441         * ToolStripDropDownItemAccessibleObject.cs: Added.
12442         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
12443         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
12444         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
12445         ToolStripTextBox.cs: corcompare work.
12446
12447 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
12448
12449         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
12450         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
12451         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
12452                 corcompare.
12453
12454 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
12455
12456         * OSFeature.cs: Add IsPresent.
12457         * PrintPreviewControl.cs: Add RightToLeft.
12458         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
12459         * SplitterPanel.cs: Add AutoSizeMode.
12460
12461 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12462
12463         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
12464         * MdiClient.cs: Add 2.0 ScaleControl.
12465         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
12466         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
12467
12468 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12469
12470         * Form.cs: Implement some scaling methods, stub some RTL methods,
12471         corcompare work.
12472
12473 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12474
12475         * Control.cs: corcompare work.
12476         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
12477
12478 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12479
12480         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
12481         ControlPaint 2.0 stuffs.
12482
12483 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12484
12485         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
12486
12487 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12488
12489         * UpDownBase.cs: Add 2.0 stuffs.
12490
12491 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12492
12493         * NumericUpDown.cs: Add 2.0 stuffs.
12494
12495 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12496
12497         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
12498
12499 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12500
12501         * ErrorProvider.cs: Implement 2.0 stuffs.
12502
12503 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12504
12505         * DomainUpDown.cs: Implement 2.0 stuffs.
12506
12507 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12508
12509         * CheckedListBox.cs: Fix RefreshItems signature.
12510
12511 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12512
12513         * PictureBox.cs: Implement 2.0 stuffs.
12514
12515 2007-06-12  Andreia Gaita  <avidigal@novell.com>
12516         
12517         * TabControl.cs: Check if there are tabpages before checking
12518         the selected index - fix #81802 (font changes raise a ResizeTabs
12519         call on controls.add, which blew up nicely with no tabpages)
12520
12521 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12522
12523         * ListView.cs:
12524         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
12525
12526 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12527
12528         * ListView.cs:
12529         * ListViewItem.cs: In VirtualMode the selection information
12530         resides in the ListView, rather than in the Items. Also, throw
12531         InvalidOperationExceptions when VirtualMode is being used and
12532         CheckedItemCollection is accessed.
12533
12534 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12535
12536         * ComboBox.cs: Add ScaleControl.
12537
12538 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12539
12540         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
12541
12542 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12543
12544         * GroupBox.cs: Add 2.0 stuffs.
12545
12546 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12547
12548         * Panel.cs: Add autosize properties/event.
12549
12550 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
12551
12552         * Control.cs:
12553         - When we remove a control, remove it from the collection before performing the layout.
12554         - Setup an internal property for explicit_bounds.
12555         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
12556         - Perform a layout when we set a new AutoSizeMode.
12557
12558 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
12559
12560         * ScrollableControl.cs: Add 2.0 stuffs.
12561
12562 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12563
12564         * ScrollBar.cs: Add 2.0 stuffs.
12565
12566 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12567
12568         * Splitter.cs: Add 2.0 stuffs.
12569
12570 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12571
12572         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
12573         to have BindingContext simply use base implementation.
12574
12575 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12576
12577         * ColumnHeader.cs: corcompare fix.
12578
12579 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12580
12581         * Button.cs: corcompare fixes.
12582         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
12583
12584 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12585
12586         * Button.cs: Override GetPreferredSizeCore.
12587         * ButtonBase.cs: PerformLayout after changing properties that can affect
12588         AutoSize.  Simplify some mouse/keyboard code.
12589         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
12590         * MouseEventArgs.cs: Make Location internal for 1.1.
12591         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
12592         * Theme.cs: Add CalculateButtonAutoSize.
12593         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
12594
12595 2007-06-05  Miguel de Icaza  <miguel@novell.com>
12596
12597         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
12598
12599 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12600
12601         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
12602         since we can get different item instances every time we retrieve it.
12603
12604 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12605
12606         * ListView.cs: Work around for #81602, since an unkown an pretty
12607         infrequent condition appears only in some systems (old linux boxes, it
12608         seems).
12609
12610 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12611
12612         * Button.cs: Completely reformat and a little refactor to bring
12613         this closer to Mono circa 2007.
12614
12615 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12616
12617         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
12618         to be ButtonBase.Invalidate.
12619
12620 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12621
12622         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
12623
12624 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12625
12626         * ButtonBase.cs: Completely reformat and a little refactor to bring
12627         this closer to Mono circa 2007.
12628
12629 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
12630
12631         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
12632         values for autosize. Fixes #80137.
12633
12634 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12635
12636         * Control.cs: Don't perform layout when AutoSize changes.
12637         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
12638         directly when autosizing, use SetBounds with BoundsSpecified.None.
12639         Fixes unit tests my last commit broke.
12640
12641 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12642
12643         * Control.cs: Perform layout when AutoSize changes.
12644         * Form.cs: Implement AutoSizing.
12645
12646 2007-06-01  Chris Toshok  <toshok@ximian.com>
12647
12648         * DataGrid.cs: remove the XXX'ed check at the top of
12649         ProcessGridKey.  fixes #80464.
12650
12651 2007-06-01  Chris Toshok  <toshok@ximian.com>
12652
12653         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
12654         adding idempotent (add/remove in Edit()), and also make sure we
12655         don't add it until after we set the text, so it's not tripped in
12656         Edit().  Fixes unit test regression.
12657
12658 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12659
12660         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
12661         change is user explicit, not when the layout engine moves stuff.  Fixes
12662         anchoring to bottom and right.  [Fixes bug #81790]
12663
12664 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12665
12666         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
12667
12668 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12669
12670         * ContainerControl.cs: 
12671         Fire enter event for common ancestor if it is not a ContainerControl.
12672         Send focus to the active_control and not the 'value', the active 
12673         control might have been changed in one of the events fired.     
12674         Definitely fixes #80159.
12675
12676 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12677
12678         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
12679
12680 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12681
12682         * PropertyGrid.cs: Anchor the help description to the bottom of the
12683           help panel and refactor SelectGridItem into a
12684           SelectGridItemInternal that can be set to null (and update it to
12685           clear the help texts when it is set to null). Set root item to null
12686           when there's no SelectedObject. Fixes #80438.
12687         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
12688           when we're recalculating after a resize (only).
12689
12690 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12691
12692         * ListView.cs: Implement 2.0 RedrawItems method.
12693
12694 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12695
12696         * ListControl.cs: Disconnect PositionChanged and ItemChanged
12697         handlers from previous data manager when DataSource is set to
12698         null. Fixes #81771.
12699
12700 2007-05-31  Jackson Harper  <jackson@ximian.com>
12701
12702         * TextBoxBase.cs: These seem to be the correct values.
12703
12704 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
12705
12706         * FileDialog.cs: When close dialog with ok set filterindex using combobox
12707         value. Fixes #81784.
12708
12709 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
12710
12711         * Control.cs: Implement 2.0 scaling methods.
12712
12713 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12714
12715         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
12716           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
12717           corcompare issues.
12718
12719 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12720
12721         * ProgressBar.cs: Implemented missing 2.0 members.
12722
12723 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12724
12725         * Control.cs: Corcompare issues.
12726         * MessageBox.cs: Implemented missing 2.0 functions.
12727
12728 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12729
12730         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
12731           Implemented more 2.0 members.
12732
12733 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12734
12735         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
12736           null (strange, but it seems to happen when running unit tests).
12737
12738 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12739
12740         * ContainerControl.cs: Set active_control even earlier, before 
12741         firing any events, and undo it if validation returns false.
12742
12743 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12744
12745         * ContainerControl.cs: Raise Validation and Enter/Leave events
12746         even if there is no Form and set active_control earlier, just
12747         before firing Enter events (toshok's patches). Fixes #80647.
12748
12749 2007-05-30  Jackson Harper  <jackson@ximian.com>
12750
12751         * TextControl.cs: Redid the pageup/pagedown a little to simplify
12752         things and fix bug #81311.
12753
12754 2007-05-30  Jackson Harper  <jackson@ximian.com>
12755
12756         * X11Dnd.cs: Now that we have our own event loop, we need to
12757         cancel when we get a mouseup but it won't be accepted.
12758
12759 2007-05-30  Chris Toshok  <toshok@ximian.com>
12760
12761         * DataGrid.cs (set_CurrentCell): guard against negative
12762         column/row.
12763
12764         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
12765         array index syntax instead of looping over the property names.
12766
12767         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
12768         and set IsInEditOrNavigateMode to false there.
12769
12770 2007-05-30  Jackson Harper  <jackson@ximian.com>
12771
12772         * TreeView.cs: Make sure we don't get a bad visible order when
12773         setting to the top node.  Fixes some misc crashing in
12774         ControlInspector.
12775
12776 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12777
12778         * UserControl.cs: Add 2.0 AutoSizeMode
12779
12780 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12781
12782         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
12783
12784 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12785
12786         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
12787         lines. Fixes #80285. 
12788
12789 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12790
12791         * DataGridColumnStyle.cs: Add char trimming column header text format. 
12792
12793 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12794
12795         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
12796         Fixes #80147.
12797
12798 2007-05-29  Jackson Harper  <jackson@ximian.com>
12799
12800         * TreeNode.cs: Fix off by one on calculating whether or not a node
12801         is visible.
12802
12803 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
12804
12805         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
12806         * ScrollableControl.cs: Force an UpdateDistances when we move the
12807         scrollbars.
12808         [Fixes bug #80605]
12809
12810 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12811
12812         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
12813         update the page setup screen.
12814
12815 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12816
12817         * PageSetupDialog.cs: Fix landscape mode.
12818
12819 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12820
12821         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
12822         IconSizeHorizontalSpacing.
12823
12824 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12825
12826         * ListView.cs: The declaration of prev_tooltip_item should be inside
12827         a NET_2_0 conditional (avoid a warning).
12828
12829 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12830
12831         * PageSetupDialog.cs: Implement PrintPreview control to display
12832         the preview thumbnail. Change unit conversion to use 
12833         PrinterUnitConvert methods.
12834         
12835         Note: there is a huge bug in ms.net where the default margins are 
12836         interpreted as centimeters (?), when in fact they are set in inches. When 
12837         loading the page setup dialog initially (ms.net), the default margins 
12838         are set to 1 inch, and the dialog shows them with value 10, when in fact 
12839         it should be 25 (properly converted). Our dialog doesn't have this bug.
12840         
12841         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
12842         RectangleF.
12843         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
12844
12845 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12846
12847         * ListView.cs:
12848         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
12849         items.
12850
12851 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12852
12853         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
12854         an IntPtr on csc (it builds fine on mcs, could it be a compiler
12855         bug?), convert the ptr to Int32 first.
12856
12857 2007-05-28  Jackson Harper  <jackson@ximian.com>
12858
12859         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
12860         recieved, we will exit the dnd tracking loop.
12861
12862 2007-05-28  Jackson Harper  <jackson@ximian.com>
12863
12864         * X11Dnd.cs: Keep tracking until the xdnd finished event is
12865         recieved. TODO: I should probably stick a timer on the dropped
12866         event, and finish the drag if the XDND Finished event never shows
12867         (because some apps don't seem to send it).
12868
12869 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
12870
12871         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
12872         #81733.
12873
12874 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12875
12876         * MonthCalendar.cs: Only mark the keypresses we actually handle as
12877           handled.
12878
12879 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12880
12881         * MonthCalendar.cs: Set the size after initializing all the relevant
12882           variables. Fixes #81742.
12883
12884 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12885
12886         * KeyEventArgs.cs: Fix typo.
12887
12888 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
12889
12890         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
12891         to match MS. Fixed MinDate to only accept value less than or equal
12892         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
12893         Removed TODO's that are now verified by unit tests.
12894
12895 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
12896
12897         * TreeNodeCollection.cs: Minor corrections to exceptions to match
12898         MS.
12899
12900 2007-05-25  Jackson Harper  <jackson@ximian.com>
12901
12902         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
12903         it's own message loop.
12904         * XplatUIX11.cs: Remove some of the dnd hooks
12905
12906 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
12907
12908         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
12909         instead of MinimizedWindowSize.
12910
12911 2007-05-25  Jackson Harper  <jackson@ximian.com>
12912
12913         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
12914
12915 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12916
12917         * KeyEventArgs.cs: Added SuppressKeyPress.
12918         * Control.cs: Added support for SuppressKeyPress.
12919
12920 2007-05-24  Andreia Gaita  <avidigal@novell.com>
12921
12922         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
12923         problems with PieChart. suppress_validation should not be a counter,
12924         if there are several BeginInit calls, the first EndInit will 
12925         activate validation. Fix exceptions thrown by set_Value.
12926         * UpDownBase.cs: ValidateText only if it's the user editing it.
12927
12928 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12929
12930         * ListControl.cs: FilterItemOnProperty should return the filtered
12931         item proeprty even if DataSource is null. The same applies for
12932         GetItemText. Fixes #80427.
12933
12934 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12935
12936         * Control.cs: If a control doesn't have a parent when it's Dock is
12937         set, but it has children, it needs to do a layout.  Fixes some nested
12938         controls issues.  [Fixes bug #81199]
12939
12940 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12941
12942         * ComboBox.cs: If there are few items in the drop down list, make it
12943           the exact size the items need, no bigger. Fixes #81612.
12944
12945 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12946
12947         * Application.cs: When we have captured the keyboard for a menu,
12948         check for mouse down events in case we need to close the menu.
12949         * Control.cs, Form.cs: Remove mouse down checks for menus.
12950
12951 2007-05-24  Jackson Harper  <jackson@ximian.com>
12952
12953         * TextControl.cs: Handle tabs in non multiline mode a little
12954         differently.
12955
12956 2007-05-24  Jackson Harper  <jackson@ximian.com>
12957
12958         * TextControl.cs: We need to manually break apart tabbed text and
12959         move the tabs, since the system.drawing tabbing mechanism relies
12960         on tab stops.
12961         * TextBoxBase.cs: Move the caret properly when the user enters a
12962         tab.
12963
12964 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12965
12966         * ContainerControl.cs: Don't check CanSelect before calling
12967         ProcessMnemonic.
12968         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
12969         release a KeyboardActive on click if it's not ours.
12970
12971 2007-05-23  Andreia Gaita  <avidigal@novell.com>
12972
12973         * ColumnHeader.cs: Add TypeConverter
12974
12975 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12976
12977         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
12978
12979 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12980
12981         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
12982
12983 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12984
12985         * LinkLabel.cs: Implement public Padding property.
12986
12987 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12988
12989         * LinkLabel.cs: Implement public FlatStyle.
12990
12991 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
12992
12993         * Control.cs: Apply patch from George to call parent.PerformLayout
12994         when Visible is changed.  [Fixes bugs #81118, 81718]
12995
12996 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12997
12998         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
12999
13000 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13001
13002         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
13003
13004 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13005
13006         * ContextMenu.cs: Implement Collapse.
13007
13008 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
13009
13010         * ToolBarButton.cs: Implement Name.
13011
13012 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
13013
13014         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
13015         use current_item, it prevents some NRE. Fixes #81675.  
13016
13017 2007-05-22  Andreia Gaita  <avidigal@novell.com>
13018
13019         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
13020         without updating the text.
13021
13022 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
13023
13024         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
13025         without calling DeleteObject.  [Should fix bug #81709]
13026
13027 2007-05-22  Jackson Harper  <jackson@ximian.com>
13028
13029         * RichTextBox.cs: Set the line endings correctly, when flushing
13030         RTF text.
13031
13032 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
13033
13034         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
13035          {Width=0,Height=0}.
13036
13037 2007-05-22  Jackson Harper  <jackson@ximian.com>
13038
13039         * TreeView.cs: Setting top with a null node should set to the very
13040         top.
13041
13042 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13043
13044         * Form.cs: ShowDialog: destroy the handle when message loop is
13045           finished, matches MS behaviour. Refactor parts of WmClose into
13046           RaiseCloseEvents, that only raises events if they haven't already
13047           been raised. Fixes #81688 and #81521.
13048         * Application.cs: Don't call close on the form when exiting a modal
13049           loop, it will raise all the (Form)Closed/Closing events again if
13050           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
13051           which doesn'r raise any events it they have been raised before.
13052
13053 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
13054
13055         * Control.cs: Add OnPrint.
13056         * ToolStrip.cs: Add GetChildAtPoint.
13057         * ToolStripContainer.cs: Add OnRightToLeftChanged.
13058         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
13059
13060 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
13061
13062         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
13063
13064 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13065
13066         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
13067           isn't visible anymore. Fixes #81651.
13068
13069 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13070
13071         * Control.cs: WmShowWindow: Update children's z-order after setting
13072           their parent. SetParent may show the window, thereby corrupting
13073           z-order, since the window will be shown on top.
13074         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
13075           multiple (and redundant) WM_SHOWWINDOW messages.
13076         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
13077           event has already been raised.
13078         * Form.cs: Change is_changing_visible_state to a counter, since
13079           SetVisibleCore can be called recursively. CreateHandle: when
13080           creating mdi children, send (De)Activated events.
13081         * MdiClient.cs: Update use of is_changing_visible_state.
13082         * Application.cs: OnThreadException: Surround exception handling with
13083           try/finally to ensure we always reset the error-handling state
13084           before leaving.
13085
13086 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13087
13088         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
13089           (#81704).
13090
13091 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13092
13093         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
13094         SmallIcon views, now that we have a standarized horizontal spacing.
13095
13096         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
13097         4, just like the other views (Match .Net).
13098
13099 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
13100
13101         * Control.cs: Delay calculating anchor distances until we actually layout.
13102         Always query the WM for the actual size and location it put us at instead of
13103         only when we send negative values.
13104         [Fixes bugs #81694, 81695]
13105
13106 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13107
13108         * Application.cs: Avoid a possible stack overflow when trying to exit
13109           the application.
13110
13111 2007-05-19  Marek Safar  <marek.safar@gmail.com>
13112
13113         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
13114         enum value.
13115
13116 2007-05-19  Andreia Gaita  <avidigal@novell.com>
13117
13118         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
13119         * NumericUpDownAcceleration.cs, 
13120           NumericUpDownAccelerationCollection.cs: Added 2.0
13121           implementation.
13122
13123 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
13124
13125         * RichTextBox.cs: Recalculate the document after the ScrollBars
13126         property is changed. Fixes bug #81681.
13127
13128 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
13129
13130         * DataObject.cs: Implement 2.0 methods.
13131
13132 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13133
13134         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
13135         in the center of the checkbox, not in the left-top corner. 
13136         Fixes #80037.
13137
13138 2007-05-18  Jackson Harper  <jackson@ximian.com>
13139
13140         * RichTextBox.cs: Recalculate the document after the scrollbars
13141         property is changed.
13142         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
13143         81486.
13144
13145 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13146
13147         * CreateParams.cs: Make HasWindowManager marginally faster.
13148         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
13149           into Hwnd so that other drivers can use it as well.
13150         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
13151           the default location from Hwnd. Fixes MDI client windows always
13152           showing up at (0,0) in Windows (Win32 won't set the default
13153           location since the window styles aren't correct).
13154
13155 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
13156
13157         * TreeView.cs: Modified DoubleBuffered to just use the base
13158         implementation.
13159
13160 2007-05-18  Jackson Harper  <jackson@ximian.com>
13161
13162         * TreeView.cs: Set the top node to the last child node when
13163         expanding all
13164         - When we get focus, if there is no selected node, use the top
13165         node.
13166
13167 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
13168
13169         * KeysConverter.cs: Add CanConvertTo.
13170         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
13171         * LinkConverter.cs: Added.
13172
13173 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13174
13175         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
13176         it prevents error when file dont have write access. Fixes #81669 and #81667.  
13177
13178 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13179
13180         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
13181         button text. Fixes #79640.  
13182
13183 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13184
13185         * Control.cs: According to MSDN controls created in the designer theres 
13186         keyboard accelerators visible by default. So included check for design
13187         in ShowKeyboardCuesInternal.  
13188
13189 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13190
13191         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
13192         text. Fixes #81621.  
13193
13194 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13195
13196         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
13197         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
13198
13199 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13200
13201         * Control.cs: Finish implementation of UI State using WmChangeUIState
13202         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
13203         in some controls to check for show_keyboard_cues to draw accell keys "_".  
13204
13205 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13206
13207         * ListBox.cs: When calculating the horizontal scrollbar
13208         in single column mode, don't use values less than 0 for
13209         Maximum. Fixes #81474.
13210
13211 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13212
13213         * ListBox.cs: Throw the some missing exceptions in
13214         ListBox.ObjectCollection methods.
13215
13216 2007-05-17  Jackson Harper  <jackson@ximian.com>
13217
13218         * TextBoxBase.cs: Recalculate the document when the word wrap
13219         value has changed. This fixes 81488.
13220
13221 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13222
13223         * Clipboard.cs: Implement missing GetText overload.
13224
13225 2007-05-17  Chris Toshok  <toshok@ximian.com>
13226
13227         * Control.cs (CheckDataBindings): remove the binding_context arg
13228         to binding.Check.
13229
13230         * CurrencyManager.cs (OnItemChanged): fix this now that
13231         BindingManagerBase is fixed. also remove the comment telling where
13232         the fix should go.  We set transfering_data to true/false around
13233         the call to PushData to keep UpdateIsBinding from being called.
13234         (ListChangedHandler): remove the extra OnMetaDataChanged call for
13235         PropertyDescriptorAdded in the 1.1 case.  The extra call is
13236         actually generated by System.Data generating 2 metadata changed
13237         events of its own per column add.  The fix should go there.  Add a
13238         comment to that affect in our test's Assert.Ignore.
13239
13240         * BindingManagerBase.cs: Rework PullData and PushData slightly.
13241         we keep a boolean flag (transfering_data) that keeps us from
13242         calling UpdateIsBinding multiple times if we re-enter either of
13243         them.
13244
13245         * ControlBindingsCollection.cs (AddCore): remove the
13246         binding_context arg to binding.Check.
13247
13248         * Binding.cs (IsBinding): don't check if we're binding here, just
13249         return our cached value.  we update it in UpdateIsBinding.
13250         (Check): don't take the binding_context arg, we'll just use our
13251         control's.  Also, for some reason MS doesn't use the data member
13252         field when getting the bindingmanager for this binding.  it just
13253         uses the datasource.  Make this method callable multiple times,
13254         and only do the is_null_desc stuff if manager.Position != -1 (so
13255         we don't get an exception accessing manager.Current).
13256         (UpdateIsBinding): move the code from IsBinding here.
13257         (PositionChangedHandler): call Check here to we can initialize
13258         things that require a non- -1 position.
13259
13260 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13261
13262         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
13263         control.
13264
13265 2007-05-17  Andreia Gaita  <avidigal@novell.com>
13266
13267         * TabControl.cs: Add 2.0 methods and events, including
13268         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
13269         * TabPage.cs: Add 2.0 methods
13270
13271 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13272
13273         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
13274         keyboard_cues is properly handled by message method.  
13275
13276 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13277
13278         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
13279
13280 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13281
13282         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
13283
13284 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
13285
13286         * Control.cs: 
13287         - WmUpdateUIState added to handle state changes, it make call to
13288         OnChangeUICues event.
13289         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
13290         SystemInformation.
13291
13292 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
13293
13294         * ImageKeyConverter.cs: Added.
13295         * TreeViewImageKeyConverter.cs: Added.
13296
13297 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13298         
13299         * ToolTips.cs: Update Text if SetToolTip is called for a control
13300         already showing the tooltip, as well as restarting its timer; show
13301         tooltip if we are inside the control bounds by the time of calling
13302         SetToolTip. Inside ShowTooltip remove the check to not show the 
13303         tooltip again for the active control (it is allowed by .Net to 
13304         show the tooltip on the same control multiple times).
13305
13306 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13307
13308         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
13309
13310 2007-05-16  Andreia Gaita <avidigal@novell.com> 
13311
13312         * ContainerControl.cs: only process tab key if there are no 
13313         modifier keys present, otherwise the control does the 
13314         tab processing, if it needs to. Fixes #81622
13315         * TabControl.cs: Fixes calculation for which tab to select on
13316         shift+ctrl+tab.
13317
13318 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13319
13320         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
13321
13322 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
13323
13324         * Control.cs: Make IsInputCharInternal to allow controls to
13325         override it and still match MS API.
13326         * TextBoxBase.cs: Override IsInputCharInternal and always
13327         return true.
13328         [Fixes bug #81616]
13329
13330 2007-05-15  Jackson Harper  <jackson@ximian.com>
13331
13332         * TextBox.cs: Disable some of the menu options when using a
13333         readonly textbox.
13334
13335 2007-05-15  Jackson Harper  <jackson@ximian.com>
13336
13337         * TextBox.cs:
13338         * TextBoxBase.cs:
13339         * RichTextBox.cs: Some new 2.0 methods
13340
13341 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
13342
13343         * FileDialog.cs: On 1.0 profile, do not support multidotted 
13344         extensions.
13345
13346 2007-05-14  Jackson Harper  <jackson@ximian.com>
13347
13348         * TextBoxBase.cs: Implement some of the new 2.0 methods.
13349         * RichTextBox.cs: We need to override these methods on 2.0.
13350         * MaskedTextBox.cs: These are implemented now
13351         * TextControl.cs: This was off by one.
13352
13353 2007-05-14  Jackson Harper  <jackson@ximian.com>
13354
13355         * TextControl.cs: Because the line endings are including in the
13356         text, we don't need to add them in anymore.
13357
13358 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13359
13360         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
13361         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
13362
13363 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13364
13365         * ToolBar.cs: Adjust size to default size when button theres no text and
13366         image, it fixes remaining issues from #81524.
13367
13368 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13369
13370         * ToolBar.cs: 
13371         - When not flat call redraw to recalculate sizes on creare handle to match
13372         win32 behavior.
13373         - Revert 77220 because it causes some regressions in toobar
13374         button.
13375
13376 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13377
13378         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
13379           now actually enters a usable state.
13380
13381 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13382
13383         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
13384         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
13385         3 buttons.
13386
13387 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13388
13389         * ToolBar.cs: Save default_size on create handle to use later for buttons
13390         without text, needed to mimic win32 behavior.
13391
13392 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13393
13394         * ToolBar.cs: Fix button layour to best fit width or height according to
13395         vertical or not. Fixes #81524.
13396
13397 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
13398
13399         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
13400         toolbar size info because different styles theres different sizes.
13401         Fixes #81522.
13402
13403 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13404
13405         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
13406         if we are using checkboxes, checked is true, and we have less
13407         than two images in StateImageList; for the 1.1 in the same scenario
13408         draw the first image if we have at least one image in StateImageList.
13409         Fixes part of #81191.
13410
13411 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13412
13413         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
13414         the owner's Items collection on merge.
13415
13416 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13417
13418         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
13419         * ToolStripItemCollection.cs: Lots of fixes to when events get called
13420         and parent/owner gets changed based on gert's unit tests.
13421
13422 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13423
13424         * MaskedTextBox.cs: Started implementing parts of it.
13425
13426 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13427
13428         * ListView.cs: When clicking the checkbox on the items
13429         take into account the double clicks even if we have only
13430         one image in StateImageList (only for 1.0/1.1). Also 
13431         generate an extra change of checked state when we receive
13432         the second click on checkbox (match .Net behaviour). 
13433         Fixes part of #81191.
13434
13435 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
13436
13437         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
13438
13439 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13440
13441         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
13442         even if OnLoad is overriden and base.OnLoad is not called.
13443         [Fixes bug #81582]
13444
13445 2007-05-10  Andreia Gaita  <avidigal@novell.com>
13446
13447         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
13448         shame. (I blame my ever-persisting and annoying cold)
13449
13450 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13451
13452         * ListView.cs: Don't eat navigation keys.  Let them flow through to
13453         KeyDown/KeyPress routines.  [Fixes bug #81569]
13454
13455 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13456
13457         * ListView.cs: When handling keys for selecting the item based off
13458         keyboard input, do not consider keys pressed with Alt or Control.  Also,
13459         correctly handle keys when the Shift key is down. [Fixes bug #81578]
13460
13461 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13462
13463         * Control.cs: When using UseWaitCursor, we have to store the requested
13464         Cursor to use when UseWaitCursor is turned off.
13465
13466 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13467
13468         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
13469         to false.
13470         * Application.cs: Use PreProcessControlMessage instead of
13471         PreProcessMessage.
13472         * PreProcessControlMessage.cs: Make internal for 1.1.
13473
13474 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13475
13476         * Control.cs: Add InternalContains focus property, which hast the same
13477         functionality of ContainsFocus, but also including implicit controls.
13478         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
13479         since we need to know if the focus is contained in our implicit
13480         ItemControl when calculating Layout. Fixes part of #80888.
13481
13482 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
13483
13484         * ToolTip.cs: Remove center form string alignment as it must be align to
13485         left.
13486
13487 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
13488
13489         * ToolStripItemCollection.cs: Set the new item's parent and owner
13490         in Insert like we do in Add.  [Fixes bug #81568]
13491
13492 2007-05-08  Jackson Harper  <jackson@ximian.com>
13493
13494         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
13495         - Off by one error in SetTop
13496         - Disable DoubeBuffering
13497         
13498 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13499
13500         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
13501           control as much as necessary in order to make it entirely visible,
13502           instead of centering the control in the container (matches MS
13503           behaviour). CalculateCanvasSize: we need to take the current scroll
13504           position into account when calculating the maximum canvas,
13505           otherwise the following scenario will fail: resize so that the
13506           scrollbars appear, use the scrollbars to scroll, resize again
13507           smaller, and now the canvas size is too small. Recalculate: when
13508           showing scrollbars make sure they start off at 0, and try to scroll
13509           the active control into view. Fixes #79540. HandleScrollBar: don't
13510           scroll anywhere if the scrollbar isn't visible.
13511
13512 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13513
13514         * ListView.cs: When focus changed, call Layout/Invalidate
13515         in the focused item to update the selected state (should show
13516         entire label when ListView is focused, and a part of it if is not).
13517         * ListViewItem.cs: When doing layout for LargeIcon, take into account
13518         for displaying the entire label not only the Focused state of the
13519         item, but also the Focused state of the ListView (match .Net
13520         behaviour).
13521
13522 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13523
13524         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
13525         Implement UseWaitCursor. 
13526
13527 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13528         Applying contributed patch from Sergey Volk.
13529
13530         * Clipboard.cs: Implement SetDataObject retry logic and new overload
13531         of SetDataObject.
13532         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
13533
13534 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13535
13536         * Control.cs: Implement DrawToBitmap.
13537
13538 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13539         Applying contributed patch from Stefan Noack.
13540         
13541         * Control.cs: Add [Get|Set]AutoSizeMode.
13542
13543 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13544
13545         * MdiClient.cs: Unmerge menus when the last child is closed.
13546
13547 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13548
13549         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
13550         * ToolStripManager.cs: Call Merge on DropDowns.
13551         [Fixes bug #81477]
13552
13553 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13554
13555         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
13556           uints.
13557         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
13558           visibility. We can't create forms visible, since we have to set the
13559           owner before making the form visible (otherwise Win32 will do
13560           strange things with task bar icons). The problem is that we set the
13561           internal is_visible to true before creating the control, so
13562           is_changing_visible_state is the only way of determining if we're
13563           in the process of creating the form due to setting Visible=true -
13564           this works because SetVisibleCore explicitly makes the form
13565           visibile afterwards anyways. Fixes #80775.
13566
13567 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13568
13569         * ThemeWin32Classic.cs: When drawing ListViewItems,
13570         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
13571         or LargeIcon _and_ item is not focused (match .Net behaviour).
13572
13573 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
13574
13575         * Control.cs, Form.cs: Fix some obsolete method warnings.
13576
13577 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
13578
13579         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
13580         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
13581
13582 2007-05-04  Andreia Gaita  <avidigal@novell.com>
13583
13584         * ContainerControl.cs: Fix active_control attribution when going
13585         up the parent chain so that the first parent container gets the control
13586         and the rest of the parent containers get the child containers (skips
13587         non-containers). Fixes #80729
13588
13589 2007-05-04  Randolph Chung  <tausq@debian.org>
13590
13591         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
13592         [Fixes bug #81499]
13593
13594 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13595
13596         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
13597           takes a size parameter, since the CreateParam's size isn't true for
13598           minimized forms. Fixes #81518,
13599
13600 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13601
13602         * Form.cs: Add OnDeactivateInternal.
13603         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
13604
13605 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13606
13607         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
13608           accessing the parent. Fixes #81508.
13609
13610 2007-05-03  Chris Toshok  <toshok@ximian.com>
13611
13612         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
13613         2.0 block, pass listposition + 1 to ChangeRecordState when a row
13614         was added before the current listposition.  Fixes the
13615         TestInsertRowBeforeCurrent unit test.
13616
13617 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
13618
13619         * Application.cs: Add RaiseIdle.
13620         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13621         XplatUIX11.cs: Implement RaiseIdle.
13622
13623 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
13624         corcompare work: N - Z
13625         * NotifyIcon.cs
13626         * ProgressBar.cs
13627         * RadionButton.cs
13628         * ScrollableControl.cs
13629         * SplitContainer.cs
13630         * SplitterPanel.cs
13631         * StatusBar.cs
13632         * SystemInformation.cs
13633         * TabControl.cs
13634         * TableLayoutControlCollection.cs
13635         * TableLayoutPanel.cs
13636         * TabPage.cs
13637         * ToolBar.cs
13638         * ToolBarButton.cs
13639         * ToolStrip.cs
13640         * ToolStripComboBox.cs
13641         * ToolStripContainer.cs
13642         * ToolStripContentPanel.cs
13643         * ToolStripDropDown.cs
13644         * ToolStripDropDownItem.cs
13645         * ToolStripDropDownMenu.cs
13646         * ToolStripItem.cs
13647         * ToolStripItemCollection.cs
13648         * ToolStripMenuItem.cs
13649         * ToolStripPanel.cs
13650         * ToolStripSplitButton.cs
13651         * ToolTip.cs
13652         * TreeNode.cs
13653         * TreeNodeCollection.cs
13654         * TreeNodeMouseHoverEventArgs.cs
13655         * TreeView.cs
13656
13657 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
13658
13659         * ContextMenu.cs: Add public method Show with alignment property to 2.0
13660         stuff. Thanks aatdark for the patch. 
13661
13662 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13663
13664         * GridItem.cs: Implement 2.0 Tag property.
13665
13666 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
13667
13668         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
13669         count instead of Nodes.Length.  [Fixes bug #81448]
13670
13671 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13672
13673         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
13674         [Fixes bug #81506]
13675
13676 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13677         corcompare work: A - M
13678         * BindingNavigator.cs
13679         * Button.cs
13680         * ButtonBase.cs
13681         * CheckBox.cs
13682         * Control.cs
13683         * FlowLayoutPanel.cs
13684         * Form.cs
13685         * Label.cs
13686         * LinkLabel.cs
13687         * ListView.cs
13688
13689 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13690
13691         * Application.cs: Give toolstrips a chance to process mnemonics.
13692         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
13693         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
13694         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
13695
13696 2007-05-01  Jackson Harper  <jackson@ximian.com>
13697
13698         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
13699         wider area too.
13700         - Don't set the BoundsSpecified
13701
13702 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13703
13704         * Application.cs: When using the toolstrip shortcut mechanism, allow the
13705         message to pass through to a regular control if it hosted by a toolstrip.
13706         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
13707         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
13708
13709 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13710
13711         * TextRenderer.cs: Use the flags argument when using the MeasureString
13712         fallback algorithm.
13713
13714 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13715
13716         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
13717         the MDI menu item.  [Fixes bug #81483]
13718
13719 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
13720
13721         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
13722         string. When setting Name to null, use zero-length string instead.
13723
13724 2007-04-29  Andreia Gaita  <avidigal@novell.com>
13725
13726         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
13727         DeselectTab). Implement missing 2.0 TabPageCollection methods
13728         (Add, ContainsKey, RemoveByKey, IndexOfKey)
13729
13730 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
13731
13732         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
13733
13734 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
13735
13736         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
13737         Fixes bug #81479. Include details of exception when LoadFile fails.
13738
13739 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
13740
13741         * DrawListViewSubItemEventArgs.cs: Added missing setter
13742
13743 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13744
13745         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
13746         Hide methods (not complete). Implement missing 2.0 OnPopup event.
13747
13748 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13749
13750         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
13751         removed in ly last commit (it was breaking the Label edit feature).
13752
13753         * ThemeWin32Classic.cs: When drawing a ListViewItem use
13754         StringAlignment.Near for LineAlignment (match .Net).
13755
13756 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13757
13758         * TabControl.cs: Change SetTab so it adds the tabpage to the list
13759         of controls if it isn't already there - was blowing up when doing
13760         tabcontrol.TabPages[i]=new TabPage(). 
13761         SetTab now does a replace by removing the page at the index. 
13762         Add a new InsertTab method that inserts a page in a given index 
13763         instead of replacing. 
13764         Implements TabPageCollection.Insert(int, TabPage).
13765
13766 2007-04-27  Chris Toshok  <toshok@ximian.com>
13767
13768         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
13769         internal handler that can be invoked from our subclasses.)  Also,
13770         add a comment to PushData about how we need to fix it.
13771
13772         * CurrencyManager.cs: tons of changes here.  trying to get things
13773         matching the behavior of .net wrt event orders (ItemChanged,
13774         CurrentChanged, PositionChanged.)  I've implemented a private .net
13775         symbol (ChangeRecordState) that appears in stack traces because
13776         it's actually easier to do this than to effective inline all its
13777         various behaviors at every call site.
13778
13779         * RelatedPropertyManager.cs: guard against an exception here by
13780         not using parent.Current if the position is set to -1 (if the
13781         parent datasource is cleared, for instance).
13782
13783         * Binding.cs: don't parse data in PushData (this might be wrong,
13784         but it jives with MS's behavior.)  Also, don't call PushData when
13785         we get a CurrentChanged event.
13786
13787 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13788
13789         * WebBrowser.cs,
13790           WebBrowserBase.cs,
13791           WebBrowserSiteBase.cs,
13792           HtmlDocument.cs: Added stubbed out classes, no real implementations 
13793           yet.
13794
13795 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13796
13797         * MainMenu.cs: In draw method without parameters call draw method with 
13798         PaintEvent, another one (just rect) adjust rectangle and we dont need it
13799         as Rect property is already adjusted. Fixes #80694.
13800
13801 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
13802
13803         * Application.cs: Need to handle keyboard menu deselection here.
13804         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
13805         navigation, allowing keyboard to work on X11.
13806         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
13807
13808 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13809
13810         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
13811         menu bar. It fixes some drawing issues in menu bar.
13812
13813 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13814
13815         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
13816         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
13817         when <alt> key is pressed.
13818
13819 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
13820
13821         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
13822         example just set visible to false and make this prevent from other problems.
13823         In SystrayAdd always remove pending expose. Fixes #81072.
13824
13825 2007-04-26  Marek Safar  <marek.safar@gmail.com>
13826
13827         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
13828         value is set.
13829
13830 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13831
13832         * ListView.cs: Added three missing 2.0 events and corresponding
13833         EventHandlers. Added the OwnerDraw property.
13834         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
13835
13836 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13837
13838         * DrawListViewItemEventArgs.cs
13839         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
13840
13841 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13842
13843         * TextControl.cs: Fixed typo in constructor
13844
13845 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
13846
13847         * Application.cs: Create a shortcut path so that currently selected
13848         MenuStrips can intercept keyboard events without having focus.
13849         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
13850         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
13851         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
13852         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
13853         generate WM_SYSCOMMAND message in X11 for other platforms.
13854         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
13855         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
13856         * ToolStripSplitButton.cs: Add DefaultItem property.
13857         
13858 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
13859
13860         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
13861         fixes some menu draw problem on Windows with border diferent from default
13862         it also fixes #81403.
13863
13864 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13865
13866         * Form.cs: Refactor WndProc into separate methods, just like Control is
13867           doing it.
13868
13869 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13870
13871         * Control.cs: set_Text: move the call to the driver into a seperate
13872           virtual method so that Form can override it.
13873         * MaskedTextBox.cs: Corcompare fixes.
13874         * Form.cs: Override UpdateWindowText and only update the styles if the
13875           form has been shown (fixes #81405).
13876
13877 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
13878
13879         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
13880         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
13881         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
13882         the form lost focus or another control was clicked.
13883
13884 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
13885
13886         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
13887         fixed.
13888
13889 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13890
13891         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
13892           DrawListViewItemEventHandler.cs,
13893           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
13894           Added.
13895         * X11Structs.cs: More ToString implementation.
13896
13897 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
13898
13899         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
13900         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
13901
13902 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13903
13904         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
13905           handle.
13906         * FormCollection.cs: Don't add a form if it's already in the
13907           collection.
13908         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
13909           according to behaviour and MSDN. The ownerWin32 is the active
13910           window at the moment when we call ShowDialog, not the context's
13911           main form (the context's main form may open another form that opens
13912           a form with ShowDialog, the win32 owner is the second form). Add
13913           and remove forms to the Application.OpenForms in other places to
13914           better match MS behaviour. Add an IsActive property that raises
13915           On(de)Activated only if the active state has changed (we were
13916           raising OnDeactivated before OnActivated while creating forms).
13917         * Application.cs: Refactor Enabling/Disabling of windows for modal
13918           dialog loops out to separate methods, and restore the thread
13919           context when we quit the method. Fixes #81407.
13920
13921 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13922
13923         * ListView.cs: In ItemControl.HandleClicks, also fire 
13924         2.0 MouseClick or MouseDoubleClick events on the parent,
13925         not only the Click/DoubleClick events.
13926
13927 2007-04-24  Andreia Gaita  <avidigal@novell.com>
13928
13929         * TableLayoutSettings.cs: 
13930         - Added a GetControls method and a support structure to help the 
13931         TypeConverter to enumerate the controls for     serialization. 
13932         - Added a new serialization constructor. 
13933         - Added a isSerialized flag initialized to true on the 
13934         serialization constructor so that the TableLayoutPanel.LayoutSettings 
13935         setter does not throw the designed NotSupportedOperation exception
13936         when the object is built through deserialization.
13937         - Implemented GetObjectData
13938         
13939         * TableLayoutPanel.cs: Added check on LayoutSettings.
13940
13941 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13942
13943         * ListView.cs: Report Click and DoubleClick events to the parent
13944         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
13945         from breaking the click count state when using dialog forms (Control
13946         reports the clicks in a similar fashion). In the previous behaviour
13947         the last WM_LBUTTONUP message in a  double click was sent to the
13948         ListView's form, instead of the ListView, which was breaking the click
13949         count for it. Fixes #80387.
13950
13951 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
13952
13953         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
13954
13955 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
13956
13957         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
13958         us from created dropdowns for menu items that do not have subitems.
13959         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
13960         Check HasDropDownItems before calling DropDown so a dropdown will not be
13961         created if it isn't needed.
13962
13963 2007-04-24  Jackson Harper  <jackson@ximian.com>
13964
13965         * TreeView.cs: Set the first node to the selected node when we get
13966         focus if there is no selected node.
13967
13968 2007-04-24  Andreia Gaita  <avidigal@novell.com>
13969
13970         * MimeIcon.cs: remove using blocks so that image streams are
13971         not disposed of. Fixes #80151
13972
13973 2007-04-24  Jackson Harper  <jackson@ximian.com>
13974
13975         * TextBoxBase.cs: Fixup the height of textboxes when the control
13976         is created.
13977
13978 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
13979
13980         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
13981         for each ToolStripItem when the parent's RightToLeftChanged is called.
13982
13983 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13984
13985         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
13986           Fixes #80163.
13987         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
13988           property, so that the setter can be overriden too.
13989         * TextBox.cs: Change GetContextMenuInternal() to use
13990           ContextMenuInternal.
13991
13992 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13993
13994         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13995           #81406.
13996
13997 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13998
13999         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
14000           #81406.
14001
14002 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14003
14004         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
14005           avoid duplicate work. Mostily skeleton code, it's not working at
14006           all yet.
14007
14008 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
14009
14010         * NotifyIcon.cs : stub for MouseClick event
14011         * Application.cs: stub for SetUnhandledExceptionMode
14012
14013 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
14014
14015         * BindingNavigator.cs : Initial (partial) implementation
14016
14017 2007-04-23  Jackson Harper  <jackson@ximian.com>
14018
14019         * TreeView.cs: Do not create the treeview's handle when setting
14020         the scroll position.
14021         - ExpandAll needs to compute the scrollbars so it knows which
14022         position to set the bar too.
14023         * TreeNode.cs: 
14024         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
14025
14026 2007-04-23  Jackson Harper  <jackson@ximian.com>
14027
14028         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
14029         key. Fixes #81408.
14030
14031 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
14032
14033         * ToolStripItem.cs: Make GetImageSize internal.
14034         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
14035         need to draw an item.  Fixes a reported issue where images on menus
14036         that were not 16x16 were drawing incorrectly.
14037
14038 2007-04-21  Miguel de Icaza  <miguel@novell.com>
14039
14040         * Padding.cs: Use the converter, fixes the resgen2 issue with
14041         XMLNotePad. 
14042
14043 2007-04-21  Jackson Harper  <jackson@ximian.com>
14044
14045         * TreeView.cs: Dont try to unhighlight the selected node if there
14046         isn't a selected node.
14047
14048 2007-04-21  Jackson Harper  <jackson@ximian.com>
14049
14050         * UpDownBase.cs:
14051         * TextBoxBase.cs:
14052         * ListView.cs:
14053         * ListBox.cs:
14054         * TreeView.cs: Use the InternalBorderStyle property to set the
14055         initial border style, this forces the client rectangle to be sized
14056         correctly.
14057
14058 2007-04-20  Jackson Harper  <jackson@ximian.com>
14059
14060         * TreeView.cs: Simplify scrolling to the last node after expanding
14061         all.
14062         - Fix some off by ones with setting the bottom.
14063
14064 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
14065
14066         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
14067         that.  We were incorrectly doing it the other way around.  Also,
14068         update ClientSize if we change the BorderStyle before the control
14069         is created.
14070
14071 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
14072
14073         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14074         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14075         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
14076         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14077         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14078         Caption to CaptionHeight.
14079         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
14080         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
14081         and FixedFrameBorderSize to return value from current XplatUI driver.
14082         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
14083         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
14084         and FixedFrameBorderSize using win32 API. Renamed Caption to
14085         CaptionHeight.
14086         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
14087         * SystemInformation.cs: Fixed typo in BorderSize.
14088
14089 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
14090
14091         * XplatUI.cs: Added MenuAccessKeysUnderlined.
14092         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
14093         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
14094         returning false.
14095         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
14096         value from XplatUI driver.
14097         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
14098         SystemParametersInfo.
14099         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
14100         override.
14101         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
14102         returning false.
14103
14104 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14105
14106         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
14107
14108 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14109
14110         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
14111
14112 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
14113
14114         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
14115         MenuStrips that contain ToolStripSeparators.
14116
14117 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14118
14119         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
14120           DefineStdCursorBitmap.
14121         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
14122           has been created off a standard cursor. This is used to get a
14123           bitmap of the standard cursor when Draw or DrawStretched is called
14124           in order to draw the cursor.
14125         * X11Structs.cs: Added XcursorImage and XcursorImages.
14126         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
14127           DefineStdCursorBitmap.
14128         * Cursors.cs: Update all relevant creations of Cursor to use the new
14129           internal constructor.
14130
14131 2007-04-19  Jackson Harper  <jackson@ximian.com>
14132
14133         * TextBox.cs: Move the has_been_focused into the base control, so
14134         some of the text adding methods can manipulate it (probably time
14135         for a better name for this flag too).
14136         - Call a new version of selectall that doesn't scroll
14137         * TextBoxBase.cs: When we append text, if the document is empty,
14138         don't scroll.  If the document has text already, we scroll to the
14139         end of the appended text.
14140         - When the text is changed, we reset the has_been_focused, so the
14141         next time the control gets focused, all the text is selected.
14142
14143 2007-04-19  Jackson Harper  <jackson@ximian.com>
14144
14145         * TextControl.cs: Move the margins to the document, add a method
14146         so the margin sizes can be updated.
14147         * TextBoxBase.cs: When the border style is changed, update the
14148         border sizes.
14149
14150 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
14151
14152         * Control.cs: Respect DefaultPadding.
14153         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
14154         padding into account.
14155         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
14156
14157 2007-04-19  Jackson Harper  <jackson@ximian.com>
14158
14159         * TextControl.cs: Oops, we need to use the ClientRect not the
14160         bounds here.
14161
14162 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14163
14164         * ListView.cs: In ItemControl.ItemsMouseDown, take into
14165         account the double clicks when CheckBoxes are used and
14166         the pointer is inside the checkbox. Fixes part of #81191.
14167
14168 2007-04-18  Jackson Harper  <jackson@ximian.com>
14169
14170         * TextControl.cs: Pressing the end key shouldn't move the caret
14171         past the line ending.
14172         * TextBoxBase.cs: We can still delete if we are in the line
14173         ending and the combine will just kill the existing line ending.
14174
14175 2007-04-18  Jackson Harper  <jackson@ximian.com>
14176
14177         * TextControl.cs: We can't move lines, then invalidate their
14178         bounds, we need to get the old bounds and combine that with the
14179         new bounds.
14180         * TextBoxBase.cs: Before combining two lines for a delete, we need
14181         to invalidate the area of the old line, since that will be moved
14182         in the combine operation.
14183
14184 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
14185
14186         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
14187         with transparent background. Fixes #80482.
14188
14189 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
14190
14191         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
14192         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
14193         [Fixes bug #81391]
14194
14195 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14196
14197         * CreateParams.cs: Add a couple of helper methods and do a less string
14198           concatenation in ToString.
14199         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
14200           overload that takes a Control parameter, since this method may be
14201           called before a control is assigned to the hwnd (from
14202           CreateWindow), and update CreateWindow to use the new overload. In
14203           GetMenuOrigin subtract the title bar from the y position if the
14204           form has a window manager (since we're painting it and not X).
14205         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
14206           CreateParams to calculate the origin (since border sizes may vary).
14207           In ScreenToMenu only subtract the title height if we actually have
14208           a title.
14209         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
14210           mdi children never have menus of themselves.
14211         * InternalWindowManager.cs: Implement menu handling like form does.
14212           Added GetMenuOrigin to calculate the menu origin, can't use the
14213           CreateParams from the form like normally since it's lying.
14214         * Hwnd.cs: Implement GetBorderSize better (in the sense more
14215           windows-like) and add Inflate and comparison operators to the
14216           Borders type. When calculating MenuOrigin and it's a form with a
14217           window manager, use the window manager to calculate it.
14218
14219 2007-04-17  Chris Toshok  <toshok@ximian.com>
14220
14221         * Control.cs (CreateControl): turns out in 2.0 we don't need this
14222         OnBindingContextChanged thing here.  It's only generated from
14223         ContainerControl.OnCreateControl.  Fixes a newly written unit test
14224         - BindingTest.BindingContextChangedTest4.
14225         
14226 2007-04-17  Jackson Harper  <jackson@ximian.com>
14227
14228         * ScrollBar.cs: When setting values, make sure the current
14229         position stays within the new values range.
14230
14231 2007-04-17  Chris Toshok  <toshok@ximian.com>
14232
14233         * Control.cs (CreateControl): talk about a bizarre corner case.
14234         Don't emit OnBindingContextChanged here if we're a parentless
14235         control (i.e. if we're a form.).  Fixes
14236         BindingTest.BindingContextChangedTest2.
14237
14238 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
14239
14240         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
14241         from win32. Fixes #81255.
14242
14243 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
14244
14245         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
14246         already present in CalculateButtonTextAndImageLayout.
14247
14248 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14249
14250         * XplatUIX11.cs: When setting min/max size for a window we need to
14251           translate the coordinates to x coordinates. Create an overload of
14252           SetWindowMinMax that takes a CreateParams handling this, and change
14253           SetWMStyles to call this function (can't use Control.FromHandle in
14254           the SetWindowMinMax to get the control/CreateParams from the handle
14255           because the handle might not have been assigned to the control
14256           yet). Fixes #81371.
14257
14258 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14259
14260         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
14261         if StateImageList is non-null and it has less than two items (match MS
14262         behaviour). Also, in HandleNavKeys handle the Space key, calling
14263         the new ToggleItemsCheckState method, which tries to change the
14264         checked state of the selected items. Fixes part of #81191.
14265
14266 2007-04-16  Jackson Harper  <jackson@ximian.com>
14267
14268         * RichTextBox.cs: namespace cleanup.
14269
14270 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
14271
14272         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
14273
14274 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
14275
14276         [Fixes #79447]
14277         * Control.cs: Call invalidate in set_Region.
14278
14279         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
14280         it dont works here.
14281
14282 2007-04-16  Jackson Harper  <jackson@ximian.com>
14283
14284         * TextBoxBase.cs: When enter is pressed, we need to update all
14285         lines below the current.
14286
14287 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
14288
14289         * MdiClient.cs: Implement implicit menu merging for MDI
14290         children.  When a child form is active, if it has a menustrip
14291         and the parent form has a MainMenuStrip, automatically merge
14292         the menus.
14293
14294 2007-04-15  Andreia Gaita  <avidigal@novell.com>
14295
14296         * TabControl.cs: Refactored sizing methods to not repeat
14297         code all over the place. Tab bounds are now calculated
14298         as if alignment is top and single line, and only when 
14299         setting the bounds are the positions adjusted according
14300         to alignment. Replaced hardcoded positions, spacings and
14301         paddings by getting the values the ThemeEngine. 
14302         Fixes #79619.
14303         
14304         * Theme.cs: Change TabControl properties and methods so
14305         that all start with TabControl*. Added more properties
14306         to help remove hardcoded values on tabcontrol.
14307         Add CPDrawBorder3D declaration so the Theming classes
14308         can access it.
14309         
14310         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
14311
14312         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
14313         on the Theming namespace, and call the appropriate methods here.
14314         Change CPDrawBorder3D to public.
14315
14316 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14317
14318         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
14319         the control after firing the OnMouseUp event, instead of sending
14320         the message before the mentioned event. This is so we can match the
14321         MS behaviour. Fixes part of #80385.
14322
14323 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
14324
14325         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
14326         RightToLeft property.
14327
14328 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
14329
14330         * ToolStrip.cs: Add properties and internal methods to support merging.
14331         * ToolStripItem.cs: Add MergeAction and MergeIndex.
14332         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
14333         not trigger reparenting or layouts.
14334         * ToolStripManager.cs: Add Merge and RevertMerge methods.
14335         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
14336         is hosting the overflow menu.
14337
14338 2007-04-13  Jackson Harper  <jackson@ximian.com>
14339
14340         * TextControl.cs: Set the line ending correctly for the first
14341         inserted line.
14342
14343 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
14344
14345         * Theme.cs: Update GetMethod to get the new definition for 
14346         KnownColors.Update (and fix theme color updates).
14347
14348 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
14349
14350         * MessageBox.cs: Fix some test and button position.
14351
14352 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14353
14354         * Form.cs: Consider the implicit controls in
14355         GetRealChildAtPoint. We need it since this method
14356         is called on Form when handling the some messages in
14357         WndProc, and need to consider those implicit ones too.
14358         Fixes #80385.
14359
14360 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
14361
14362         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
14363         if there are no ShortcutKeys set.
14364         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
14365         set, use it when painting.
14366
14367 2007-04-12  Jackson Harper  <jackson@ximian.com>
14368
14369         * TextControl.cs: Fix some off-by-one issues in line duplication
14370         and insertion in the undo manager. Also, overwrite the first tag
14371         of a line on insert, if it is just a zero lengthed tag. This
14372         prevents us from getting an extra stranded tag at the beginning of
14373         the first line.
14374
14375 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
14376
14377         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
14378         to calculated proper size including when handle was not created yet.
14379
14380 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14381
14382         * MdiWindowManager.cs: When moving a form, allow the form to be moved
14383           when the mouse is outside of it's parent's client rectangle. Fixes
14384           #79982 (take 3, part 2).
14385
14386 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14387
14388         * X11Structs.cs: Add a few ToString() overrides.
14389         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
14390           the window location in a window-manager independent way. Reworked
14391           FrameExtents, it now actually works. Reworked AddConfigureNotify
14392           and ReparentNotify handling to use GetTopLevelWindowLocation
14393           instead of the earlier, more hacky solution. Reworked SetWMStyles,
14394           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
14395           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
14396           for all other windows (fixes #81281 part 1), a toolwindow is hidden
14397           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
14398           and generally refactored to do as few calculations as possible
14399           inside the lock.
14400
14401 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
14402
14403         * Theme.cs: Change "reflective-contract" between MWF and SD to 
14404         minimize # of calls, avoid Color serialization and avoid updating 
14405         every "known colors" each time a single one is updated.
14406
14407 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
14408
14409         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
14410         when not readonly and the text is explicitly set. Code style updates.
14411         * DataGridTableStyle.cs: Removed extra line.
14412         * DataGrid.cs: Code style updates. Removed extra whitespace.
14413         * DataGridColumnStyle.cs: Code style updates. Removed extra 
14414         whitespace.
14415
14416 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14417
14418         * XplatUIX11.cs: Added comment that "fixes" #80021.
14419
14420 2007-04-09  Jackson Harper  <jackson@ximian.com>
14421
14422         * TextControl.cs: We don't need this -1 on the line count anymore.
14423
14424 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
14425
14426         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
14427         entered value to underlying type, and convert it back to a string to
14428         apply formatting. Modified GetFormattedValue to use TypeConverter
14429         if available.
14430
14431 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
14432
14433         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
14434         Use SubItems property when we want to ensure there's at least one
14435         subitem. Modified SubItems property to ensure there's always at least
14436         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
14437         the NRE's reported by MS.
14438
14439 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
14440
14441         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
14442         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
14443         Spaces to tabs. Removed extra tabs.
14444
14445 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
14446
14447         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14448         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
14449
14450 2007-04-06  Jackson Harper  <jackson@ximian.com>
14451
14452         * TextBoxBase.cs: When a delete removes a line, recalculate all
14453         lines below that line (they need to get offsets setup correctly)
14454         and invalidate.
14455
14456 2007-04-05  Jackson Harper  <jackson@ximian.com>
14457
14458         * TextControl.cs: We need to invalidate across the width of the
14459         document when we are invalidating multiple lines.
14460         * TextBoxBase.cs: Don't delete into the line ending.
14461
14462 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14463
14464         * ListView.cs: Restore the check for the MouseHover event
14465         in ListView. It looks like the ListView fires more than one MouseHover
14466         event when HoverSelection is true  _only_ in weird-corner scenarios, but
14467         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
14468         event.
14469
14470 2007-04-05  Mike Kestner  <mkestner@novell.com>
14471
14472         * ListView.cs : raise MouseDown before updating selection.
14473         [Fixes #80373 tab 1&3]
14474
14475 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
14476
14477         * ToolStripRenderer.cs: Add static method to mirror image.
14478         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
14479         and RightToLeftAutoMirrorImage.
14480         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
14481
14482 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
14483
14484         * ToolStripSplitStackLayout.cs: Support Alignment property.
14485         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
14486
14487 2007-04-05  Jackson Harper  <jackson@ximian.com>
14488
14489         * TextControl.cs: Move around the line endings when crossing line
14490         boundaries.
14491         - When combining lines, strip the ending text off the first line.
14492
14493 2007-04-05  Jackson Harper  <jackson@ximian.com>
14494
14495         * TextControl.cs:
14496         * TextBoxBase.cs: Try to never move the cursor into the line
14497         ending.
14498         
14499 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14500
14501         * ToolStripItem.cs: Make sure we aren't firing mouse events when
14502         the item is disabled.  Also add a few missing methods.
14503
14504 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14505
14506         * ListView.cs: We don't need the MouseEnter/MouseLeave check
14507         to fire just one MouseHover event when HoverSelection is true, since
14508         .Net does fire more than one MouseHover event in that scenario. Also,
14509         fix the selection in HoverSelection, by invoking UpdateMultiSelect
14510         if MultiSelect is true, instead of only setting ListViewItem.Selected.
14511         Finally, we need to reset the Hover logic in MouseMove, even when we
14512         don't have a selected item.
14513
14514 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14515
14516         * ToolStrip.cs: Add several missing methods, properties, and events.
14517
14518 2007-04-04  Chris Toshok  <toshok@ximian.com>
14519
14520         * DataGridTextBoxColumn.cs: set the bounds of the text box to
14521         (0,0,0,0) in Commit, as MS does.
14522
14523         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
14524         make sure we set CurrentRow on a row header click *before* calling
14525         Select.  This moves the current cell (and the textbox) to the new
14526         row.  The call to Select then hides the textbox, giving us the
14527         correct behavior.  Fixes #80362.
14528
14529         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
14530         (ListChangedHandler): reorder the position/current changed events,
14531         and call UpdateIsBinding in the ItemAdded case.
14532
14533         * GridColumnStylesCollection.cs: add some columns events, one of
14534         which raises the CollectionChanged event.
14535
14536 2007-04-04  Jackson Harper  <jackson@ximian.com>
14537
14538         * TextControl.cs: When we delete multiple selection lines
14539         invalidate the selection area, don't need to do that for single
14540         lines because the final update view will handle it.
14541
14542 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14543
14544         * Control.cs: When we CreateControl, we need to also create all of the
14545         control's children.  The child's OnLoad must also fire before the parent's
14546         OnLoad.  Fixes the toolbox size in PDN.
14547
14548 2007-04-04  Jackson Harper  <jackson@ximian.com>
14549
14550         * TextBoxBase.cs: When the user presses enter, insert a line
14551         ending into the text. (Maybe this would be a good spot for
14552         Environment.NewLine).
14553         * TextControl.cs: Remove undo manager hack, line endings get
14554         inserted properly now.
14555         
14556 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
14557
14558         * MenuAPI.cs: 
14559         - Remove unneeded parameters in UpdateCursor.
14560         - Fix UpdateCursor to check if menu is active.
14561         - Call UpdateCursor when menu deactivate my click.
14562         [Fixes remaining issues from #80410]
14563
14564 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
14565
14566         * Control.cs: GetRealChildAtPoint method added, it make an
14567         recursive child control search for the point. 
14568
14569         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
14570         menu.
14571
14572         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
14573
14574 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
14575
14576         * Form.cs: Fix mouse position when send back mouse event after closes
14577         menu.
14578
14579 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
14580
14581         * Form.cs: Simplify the BUTTONDOWN for active tracker.
14582
14583 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
14584
14585         * Control.cs: Fix an issue where if a user resized a control inside
14586         a sizing method like OnResize, we would overwrite their explicit
14587         value.  Also, only call DefaultSize once in the constructor instead
14588         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
14589         nothing actually changed.
14590
14591 2007-04-03  Jackson Harper  <jackson@ximian.com>
14592
14593         * TextControl.cs: Don't attempt to copy text for lines with no
14594         text in them (technically this shouldn't happen, but we aren't
14595         always inserting line endings when we should be).
14596
14597 2007-04-03  Jackson Harper  <jackson@ximian.com>
14598
14599         * TextBoxBase.cs: Calculate the scrollbars before calculating the
14600         document, because this sets some of the document size properties
14601         that are needed.
14602
14603 2007-04-03  Jackson Harper  <jackson@ximian.com>
14604
14605         * TextBoxBase.cs: We need to calculate maximums even if this is
14606         not a multiline control, because the maxs are used for scrolling.
14607         - Display the caret after doing a page up/down, we need to
14608         manually display it because a proper CaretMoved event isn't
14609         triggered (this is because of the way the math is done to
14610         determine how far to scroll).
14611
14612 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
14613
14614         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
14615         (ToolBar was relying on SetBoundsCore to default the values sent 
14616         base off of BoundsSpecified.)
14617
14618 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14619
14620         * DateTimePicker.cs: Change Text so that when a null value or empty
14621           string is assigned to the test we always raise ValueChanged and
14622           TextChanged (earlier implementation would only raise ValueChanged
14623           if the current date value was different from DateTime.Now).
14624
14625 2007-04-03  Andreia Gaita <avidigal@novell.com> 
14626
14627         * ButtonBase: Call update after invalidation, fixes #80194
14628
14629 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14630
14631         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
14632           #79335.
14633
14634 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14635
14636         * XplatUIX11.cs: SetWMStyles: If the control is a form with
14637           FormBorderStyle = None, don't give the window any decorations.
14638           Fixes #81276.
14639
14640 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14641
14642         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14643         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
14644           to check for is a mix of several styles (such as WS_CAPTION for
14645           instance).
14646         * Control.cs: Don't paint an area bigger than the client area when
14647           painting the background colour. Add an internal GetCreateParams.
14648           Update calls to XplatUI.CalculateWindowRect due to API change.
14649         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
14650           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
14651           the size if it hasn't been handled by any windows. When creating
14652           and moving windows, X wants the location of the entire window, but
14653           the size of the client window, so add
14654           TranslateClientRectangleToXClientRectangle,
14655           TranslateWindowSizeToXWindowSIze and
14656           TranslatedXWindowSizeToWindowSize to cope with this, and call them
14657           before every window creation and move. Update CalculateWIndowRect
14658           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
14659           In AddConfigureNotify don't do anything if the hwnd is a zombie
14660           (fixes the BadWindow we were getting while running the tests),
14661           always calculate the offsets when it's a parentless window, not
14662           only when reparented, and translate the window size, since we're
14663           getting the client size of the whole window, excluding entire
14664           window.
14665         * Theme.cs: Added BorderSizableSize.
14666         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14667           anymore. Update calls to XplatUI.CalculateWindowRect due to API
14668           chang
14669         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
14670           change. Fake the window styles here instead of in XplatUIWin32 so
14671           that all back-ends get the same window styles (and it's Form that's
14672           deciding when to use wm, not the Win32 backend anyways)
14673         * Hwnd.cs: Completely reworked GetWindowRectangle and
14674           GetClientRectangle - they are now passed a CreateParams and they
14675           only use Style and ExStyle to determine the rectangles (they should
14676           now work just like Win32AdjustWindowRectEx - though quite a few
14677           special cases are probably missing). They should also be 100%
14678           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
14679           == rect), and all numbers (borders, menu sizes) are taken from the
14680           current theme. Added a GetBorders helper function that will return
14681           the borders for any given CreateParams (including captions and
14682           menus), and GetBorderSize that returns the given border size only.
14683         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14684           Hwnd.GetClientRectangle.
14685
14686 2007-04-02  Chris Toshok  <toshok@ximian.com>
14687
14688         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
14689         logic between the values we present to the user and the values
14690         which are stored in the column's property.  Also, don't call
14691         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
14692
14693 2007-04-02  Jackson Harper  <jackson@ximian.com>
14694
14695         * TextBoxBase.cs: Scroll faster!
14696
14697 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
14698
14699         * StatusStrip.cs: Layout fixes for PDN.
14700         * ToolStrip.cs: Set item's available to true, and placement to main when
14701         added.
14702         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
14703         changing in setter before doing any work, add InternalVisible.
14704         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
14705         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14706         infinite loop.
14707
14708 2007-04-02  Jackson Harper  <jackson@ximian.com>
14709
14710         * TextBox.cs: LBUTTON does not make the textbox select all of it's
14711         text on focus.
14712
14713 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14714
14715         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
14716           Makes ToolStripComboBoxes show up again.
14717
14718 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14719
14720         * ListView.cs: Add a hover_pending field in ListView
14721         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
14722         cycle (we are resetting the MouseHover logic in XplatUI
14723         to handle HoverSelection). Fixes #80429.
14724
14725 2007-04-02  Jackson Harper  <jackson@ximian.com>
14726
14727         * TextControl.cs: Make sure the attributes get set on the last
14728         tag.
14729         - Still have to do the end tag if we have stepped all the ways to
14730         the end.
14731
14732 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
14733
14734         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
14735         on an internal libgdiplus call when the information is already 
14736         available via the public API.
14737
14738 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14739
14740         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
14741           control is removed from a control collecftion.
14742         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
14743           Fixes FormPropertyTest (failed on rare occasions).
14744         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
14745           of Win32SetParent (when changing from no parent to a parent it
14746           might add the new parent's location in screen coordinates to this
14747           window's location).
14748         * Form.cs: Rework ChangingParent once again, now the handle is
14749           recreated whenever a FormWindowManager is added or removed (that is
14750           whenever a normal form is parented or abandoned). Also change
14751           CreateParams so that all non-toplevel windows always get the
14752           specified sice (StartupPosition is never considered for
14753           non-TopLevel forms).
14754         * ContainerControl.cs: Add ChildControlRemoved, the container control
14755           needs to be notified when a control is removed from it's
14756           collection, in the case the removed control is the active control.
14757
14758 2007-04-02  Jackson Harper  <jackson@ximian.com>
14759
14760         * RichTextBox.cs: Use the new methods for setting the font and
14761         color, these methods set the specified attribute without
14762         overriding the other attributes.
14763
14764 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
14765
14766         * ToolStripPanel.cs: Fixes for better layouts in PDN.
14767
14768 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
14769
14770         * TextBox.cs: Added internal ChangeBackColor method to special-case
14771         Color.Empty. Added check for invalid ScrollBars value.
14772         * TextBoxBase.cs: Added internal ChangeBackColor method.
14773         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
14774         internal ChangeBackColor method to special-case Color.Empty. Added
14775         check for invalid ScrollBars value.
14776
14777 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
14778
14779         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
14780
14781 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
14782
14783         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
14784         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
14785         [Based on submitted patch from Olivier Duff.]
14786
14787 2007-03-30  Jackson Harper  <jackson@ximian.com>
14788
14789         * TextBox.cs: Only select all on initial focus if the user has not
14790         specified a selection area.
14791
14792 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
14793
14794         * UserControl.cs: Override CreateParams.
14795
14796 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14797
14798         [ Fixes #80995 ]
14799
14800         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14801         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
14802           check for is a mix of several styles (such as WS_CAPTION for instance).
14803         * Control.cs: Don't paint an area bigger than the client area when painting
14804           the background colour. Add an internal GetCreateParams. Update calls to
14805           XplatUI.CalculateWindowRect due to API change.
14806         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
14807           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
14808           hasn't been handled by any windows. When creating and moving windows, X
14809           wants the location of the entire window, but the size of the client
14810           window, so add TranslateClientRectangleToXClientRectangle,
14811           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
14812           to cope with this, and call them before every window creation and move.
14813           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
14814           removing DeriveStyles). In AddConfigureNotify don't do anything if the
14815           hwnd is a zombie (fixes the BadWindow we were getting while running the
14816           tests), always calculate the offsets when it's a parentless window, not
14817           only when reparented, and translate the window size, since we're getting
14818           the client size of the whole window, excluding entire window.
14819         * Theme.cs: Added BorderSizableSize.
14820         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14821           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
14822         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
14823           Fake the window styles here instead of in XplatUIWin32 so that all
14824           back-ends get the same window styles (and it's Form that's deciding when
14825           to use wm, not the Win32 backend anyways)
14826         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
14827           they are now passed a CreateParams and they only use Style and ExStyle
14828           to determine the rectangles (they should now work just like
14829           Win32AdjustWindowRectEx - though quite a few special cases are probably
14830           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
14831           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
14832           sizes) are taken from the current theme. Added a GetBorders helper
14833           function that will return the borders for any given CreateParams
14834           (including captions and menus), and GetBorderSize that returns the given
14835           border size only.
14836         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14837           Hwnd.GetClientRectangle.
14838
14839 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14840
14841         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
14842           layout of the mdi children is handled by CreateParams. Fixes
14843           #79964,
14844
14845 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14846
14847         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
14848         processed.
14849
14850         * Form.cs: When active tracker mouse down is not processed, send event 
14851         back to control inside mouse position. [Fixes #81227]
14852
14853 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
14854
14855         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
14856         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
14857         stealing focus from the active form on Windows.  (Control will be made
14858         visible in ShowWindow.)
14859
14860 2007-03-29  Mike Kestner  <mkestner@novell.com>
14861
14862         * ImageList.cs : add internal Changed event.
14863         * ListView.cs : hook up to StateImageList.Changed to perform
14864         invalidations when the the state icon list changes. [Fixes #81191]
14865
14866 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
14867
14868         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
14869         to prevent tooltips from stealing focus from the active form on Windows.
14870
14871 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14872
14873         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
14874
14875         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
14876
14877 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14878
14879         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
14880         balloons.
14881
14882 2007-03-29  Jackson Harper  <jackson@ximian.com>
14883
14884         * TextControl.cs: When deleting text from non multiline textboxes,
14885         we need to update the entire document, because line offsets will
14886         be shifting.
14887
14888 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14889
14890         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
14891         added to theme, now we can create themes that uses diferent notify engines
14892         like notification-daemon from galago project or growl for Mac OS.
14893
14894 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14895
14896         * NotifyIcon.cs: Prevent Balloon to show in task bar.
14897
14898 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14899
14900         * XplatUIX11.cs: Prevent system to open more than one balloon.
14901
14902         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
14903         some compiler warning messages.
14904
14905 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14906
14907         [Fixes #79149]
14908
14909         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
14910
14911         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
14912         implemented, this methods is used by NotifyIcon.BalloonWindow class.
14913
14914         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
14915         systems.
14916
14917 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14918
14919         * ListViewItem.cs: Forgot to make Invalidate internal.
14920
14921 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14922
14923         * ListView.cs: Add a InvalidateSelection method to
14924         invalidate methods which are currently selected, and call
14925         it when setting FullRowSelect and HideSelection, instead of
14926         calling Redraw.
14927
14928 2007-03-28  Chris Toshok  <toshok@ximian.com>
14929
14930         * XplatUIX11.cs (UnmapWindow): reindent this block.
14931
14932         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
14933         the selection_start if we're moving the selection (that is, not
14934         extending it). Fixes bug #80461.
14935
14936 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14937
14938         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
14939         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
14940         create private ControlCollection.
14941
14942 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14943
14944         * Control.cs: We need to call OnVisibleChanged for our implicit
14945         children as well as our normal children.  Fixes scrollbars in
14946         comboboxes not showing up.
14947
14948 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14949
14950         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
14951         the check for IsHandleCreated first.  The check in CreateHandle is not
14952         good enough because CreateHandle can be overriden, and the override 
14953         should not be called if the handle is already created.
14954
14955 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14956
14957         * ToolStrip.cs: Remove MonoTODO for tooltips.
14958         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
14959         * ToolStripContainer.cs: Add custom ControlCollection class.
14960         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
14961         * ToolStripDropDown.cs: Add some missing properties/methods.
14962         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
14963         * ToolStripItem.cs: Remove MonoTODO for tooltips.
14964         * ToolStripManager.cs: Add IsShortcutDefined.
14965         * ToolStripOverflow.cs: Override LayoutEngine.
14966         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
14967         * ToolStripSeparator.cs: Add ImageKey.
14968
14969 2007-03-28  Jackson Harper  <jackson@ximian.com>
14970
14971         * TextControl.cs: If a char delete removes a line ending, we need
14972         to update the ending style.
14973         - Make sure the line ending calcs get called.
14974
14975 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14976
14977         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
14978           it was making the new code not work. Fixed a typo in the new code
14979           as well. Fixes #79826.
14980
14981 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14982
14983         * XplatUIWin32.cs:
14984         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
14985         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
14986         - SystrayBalloon method implemented.
14987         [Add support for notifyicon balloon on win32, #79149]
14988
14989 2007-03-27  Mike Kestner  <mkestner@novell.com>
14990
14991         * ThemeWin32Classic.cs : update StateImageList selection to mirror
14992         the ms behavior when only one image is added to the list.
14993         [Fixes #81191]
14994
14995 2007-03-27  Jackson Harper  <jackson@ximian.com>
14996
14997         * TextControl.cs: Improvements to non multiline line ending
14998         drawing/measuing.
14999
15000 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15001
15002         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
15003
15004 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15005
15006         * NotifyIcon.cs: 
15007         - Balloon message handling added.
15008         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
15009
15010         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15011         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
15012         to SystrayBalloon to me like other Systray method, also a
15013         handle parameter added.
15014
15015 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15016
15017         * ListView.cs: Show scrollbars even when items.Count == 0
15018         but the columns Width is bigger than the ListView.Width.
15019         Also, when columns.Count == 0 set layout_wd and layout_ht
15020         to the ClientRectangle values, so we don't show any scrollbar
15021         in that case.
15022
15023 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15024
15025         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
15026
15027 2007-03-27  Jackson Harper  <jackson@ximian.com>
15028
15029         * RichTextBox.cs: The RTF library decodes the text properly for us
15030         now.
15031
15032 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15033
15034         * ListView.cs: Display HeaderControl even when columns.Count == 0.
15035         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
15036         ListView header (HeaderControl), instead of Control.BackColor.
15037
15038 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
15039
15040         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
15041         Fixes tab control issues where controls would not show up because they
15042         never received their OnVisibleChanged call.
15043
15044 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15045
15046         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
15047         BalloonTipShown).
15048
15049 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
15050
15051         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
15052         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
15053         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
15054         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
15055         the handle.  Fix WindowState by using the internal variable until we are 
15056         sure that we've been shown.
15057         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
15058         max or min.
15059         [Fixes bug #81198]
15060
15061 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15062
15063         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
15064           (at least borders). Fixes #79386 on Linux (with a small difference
15065           in behaviour: when trying to resize a caption-less window metacity
15066           shows the sysmenu. Resizing is still possible though).
15067         * XplatUIWin32.cs: When setting window styles send request an extra
15068           WM_NCCALCSIZE when it's a form without title (due to no text and no
15069           caption), since Win32 seems to calculate it wrong the first time we
15070           get the message, though the second time things work as they should.
15071         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
15072           newly reparented window might show up unparented. Update
15073           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
15074           there's no title text. Fixes #79386.
15075
15076 2007-03-27  Mike Kestner  <mkestner@novell.com>
15077
15078         * ListBox.cs : don't perform invalidations if the handle hasn't been
15079         created.  [Fixes #80753]
15080
15081 2007-03-27  Mike Kestner  <mkestner@novell.com>
15082
15083         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
15084         [Fixes #80428]
15085
15086 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15087
15088         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
15089         needed to implement Balloon.
15090
15091 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15092
15093         * ListViewItem.cs: In the constructors that take
15094         an array of strings, don't use ListViewSubItemCollection.AddRange
15095         method to add items, since we need to have a different behaviour (in
15096         the constructors we add an item for each null string, opposed to
15097         the behaviour of AddRange, which adds nothing).
15098
15099 2007-03-26  Andreia Gaita  <avidigal@novell.com>
15100
15101         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
15102
15103 2007-03-26  Jackson Harper  <jackson@ximian.com>
15104
15105         * TextControl.cs: Draw and measure line endings when in non
15106         multiline mode.
15107         - When searching the text, count the end of the last line as a
15108         word boundary.
15109
15110 2007-03-26  Jackson Harper  <jackson@ximian.com>
15111
15112         * RichTextBox.cs: The selection_start and selection_end don't
15113         really track the correct tags for the selection. So we'll manually
15114         compute the correct tag here.
15115
15116 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15117
15118         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
15119           and Continuous styles. Fixes #79469.
15120
15121 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
15122
15123         * ToolStrip.cs: Implement Tooltips.
15124         * ToolStripItem.cs: Create internal method for determining tooltip.
15125
15126 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
15127
15128         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
15129
15130 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15131
15132         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
15133         it prevents a problem thak keeps icon visible after application 
15134         closes on win32.
15135
15136 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15137
15138         * NotifyIcon.cs: Balloon properties and methods created.
15139
15140         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15141         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
15142
15143 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
15144
15145         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
15146
15147 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
15148
15149         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
15150         parameter indicates which aspects were explicit/user-set.
15151         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
15152
15153 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
15154
15155         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
15156         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
15157         SmallChange, and Value (2.0).
15158         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
15159
15160 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15161
15162         * ListView.cs: Always set item_control.Width in LayoutDetails
15163         if View is Details. Setting it later in CalculateScrollBars
15164         in a not-so-corner scenario (the sum of columns width is
15165         not bigger than the ListView width when handle is created, and then
15166         that sum gets bigger by increasing the width of the columns)
15167         causes a very weird recursion path (which shouldn't be happening,
15168         since header_control sets it in CalculateScrollBars too). This bug
15169         appeared after Chris' fixes for handle created issues, so probably
15170         it's related to some handle-creation time.
15171
15172 2007-03-23  Chris Toshok  <toshok@ximian.com>
15173
15174         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
15175         case where there's an add row, just so we don't end up in a case
15176         where it's not displayed (this happens when the row is partially
15177         obscured).  Fixes bug #79574.
15178
15179 2007-03-23  Jackson Harper  <jackson@ximian.com>
15180
15181         * TextControl.cs:
15182         * TextBoxBase.cs:
15183         * RichTextBox.cs: Preserve line endings in the lines text buffer,
15184         also added an enum that represents the line ending type. 
15185
15186 2007-03-23  Andreia Gaita  <avidigal@novell.com>
15187
15188         * NumericUpDown.cs: Fix logic so Text and Value properties are not
15189         messed with in every method call, but only from DownButton, 
15190         UpButton, UpdateEditText() and ValidateText. Fixes #80346
15191
15192 2007-03-23  Chris Toshok  <toshok@ximian.com>
15193
15194         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
15195         format objects if the format spec is "".  Fixes bug #80889.
15196
15197 2007-03-22  Miguel de Icaza  <miguel@novell.com>
15198
15199         * ToolStripPanel.cs (Join): added stubs to build PDN3
15200
15201         * Control.cs (AutoScrollOffset): Add.
15202
15203         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
15204         property, its only implemented for Win32, on X11 it defaults to
15205         some hardcoded value.
15206
15207         * ToolStripItem.cs (AllowDrop): Add property
15208
15209 2007-03-22  Mike Kestner  <mkestner@novell.com>
15210
15211         * ListView.cs : in FullRowSelect Details mode, only enable box
15212         selection if the user clicks over the "item" column outside of the
15213         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
15214
15215 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15216
15217         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
15218           handle is not created yet.
15219         * Form.cs: Select: Don't call CreateHandle if the handle is already
15220           created, avoids a stack overflow on Windows when we are recreating
15221           controls.
15222         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
15223           they are made visible, and override AfterTopMostControl to keep
15224           them on top when other controls are brought to front.
15225           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
15226           or force_*scroll_visible is true (old implementation always shows
15227           scrollbars when needed, no matter what auto_scroll was set to).
15228         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
15229           IsHandleCreated check.
15230
15231 2007-03-22  Andreia Gaita  <avidigal@novell.com>
15232
15233         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
15234         row or col separator.
15235         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
15236
15237 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15238
15239         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
15240
15241 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15242
15243         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
15244         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
15245         every time. Fixes #80410.
15246
15247 2007-03-22  Chris Toshok  <toshok@ximian.com>
15248
15249         * BindingSource.cs (AddNew): partially implement.
15250
15251         remove a couple of NotImplementedException's
15252         to get bug #81148 closed.
15253
15254 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15255
15256         [Fixes #80380]
15257         
15258         * Control.cs:
15259         - UpdateCursor method added to update the screen cursor.
15260         - GetAvailableCursor method added to return cursor for enabled tree,
15261         it searches for cursor on control and it's parent's for enabled control.
15262         - Call UpdateCursor method on setter of Cursor property.
15263         - On setter of Enabled call UpdateCursor when it is false, we need to
15264         change cursor to normal (or to this parent cursor) because cursor 
15265         setting theres no effect to disabled controls.
15266         - Some minor source changes to follow the coding style guidelines.
15267
15268         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
15269         controls.
15270
15271 2007-03-22  Chris Toshok  <toshok@ximian.com>
15272
15273         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
15274         generates.
15275
15276 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15277
15278         * XplatUIX11.cs: Implement default locations for forms.
15279         * Form.cs: Completely rework startup location for forms. Fixes #79964.
15280         * Hwnd.cs: Add previous_child_startup_location (to track the current
15281           startup location for any child forms of the current form) and
15282           previous_main_startup_location (to track the startup location for
15283           the current toplevel form).
15284
15285 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15286
15287         * Control.cs: Don't trigger a layout if an implicit control is added
15288         that isn't visible.  Also, don't notify the owner when an implicit control
15289         is added.  (Owners shouldn't even know about their implicit controls.)
15290
15291 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15292
15293         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
15294         to save some re-layouts.
15295
15296 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
15297
15298         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
15299         [Fixes #81203]
15300
15301 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15302
15303         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
15304         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
15305
15306 2007-03-21  Mike Kestner  <mkestner@novell.com>
15307
15308         * ListView.cs : disable selection update for non-left button clicks
15309         with mods and over selected items.  [Fixes #80524]
15310
15311 2007-03-20  Jackson Harper  <jackson@ximian.com>
15312
15313         * TextControl.cs:
15314         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
15315         \r\r\n, \n.
15316
15317 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15318
15319         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
15320           very probably a more complicated calculation there. Update the
15321           textbox' ForeColor and BackColor when the ComboBox' colors are
15322           changed. Change the border change in LayoutComboBox to only affect
15323           the textbox, not all the calculations there. Seems to fix most of
15324           #79436.
15325
15326 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15327
15328         * ComboBox.cs: Handle Home and End keys as well as all combinations of
15329           modifiers + navigation keys as input keys, enables advanced text
15330           selection in the combobox (like Shift+Left Arrow for instance).
15331           ComboTextBox now overrides Focused and returns whatever
15332           ComboBox.Focused returns, since it really should be focused
15333           whenever the ComboBox is. Fixes #80795. Also make the border around
15334           the text box one pixel bigger, as mentioned in #79436.
15335
15336 2007-03-20  Jackson Harper  <jackson@ximian.com>
15337
15338         * TreeView.cs: Don't offset the images, this was causing some
15339         artifacts when expanding/collapsing with images that were the
15340         exact height of the treenode.
15341
15342 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15343
15344         * TrackBar.cs: Query the theme for the correct value when the mouse
15345           moves and the thumb is pressed. 
15346         * Theme.cs: Added TrackBarValueFromMousePosition
15347         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
15348           implementation was updating the trackbar value when drawing, now
15349           the drawing methods only draw. Fixes #80900. Refactored the
15350           calculations out to TrackBarValueFromMousePosition and
15351           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
15352           according to the mouse position whenever it wants to. Changed the
15353           light coloured pen when drawing the thumb from ControlLight to
15354           ControlLightLight, because the ControlLight is the same colour as
15355           the background so the 3D effect is lost. 
15356
15357 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15358
15359         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
15360         defined. Fixes #80784.
15361
15362 2007-03-20  Marek Habersack  <mhabersack@novell.com>
15363
15364         * ContextMenuStrip.cs: align with the change introduced in
15365         revision 74664.
15366
15367 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15368
15369         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
15370         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
15371         in SetTopmost.
15372
15373 2007-03-19  Chris Toshok  <toshok@ximian.com>
15374
15375         * Control.cs (WmPaint): don't make use of the Handle property
15376         after an event is emitted, as the user could have closed the
15377         form/destroyed the control.  Store the Handle in a local variable
15378         and make use of that.  Fixes bug #80768.
15379
15380 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15381
15382         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
15383         behavior in X11 environments.
15384
15385 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15386
15387         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
15388         because on setter of topmost we dont call SetTopmost when handle is not
15389         created.
15390
15391 2007-03-20  Jackson Harper  <jackson@ximian.com>
15392
15393         * TextControl.cs: Need to use SelectionLength () not
15394         selection_length, since that var is reset to -1.
15395         - Draw the caret when we don't have focus.
15396         * TextBox.cs: The selectall actually doesn't occur until the first
15397         focus.
15398         * TextBoxBase.cs: Need to update the caret position after a
15399         selectall.
15400         
15401 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15402
15403         * ListView.cs: Enable scrolling when using Tile view.
15404
15405 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15406
15407         [Fixes #80902]
15408
15409         * XplatUIDriver.cs: Abstract SetOwner method created.
15410
15411         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
15412         must be implemented and was masked as todo.
15413
15414         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
15415         GWL_HWNDPARENT.
15416
15417         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
15418         cheking for null owner to remove transient. The SetTopmost will be change
15419         on a decond step.
15420
15421         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
15422         SetTopmost. Now owned forms will work properly in win32 and X11.
15423
15424 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15425
15426         * MdiWindowManager.cs: Update function name.
15427         * Form.cs: After closing a form MdiParent is always null.
15428         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
15429           better what it should do: necessary book-keeping when the form is
15430           closed, it should not close the form itself.
15431
15432 2007-03-19  Andreia Gaita  <avidigal@novell.com>
15433
15434         * ListViewItem.cs: Fix back and fore color. The subitems only
15435         use their own colors if they are set, otherwise use the listview's
15436         colors. Don't set default colors on constructor for subitem.
15437         Fixes #79315.
15438
15439 2007-03-19  Mike Kestner  <mkestner@novell.com>
15440
15441         * ListView.cs : make box selection for Details views with 
15442         FullRowSelect conform to MS behavior when clicking in the "item" 
15443         column and clicking outside the defined columns.
15444         [Fixes case 5-6 of #80374]
15445
15446 2007-03-19  Chris Toshok  <toshok@ximian.com>
15447
15448         * ScrollableControl.cs: create the controls from within the ctor,
15449         but don't actually add them until our handle is created.  this
15450         fixes a NRE possibility jpobst found (if you override OnLayout in
15451         a subclass, it's called before your ctor).  Also, add a
15452         IsHandleCreated guard to UpdateSizeGripVisibility as well.
15453
15454 2007-03-19  Jackson Harper  <jackson@ximian.com>
15455
15456         * TextBox.cs: Reduce the amount of invalidation we do.
15457         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
15458         some of them are true by default on MS.
15459         - Add some functions to reduce the amount of invalidates we do.
15460         * TextControl.cs: Less invalidation.
15461
15462 2007-03-19  Chris Toshok  <toshok@ximian.com>
15463
15464         [ Fixes #81773, and *seems* to fix #81553 as well ]
15465
15466         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
15467         AccumulateDestroyedHandles.  We need to do it *after* we send
15468         WM_DESTROY, as the user's code can access Control.Handle in
15469         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
15470         move the WM_DESTROY/zombie handling to before the call to
15471         XDestroyWindow.  For some reason without this ordering
15472         FormTest.RecreateHandle hangs.  This ordering is semantically
15473         equivalent, however, as XDestroyWindow is async anyway.
15474
15475 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
15476
15477         * RichTextBox.cs: Reset backcolor_set after setting default.
15478
15479 2007-03-19  Chris Toshok  <toshok@ximian.com>
15480
15481         * ScrollableControl.cs: the scroll position should not effect the
15482         canvas size.  commit patch from georgegiolfan@yahoo.com, which
15483         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
15484         
15485 2007-03-19  Chris Toshok  <toshok@ximian.com>
15486
15487         * ScrollableControl.cs: clean this up a bit.  create the
15488         scrollbars in the ctor and just show/hide them as needed.  Also,
15489         make hscroll_visible/vscroll_visible internal to Recalculate, and
15490         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
15491         everywhere else.  This seems to fix the scrollbars appearing
15492         beneath the content for me (i have *no* idea why that is,
15493         however.)
15494
15495 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
15496
15497         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
15498         some redundacy for stuff in Anchor and Dock that base will take care of.
15499         [Fixes #80762]
15500
15501 2007-03-19  Mike Kestner  <mkestner@novell.com>
15502
15503         * ListView.cs : make box selection for Details views without 
15504         FullRowSelect dependent on the text bounds, not item bounds.
15505         * ListViewItem.cs : add an internal property to obtain the TextBounds
15506         in Details view.  [Fixes case 1-4 of #80374]
15507
15508 2007-03-19  Andreia Gaita  <avidigal@novell.com>
15509
15510         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
15511         we're < 2.0. #78448 && #80316
15512
15513 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
15514
15515         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
15516         have the same style available as the previously selected one.  Also,
15517         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
15518
15519 2007-03-19  Jackson Harper  <jackson@ximian.com>
15520
15521         * TextControl.cs: Add an alignment property that all new lines
15522         will be given.
15523         - Make sure to use the align shift when calculating the line's X
15524         position.
15525         * TextBox.cs: Set the alignment on the document as well as on all
15526         the document lines.
15527
15528 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15529
15530         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
15531           throw if setting the parent of an mdichild that already has an
15532           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
15533           AssemblyProductAttribute in the assembly, use the type's namespace (as
15534           MS seems to do). CreateControl: don't create the handle if the control
15535           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
15536           create handle if the control is not a form. Change FocusInternal to
15537           virtual so that it can be overriden by Form.
15538         * TextBox.cs: Update call to FocusInternal.
15539         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
15540           form is not a toplevel form when it's a mdi child, so update is_toplevel
15541           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
15542           hasn't been created. Show (IWin32Window): Don't allow this overload for
15543           toplevel windows. CenterToParent/CenterToScreen/Select: create the
15544           handle as MS does. SetVisibleCore: if called on a MdiChild and the
15545           parent isn't visible yet, save the visibility and restore it when the
15546           parent is made visible.
15547         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
15548           methods, since the visibility of the scrollbars can be changed from
15549           several places, not only from AutoScroll.
15550           [Fixes #81179]
15551
15552 2007-03-19  Jackson Harper  <jackson@ximian.com>
15553
15554         * RichTextBox.cs: Enable shortcuts by default.
15555         * TextBoxBase.cs: Add conditional shortcuts.  
15556
15557 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
15558
15559         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
15560
15561 2007-03-19  Chris Toshok  <toshok@ximian.com>
15562
15563         [ Fixes bug #80604]
15564         
15565         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
15566         swallow the message we're waiting on, instead of delivering it, as
15567         this is only used for the WM_SHOWWINDOW raised from
15568         MapWindow/UnmapWindow, and the message needs to be generated
15569         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
15570         before doing the Map/Unmap.  Also make sure that the Hwnd is still
15571         alive after the message has been handled.
15572
15573         *before* the window is shown.
15574
15575         * Control.cs (CreateControl): guard a few more things inside the
15576         if (!is_created) block, as we might end up being called again -
15577         yay .net.
15578         (WmShowWindow): call CreateControl if we're showing the control.
15579
15580 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15581
15582         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
15583           controls without a handle if they have any parent with a handle. In
15584           Dispose add a check whether the handle is created or not before
15585           calling BeginInvoke, this removes the need of the extra disposing
15586           parameter (which was bogus anyway since it didn't prevent the
15587           invoke from happening, it only skipped the check for an existing
15588           handle, meaning that the invoke would call on an inexistent
15589           handle).
15590
15591 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
15592
15593         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
15594         appears in taskbar.
15595
15596 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
15597
15598         * MessageBox.cs:
15599         - Fixed a problem that dont show help button for messages with 3 buttons.
15600         - Refactory button size and position calculations, now dont use fixed 
15601         values, also fixed button sizes (#80043) and form's border space.
15602         - AddButton method created, now all other AddButton methods call this one.
15603         - Some other source code cosmetic changes.
15604
15605 2007-03-18  Jackson Harper  <jackson@ximian.com>
15606
15607         * RichTextBox.cs: Don't do this all fonts must match check if
15608         there is only one char selected.
15609
15610 2007-03-18  Jackson Harper  <jackson@ximian.com>
15611
15612         * TreeView.cs: ScrollWindow works properly now, so we don't need
15613         to screw around with the scroll area.  This fixes some artifacts
15614         when expanding and collapsing.
15615
15616 2007-03-18  Jackson Harper  <jackson@ximian.com>
15617
15618         * TextBoxBase.cs: Allow updating the selection position when the
15619         cursor is outside the textarea, but we have a capture.
15620         * TextControl.cs: A special case for when the cursor is outside
15621         the bounds of the TB.
15622         
15623 2007-03-18  Jackson Harper  <jackson@ximian.com>
15624
15625         * TextBoxBase.cs: Remove image pasting code for now.  There is no
15626         way to get an image on the clipboard right now anyways.
15627         * TextControl.cs:
15628         * RichTextBox.cs: Use the new RTF Picture class for pictures.
15629
15630 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
15631
15632         * MessageBox.cs:
15633         - Set window properties in constructor intead of on CreateParams.
15634         - Remove topmost from Window ExStyle.
15635         - Set ShowInTaskbar to false.
15636         - Set form border to FixedDialog.
15637         - Some cosmetic changes and remove unneeded comments.
15638         - It fixes itens 2,3 and 4 of bug #80043.
15639
15640 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
15641
15642         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
15643         none was explicitly set. Fixes part of bug #79949.
15644
15645 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
15646
15647         * ToolStripComboBox.cs: Add AutoComplete*.
15648
15649 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
15650
15651         * ToolStripComboBox.cs: Add FlatStyle.
15652
15653 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
15654
15655         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
15656         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
15657
15658 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15659
15660         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
15661           CheckBox.cs, RadioButton.cs, BindingSource.cs,
15662           DataGridColumnStyle.cs: Remove warnings.
15663
15664 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15665
15666         * Menu.cs: MergeMenu: Check menu argument for null before looping over
15667           it.
15668         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
15669           visibility of mdi child forms. FormSizeChangedHandler: update the
15670           maximized size if size has changed while maximized.
15671         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
15672           creating the handle.
15673         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
15674           avoid creating the handle if not created.
15675         * XplatUI.cs: Update debug output.
15676         * XplatUIStructs.cs: Added ToString's for a couple of structs.
15677
15678 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
15679
15680         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
15681         ProcessCmdKey().
15682         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
15683         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
15684         Implement keyboard shortcuts.
15685
15686 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
15687
15688         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
15689         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
15690         ColorDialog and all derived classes.
15691
15692 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
15693
15694         [ Fixes bug #79828 ]
15695
15696         * ToolBar.cs:
15697         - Rename ToolBarButtonInfor to ToolBarItem.
15698         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
15699         - Maintain an array of ToolBarItem, used instead of ToolBarButton
15700         collection to be able add same button more than one time on a toolbar.
15701         - Refactory all properties and methods to use ToolBarItem. 
15702
15703         * ToolBarButton.cs: 
15704         - Remove all propeties and methods that is now in ToolBarItem.
15705         - Rectangle propery now gets the rectangle from first ToolBarItem to
15706         mimic win32 behavior.
15707         - Size calculation and layout methods also removed.
15708
15709         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
15710         ToolBarItem instead of ToolBarButton to right drawing buttons when
15711         same button/separator was added more than one time to ToolBar.
15712
15713         * ThemeNice.cs: Same as above. 
15714
15715 2007-03-15  Andreia Gaita  <avidigal@novell.com>
15716
15717         * XplatUIX11.cs: Fire extra MouseMove events right after
15718         MouseDown and MouseUp, emulating win32's <censored> behaviour
15719         for apps that rely on it.
15720
15721 2007-03-15  Jackson Harper  <jackson@ximian.com>
15722
15723         * TextControl.cs:
15724         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
15725         it is drawn on the controls client window and there is no NC
15726         area.
15727         - Set the background color to gray on 2.0 when we are readonly.
15728
15729 2007-03-15  Chris Toshok  <toshok@ximian.com>
15730
15731         [ Fixes bug #81144 ]
15732         
15733         * XplatUIX11.cs: implement VirtualScreen independently of
15734         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
15735         property.
15736
15737 2007-03-15  Chris Toshok  <toshok@ximian.com>
15738
15739         * Hwnd.cs: add an internal field for the cached_window_state.
15740
15741         * XplatUIX11.cs: cache the window state, invalidating the cache
15742         (and thus re-querying the X server) only when we see an update to
15743         the _NET_WM_STATE property.
15744
15745 2007-03-15  Chris Toshok  <toshok@ximian.com>
15746
15747         * BindingSource.cs: get a lot of the unit tests working.
15748
15749 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
15750
15751         * Control.cs: Modify UpdateStyles to store distances when bounds >=
15752         0 instead of just bounds > 0.  [Fixes bug #80912]
15753
15754 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
15755
15756         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
15757         and methods.
15758
15759 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
15760         
15761         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
15762         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
15763         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
15764         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
15765
15766 2007-03-15  Chris Toshok  <toshok@ximian.com>
15767
15768         [ Fixes #81101 ]
15769         
15770         * Control.cs: add Ivan's fix for 81101, with a slight modification
15771         - you can set control.Target to null.
15772
15773 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
15774
15775         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
15776         HideDropDown, use Hide instead to prevent an NRE.
15777         [Fixes bug #81147]
15778
15779 2007-03-14  Jackson Harper  <jackson@ximian.com>
15780
15781         * TextBoxBase.cs: Mess with the creation stuff a little. We need
15782         to calculate the document before the handle is created, in some
15783         cases. (Actually just one case).
15784
15785 2007-03-14  Jackson Harper  <jackson@ximian.com>
15786
15787         * TextBoxBase.cs: Need to display the caret after letting the base
15788         wndproc handle the focus methods, because the caret display
15789         methods check the focus state.
15790         - Try to display the caret after updating it's position with SelectWord.
15791         - Don't need to do an immediate update on this recalc, since there
15792         will be an invalidate anyways.
15793
15794 2007-03-14  Jackson Harper  <jackson@ximian.com>
15795
15796         * TreeView.cs: Some workarounds so that we can match event order a
15797         little better.
15798
15799 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
15800
15801         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
15802         #80803. Avoid NullReferenceException when Control does not have
15803         parent. Fixed different blinkstyle issues. Only subscribe to Tick
15804         event a single time. Only draw error icon when control is created and
15805         visible. Fixes failing unit tests.
15806
15807 2007-03-14  Andreia Gaita  <avidigal@novell.com>
15808
15809         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
15810         Selecting events. Fire Leave and Enter events when changing tabs.
15811
15812 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
15813
15814         * TreeView.cs: Add TreeViewNodeSorter.
15815         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
15816
15817 2007-03-14  Chris Toshok  <toshok@ximian.com>
15818
15819         * Form.cs: go ahead and remove the RecreateHandles that jpobst
15820         removed earlier and I had him add back it.  It turns out metacity
15821         *does* in fact handle the MOTIF_WM_HINTS property changing, it
15822         just doesn't redraw the window titlebar until you resize the
15823         window.  This also means we aren't recreating the entire window
15824         hierarchy on X when you change this property.  And it looks better
15825         on windows, too.
15826
15827 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15828
15829         * ListViewItem.cs:
15830         * ListView.cs: Collecting selection information
15831         is now done in SelectedIndexCollection rather than in
15832         SelectedListViewItemCollection. This is done so we can
15833         have the selection information code in one single place
15834         (virtual mode selection information entirely depends on
15835         SelectedIndexCollection).
15836
15837 2007-03-13  Miguel de Icaza  <miguel@novell.com>
15838
15839         * ErrorProvider.cs: Add stubs for ISupportInitialize
15840
15841 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15842
15843         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
15844         in the right order with the right values, from the Checked property, 
15845         just as MS does (instead of triggering them from ListView).
15846
15847         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
15848
15849 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15850
15851         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
15852         the correct handler in OnItemCheck method (ItemCheckEventHandler 
15853         instead of EventHandler). This used to throw an InvalidCastException.
15854
15855 2007-03-13  Jackson Harper  <jackson@ximian.com>
15856
15857         * TextBoxBase.cs: Calculate the document before the handle is
15858         created, so there isn't an extra invalidate called.
15859
15860 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
15861
15862         * Form.cs: Don't set owner in ShowDialog until we are sure
15863         that we aren't going to throw an exception.  [Fixes bug #80773]
15864
15865 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
15866
15867         * TreeView.cs: Make it compile.
15868
15869 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15870
15871         * Control.cs: Another place we don't call SizeFromClientSize.
15872         * Form.cs: Another place we don't call SizeFromClientSize.
15873         [Fixes bug #81125]
15874
15875 2007-03-12  Jackson Harper  <jackson@ximian.com>
15876
15877         * TreeView.cs: Basically emulating some strangness here with
15878         exanding nodes and setting node positions when windows aren't
15879         created.
15880         - Also attempting to walk the node tree less than previously, and
15881         just use visible order calculations for determining offsets.
15882         - oops made scrolling backwards.
15883         * TreeNode.cs: We need to start nodes with a zero visible order,
15884         because the order calcs are based on the first nodes order.
15885
15886 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15887
15888         * Form.cs: Don't exit the program if RecreateHandle is called on
15889         the main form.
15890
15891 2007-03-12  Chris Toshok  <toshok@ximian.com>
15892
15893         * XEventQueue.cs: remove the use of PostQuitState.
15894
15895         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
15896         WM_QUIT message in GetMessage, return false (and if we're in the
15897         nested WaitForHwndMessage, repost the WM_QUIT message).
15898
15899 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15900
15901         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
15902         or the MaximizeBox properties.  [Part of bug #80640]
15903
15904 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
15905
15906         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
15907         no links.
15908
15909 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15910
15911         * ToolStripItem.cs: Fix some tests I broke by checking Visible
15912         instead of visible.
15913
15914 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
15915
15916         * FileDialog.cs: Use text of File name combobox to determine what
15917         files the user selected. Added tokenizer to parse the file names.
15918         Fixes bug #81123.
15919
15920 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15921
15922         * Control.cs: We can't call SizeFromClientSize in the constructor,
15923         but we still need to do the same work, so make an internal version.
15924         [Fixes bug #80621]
15925
15926 2007-03-12  Jackson Harper  <jackson@ximian.com>
15927
15928         * TreeView.cs:
15929         * TreeNode.cs:
15930         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
15931         IsExpanded.
15932
15933 2007-03-12  Jackson Harper  <jackson@ximian.com>
15934
15935         * TextBoxBase.cs: Now that the handles are being created a little
15936         later, we need to make sure that the document is recalculated when
15937         the handle is created.
15938
15939 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
15940
15941         * Theme.cs: GetLinkFont abstract method added.
15942         
15943         * LinkLabel.cs: 
15944         - Remove CalcTrimRectangle, no longer needed.
15945         - Factor also remove, position issues must be fixed in libgdiplus.
15946         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
15947         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
15948         care about font used to draw links.
15949         - Set TabStop to true when control is "Selectable", control is selectable
15950         when have one or more links. Fixes #80501 (test case is also added).
15951         - Set the LinkArea values after links change, LinkArea values must be
15952         based in first link position and size, a test case was created.
15953         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
15954         the attribute must be true LinkArea.Length > 0. The same was applied to
15955         TabStop.
15956         
15957         * ThemeWin32Classic.cs: 
15958         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
15959         in draw method.
15960         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
15961         color change.
15962         - Draw focus rectangle for every parts focused, including parts that 
15963         is on another line, its because regions returns various rectangles
15964         and not only one. Needed to mimic W32 look.
15965         - Uses Graphics.Clip to delimite region painted, it mean that now 
15966         complete text is passed to DrawString, with this we solve layout
15967         issues without create another text renderer.
15968         - Uses Region.Intersect to fix some flickers problems, now only needed
15969         parts will redrawed.
15970         - This changes fixes #79614 and some other unreported issues, on Linux 
15971         some layout problems still remain, the problem is under 
15972         MeasureCharacterRanges but it is an libgdiplus bug.
15973
15974 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
15975
15976         * TextBox.cs: Set for foreground color.
15977         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
15978         this is already done in Control.
15979
15980 2007-03-10  Jackson Harper  <jackson@ximian.com>
15981
15982         * TextBox.cs: Set the background color, but reset the
15983         backcolor_set flag which is just for the user setting the
15984         background color.
15985
15986 2007-03-09  Chris Toshok  <toshok@ximian.com>
15987
15988         * Control.cs: really remove the call to XplatUI.SetVisible from
15989         CreateHandle(), like I said I did when I merged the branch.
15990
15991         * BindingSource.cs: implement some more of this stuff.
15992
15993 2007-03-09  Jackson Harper  <jackson@ximian.com>
15994
15995         * TextBox.cs: Don't explicitly set our background colors.
15996         * TextControl.cs:
15997         * TextBoxBase.cs: Draw readonly text.
15998         - Need to invalidate when backcolor or readonly are changed.
15999         
16000 2007-03-09  Jackson Harper  <jackson@ximian.com>
16001
16002         * TextBoxBase.cs: Don't set the forecolor until the handle is
16003         created.
16004         - Do not raise OnPaint, and removed some old debug code.
16005
16006 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
16007
16008         * ScrollableControl.cs: Fix mouse wheel scrolling.
16009
16010 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
16011
16012         * Control.cs: Wire up MouseDoubleClick event.
16013
16014 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
16015
16016         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
16017         top or bottom.
16018         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
16019         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
16020         item is added.  This logic was moved to ToolStrip.OnItemAdded.
16021         [Fixes bug #81090]
16022
16023 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16024
16025         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
16026
16027 2007-03-08  Jackson Harper  <jackson@ximian.com>
16028
16029         * TreeView.cs: Show the correct image for selected node (this used
16030         to work, not sure how the code got deleted). Also implemented 2.0 feature
16031         SelectedImageKey.
16032
16033 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16034
16035         * ListView.cs:
16036         * ListViewItem.cs: Cache index in items when retrieving them
16037         in VirtualMode.
16038
16039 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
16040
16041         * ToolStripItem.cs: Don't return the explicit_size if we are using 
16042         AutoSize.  Fixes invalidation issue when user has explicitly set a
16043         size and has AutoSize = true.
16044
16045 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
16046
16047         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
16048
16049 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16050
16051         * DataGridView.cs: Remove event handler from DataView when a
16052         DataTable is used as DataSource.
16053
16054 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
16055
16056         * Control.cs: Create internal setter for client_size to allow it to be
16057         set without triggering resizing code.
16058         * Form.cs: Calculate client_size in constructor, only change client_size
16059         in FormBorderStyle property if Handle has been created.
16060         [Fixes #80574, #80791]
16061
16062 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
16063
16064         * SystemInformation.cs: Add TerminalServerSession.
16065
16066 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16067
16068         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
16069         TreeView code.
16070
16071 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16072
16073         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
16074         Handle before we were supposed to.  Now checks ActivateOnShow property
16075         in Control.
16076         * Control.cs: Add internal ActivateOnShow property.
16077         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
16078         for ActivateOnShow.
16079         * Hwnd.cs Remove no longer needed no_activate field.
16080
16081 2007-03-07  Jackson Harper  <jackson@ximian.com>
16082
16083         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
16084         2.0 properties
16085         * DrawTreeNodeEventHandler.cs: Add
16086         * DrawTreeNodeEventArgs.cs: Correct default value.
16087         
16088 2007-03-07  Chris Toshok  <toshok@ximian.com>
16089
16090         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
16091         to be called before NativeWindow.WndProc.  Put the HwndCreating
16092         magic there to hook up our Hwnd's to handles.
16093
16094 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
16095
16096         * DataGridView.cs: Comment out debug code.
16097
16098 2007-03-07  Chris Toshok  <toshok@ximian.com>
16099
16100         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
16101         to make the rest of the world happy]
16102
16103         * Control.cs (CreateHandle): there's no need to call
16104         XplatUI.SetVisible here, it's effectively done by
16105         XplatUI.CreateWindow on X now, and always was on windows.
16106
16107         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
16108         shortcircuit out of the loop if we have a message loop running on
16109         this thread.
16110
16111         [Changelog from merge]
16112
16113         2007-03-05  Chris Toshok  <toshok@ximian.com>
16114
16115                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
16116                 causes handle creation.
16117
16118         2007-02-28  Chris Toshok  <toshok@ximian.com>
16119
16120                 * ApplicationContext.cs: Add a flag to make sure we only raise the
16121                 ThreadExit event once (ExitThreadCore can be indirectly called
16122                 from a few places.)  I don't like the additional flag, but it
16123                 makes the event ordering/count correct.
16124
16125                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
16126                 without locking the collection.  An enumerator doesn't give us any
16127                 protection from modification anyway.  Lock the thread hash and
16128                 replace the complicated enumerator loop with a foreach.
16129                 (Application.CloseForms): make internal so it can be called from
16130                 ApplicationContext.  This should probably be moved to MWFThread.
16131                 (Application.ExitThread): don't call MWFThread.Current.Exit()
16132                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
16133                 when the runloop exits (in response to WM_QUIT.)
16134                 (Application.RunLoop): add a comment (and check) for
16135                 context.MainForm being null after setting context.MainForm.Visible
16136                 = true.  This is because you're perfectly free to dispose of a
16137                 form in VisibilityChanged.  Chalk this up to another case where we
16138                 need to synchronously generate WM_ACTIVATE from Control.Show.
16139                 Also, add handling for WM_QUIT here so we'll exit the loop.
16140                 
16141                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
16142                 fact that we don't wait if we're only unmapping the whole_window
16143                 makes me a bit nervous, but it doesn't seem to cause any problems
16144                 yet.
16145
16146                 also, add a comment about the stupid, broken and wrong resetting
16147                 of PostQuitState to false in GetMessage().
16148
16149                 In PostQuitMessage, we need to add a WM_QUIT message to the
16150                 thread's queue.  We use the FosterParent to get the right
16151                 handle/hwnd/queue.
16152
16153                 Lastly, in SetVisible, we need to unmap both windows, since the
16154                 waiting only happens when we're unmapping the client window.  So
16155                 now, the *only* time we unmap just the whole_window is in the hack
16156                 for resizing a control to 0,0.
16157                 
16158         2007-02-21  Chris Toshok  <toshok@ximian.com>
16159
16160                 * Application.cs (CloseForms): rewrite this so that we don't
16161                 modify the list while we're traversing it.
16162
16163         2007-02-20  Chris Toshok  <toshok@ximian.com>
16164
16165                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
16166                 of OnHandleCreated.
16167                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
16168                 handle is created.  otherwise we'll create it here.
16169                 (VerticalScrollEvent): same here.
16170
16171                 * Application.cs (CloseForms): call Form.Dispose, don't post
16172                 WM_CLOSE_INTERNAL.
16173
16174                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
16175                 here. Application should Dispose() of the Form's.
16176
16177                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
16178                 WM_DESTROY as well.
16179                 (MapWindow,UnmapWindow): only actually do the waiting for
16180                 SHOWWINDOW if the control we're dealing with is a Form.
16181                 (CreateWindow): if the control isn't a form, SendMessage
16182                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
16183
16184                 * Control.cs (SetVisibleCore): always use is_visible here, not
16185                 value.  If we use value, we can end up re-setting something
16186                 visible if, for instance, you do Control.Hide() in a delegate
16187                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
16188
16189         2007-02-20  Chris Toshok  <toshok@ximian.com>
16190
16191                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
16192                 the message we need.  PeekMessage returning false should not be a
16193                 condition under which we exit the loop.
16194
16195         2007-02-15  Chris Toshok  <toshok@ximian.com>
16196
16197                 * Control.cs (Refresh): only refresh if we've got a handle and are
16198                 visible.
16199                 (CreateAccessibilityInstance): CreateControl() here.
16200                 (UpdateChildrenZOrder): complicate the code loop even more by
16201                 taking into account controls that haven't had their handle
16202                 created, and those that aren't visible.  But on the flip side,
16203                 simplify the code by splitting it into two loops.  one which
16204                 builds up the list of child controls we're interested in, and the
16205                 other that sets the z order of those children.
16206
16207         2007-02-14  Chris Toshok  <toshok@ximian.com>
16208
16209                 * Control.cs: Control.AccessibilityObject causes the control to be
16210                 created, not just the handle.
16211
16212         2007-02-14  Chris Toshok  <toshok@ximian.com>
16213
16214                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
16215                 problem on X where a window might have its handle created (and be
16216                 visible) while the window is unmapped.  calling XConfigureWindow
16217                 on an unmapped window is bad, and generates X errors.
16218
16219         2007-02-13  Chris Toshok  <toshok@ximian.com>
16220
16221                 * Control.cs (CreateHandle): don't loop over our children setting
16222                 their parent here.  do it when in WndProc when we're shown.
16223                 (UpdateChildrenZOrder): make this internal so we can call it from
16224                 ScrollableControl.
16225                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
16226                 creating its handle.  Also, remove the calls to PerformLayout from
16227                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
16228                 OnVisibleChanged only seems to be called directly here for the
16229                 toplevel control.  It's propagated down the window hierarchy by
16230                 calls to child.OnParentVisibleChanged.
16231                 (OnVisibleChanged): don't do layout here - it's done (oddly
16232                 enough, according to a glance at stack traces on ms.net..) in
16233                 ScrollableControl.
16234                 
16235                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
16236                 z order of our children before calling PerformLayout.
16237
16238         2007-02-12  Chris Toshok  <toshok@ximian.com>
16239
16240                 [big change, fixes #80020]
16241                 
16242                 * AccessibleObject.cs: we need to make owner internal again to fix
16243                 some of ControlAccessibleObject.
16244
16245                 * Control.cs: lots of changes here.  add support for WM_CREATE,
16246                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
16247                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
16248                 we create child controls.  leave the MonoTODO's for the
16249                 accessibility calls, but fix the exceptions so the tests pass.
16250
16251                 Add the InvalidOperationExceptions to Invoke methods, and remove a
16252                 couple of InvokeInternal methods we aren't using.
16253                 
16254                 Also, add a couple of CreateHandle calls in places where we know
16255                 the handles are being created but our code doesn't reference
16256                 .Handle.
16257
16258                 Make SetVisibleCore call OnVisibleChange if the handle isn't
16259                 created.  If the handle is created, we rely on XplatUI.SetVisible
16260                 generating the event synchronously.
16261                 
16262                 Lastly, make sure we don't use this.Handle inside CreateHandle,
16263                 because we can call back into client (and that code can dispose of
16264                 the control).
16265
16266                 * XplatUIStructs.cs: misc/cleanup.
16267
16268                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
16269                 although we don't populate the wParam properly.
16270                 (CreateWindow): generate WM_CREATE.
16271                 (MapWindow,UnmapWindow): make these calls synchronous, at great
16272                 performance expense (particularly in the unmap case), to match
16273                 win32 behavior.
16274
16275                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
16276                 to call it.
16277                 (set_MdiParent): don't recreate the handle unless it's been
16278                 created already.
16279                 
16280                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
16281                 it's created.
16282
16283                 * NativeWindow.cs: this is probably the weirdest part of the
16284                 patch.  We need a way to link up the window being created to the
16285                 WM_CREATE message.  Since we can only be creating one window at a
16286                 time on a given thread, we keep track of a per-thread reference so
16287                 we can dispatch it properly.  We also need to keep track of the
16288                 Hwnd currently being created so that the win32 backend doesn't
16289                 have problems.
16290                 
16291                 * XplatUIWin32.cs: a similar change to the one we made in
16292                 NativeWindow.cs.
16293
16294 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16295
16296         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
16297         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
16298         to draw the menu shortcut string.
16299
16300 2007-03-07  Jackson Harper  <jackson@ximian.com>
16301
16302         * TreeNode.cs: Add the 2.0 collapse method.
16303
16304 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16305
16306         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
16307
16308 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16309
16310         * DataGridView.cs: Change DataSource will clear column and row
16311         lists. Call Invalidate() to reflect DataSource change.
16312
16313 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16314
16315         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
16316         and a new row is added to it.
16317
16318 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16319
16320         * DataGridView.cs: Add columns when DataSource is en empty list but
16321         is a System.Data.DataView (from a System.Data.DataTable).
16322
16323 2007-03-06  Andreia Gaita  <avidigal@novell.com>
16324
16325         * Label.cs: Implement AutoEllipsis (2.0)
16326
16327 2007-03-06  Jackson Harper  <jackson@ximian.com>
16328
16329         * TreeView.cs: Implement 2.0 TopNode setter property.
16330         - Use a local var instead of the skipped_nodes field for computing
16331         how many nodes to skip.  Otherwise we won't scroll because the
16332         valuechanged handler checks if skipped_nodes is equal to the new
16333         value.
16334         - Implement 2.0 Sort method.
16335         - Add useless 2.0 DoubleBuffer property
16336         - Implement 2.0 LineColors property.  Lets you change the color of
16337         the lines in the tree. Terribly useful for creating non cohesive
16338         desktops.
16339         - Implement 2.0 image key feature.
16340
16341 2007-03-06  Jackson Harper  <jackson@ximian.com>
16342
16343         * TreeView.cs: We can't get the bounds of the nodes before raising
16344         the AfterSelect event, because that event could change the node's
16345         bounds (scrolling, font change, etc).
16346
16347 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16348
16349         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
16350         * Form.cs: Don't recreate handle when creating FormWindowManager, just
16351           update window styles. In CreateParams us VisibleInternal instead of
16352           VIsible to get the actual visible flag set for this form.
16353         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
16354           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
16355           handle the case when the form is already maximized, in which case
16356           it should be restored. Fixes #81043.
16357
16358 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16359
16360         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
16361
16362 2007-03-05  Jackson Harper  <jackson@ximian.com>
16363
16364         * TreeViewHitTestInfo.cs: implement.
16365
16366 2007-03-05  Jackson Harper  <jackson@ximian.com>
16367
16368         * InternalWindowManager.cs: class status fix.
16369
16370 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16371
16372         * InternalWindowManager.cs: All windows that have a parent
16373         are confined to their parent when they're being moved.
16374         Fixes #80822.
16375
16376 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
16377
16378         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
16379         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
16380
16381 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16382
16383         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
16384           buttons invisible before deciding which ones should be visible
16385           (fixes minimize/maximize buttons showing up in toolwindows). Remove
16386           an unused variable.
16387         * InternalWindowManager.cs: Remove warning.
16388
16389 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16390
16391         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
16392         to throw an InvalidOperationException is virtual mode is being used.
16393
16394 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
16395
16396         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
16397         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
16398         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
16399         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
16400         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
16401         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
16402
16403 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16404
16405         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
16406           driver.KeyboardDelay from XplatUI.KeyboardDelay 
16407         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
16408           (patch by Sergey Volk)
16409
16410 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16411
16412         * ToolWindowManager.cs: Added, contains logic for
16413           tool windows.
16414         * CreateParams.cs: Add a few helper methods and an
16415           internal variable to know which control the CreateParams belongs
16416           to.
16417         * Control.cs: Call Form.ChangingParent when the
16418           parent is about to be changed.
16419         * XplatUIX11.cs: DeriveStyles (): Set
16420           caption_height for all windows that have captions and are children.
16421           Update to use ToolWindowManager instead of InternalWindowManager
16422           for ToolWindows.
16423         * XplatUIWin32.cs: Set fake window styles for all
16424           windows that have window managers.
16425         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
16426           now duplicated for mdi windows when they are
16427           maximized, first for the buttons the window itself has, then for
16428           the buttons that appear in the menu bar. Makes things a little
16429           easier). Updated UpdateWindowDecorations, SetWindowState and the
16430           mouse eventhandlers accordingly.
16431         * Form.cs: Add ChangingParent (), contains the
16432           logic of what should happen when the parent changes. In MdiParent
16433           don't set things that ChangingParent () is doing. When handling
16434           WM_CLOSE, we can close the form if there are any other modal forms
16435           and the current form is a descendent of the modal form.
16436         * InternalWindowManager.cs: A lot of refactoring,
16437           the title buttons are now extracted to a separate container class
16438           that takes care of all button code (clicks, tooltips, etc). Moved
16439           Iconic|Maximized|Normal Bounds properties to this class from
16440           MdiWindowManager, so that the window state logic can succeed for
16441           other than mdi wm's. Implemented general window state change logic.
16442           Moved CreateButtons to ThemeWin32Classic, since the theme might
16443           override which buttons are available when as well as the exact
16444           location.
16445         * FormWindowManager.cs: Added, contains logic for
16446           normal forms.
16447         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
16448           which buttons go where (and if they are at all visible). 
16449           Removed special handling of maximized windows, since they aren't special. 
16450           In DrawManagedWindowDecorations don't try to draw the text if it is
16451           empty.
16452         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
16453           use whatever the wm gives us.
16454
16455 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
16456
16457         * ButtonBase.cs: Add 2.0 properties.
16458         * Button.cs: Override Draw for 2.0.
16459         * Control.cs: Add Entered and Selected properties.
16460         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
16461         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
16462         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
16463         buttons.
16464         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
16465
16466 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
16467
16468         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
16469
16470 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
16471
16472         * XplatUIWin32.cs: Register a new class with Windows each time we get
16473         a new ClassStyle.  [Fixes bugs #79432, #80817]
16474         * Controls.cs: Set the correct ClassStyle in CreateParams.
16475         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
16476
16477 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
16478
16479         * ListView.cs: Add fireEvent argument to ReorderColumn since the
16480         ColumnReordered event must not be signaled when modifying DisplayIndex
16481         of a ColumnHeader. Added internal ReorderColumns method which takes
16482         care of drawing, and updating the internal DisplayIndex of the
16483         ColumnHeader. Added AddColumn method which is invoked from
16484         ColumnHeaderCollection when adding or inserting columns, and which
16485         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
16486         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
16487         Recalculated dispay indices after removing a ColumnHeader.
16488         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
16489         match MS. Allows last display index to be returned after ListView
16490         is disposed. Update actual location of ColumnHeader when DisplayIndex
16491         is modified.
16492
16493 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
16494
16495         * LinkLabel.cs: Improve CalcTrimRectangle.
16496         
16497         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
16498
16499 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
16500
16501         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
16502         get rectangle as a result value.
16503
16504 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
16505
16506         * LinkLabel.cs: Theres some diferences between rectangle return from 
16507         MeasureCharacterRanges and the area used for DrawString to fix this 
16508         CalcMeasurementFactor method was created, it calcules the diferences
16509         to be use later to adjust rectangle in draw operations. Fixes #80473.
16510         
16511         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
16512         to adjust draw rectangle.
16513
16514 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
16515
16516         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
16517         text and some other changes to reduce and optimize source code.
16518
16519 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
16520
16521         * RadioButton.cs: Implement 2.0 event.
16522         * RelatedImageListAttribute.cs: Implement new class.
16523
16524 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
16525
16526         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
16527
16528 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
16529
16530         * CheckBox.cs: Implement 2.0 functionality.
16531
16532 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16533
16534         * ListView.cs: Refactor Add and AddRange methods of
16535         ListViewItemCollection, to not update the ListView
16536         everytime an item is added in AddRange. Also move the update
16537         code to a new CollectionChanged method, and call it
16538         from other methods that need it as well (this should also fix some
16539         bugs when Sorting is used).
16540
16541 2007-02-27  Jackson Harper  <jackson@ximian.com>
16542
16543         * TextControl.cs: Try to never let the caret stay in a non-text
16544         tag.
16545         * TextBoxBase.cs: Update the caret.
16546
16547 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
16548
16549         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
16550         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
16551         delete POINT structure, duplicate of one in XplatUIStructs.
16552         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
16553
16554 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
16555
16556         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
16557         edit box since otherwise the Label would immediately be set (even if
16558         the user did not modify the label). In OnKeyDown set Handled to true
16559         if Return or Escape was pressed. In ColumnHeaderCollection unlink
16560         columns that are to be removed. In ListViewItemCollection unlink items
16561         that are to be removed.
16562
16563 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
16564
16565         * TextRenderer.cs: If we set a GDI clip region, we need to clear
16566         it when we are done.  [Fixes bug #80949]
16567
16568 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16569
16570         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
16571
16572 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16573
16574         * ListView.cs: I forgot to commit the changes for ListView 
16575         in my previous patch.
16576
16577 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16578
16579         * Clipboard.cs: Partially implement an overload of SetDataObject.
16580         * Form.cs: Implement ShowWithoutActivation.
16581         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
16582
16583 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16584
16585         This is a first set of changes to make the Virtual mode works,
16586         by avoiding the retrieval of ListViewItem instances until
16587         draw time.
16588
16589         * ListView.cs: Store item position in the ListView instead of the
16590         ListViewItem, this way we don't request the Bounds property of
16591         ListViewItem inside the ListView calculations, as well as cache the item
16592         size in item_size field. Store indexes instead of ListViewItem
16593         instances in the matrix used by icon view. Add a ItemMatrixLocation
16594         struct to hold the row and col info of the matrix info.
16595
16596         * ListViewItem.cs: Don't store the location anymore, and only cache
16597         the rectangles for GetBounds. Use the ListView.GetItemLocation
16598         method to retrieve the actual location.
16599
16600 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16601
16602         * TextRenderer.cs: Add clipping support, thanks to George.
16603         [Fixes bug #80949]
16604
16605 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16606
16607         * ListViewItem.cs: Cancel label edit when item is removed from 
16608         ListView.
16609         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
16610         event before the edit textbox is displayed.  Added CancelEdit method
16611         which is used end to editing while ignoring the value set by the
16612         user. In EndEdit, set focus to ListView to avoid losing focus to
16613         other controls. In ListViewItemCollection.Clear, cancel editing of
16614         any of the items.  In Remove, cancel editing of item being removed.
16615         Avoid udplicate code by modifing RemoveAt to invoke Remove.
16616
16617 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16618
16619         * FileDialog.cs: Update FSEntry when move is successful. Fixes
16620         bug #80948.  
16621
16622 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16623
16624         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
16625         compatible with non X11 systems. Fixes #80901.
16626
16627 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16628
16629         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
16630         whether the item should be unselected and reselect. We do no want this
16631         when we're starting to edit the label. Do not fire the 
16632         SelectedIndexChanged event from ListView when its already been fired
16633         by modifying ListViewItem.Selected. Fixes bug #80943.
16634
16635 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16636
16637         * TextRenderer.cs: Previos commit logic was backwards.
16638
16639 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16640
16641         * TextRenderer.cs: Don't add padding on MeasureText if we were
16642         sent the NoPadding flag.
16643
16644 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16645
16646         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
16647         after DrawButton. To prevent image overlaps button borders SetClip and 
16648         ResetClip added before and after draw image. Fixes #79129.
16649
16650 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16651
16652         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
16653         window size, it fix problem when you run under win32 that theres
16654         Size diferent than ClientSize. Also fix controls size and positions
16655         to mimic Win32. Fixes #80837.
16656
16657 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
16658
16659         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
16660         menu area to fix some problems for non X11 systems. Fixes #80613.
16661
16662 2007-02-22  Jackson Harper  <jackson@ximian.com>
16663
16664         * TreeNode.cs: When a node is expanded, set its is_expanded flag
16665         even if it doesn't have any children.
16666
16667 2007-02-22  Jackson Harper  <jackson@ximian.com>
16668
16669         * TreeView.cs: Calculate the top node 'on the fly', this
16670         eliminates issues where you need to click on the tree before
16671         scrolling it to get the top node computed correctly.
16672         * TreeNodeCollection.cs: We don't need to mess with the top node
16673         anymore.
16674
16675 2007-02-22  Jackson Harper  <jackson@ximian.com>
16676
16677         * DataGridViewRow.cs: Fix typo so height can actually be set.
16678         Patch by Peter Grimm.
16679
16680 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16681
16682         * FileDialog.cs: Fixed support for renaming files and directories.
16683         * ListView.cs: Do not lose focus when edit is canceled. Process
16684         Escape as regular key (to prevent closing of dialogs).
16685
16686 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16687
16688         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
16689         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
16690
16691 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16692
16693         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
16694         did not modify label.
16695         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
16696         modified the text. Reset Label when user presses Escape in edit mode.
16697         Move focus to ListView after having cancelled or finished editing the
16698         label.
16699
16700 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
16701
16702         * ComboBox.cs: Removed unnecessary initializations. Marked items field
16703         private. Clear textbox when Text is set to null and SelectedIndex is
16704         already -1.
16705         * FileDialog.cs: Removed unnecessary initializations. Removed 
16706         workarounds for ComboBox bugs that are now fixed. Modified
16707         DefaultExt, InitialDirectory and Title property to change null to
16708         zero-length string in getters. Avoid directly accessing fields.
16709
16710 2007-02-20  Jackson Harper  <jackson@ximian.com>
16711
16712         * TextControl.cs: Remove RecalAlignments call, that was some
16713         debugging leftovers.
16714         - Don't use the line indent when we shouldn't.
16715         * RichTextBox.cs: Add support for paragraph left indents.
16716
16717 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16718
16719         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
16720         Seems like the class status pages doesn't catch params differences.
16721
16722 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
16723
16724         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
16725
16726 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
16727
16728         * ComboBox.cs: Setting Text should have no effect if item text of
16729         selected item exactly matches value. First lookup text using
16730         case-sensitive comparison, and fallback to case-insensitive comparison.
16731         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
16732         allow startIndex to be last index. Changed ArgumentOutOfRangeException
16733         paramname to match MS. Restart from first item if string is not found
16734         after startIndex. Fixed paramname of ArgumentNullException that is
16735         thrown for null value in ObjectCollection.Contains.
16736
16737 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
16738
16739         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
16740
16741 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16742
16743         * ListControl.cs: In SelectedValue use value.Equals to compare for
16744         equality instead of ==, otherwise it will fail for strings.
16745         Fixes #80794.
16746
16747 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16748         
16749         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
16750         since the caret won't show up unless ShowSelection is true. 
16751         Fixes #80795.
16752
16753 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16754
16755         * Application.cs: When disabling all forms but the main form, do not
16756           disable any descendants of the main form (such as mdi children or
16757           other parented forms). Fixes #80822 on Windows.
16758         * Form.cs: If we have a parent, set the WS_CHILD style.
16759         * Control.cs: Update the window styles if the control whose parent has
16760           changed is a form (the WS_CHILD style has to be switched).
16761
16762 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
16763
16764         * XplatUIStructs.cs: MsgUIState structure added.
16765
16766 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
16767
16768         * FileDialog.cs: Removed need for separate fileName field. On 2.0
16769         profile, do not check filename(s) for illegal character if filename(s)
16770         were set non-interactively but always check on 1.0 profile. Fixed NRE
16771          in DefaultExt and only strip off first leading dot. Improve exception
16772         message when invalid Filter is set. Do not ignore InitialDirectory if
16773         it does no exist. Store specified Title, and if empty use default
16774         title (depending on type of dialog). Added an internal DialogTitle 
16775         property for retrieving dialog title. Fixed logic of displayed dir to
16776         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
16777         string as its buggy.
16778         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
16779         FileName is a zero-length string (it can never be null). Override 
16780         DialogTitle property to set default title of dialog box.
16781         * SaveFileDialog.cs: Override DialogTitle property to set default
16782         title of dialog box.
16783
16784 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
16785
16786         * FileDialog.cs: Modify default text of filename and filetype labels
16787         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
16788         after we've updated the SelectedIndex. Fixes part of bug #80887.
16789         * SaveFileDialog.cs: Set text of filetype label.
16790
16791 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16792
16793         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
16794         label field. Needed by latest Jackson's fixes for ListView.
16795
16796 2007-02-16  Andreia Gaita  <avidigal@novell.com>
16797
16798         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
16799         print preview images.
16800
16801 2007-02-16  Jackson Harper  <jackson@ximian.com>
16802
16803         * ListView.cs: Make AfterLabelEdit work correctly.
16804         * FileDialog.cs: After changing the name of the folder, we have to
16805         make sure that it is created, or that we pop up an error because
16806         it already exists.
16807
16808 2007-02-16  Jackson Harper  <jackson@ximian.com>
16809
16810         * X11Dnd.cs: Implement aliases on mime handlers, so things like
16811         System.String are mapped to text.
16812         - Handle dataobjects, getting all the possible formats out of them
16813         - We dont need the drag event args before we give feedback. This
16814         allows feedback cursors to be immediate before selections have
16815         been converted.
16816
16817 2007-02-16  Jackson Harper  <jackson@ximian.com>
16818
16819         * TextBoxBase.cs: Modified the method for inserting images to
16820         taking a line and position instead of tag and position.
16821         * RichTextBox.cs: Handle PngBlip data by inserting the png image
16822         into the RTF file.
16823         * TextControl.cs: Allow images to be inserted as the first tag of
16824         a line.
16825         - Fix some off by one issues when we assume the first tag is a
16826         text tag, not an image tag.
16827
16828 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16829
16830         * ListView.cs: Set focus to ListView when ItemControl gets a
16831         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
16832         Fixes part of #80467.
16833
16834 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16835
16836         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
16837           validate Text input (if null or empty string reset Value to default
16838           value). Fixes #80830.
16839
16840 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16841
16842         * ListView.cs: Set owner as null for columns and items when
16843         Dispose is invoked. Fixes #80607.
16844
16845 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
16846
16847         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
16848         showing DropDowns, don't show a Grip when doing Flow layout.
16849         [This fixes the toolbox in PDN 2.72.]
16850         * ToolStripItem.cs: Add Anchor property and some internal properties to
16851         reduces needed changes to FlowLayout.
16852         * ToolStripOverflow.cs: Remove unused variable.
16853         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
16854         use it in the layout calculations.
16855
16856 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16857
16858         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
16859         reported in #79640.
16860         
16861         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
16862         size calculation.
16863
16864 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16865
16866         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
16867         MeasureString format, it can make button very large in some cases, it is
16868         strange but is what win32 do.
16869
16870 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16871
16872         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
16873         size calculation.
16874
16875         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
16876         rendering, the value is based on MenuAccessKeysUnderlined.
16877
16878 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16879
16880         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
16881         for most themes.
16882         
16883         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
16884         
16885         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
16886         and use MenuAccessKeysUnderlined instead.
16887
16888 2007-02-13  Andreia Gaita  <avidigal@novell.com>
16889
16890         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
16891         A selected control would not get a Focus call if:
16892                 - the default active control of the container is the same as
16893                   the one that was selected
16894                 - we are switching from one container to another
16895         Under these conditions, the container being selected already has
16896         an active_control, which is the same as the one being activated, 
16897         so set_ActiveControl would always return and not send the Focus
16898         call. Fix to check if the currently active control of the container
16899         is actually focused.
16900
16901 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
16902
16903         * StatusStrip.cs: Implement the spring layout.
16904         * ToolStripControlHost.cs: Make sure the hosted control's visibility
16905         always matches the host.
16906         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
16907         and TextAfterImage.
16908
16909 2007-02-13  Andreia Gaita  <avidigal@novell.com>
16910
16911         * Control.cs: Code reorganization only.
16912           - Reorganize the WndProc cases so that each case has it's own handling method, 
16913           to help with the no-line-numbering stack traces.
16914           - Formatting changes (it's vstudio's fault, really :p)
16915
16916 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16917
16918         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
16919           Thread.CurrentUICulture to match DateTimePicker's (and MS)
16920           behaviour.
16921
16922 2007-02-12  Jackson Harper  <jackson@ximian.com>
16923
16924         * RichTextBox.cs:
16925         * TextBox.cs: By default we have a non multiline document
16926         - use the multiline property instead of the internal variable
16927         * TextBoxBase.cs: Treat multiline and non multiline the same in
16928         most places.
16929         - Use the documents multiline flag instead of tracking it ourself
16930         * TextControl.cs: Attempt at getting multiline to match MS
16931         behavior.  Lines now track an offset, which is either their X or Y
16932         offset depending on whether or not we are in multiline mode.
16933         - Update all the methods to understand that lines have an X value.
16934         - Fix crash in Undo::Duplicate when empty lines are deleted.
16935
16936 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
16937
16938         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
16939         code moved to properties PreferredHeight and PreferredWidth. It solve the
16940         all problems when preferred sizes must be recalculated. Fixes #80801.
16941
16942 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
16943
16944         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
16945         font height when compatible_text_rendering is false. Partially fix #80801.
16946
16947 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16948
16949         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
16950
16951 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16952
16953         * Form.cs: Improved exception messages in ShowDialog.
16954
16955 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16956
16957         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
16958         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
16959         if not set. Fixes bug #80764. Avoid accessing current_settings field
16960         directly.
16961
16962 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
16963
16964         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
16965         false.
16966
16967         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
16968         public in 2.0 and for easy maintenance and dont break compatibility it is 
16969         internal in 1.1.
16970         
16971 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16972
16973         * ToolStripItem.cs: Implement using images from ImageList.
16974
16975 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16976
16977         * DateTimePicker.cs: Change default date-formatting culture from
16978           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
16979           seems to be the way MS does it.
16980
16981 2007-02-08  Andreia Gaita  <avidigal@novell.com>
16982
16983         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
16984         (the 6 was cut off on the right side)
16985
16986 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16987
16988         * Form.cs: Tell MenuStrips to close when the form is clicked.
16989         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
16990         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
16991         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
16992         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
16993         support for Overflow, where items that do not fit are automatically
16994         reparented to a drop down menu.
16995         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
16996         Also: fixes bug #80747.
16997
16998 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16999
17000         * ComboBox.cs: Remove warning (unused code).
17001         * ScrollableControl.cs: Remove warning for 1.1 profile.
17002
17003 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17004
17005         * Form.cs: Remove a warning.
17006
17007 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17008
17009         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
17010           'g' specifier, not documented anywhere, but seems to always show up
17011           as a single space (might have something to do with the DateTime 'g'
17012           specifier, which is the era format, but since DateTimePicker can't
17013           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
17014           won't crash if the format has an unmatched quote. Now shows
17015           single-character formats correctly. Fixes #80744.
17016
17017 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
17018
17019         * StatusStrip.cs: Stretch property needs to call base.Stretch,
17020         not this.Stretch to fix stack overflow. [Fixes bug #80760]
17021
17022 2007-02-07  Chris Toshok  <toshok@ximian.com>
17023
17024         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
17025         background color.  it overwrites the background image we've
17026         already painted.  Fixes #80599.
17027
17028 2007-02-07  Chris Toshok  <toshok@ximian.com>
17029
17030         * DataGrid.cs: return immediately from Edit() when there are no
17031         columns.  Fixes #80662.
17032
17033 2007-02-07  Chris Toshok  <toshok@ximian.com>
17034
17035         * MessageBox.cs: fix #80625.  don't always show the Help button in
17036         2.0.  use the displayHelpButton parameter to determine if we
17037         should show it. Also, make the internal show_help field private.
17038
17039 2007-02-07  Chris Toshok  <toshok@ximian.com>
17040
17041         * Control.cs (SetVisibleCore): check in the proposed patch for
17042         80604, and set is_visible before calling CreateControl.
17043
17044 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
17045
17046         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
17047         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
17048         on it.
17049
17050 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
17051
17052         * MenuAPI.cs: hotkey_active internal field added, it is required because
17053         we need to know when hotkeys must be draw, before this change a keystate
17054         Navigating was used but we can have menu in navigating state without
17055         hotkeys. Fixes #80694.
17056         
17057         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
17058
17059 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17060
17061         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
17062           corresponding events and methods to be internal for 1.1 profile and
17063           public for 2.0 profile (required by SizeGrip).
17064         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
17065           implicit control list). Don't set the size nor the location of the
17066           SizeGrip anymore as it's not needed.
17067         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
17068           draw directly on the captured control (fixes #80656). Removed
17069           ShowGrip (it wasn't used anywhere), redraw (always true), added
17070           GetDefaultSize and GetDefaultRectangle to calculate defaults.
17071         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
17072           be called from SizeGrip.
17073
17074 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17075
17076         * Timer.cs: Throw ArgumentException if Interval <= 0.
17077
17078 2007-02-05  Jackson Harper  <jackson@ximian.com>
17079
17080         * TreeView.cs: We need to check scrollbar visibility when window
17081         visibility is updated, because non visible trees don't ever add
17082         scrollbars.
17083         * Cursor.cs: We want the override cursor to be reset to NULL when
17084         we set current cursor to the default cursor.
17085
17086 2007-02-05  Jackson Harper  <jackson@ximian.com>
17087
17088         * TextControl.cs: Don't have crlfs when we are non multiline.
17089         - Consolidate the line position.
17090
17091 2007-02-05  Jackson Harper  <jackson@ximian.com>
17092
17093         * X11Keyboard.cs: BACK+CTRL gets a special char code.
17094
17095 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17096
17097         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
17098           handling LeaveNotify->NotifyUngrab in order to send
17099           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
17100           after calling XUngrabPointer, so we call WindowUngrabbed directly
17101           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
17102         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
17103           MouseCaptureChanged correctly. Also create handles if changing
17104           Capture (matches MS behaviour).
17105
17106 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17107
17108         * SizeGrip.cs: Make the last change 2.0 only.
17109
17110 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17111
17112         * SizeGrip.cs: If resizing and the capture is lost, revert any size
17113           changes to initial size (fixes #80597).
17114
17115 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17116
17117         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
17118
17119 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17120
17121         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
17122           background) and only allow dragging if enabled. This way the
17123           sizegrip can be used to fill the open square that otherwise would
17124           have been shown in the bottom right corner of ScrollableControl
17125           when ScrollableControl is not suppose to support sizing.
17126         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
17127           sizegrip is shown and enabled, and hook up with necessary events.
17128
17129 2007-02-01  Chris Toshok  <toshok@ximian.com>
17130
17131         * DataGridTextBoxColumn.cs: clean up the
17132         GetFormattedString/GetColumnValueAtRow combination of functions.
17133         Also fix UpdateUI, and the initial state of
17134         IsInEditOrNavigateMode.
17135
17136         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
17137         aren't supposed to scroll the textbox here, we're supposed to
17138         scroll the datagrid.
17139
17140 2007-02-01  Chris Toshok  <toshok@ximian.com>
17141
17142         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
17143         setting the position.
17144
17145 2007-02-01  Chris Toshok  <toshok@ximian.com>
17146
17147         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
17148         here, since the most recent focus fixes keep us from generating
17149         the Leave event when our textbox gets focus.
17150         (Edit): we should be passing null for the column style's
17151         instantText parameter.
17152         
17153 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
17154
17155         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
17156         raised.  Fixes menu text/icons not showing up in PDN.
17157
17158 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17159
17160         * Control.cs: Remove code in constructor that makes every
17161         control with WS_CHILD set have initial location -1, -1.
17162
17163 2007-01-31  Jackson Harper  <jackson@ximian.com>
17164
17165         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
17166         XplatUIX11.
17167         * XplatUIX11.cs: Give teh keyboard to teh dnd.
17168
17169 2007-01-31  Jackson Harper  <jackson@ximian.com>
17170
17171         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
17172         - Remove some debug code.
17173
17174 2007-01-31  Jackson Harper  <jackson@ximian.com>
17175
17176         * XplatUIX11.cs: If you set the override cursor during a grab, it
17177         should actually override the grab cursor.  This comes into play
17178         when you are setting custom cursors in a DND feedback method.
17179
17180 2007-01-31  Jackson Harper  <jackson@ximian.com>
17181
17182         * X11Dnd.cs: Add support for handling the QueryContinue and
17183         GiveFeedback events.
17184         - Cancel drag and drop actions when the escape key is clicked.
17185         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
17186         can handle the ESCAPE key.
17187         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
17188         done when dnd events are continued after the button is released.
17189         - Add a new helper method so that dnd can translate key events.
17190
17191 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
17192
17193         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
17194         make it more obvious what is happening.
17195
17196 2007-01-30  Jackson Harper  <jackson@ximian.com>
17197
17198         * XplatUIX11.cs: Don't break when handling button release in drag
17199         and drop operations. We need that BUTTONUP message to get through
17200         so capture is released.
17201         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
17202         this is handled automatically when the mouse is down.
17203
17204 2007-01-30  Jackson Harper  <jackson@ximian.com>
17205
17206         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
17207         is closed, so we need to make sure that we aren't changing the
17208         dialog result when the OK (Open or Save) button has been clicked
17209         and we are closing the window ourselves.  Note we don't need to
17210         worry about the cache being written in this case, because it was
17211         already done in the previous FilOk call.
17212
17213 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17214         
17215         * DateTimePicker.cs: Remove a warning.
17216         * ComboBox.cs: Remove a couple of warnings.
17217
17218 2007-01-29  Chris Toshok  <toshok@ximian.com>
17219
17220         * XplatUIX11.cs: don't crash, and remove the icon if the user has
17221         set one, if SetIcon is passed a null icon.
17222
17223 2007-01-29  Andreia Gaita  <avidigal@novell.com>
17224
17225         * TextBox.cs: Redraw when the password characters changes
17226         * TextControl.cs: Check if textbox has a password char and draw 
17227         a line of password chars instead of the text in the line. LineTag gets 
17228         an extra Draw() method which allows document.Draw to override the text 
17229         that will be drawn. Removes 1024 char limitation on length of passworded 
17230         lines.
17231
17232 2007-01-29  Jackson Harper  <jackson@ximian.com>
17233
17234         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
17235         single chars is not.
17236
17237 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
17238
17239         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
17240         one pixel.  Fix a StackOverflowException caused by an overload wrongly
17241         calling itself.
17242
17243 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
17244
17245         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
17246         also remove ProcessArrowKey and put the code inside ProcessKeys.
17247
17248 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
17249
17250         * PaddingConverter.cs: Added.
17251
17252 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17253         
17254         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
17255         ShowPanels is false (fixes #80600). Only draw up to 127 characters
17256         of text (fixes #80601). For panels clip the text to draw to the
17257         panel (fixes #80603).
17258
17259 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17260
17261         * ComboBox.cs: Fixed implementation of ResetText.
17262
17263 2007-01-25  Jackson Harper  <jackson@ximian.com>
17264
17265         * TextControl.cs: For the last char of a line we need to use the
17266         line size, not that chars width, since it won't actually be
17267         computed since the right side of a char is based on the start of
17268         the left side of the next char, and the next char does not exist.
17269
17270 2007-01-25  Chris Toshok  <toshok@ximian.com>
17271
17272         * Splitter.cs: fix the new unit tests, and reindent some switch
17273         statements.
17274
17275 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17276
17277         * ComboBox.cs: Implemented 2.0 methods and events.
17278         * TextBoxBase.cs: Added OnTextUpdate, so that
17279         ComboBox.ComboTextBox can inform ComboBox of it.
17280
17281 2007-01-25  Jackson Harper  <jackson@ximian.com>
17282
17283         * TextControl.cs: Respect ShowSelection when deciding whether or
17284         not to display the caret, this allows comboboxes to have carets
17285         when the combotextbox does not have focus.
17286
17287 2007-01-25  Jackson Harper  <jackson@ximian.com>
17288
17289         * TextControl.cs: Add a Suspend/Resume for updating, basically the
17290         same as the Suspend/Resume for recalc, except this will do actual
17291         Invalidates.
17292         - New Undo manager, works much like the MS version.
17293         - Implemented Redo
17294         * TextBoxBase.cs: The Cut operation is undoable.
17295
17296 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17297         
17298         * TextBoxBase.cs: Don't antialias text. Makes it look way better
17299         on Windows (no difference on Linux).    
17300
17301 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17302
17303         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
17304         we don't want to activate any windows. Fixes #79433.
17305
17306 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
17307
17308         - ButtonBase.cs: Fix capitalization of parameter: disposing.
17309         [Fixes bug #80609]
17310
17311 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
17312
17313         * FileDialog.cs:
17314         - Move to using System.ComponentModel.EventHandlerList
17315         - Replace Refresh with Invalidate
17316         - Clear the mime filecache on closing
17317         - Some other memory reducing work. After beeing closed FD now uses
17318           only about 300 KB for the fdo mime stuff plus the memory of the
17319           cached icons.
17320         * Mime.cs: Changed coding style and removed unnecessary commented
17321         code. Some more memory memory reducing work.
17322
17323 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17324
17325         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
17326         a few other missing 2.0 properties.
17327         * Theme.cs: Added DrawFlatStyleComboBox.
17328         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
17329
17330 2007-01-24  Chris Toshok  <toshok@ximian.com>
17331
17332         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
17333         wake_waiting flag, not just when there's data to be read.  if we
17334         don't, then future wakeup's won't reach us and we'll be doomed to
17335         wait for the entire 1 second timeout forever (unless there are X
17336         events to be had).
17337
17338 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
17339
17340         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
17341         until you pass Items.Count, not Items.Count - 1 like 1.1.
17342
17343 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
17344
17345         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
17346
17347 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
17348
17349         * ToolStripContainer.cs: The recent Dock fix exposed that I was
17350         adding the panels in the wrong order.
17351
17352 2007-01-24  Jackson Harper  <jackson@ximian.com>
17353
17354         * TextBoxBase.cs: When we move the caret we also need to move the
17355         selection, this fixes some random crashing after doing select
17356         text, unselect, delete a char, paste.
17357
17358 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17359
17360         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
17361
17362 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17363
17364         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
17365         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
17366         * ToolBar.cs: Force redraw in BackgroundImageChanged.
17367
17368 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17369
17370         * ToolBar.cs:
17371         - Implement support for vertical toolbars. Fixes #80539;
17372         - Call LayoutToolBar when resize, it fix some other problems in layout.
17373         - Rename requested_height to requested_size, as we can have width on it
17374         when toolbar is vertical.
17375         - Create a private property "Vertical" that uses Dock to verify when 
17376         toolbar is vertical or not.
17377         - Set ControlStyles when change Dock property.
17378         - Refactory in LayoutToolBar to have better variables names and to support
17379         vertical toolbars.
17380         - Fixes default value for ButtonSize when button count is equal zero, size
17381         must be (39, 36) test case writed.
17382
17383 2007-01-23  Chris Toshok  <toshok@ximian.com>
17384
17385         * Control.cs: fix the checks so that they work correctly for mdi
17386         parents/children.
17387
17388 2007-01-23  Chris Toshok  <toshok@ximian.com>
17389
17390         * Control.cs: ControlCollection seems to have super-secret
17391         abstraction breaking knowledge of Mdi containers.  allow MdiClient
17392         to add toplevel controls.
17393
17394 2007-01-23  Chris Toshok  <toshok@ximian.com>
17395
17396         * Control.cs: throw an ArgumentException if a toplevel control is
17397         added to our control collection from ControlCollection.Add, as
17398         well as from ControlCollection.IList.Add.  This fixes the
17399         ControlSetTopLevelTest.TestTopLevelAdd unit test.
17400
17401         Also, in ControlCollection.IList.Add, don't through an
17402         ArgumentNullException, throw an ArgumentException, when value ==
17403         null.  This matches MS.
17404
17405 2007-01-23  Chris Toshok  <toshok@ximian.com>
17406
17407         * BindingSource.cs: initial, incomplete, implementation of
17408         BindingSource.
17409
17410 2007-01-23  Jackson Harper  <jackson@ximian.com>
17411
17412         * TextControl.cs:
17413         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
17414         that I can fix a broken unit test (TextBoxTest::ClearUndo)
17415         
17416 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17417
17418         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
17419
17420 2007-01-23  Andreia Gaita  <avidigal@novell.com>
17421
17422         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
17423         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
17424         IndexOfKey() for 2.0
17425
17426 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17427
17428         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
17429         to prevent it from changing z-order.
17430         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
17431         leave UI updates in MdiWindowManager.
17432         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
17433         1 sized (NC handling goes weird on Linux otherwise).
17434         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
17435         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
17436         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
17437         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
17438         and SetWindowState(s) to allow for changing the size of an activated child
17439         before activating it (reduces a lot of flicker).
17440
17441 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
17442
17443         * Form.cs: Changing FormBorderStyle has different semantics based
17444         on whether the Form is visible or not.  If not visible, don't change
17445         the Size.  But InvalidateNC needs to be called to force the window
17446         to pick up the changes and redraw itself.  [Fixes bug #80574]
17447
17448 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
17449
17450         [Moma work]
17451         * ContainerControl.cs: ProcessCmdKey.
17452         * ErrorProvider.cs: new constructor.
17453         * Form.cs: fix AutoValidateEvent compiler warning.
17454         * Label.cs: fix OnAutoSizeChanged compiler warning.
17455         * MenuStrip.cs: fix CanOverflow compiler warning.
17456         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
17457         * TextBox.cs: Dispose.
17458         * ToolStrip.cs: CanOverflow, re-enable double buffering.
17459         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
17460         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
17461         * ToolStripItem.cs: Overflow, RightToLeft properties.
17462
17463 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17464
17465         * Form.cs: Move the layout of the main form to MdiWindowManager.
17466         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
17467         do a layout of the main window to update MdiClient's client area to
17468         the right area. Fixes #80533. Remove the calculation of nc size, 
17469         it was just wrong and the correct one is the same as for 
17470         InternalWindowManager. 
17471
17472 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
17473
17474         * Control.cs: Setting Anchor or Dock needs to reset the other
17475         to its default.  [Fixes bug #80556]
17476
17477 2007-01-20  Chris Toshok  <toshok@ximian.com>
17478
17479         * CheckedListBox.cs: class status changes.
17480
17481         * ScrollableControl.cs: same.
17482
17483         * RichTextBox.cs: same.
17484
17485         * ContainerControl.cs: same.
17486
17487         * ListView.cs: same.
17488
17489         * NotifyIcon.cs: same.
17490
17491         * MenuStrip.cs: same.
17492
17493         * RadioButton.cs: same.
17494
17495         * CheckBox.cs: same.
17496
17497         * PrintPreviewDialog.cs: same.
17498
17499         * Form.cs: same.
17500
17501 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
17502
17503         * TreeNode.cs: Apply Alan's patch for Name property.
17504
17505 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17506         
17507         * Form.cs: Implemented SizeGripStyle.
17508         * SizeGrip.cs: Check for minimum and maximum size for the
17509         control being resized and only resize if size has actually
17510         changed.
17511
17512 2007-01-19  Chris Toshok  <toshok@ximian.com>
17513
17514         * DataGridColumnStyle.cs: stop setting _readonly in the
17515         PropertyDescriptor setter.  fixes a unit test failure.
17516
17517         also, rename ParentReadOnly to TableStyleReadOnly, and have it
17518         just consult our table style (if we have one).  We don't need to
17519         consult the datagrid readonly attribute because that's passed in
17520         as the _ro arg to Edit.  this simplifies things a little.
17521         
17522         * DataGrid.cs: use CurrentColumn instead of
17523         current_cell.ColumnNumber just to simplify some of the code.
17524
17525         switch the order of some things in the CurrentCell setter to keep
17526         the previous cell from getting a textbox again -
17527         EnsureCellVisibility causes scrolling to happen, which calls Edit.
17528         So we need to set the new cell before calling it.
17529         
17530         call Edit in OnEnter, as does Microsoft.
17531         
17532         also, make sure the current table style isn't the one we create
17533         initially when checking to see if it's different than the one
17534         we're setting it to in BindColumns (this fixes #80421).
17535
17536         * GridTableStylesCollection.cs: table styles can have "" for a
17537         mapping name.  part of the fix for #80421.
17538
17539         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
17540         Edit significantly.
17541
17542 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17543
17544         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
17545         and less GDI object leaky-er.
17546
17547 2007-01-18  Andreia Gaita  <avidigal@novell.com>
17548
17549         * LinkLabel.cs: Add opaque control style
17550
17551 2007-01-18  Jackson Harper  <jackson@ximian.com>
17552
17553         * TextControl.cs: Calculate width properly.
17554         - Don't store the tag's X offset, this can be figured out very
17555         easily.
17556         - When getting the caret tag make sure to get the last empty tag.
17557
17558 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17559
17560         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
17561         [Fixes bug #79959]
17562
17563         * Control.cs: Color.Empty shouldn't count for previous transparent
17564         redraw changes.
17565
17566 2007-01-18  Jackson Harper  <jackson@ximian.com>
17567
17568         * TextBox.cs:
17569         * RichTextBox.cs:
17570         * TextControl.cs: Starting to merge in some pieces of my older
17571         undo work.  Basically just some slight cleanup of the undo API.
17572
17573 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17574
17575         * TrackBar.cs: Fix signature of RightToLeftLayout.
17576         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
17577         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
17578         * Application.cs: Implemented UseWaitCursor.
17579
17580 2007-01-18  Jackson Harper  <jackson@ximian.com>
17581
17582         * TextControl.cs: We can't skip tags if any part of the tag is
17583         visible.
17584
17585 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17586
17587         * ContainerControl.cs: Override OnLayout.
17588
17589 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17590
17591         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
17592
17593         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
17594         everything else.
17595
17596 2007-01-18  Chris Toshok  <toshok@ximian.com>
17597
17598         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
17599         (leftover from the container_selected days, I'd wager).  fixes bug
17600         #80546.
17601
17602 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17603
17604         * Control.cs: Apply patch from George to fix the new testcase on
17605         bug #80451.  We can't just check for Color.Transparent, we need 
17606         to check if the back color's alpha channel is < 255.
17607
17608 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17609
17610         * Form.cs: Move setting show_icon = true to before the constructor
17611         so that the base constructor has that information when it calculates
17612         the form's size.  Was causing forms to be (6, 6) bigger than they
17613         were supposed to be.  Thanks for catching this Rolf!
17614
17615 2007-01-18  Jackson Harper  <jackson@ximian.com>
17616
17617         * TextControl.cs: When replacing a selection we need to invalidate
17618         from the initial selection start, because selection start is moved
17619         to the end of the replacement.
17620
17621 2007-01-18  Andreia Gaita  <avidigal@novell.com>
17622
17623         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
17624
17625 2007-01-18  Chris Toshok  <toshok@ximian.com>
17626
17627         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
17628         I just added.
17629
17630 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
17631
17632         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
17633         layout methods and properties from ToolBarButton must be available
17634         into ToolBarButtonInfo.
17635
17636 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17637
17638         * Control.cs: If the control has a transparent background, we
17639         need to refresh it when it moves and when it's parent's background
17640         image changes.  [Fixes bug #80451]
17641
17642 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17643
17644         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
17645
17646 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17647
17648         * XplatUIWin32.cs: Implement proper double buffering for Windows.
17649         [Fixes bug #80447, and probably speeds up things as well]
17650
17651 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17652
17653         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
17654         * XplatUIWin32.cs: We need to recalculate NC size after changing 
17655         window style to toolwindow (otherwise the client rectangle will be
17656         3 pixels to small for some reason).
17657         * MdiWindowManager.cs: Revert NC size calculations to match how
17658         they are calculated only based on window styles (to match
17659         Win32AdjustWindowRectEx, since otherwise when setting size or 
17660         location, Control will call Win32AdjustWindowRectEx to update client 
17661         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
17662         calculate a different value of client size causing another paint 
17663         (and flickering))
17664         * InternalWindowManager.cs: When moving or resizing a window only
17665         update size or location if they actually changed.
17666         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
17667         (seems to match Windows behaviour better). Cleaned up 
17668         ManagedWindowDecorations to draw what's needed and nothing else
17669         (was drawing borders and lines where they shouldn't be)
17670         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
17671         (style = 0xFFFF) and takes into account caption height when 
17672         calculating window rectangle.   
17673
17674 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
17675
17676         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
17677         can be added to toolbar multiple times, we need to maintain a list of 
17678         button information for each positions.
17679
17680 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
17681
17682         * ToolBar.cs: Some small stetic changes.
17683
17684 2007-01-16  Jackson Harper  <jackson@ximian.com>
17685
17686         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
17687         that allow us to have nested recalc = false blocks.
17688         - Add paste support for images in the RichTextBox
17689         * RichTextBox.cs: flush the text after the color is changed, so
17690         the change takes effect.
17691         - Use SuspendRecalc
17692         - Some extra debugging info
17693         * TextControl.cs: Tags no longer track their length, it is just
17694         computed from the next tags length, this makes things a little
17695         simpler and reduces places that we have to track length changes.
17696         - Refactored the linetag class a little so we could make it
17697         a base class for different kinds of tags
17698         - Created a image tag, a tag that can have a single image inserted
17699         into it
17700         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
17701         that we can call suspend multiple times.
17702         - Add some debugging methods
17703
17704 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17705
17706         * MdiClient.cs: Add ActivatePreviousChild for 
17707         mdi child window navigation.
17708         * Form.cs: Use MdiClient.ActivateNextChild/
17709         ActivatePreviousChild instead of Form.SelectNextControl
17710         to select the next/previous child since 
17711         SelectNextControl doesn't do it in the same order
17712         as mdi children should do it.
17713
17714 2007-01-16  Chris Toshok  <toshok@ximian.com>
17715
17716         * Control.cs: remove container_selected field.
17717
17718 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17719
17720         * MdiClient.cs: Update main form's ActiveChild when
17721         updating keyboard focus for the mdi child.
17722
17723 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
17724
17725         * Control.cs: PreferredSize fix.
17726
17727         * Form.cs: Add several 2.0 events, properties, and methods.
17728
17729 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
17730
17731         * Form.cs: Provide meaningful message when MdiParent is assigned a
17732         Form that is not an MdiContainer.
17733
17734 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17735
17736         * MdiClient.cs: Update main form's ActiveChild when
17737         activating a mdi child.
17738
17739 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17740
17741         * MdiWindowManager.cs: Fix NRE when merging menus and main form
17742         doesn't have a menu.
17743
17744         * Form.cs: Request NCRecalc after creating a mdi child window.
17745         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
17746         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
17747         
17748         * MdiClient.cs: Add new method SendFocusToActiveChild that either
17749         sends keyboard focus to the active child, or to the MdiClient
17750         if there are no child forms.
17751         
17752 2007-01-15  Chris Toshok  <toshok@ximian.com>
17753
17754         * ListView.cs: drop the *Internal overrides, just do our work in
17755         ItemControl's WndProc instead.
17756
17757         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
17758         of the various controls, and forward the events properly (in the
17759         same manner as MS) from the textbox to the UpDown.  Also the
17760         ActiveControl of the UpDownBase gets set properly now.  Finally,
17761         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
17762
17763         * NumericUpDown.cs: set Text in the ctor.
17764
17765         * DomainUpDown.cs: call UpdateEditText in the ctor.
17766         
17767         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
17768         so even a Selectable = false textbox can be focused if you click
17769         in it.  Go figure.
17770
17771         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
17772         just add their handling in their respective WndProc's.  Also add
17773         an explicit FocusInternal method that doesn't consult CanFocus
17774         before calling Select(this).
17775
17776         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
17777         do our work in WndProc instead.
17778
17779         * TabControl.cs: same.
17780
17781         * ComboBox.cs: same.
17782
17783 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17784
17785         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
17786         Fixes #80006.
17787
17788 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17789
17790         * ListViewItem.cs:
17791         * ThemeWin32Classic.cs: Don't draw the item text outside
17792         item bounds in Details view, as well as use trimming.
17793         Fixes bug #80376.
17794
17795 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17796
17797         * Form.cs: Implement Form.ShowIcon.
17798         
17799         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
17800         null, which when combined with the DlgModalFrame window style removes
17801         the icon from the title bar.
17802
17803 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17804
17805         * Control.cs: Call OnMouseClick after OnClick. (2.0)
17806
17807 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17808
17809         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
17810         menu when mdi child windows theres a menu, uses insert to get icon
17811         at first position. Partially fix #80006.
17812
17813 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17814
17815         * Clipboard.cs: Implement 2.0 methods.
17816
17817 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17818
17819         * Menu.cs: Implement Insert method of MenuItemCollection class
17820         to fix MenuMerge.
17821
17822 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17823
17824         * ListView.cs: Implement 2.0 FindItemWithText method.
17825
17826 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17827
17828         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
17829         to calculate menu bar size. Fixes #80290.
17830
17831 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17832
17833         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
17834
17835 2007-01-11  Chris Toshok  <toshok@ximian.com>
17836
17837         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
17838         initial form.
17839
17840 2007-01-11  Chris Toshok  <toshok@ximian.com>
17841
17842         * LinkLabel.cs: make sure to call base.Select in our Select method
17843         if it turns out we're going to be selected (i.e. if we have a link
17844         that is going to receive focus).  That way our container's
17845         ActiveControl is updated properly.
17846
17847 2007-01-11  Chris Toshok  <toshok@ximian.com>
17848
17849         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
17850         they have 1 or more links.  this fixes the crash gert reported.
17851
17852 2007-01-11  Andreia Gaita  <avidigal@novell.com>
17853
17854         * ContainerControl.cs: Remove ContainerSelected flag, not needed
17855         anymore.
17856
17857         * Control.cs (Controls.Add): Check if control to be added to the collection
17858         is a top level control, and throw an ArgumentException if it is.
17859         Remove ContainerSelectedFlag, not needed anymore.
17860
17861         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
17862         top most control doesn't activate the form. This fixes a problem in the
17863         MessageBox, where the default button wouldn't get focus because the form
17864         was activated before being Loaded - when the Owner is set, SetTopMost is
17865         called, and it would activate it.
17866
17867 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
17868
17869         * Button.cs: When clicked and setting the parent form's DialogResult,
17870         use FindForm instead of Parent, since parent could be a container
17871         control and not the Form.  Fixes bug #80495.
17872
17873 2007-01-10  Chris Toshok  <toshok@ximian.com>
17874
17875         * Form.cs: move the call to SendControlFocus into the same
17876         is_loaded check.
17877
17878 2007-01-10  Chris Toshok  <toshok@ximian.com>
17879
17880         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
17881         It breaks in the face of the new ActiveControl stuff, and should
17882         be unnecessary.
17883
17884         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
17885         activecontrol's focus if it's not already set, after we set
17886         ActiveControl, but before we call OnActivated.  Re-fixes #79667
17887         after the previous focus/active control fixes regressed it.
17888
17889         * Control.cs: reindent some code.
17890         
17891 2007-01-10  Chris Toshok  <toshok@ximian.com>
17892
17893         * Splitter.cs: clearing some outstanding changes from my tree.
17894         Replace all accesses (not writes) to the internal dock_style field
17895         with the Dock property.
17896
17897 2007-01-10  Chris Toshok  <toshok@ximian.com>
17898
17899         * Control.cs: make FireEnter, FireLeave, FireValidating, and
17900         FireValidated virtual.
17901
17902         * Form.cs: override and don't chain up calls to FireEnter and
17903         FireLeave.
17904
17905 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17906
17907         * ListView.cs: Add more text padding space when using
17908         auto resize for columns (the previous value didn't work fine).
17909
17910         * ThemeWin32Classic.cs: Update text position inside columns,
17911         to match the appeareance of .Net.
17912
17913         * ColumnHeader.cs: When using auto resize, only the Width should
17914         depend on the sub items, not the Height. Also, set width after
17915         auto resizing (the value of Width should never remain as -1 or -2).
17916
17917 2007-01-10  Chris Toshok  <toshok@ximian.com>
17918
17919         * Application.cs: fix compilation errors when debug is enabled.
17920
17921 2007-01-10  Chris Toshok  <toshok@ximian.com>
17922
17923         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
17924         add some nice ascii art pictures and explanation of the process).
17925         (GetMostDeeplyNestedActiveControl): new utility function we need
17926         because our ActiveControl can refer to a child container with its
17927         own ActiveControl.
17928
17929         * Form.cs (OnActivated): remove the call to SelectActiveControl
17930         from here, since you can override this method and not chain up,
17931         and winforms still sets the active control.
17932         (OnCreateControl): also remove the unnecessary SelectActiveControl
17933         call from here.
17934         (WndProc): it's actually called from the WM_ACTIVATE block, just
17935         before calling OnActivated.
17936
17937         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
17938         inside the else.  the ActiveControl setter will end up setting
17939         focus on @control.  This keeps us from setting it again (and
17940         generating an extra LostFocus/GotFocus pair).
17941         (Select (bool, bool)): reindent.
17942
17943 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
17944
17945         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
17946         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
17947         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
17948         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
17949         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
17950         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
17951         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
17952         ToolStripTextBox.cs: Another wave of corcompare work.
17953
17954 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17955
17956         * ColumnHeader.cs: Implement 2.0 AutoResize method using
17957         the Width property.
17958
17959         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
17960         methods by callling Column.AutoResize method on columns.
17961
17962 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
17963
17964         * Control.cs: Provide proper implementations of PreferredSize
17965         and GetPreferredSize (2.0).
17966
17967 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
17968
17969         * Form.cs: Remove one character (!) to make my previous OnClosing
17970         stuff work for modal windows like MessageBox.
17971
17972 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17973
17974         * ListView.cs:
17975         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
17976         ListView.Columns to get the last displayed column. Fixes #80452.
17977
17978 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
17979
17980         * Label.cs, LinkLabel.cs: Source code identation fixes.
17981
17982 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
17983
17984         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
17985         we dont need to invalidate only borders because when we invalidate four
17986         border lines the invalidate's generates a complete redraw of button, 
17987         because it now invalidate a complete rect some other redraws operations
17988         are fixed. Fixes #80196.
17989         
17990         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
17991         Remove ToolBarInvalidateEntireButton as it is not used.
17992
17993 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
17994         
17995         * Form.cs: Make sure that both OnClosing and OnFormClosing are
17996         called for 2.0 profile.
17997         * CloseReason.cs: Make class internal for 1.1.
17998
17999 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
18000
18001         * ToolStripManager.cs: Implement FindToolStrip functionality.
18002         * ToolStrip.cs: Register and unregister with ToolStripManager.
18003
18004 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
18005
18006         * Control.cs: This was messy.  2.0 moves much of ControlCollection
18007         to ArrangedElementCollection.  Implemented this with as few #if's as 
18008         possible (which is still too many).
18009
18010 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
18011
18012         * Control.cs: Implement SizeFromClientSize() [2.0].
18013
18014 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
18015
18016         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
18017         use Theme.BorderSize to calculate area instead of static value 1, 
18018         by the way use new BorderStaticSize instead     Border3DSize when 
18019         border_static is true. Fixes #79537.
18020         
18021         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
18022         
18023         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
18024         it is not needed.
18025
18026 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
18027
18028         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
18029
18030 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
18031
18032         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
18033         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
18034         
18035         * Hwnd.cs: 
18036         - border_static field added, it will used to define when a control 
18037         theres 3D border but it must be static (thin).
18038         - In GetWindowRectangle use Theme.BorderSize to calculate area 
18039         instead of static value 1, by the way use new BorderStaticSize instead
18040         Border3DSize when border_static is true.
18041
18042         * XplatUIX11.cs, XplatUIOSX.cs: 
18043         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
18044         
18045         * Theme.cs: BorderStaticSize field added.
18046
18047 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
18048
18049         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
18050
18051 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
18052
18053         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
18054         mimic same behavior than win32 that set border only in CreateParams,
18055         it fix problems under CreateParams overrides. Fix #79442 and partial
18056         fix #79537.
18057         
18058         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
18059         of thi control you must call recreate handle. 
18060         
18061         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
18062         need to do anything as RecreateHangle will take care about borders.
18063
18064 2007-01-05  Mike Kestner  <mkestner@novell.com>
18065
18066         * ListView.cs: hack to eliminate Lost/Got focus notifications on
18067         cycles between the ItemControl and parent.  Fixes #80388.
18068
18069 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
18070
18071         * Control.cs: Lazy init layout engine. Do not directly use 
18072         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
18073
18074 2007-01-05  Chris Toshok  <toshok@ximian.com>
18075
18076         * DataGrid.cs: don't forceably rebind columns in SetDataSource
18077         unless our list manager has changed (i.e. unless we have reason to
18078         believe our columns have changed).  Fixes #80422.
18079         
18080         also, disable the call do BindColumns in
18081         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
18082         1.1 the event isn't raised in response to a column addition on a
18083         table.)
18084
18085 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
18086
18087         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
18088         that inheritors can not call it if they choose.  Fixes bug #80456.
18089
18090 2007-01-05  Andreia Gaita  <avidigal@novell.com>
18091
18092         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
18093         doesn't blow up with a null exception on marshalling.
18094         
18095 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
18096
18097         * Control.cs: Implement several 2.0 protected properties and methods.
18098         Ensure that all necessary events are being called when properties
18099         are set.
18100
18101 2007-01-05  Mike Kestner  <mkestner@novell.com>
18102
18103         * ListView.cs: implement PgUp/PgDn for Details view.  Also
18104         fixes First/LastVisibleIndex to use the item_control.ClientRect 
18105         instead of the parent control.  Fixes #80378.
18106
18107 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
18108
18109         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
18110           determine whether to use yard-pound or not (bug #78399).
18111
18112 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
18113
18114         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
18115         problems. So it is time to bring back the old popupbutton colors.
18116
18117 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18118
18119         * ColumnHeader.cs:
18120         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
18121         property by using the internal information of the
18122         columns order in ListView.
18123
18124 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
18125
18126         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
18127         Add 2.0 Tag properties.
18128
18129         * LinkArea.cs: Add 2.0 ToString method.
18130
18131 2007-01-03  Chris Toshok  <toshok@ximian.com>
18132
18133         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
18134         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
18135         when we're editing, which fixes #80047.
18136
18137 2007-01-03  Chris Toshok  <toshok@ximian.com>
18138
18139         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
18140         #80404.
18141
18142 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
18143
18144         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
18145         property and implementation.
18146
18147         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
18148         for MdiWindowListItem property.
18149
18150         * ToolStripDropDown.cs: Don't consider hidden menu items while
18151         laying out the menu.
18152
18153 2007-01-03  Andreia Gaita  <avidigal@novell.com>
18154
18155         * SendKeys.cs: window handle is not needed in win32, so just
18156         get the active window for X after parsing keys and don't use
18157         it when building the message; it is passed by parameter to the 
18158         Xplat method and used there to build the message instead. Also,
18159         wait for events to be processed on SendWait, as opposed to Send,
18160         which doesn't wait :) Playing with threads and Send() completely 
18161         hangs on ms.net, only SendWait() works.
18162         
18163         XplatUIX11.cs
18164         X11Display.cs: Check for valid window handle.
18165
18166 2007-01-03  Jackson Harper  <jackson@ximian.com>
18167
18168         * TextControl.cs: Need to prevent wrap calculations when replacing
18169         text (this was there before i removed it accidently).
18170         - Don't update the cursor during the positioning, just set it to
18171         selection_start at the end of the operaion.
18172
18173 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18174
18175         * Control.cs:
18176         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
18177         
18178 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18179
18180         * MonthCalendar.cs: Added Click and DoubleClick events again,
18181         but this time they only hide Control's Click and DoubleClick.
18182         
18183 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
18184
18185         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
18186         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
18187
18188 2007-01-02  Jackson Harper  <jackson@ximian.com>
18189
18190         * TextBoxBase.cs: We move the caret with the split now, so we
18191         don't need to explicitly move the caret after splitting.  This
18192         fixes the caret bumping down an extra line on Enter.
18193
18194 2007-01-02  Miguel de Icaza  <miguel@novell.com>
18195
18196         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
18197         2.72). 
18198
18199         * ScrollableControl.cs: Add Scroll event.
18200
18201 2007-01-02  Mike Kestner  <mkestner@novell.com>
18202
18203         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
18204         to fix all hdr height padding codepaths.  Fixes #80207.
18205
18206 2007-01-02  Chris Toshok  <toshok@ximian.com>
18207
18208         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
18209         setting it to the Control defaults anyway, and it being after the
18210         Dock set was screwing up layout.
18211         (set_Dock): don't short circuit out of setting base.Dock.  Also,
18212         no need to call UpdateStatusBar here, as it'll be re-layed out if
18213         it needs to be.
18214
18215 2007-01-02  Mike Kestner  <mkestner@novell.com>
18216
18217         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
18218         to header height for width == -1. Fixes the rest of #80207.
18219
18220 2007-01-02  Mike Kestner  <mkestner@novell.com>
18221
18222         * ListView.cs: rework the mouse event forwarding everaldo added
18223         to translate the coordinates to the parent control not
18224         raise the parent events until after we've done our work. Hover
18225         needs more work, in the case where HoverSelection is on, because
18226         the item control receives more than one MouseHover per Enter
18227         event, so we need to ensure only the "first" hover gets forwarded.
18228         Opening a minor bug for that.
18229
18230 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
18231
18232         * CheckedListBox.cs: Fixed SelectionMode to match MS.
18233         * ListControl.cs: Implemented AllowSelection property. Removed extra
18234         tabs.
18235         * ListBox.cs: Implemented AllowSelection property.
18236
18237 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18238
18239         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
18240         SelectedItem, it prevent for errors when you must disable item
18241         before perform click. Fixes #80409.
18242
18243 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18244
18245         * MenuAPI.cs: Prevent second level and beyond submenus to close
18246         until first level when move out side of popup.
18247         
18248 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18249
18250         * MenuAPI.cs:
18251         - Down submenu positin in three pixels.
18252         - Closes sub menu when mouse leaves from menu. Fixes #80402.
18253
18254 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18255
18256         * ThemeWin32Classic.cs:
18257         - Fix popup menu size adding one pixel on the top.
18258         - Down menu item border from two to one to mimic Win32.
18259         - Some source identation fixes. 
18260
18261 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
18262
18263         * ThemeWin32Classic.cs: Use float numbers to calculate size and
18264         position of menu arrows, it fix wrong arrow size.
18265
18266 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
18267
18268         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
18269         instead of line, it simplify draw operation and fix it using 3D
18270         borders to mimic Win32.
18271
18272 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
18273
18274         * StatusStrip.cs: Add implementation of the sizing grip.
18275
18276         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
18277         StatusStrip rendering.
18278
18279 2006-12-31  Chris Toshok  <toshok@ximian.com>
18280
18281         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
18282         override the layout style (anchor/dock) of the control.  assign to
18283         Dock instead.  Fixes bug #80416.
18284
18285         * ToolStrip.cs: same.
18286
18287 2006-12-31  Andreia Gaita  <avidigal@novell.com>
18288
18289         * ContainerControl.cs: Use ContainerSelected flag to check if 
18290         a Container is directly selected, or if Select is called on a 
18291         non-container. If a container is directly selected, focus events 
18292         should not be raised.
18293         Apply #80411 patch to throw exception on set_ActiveControl if 
18294         control is the same as the current one.
18295         
18296         * Control.cs: Use ContainerSelected flag (see above).
18297         Add invalidation check to raise event but not invalidate if 
18298         dimensions are 0.       
18299         Apply #80411 patch.
18300         
18301
18302 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
18303
18304         * MenuAPI.cs: After click, dont close popup menu when menu is
18305         ContextMenu. Fixes #80399.
18306
18307 2006-12-30  Chris Toshok  <toshok@ximian.com>
18308
18309         * ContainerControl.cs: make sure we throw the exception if the
18310         container control doesn't contain the control we're setting
18311         ActiveControl to.
18312
18313 2006-12-30  Chris Toshok  <toshok@ximian.com>
18314
18315         * Control.cs (SetTopLevel): fix the exception raised by
18316         SetTopLevel for child controls.
18317         (set_Anchor): call UpdateDistances when setting the anchor type.
18318         This fixes bug #80336.
18319
18320 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18321
18322         * Theme.cs: For now, revert back to 8pt font.
18323
18324 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
18325
18326         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
18327         Fixes #80395.
18328
18329 2006-12-29  Chris Toshok  <toshok@ximian.com>
18330
18331         * Control.cs: reorder the code in OnResize to give the same event
18332         ordering as MS.
18333
18334 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18335
18336         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
18337         TileHorizontally and TileVertically.
18338         
18339 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
18340
18341         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
18342         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
18343         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
18344         Corrected copyright and email adress.
18345
18346 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18347
18348         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
18349         of Exception in FullPath property if no TreeView is associated with
18350         the TreeNode.
18351
18352 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18353
18354         * Theme.cs: Marked default_font as private, and initialize it in ctor
18355         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
18356         on 2.0 profile.
18357         * ThemeGtk.cs: Removed default_font intialization.
18358         * ThemeWin32Classic.cs: Removed default_font initialization.
18359
18360 2006-12-28  Chris Toshok  <toshok@ximian.com>
18361
18362         * Control.cs: fix a couple of place where we were creating handles
18363         more aggressively than we should be.  Fixes ControlRefresh unit
18364         tests.
18365
18366 2006-12-28  Chris Toshok  <toshok@ximian.com>
18367
18368         * Control.cs: contrary to what the comment said, Control.Dock does
18369         not supercede Control.Anchor - the last one you assign to decides
18370         the layout behavior.  so we need to keep track of which was the
18371         last set.  Also, fix some of the affected property arguments in
18372         PerformLayout calls, and remove an redundant parent.PerformLayout
18373         call in OnResized.
18374
18375         Add a VisibleInternal property, which returns is_visible.  We
18376         can/should get rid of all the usage of this field elsewhere.
18377
18378 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18379         
18380         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
18381         control style, not DoubleBuffer. Added UseDoubleBuffering property
18382         that indicates whether doublebuffering is enabled and supported.
18383         (comment from and code based on Gert Driesen's patch in #80324).
18384         Fixes #80324.
18385
18386 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18387         
18388         * Control.cs: Fixed a NRE.
18389
18390 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18391
18392         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
18393         for 2.0.
18394
18395 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18396
18397         * Control.cs: Rewrote double buffering, now a seperate
18398         class handles all the buffering, no Graphics is disposed of
18399         until the painting is finished (earlier implementation 
18400         would crash if the control was resized in the OnPaint, 
18401         since it would cause the double buffer to be recreated
18402         and the old one disposed), a separate Graphics is 
18403         created for every paint (MS behaviour and anyways the state
18404         of the Graphics would have to be saved and restored otherwise)
18405         
18406         * XplatUIDriver.cs: 
18407         * XplatUIX11.cs:
18408         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
18409         so that we can get the graphics for the back buffer without
18410         having to create a new one and remove the offscreen_dc parameter
18411         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
18412         
18413 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18414
18415         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
18416         Also make virtual all the key-related methods.
18417
18418         * ListViewItem.cs: Make virtual the key related methods for
18419         ListViewSubItemCollection.
18420
18421 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18422
18423         * ListView.cs:
18424         * ListViewItem.cs:
18425         * ThemeWin32Classic.cs:
18426         * Theme.cs: Initial support for Tile view in ListView,
18427         as well as the implementation of the required bits for it (Item
18428         and Subitem).
18429
18430 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18431
18432         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
18433         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
18434         Provide useful exception messages.
18435
18436 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18437
18438         * TrackBar.cs: Remove a warning.
18439         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
18440         when used by DateTimePicker, fixes #80287. This also requires that 
18441         MonthCalendar implements it's own drawing for the yearly updown control,
18442         otherwise the Capture tracking would be too complicated. Removed the Click 
18443         and DoubleClick events (according to comments they were hiding the base class
18444         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
18445         raise these events, not that they cannot be raised. It is possible to raise 
18446         them by calling OnClick and OnDoubleClick). Added two internal fields in 
18447         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
18448         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
18449         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
18450         event, no longer needed.
18451         
18452 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18453
18454         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
18455         true if new value differs from current value.
18456
18457 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18458
18459         * Control.cs: ControlCollection.Count must be public. Fixed build of
18460         unit tests.
18461
18462 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18463
18464         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
18465
18466 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18467
18468         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
18469
18470 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
18471
18472         * Control.cs: Invalidates control including when Width and Height is 
18473         equal zero or is not visible, only Paint event must be care about 
18474         this. Fixes #79913.
18475
18476 2006-12-26  Chris Toshok  <toshok@ximian.com>
18477
18478         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
18479         more corcompare work.
18480
18481         * DataGridView.cs: fix compiler warning.
18482
18483         * ColumnHeader.cs: some corcompare work, and also take the
18484         opportunity to make the internal fields private.
18485
18486         * ListView.cs: fix the fallout from the above field change.
18487
18488 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
18489
18490         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
18491         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
18492         ToolStripTextBox.cs: Fixes to events and corcompare.
18493
18494 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
18495
18496         * ListView.cs: Call owner.OnMousexx event to propagate events from
18497         item to ListView. Fixes #80367.
18498
18499 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18500
18501         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
18502         if value is less than one. ItemHeight should not be set to a value
18503         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
18504         Removed extra tabs.
18505
18506 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
18507
18508         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
18509         * ToolStripStatusLabel.cs: Add Spring for Moma.
18510
18511 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18512
18513         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
18514         Fixed code formatting. Removed debug code.
18515         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
18516
18517 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18518
18519         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
18520         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
18521         ArgumentOutOfRangeException if ColumnCount is negative. In 
18522         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
18523         less than 4 or higher than 32768.
18524         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
18525         Fixed FormatProvider to return CurrentCulture unless explicitly set.
18526         Fixed IsFormatProviderDefault to return true if FormatProvider has
18527         not been explicitly set.
18528
18529 2006-12-25  Chris Toshok  <toshok@ximian.com>
18530
18531         * Application.cs: add a couple of 2.0 events.
18532
18533 2006-12-25  Chris Toshok  <toshok@ximian.com>
18534
18535         * Control.cs: fix compiler warning.
18536
18537         * AxHost.cs: corcompare fixes.
18538
18539         * ApplicationContext.cs: corcompare fixes.
18540
18541 2006-12-25  Chris Toshok  <toshok@ximian.com>
18542
18543         * Control.cs: only update dist_right/dist_bottom if the
18544         width/height is > 0.  this fixes anchored controls being resized
18545         smaller until they disappear and then resized larger again.
18546
18547 2006-12-25  Chris Toshok  <toshok@ximian.com>
18548
18549         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
18550         since they're nothing more than X/Left and Y/Top, respectively.
18551
18552         Also, move back to a per-control Bitmap/Graphics for
18553         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
18554         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
18555         Height.
18556
18557 2006-12-25  Miguel de Icaza  <miguel@novell.com>
18558
18559         * MessageBox.cs: Implemented overload that takes a new "bool
18560         displayHelpButton" by adding a new internal field "show_help".
18561         When clicked this will raise the HelpRequested on the owner or the
18562         main form. 
18563
18564         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
18565         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
18566
18567         * ListView.cs: Add support ColumnWidthChanged and
18568         ColumnWidthChanging. 
18569
18570         Add support for ColumnReordered event.
18571         (ReorderColumn): Add NET_2_0 specific support for cancelling the
18572         reorder.
18573
18574         Very nice codebase!
18575
18576         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
18577
18578         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
18579
18580 2006-12-24  Chris Toshok  <toshok@ximian.com>
18581
18582         * GridTablesFactory.cs: 2.0 corcompare work.
18583
18584         * ToolStripContainer.cs: add "override" to
18585         ContextMenuStripChanged, and remove the local event object.
18586
18587         * ToolStripDropDown.cs: same with a couple properties.
18588
18589         * ToolStripPanel.cs: same with AutoSizeChanged event.
18590
18591         * TextBoxBase.cs: add "override" to AutoSizeChanged.
18592
18593         * Form.cs: add the remaining 2.0 events, and do some corcompare
18594         attribute work.
18595
18596         * DateTimePicker.cs: add "new" to padding.
18597
18598         * ButtonBase.cs: use Control's use_compatible_text_rendering.
18599
18600         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
18601
18602         * DataGridView.cs: PaddingChanged is overridden.
18603
18604 2006-12-24  Chris Toshok  <toshok@ximian.com>
18605
18606         * Control.cs: corecompare work here too.
18607
18608         * DataGridViewElement.cs, DataGridView.cs,
18609         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
18610         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
18611         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
18612         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
18613         work.
18614
18615 2006-12-24  Miguel de Icaza  <miguel@novell.com>
18616
18617         * Control.cs: Switched the error message on the console for a
18618         todo.  A review of the code will have to cope with this anyways
18619         (since its a large feature, it is in our radar) and it was
18620         producing too much output when running PDN.
18621
18622         * ToolStripComboBox.cs: Set the text when the SelectedIndex
18623         changes.  Applications depend on this (PDN 2.72)
18624
18625 2006-12-23  Chris Toshok  <toshok@ximian.com>
18626
18627         * TableLayoutSettings.cs: finish up the corcompare work for this
18628         class.
18629
18630 2006-12-23  Chris Toshok  <toshok@ximian.com>
18631
18632         * Control.cs: make SetImplicitBounds internal, do some futzing
18633         with LayoutEngine so that it's available in 1.1, and remove the
18634         entire duplicated code mess from PerformLayout.  Use
18635         System.Windows.Forms.Layout.DefaultLayout instead.
18636
18637         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
18638
18639 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
18640
18641         * Form.cs: Add MainMenuStrip property.
18642
18643 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
18644
18645         * Control.cs: Add ContextMenuStrip property and implementation.
18646         Fix ContextMenu implementation to show menu centered on control when
18647         activated using the keyboard instead of showing at screen (0,0).
18648
18649         * ToolStripDropDown.cs: Fix needed overload of Show ().
18650
18651 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18652
18653         * Menu.cs: Name property added for 2.0 profile.
18654         
18655 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18656
18657         * Menu.cs: Update information about FindMenuItem, method to be
18658         implemented soon.
18659
18660 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18661
18662         * MenuAPI.cs: When deselect items deselect also selected subitems.
18663         
18664 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18665
18666         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
18667         FindSubItemByCoord to found itens that is not active, also an
18668         cheking added to FindSubItemByCoord to search for items only 
18669         in visible popup windows. Fixes #80274.
18670
18671 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
18672
18673         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
18674         internal property, it be care about change ExStyle. 
18675
18676 2006-12-22  Andreia Gaita  <avidigal@novell.com>
18677
18678         * ContainerControl.cs: set activeControl for parent forms up the 
18679         tree when the new activecontrol is a container.
18680         When validating the active control, if it is a container, also
18681         raise up the validation for it's active control. Fixes #80280
18682         
18683         * Control.cs: Add internal property flag and check to prevent
18684         Focus events from getting raised when Select() is called for
18685         a ContainerControl. There are still too many focus events being
18686         raised at the moment though.
18687         Cleaned up the code a bit.
18688
18689 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18690
18691         * Control.cs: Added all missing 2.0 events.and
18692         fixed a couple of corcompare issues.
18693         * TrackBar.cs: Implemented missing 2.0 bits.
18694         * MonthCalendar.cs, 
18695         * DateTimePicker.cs, 
18696         * MdiClient.cs: Fixed some corcompare issues.
18697
18698 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18699
18700         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
18701         SplitterPanel.cs: corecompare work.
18702
18703 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18704
18705         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
18706         Clean up warnings for BackgroundImageChanged and PaddingChanged
18707         events now that they are implemented in Control.cs.
18708
18709 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18710
18711         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
18712         
18713         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
18714         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
18715         of TableLayoutPanel and supporting cast.
18716
18717 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18718
18719         * XplatUIWin32.cs: 
18720         - GrabWindow now confines the mouse pointer to the confine window.
18721         - Added Win32ClipCursor and Win32GetClipCursor.
18722
18723         * Control.cs: 
18724         - Added CaptureWithConfine to be able to capture and confine 
18725         mouse pointer.
18726         
18727         * InternalWindowManager.cs: 
18728         - Call CaptureWithConfine instead of Capture if we're an
18729         MdiChild (fixes #79982).
18730
18731 2006-12-21  Chris Toshok  <toshok@ximian.com>
18732
18733         * DataGrid.cs: guard against the initial state of selection, where
18734         selection_start == -1.  make sure we only select from index >= 0.
18735         Fixes bug #80291.
18736
18737 2006-12-21  Chris Toshok  <toshok@ximian.com>
18738
18739         * Control.cs: we don't need to be so draconian with
18740         UpdateDistances, and we thusly don't need to call it before
18741         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
18742
18743 2006-12-21  Daniel Nauck  <dna@mono-project.de>
18744
18745         * ComboBox.cs,
18746         TextBox.cs: Implemented AutoComplete properties.
18747
18748 2006-12-20  Chris Toshok  <toshok@ximian.com>
18749
18750         * DataGridView*.cs: some corecompare work.
18751
18752 2006-12-20  Jackson Harper  <jackson@ximian.com>
18753
18754         * XplatUIX11.cs: We need to hide the caret when deleting it,
18755         otherwise you get carets left lying around everywhere.
18756         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
18757         prevents getting some weird half drawn caret tracers when
18758         scrolling.
18759         * TextControl.cs: Attempt to reduce the number of times we need to
18760         recreate the caret.
18761
18762 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
18763
18764         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
18765
18766 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18767
18768         * DateTimePicker.cs:
18769         - Implemented missing 2.0 bits.
18770         - Changed some default values to match MS.
18771         
18772 2006-12-20  Jackson Harper  <jackson@ximian.com>
18773
18774         * TextBoxBase.cs: When changing the font across the document we
18775         can't recalculate after changing each line, since that will cahnge
18776         the line count.
18777         - PreferredHeight is a little different than i thought.
18778         - When backspacing, move the caret before we do the actual char
18779         delete, because when that delete crosses a wrap boundary the
18780         positional information will change.
18781
18782 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18783
18784         * Control.cs: Added some missing 2.0 bits: 
18785         BackgroundImageLayout, BackgroundImageLayoutChanged, 
18786         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
18787         add IBindableComponent and IDropTarget implementation.
18788         
18789         * MonthCalendar.cs: 
18790         - Added all missing 2.0 features:
18791         BackgroundImageLayout, RightToLeftLayout, 
18792         OnHandleDestroyed, RightToLeftLayoutChanged, 
18793         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
18794         PaddingChanged.
18795         - Rewrote all the BoldDate code, it was completely broken.
18796         - Fixed all the tests (the tests can now be re-enabled, the
18797         problems were not with the tests, but with the control, it was
18798         mostly broken).
18799         
18800         * DateTimePicker.cs: Changed the location where the 
18801         MonthCalendar is shown.
18802         
18803 2006-12-19  Chris Toshok  <toshok@ximian.com>
18804
18805         * DataGridView.cs: add IDropTarget implementation.
18806
18807         * ToolStripPanel.cs: add IDropTarget implementation.
18808
18809 2006-12-19  Jackson Harper  <jackson@ximian.com>
18810
18811         * TextControl.cs: soft now means something different than what it
18812         used to mean, we want to move the caret regardless of whether or
18813         not this break was soft (would we really have wanted the caret
18814         to not move with the break in the old context?)
18815         * TreeView.cs: Make sure we factor in the vert scrollbar when
18816         calculating the horizontal scrollbar's maximum.
18817
18818 2006-12-19  Andreia Gaita  <avidigal@novell.org>
18819
18820         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
18821         check for keywords in alternate casing, close bug #80049.
18822
18823 2006-12-19  Chris Toshok  <toshok@ximian.com>
18824
18825         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
18826         methods (which all do nothing).
18827
18828         * IDropTarget.cs: add the 4 missing methods.
18829
18830 2006-12-19  Chris Toshok  <toshok@ximian.com>
18831
18832         * TableLayoutRowStyleCollection.cs: corcompare work.
18833         
18834         * TableLayoutSettings.cs: same.
18835
18836         * TableLayoutStyle.cs: same.
18837
18838         * TableLayoutColumnStyleCollection.cs: same.
18839
18840 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
18841
18842         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
18843         TableLayoutPanel I've had in my local tree for way too long.
18844
18845 2006-12-19  Miguel de Icaza  <miguel@novell.com>
18846
18847         * TableLayoutSettings.cs: Finish the public API (still needs all
18848         the logic to update on changes). 
18849
18850         * TableLayoutPanelCellPosition.cs: new file.
18851         
18852         * TableLayoutRowStyleCollection.cs,
18853         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
18854         TableLayoutSettings.cs: Track the final 2.0 table api.
18855
18856 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18857
18858         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
18859         and Image List 2.0 members for ColummnHeader.
18860         * ListView.cs: Add key-related 2.0 methods for
18861         ColumnHeaderCollection.
18862
18863 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
18864
18865         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
18866         ArgumentNullException if items argument is null. Ignore null item in
18867         arrays. Removed extra tabs.
18868
18869 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
18870
18871         * MonthCalendar.cs: Fixed InvalidCastException.
18872
18873 2006-12-19  Jackson Harper  <jackson@ximian.com>
18874
18875         * TextControl.cs: Don't increment the position here.
18876         - When calculating char positions only add in the line break size
18877         for hard line breaks.
18878
18879 2006-12-19  Andreia Gaita  <avidigal@novell.org>
18880
18881         * SendKeys.cs: Changed some things to match ms.net behaviour
18882         when parsing shifted capital letters.
18883         
18884         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
18885         Add window handle as parameter to SendInput. X11 needs the 
18886         window handle, and the handle being passed      to it in the keys 
18887         queue is the active control handle (which windows needs), not 
18888         the window handle.
18889         
18890         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
18891         to support SendKeys on X.       
18892         
18893         * X11Keyboard: Implement helper method to lookup a linux keycode
18894         given the virtual keycode. Added table of keycode-2-virtualkey
18895         values to support this.
18896
18897 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18898
18899         * ListView.cs: Add support for SelectedIndexCollection
18900         and SelectedItemCollection 2.0 methods. Implement support
18901         for ImageKey too.
18902         * ListViewItem.cs: Add support for ListViewSubItemCollection
18903         2.0 methods. Also, fix an incorrect behavior of AddRange method
18904         (it shouldn't call Clear).
18905         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
18906
18907 2006-12-19  Jackson Harper  <jackson@ximian.com>
18908
18909         * RichTextBox.cs: 
18910         * TextBoxBase.cs: New args for FormatText
18911         * TextControl.cs: Rewrote the main drawing method, this version
18912         feels a little easier to understand and debug to me.  Hopefully it
18913         does to others also
18914         - Fix FormatText to OR in the new formating values.  Added
18915         FormatSpecified param, basically this works in the same way as
18916         BoundsSpecified in Control.
18917         - Set the caret properties when the caret is positioned.
18918         - When wrapping text make sure that we calculate the width of the
18919         last character
18920         - when calculating alignments we might have wrapped down to the
18921         next line, so don't search for an individual tag, search for the
18922         end of the line
18923         - We need to invalidate the selection area when we replace the
18924         selection.
18925         
18926 2006-12-19  Daniel Nauck  <dna@mono-project.de>
18927
18928         * Application.cs: add Restart () 2.0 support
18929
18930 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18931
18932         * MenuItem.cs: Invalidate menu item rectangle after change Enable
18933         property. Fixes #80268.
18934         
18935 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18936
18937         * MenuAPI.cs: Dont trigger select event when closes top menu
18938         item. Fixes #80270.
18939
18940 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18941
18942         * MenuAPI.cs: When you click on menuitem only trigger onselect
18943         event for top menu itens. Fixes #80271.
18944         
18945 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18946
18947         * MdiWindowManager.cs: Make IconicBounds depend on
18948         the bottom of MdiClient, not the top (fixes #80267)
18949         
18950 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18951
18952         * MdiClient.cs: Added missing 2.0 attribute
18953
18954 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18955
18956         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
18957         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
18958
18959 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18960
18961         * MenuAPI.cs: Fix click when menuitem is not popup,
18962         this regression was caused by last commit (#80272).
18963
18964 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
18965
18966         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
18967         fire click event or close menu. Fixes #80272.
18968
18969 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18970
18971         * ListViewHitTestInfo.cs: add
18972
18973 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18974
18975         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
18976         * FlatButtonAppearance.cs: add
18977         * DockingAttribute.cs: add
18978
18979 2006-12-17  Chris Toshok  <toshok@ximian.com>
18980
18981         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
18982         and rebind our columns when it does - this way, if you make
18983         changes to the DataTable (or set the Table attribute on a DataView
18984         after setting it as the DataGrid's DataSource, the changes are
18985         made visible.)  Fixes bug #80107.
18986
18987 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18988
18989         * ListViewGroup.cs: add internal Location property for layouting.
18990         * Theme.cs: add abstract ListViewGroupHeight function.
18991         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
18992
18993 2006-12-16  Andreia Gaita  <avidigal@novell.com>
18994
18995         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
18996         Added reset of selected index to 0 when adding first tab page.
18997         Fixes #80264
18998         
18999         * NumericUpDown.cs: Fix NET_2_0 check
19000
19001 2006-12-16  Daniel Nauck  <dna@mono-project.de>
19002
19003         * ListViewGroup.cs: fixed DefaultValueAttribute value
19004
19005 2006-12-16  Daniel Nauck  <dna@mono-project.de>
19006
19007         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
19008
19009 2006-12-15  Miguel de Icaza  <miguel@novell.com>
19010
19011         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
19012         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
19013         ScrollableControl.cs: Add a handful of methods that are
19014         overwritten in 2.0 
19015
19016 2006-12-15  Chris Toshok  <toshok@ximian.com>
19017
19018         * XplatUIWin32.cs: initial implementation of the Reversible
19019         drawing functions.  there are some problems.  DrawReversibleFrame
19020         doesn't seem to work at all for Dashed FrameStyle, and in the
19021         Thick case there are drawing errors at the corners (we probably
19022         need to bind Rectangle instead of doing moveto/lineto's.)
19023
19024 2006-12-16  Andreia Gaita  <avidigal@novell.com>
19025         
19026         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
19027         to send blocks of key messages. Send accumulates keys to send with Flush, 
19028         while SendWait sends all keys immediately.
19029                 
19030         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
19031         XplatUIX11.cs,  XplatUIX11-new.cs:
19032         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
19033         to Win32 SendInput.
19034         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
19035         
19036         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
19037         testing for ms.net on this class is very tricky, as the tests run too fast 
19038         to allow the hook to release, essentially freezing the keyboard and the 
19039         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
19040         category :p
19041
19042 2006-12-16  Daniel Nauck  <dna@mono-project.de>
19043
19044         * Padding.cs: fixed serialization compability to MS ("_var" field names),
19045                         added missing attributes.
19046  
19047 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19048
19049         * ListViewGroup.cs: Added missing attributes.
19050         * ListViewGroupCollection.cs: Added missing attributes.
19051
19052 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19053
19054         * ListViewItem.cs: fixed ListViewSubItem text property.
19055
19056 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19057         
19058         * Control.cs: Added missing 2.0 attributes
19059         
19060 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19061         
19062         * MdiClient.cs: Added missing 2.0 attribute.
19063         * MonthCalendar.cs: Added some missing 2.0 attributes 
19064         and properties.
19065         
19066 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19067
19068         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
19069
19070 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
19071
19072         * MainMenu.cs: Add the new 2.0 constructor to help out people
19073         using the MainMenu in VS2005.
19074
19075 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19076         
19077         * MdiChildContext.cs: Removed it, no longer used.
19078         * MdiClient.cs: Added missing 2.0 attributes.
19079         
19080 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19081         
19082         * InternalWindowManager.cs: Fix a NullRef with previous 
19083         changes for toolwindows.
19084         
19085 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19086
19087         * Control.cs: 
19088         - Added AfterTopMostControl to allow for certain controls 
19089         to always stay on top when normal controls are brought to 
19090         front.
19091         
19092         * XplatUIWin32.cs: 
19093         - (DrawInversibleRectangle): Get window rectangle from Win32 
19094         in stead of from control, since Win32 doesn't calculate
19095         screen coords correctly from control's Location if it 
19096         have docked siblings.
19097         
19098         * MdiWindowManager.cs:
19099         - Correct the control menu popup location when clicked on
19100         the maximized form icon. (fixes #80223.1)
19101         - Don't show moving rectangle if mouse hasn't moved from
19102         the original clicked point.
19103         - Removed FormGotFocus handler (not used).
19104         - Calculate the control buttons location from the main
19105         window's size and not client size (fixes #79770).
19106         - Form is now closed when the form icon is double-clicked
19107         (fixes #79775). 
19108         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
19109         
19110         * InternalWindowManager.cs:
19111         - Moved some MDI-only methods to MdiWindowManager.
19112         - Removed unused properties and methods.
19113         - Unified method naming for methods handling wm messages.
19114         - Moved all message handling to seperate methods for
19115         each message.
19116         
19117         * ThemeWin32Classic.cs:
19118         - DrawManagedWindowDecorations now draws the title bar 
19119         with a gradient brush.
19120         - Add a CPDrawButtonInternal that allows us to specify
19121         light, normal and dark colors for the buttons (control 
19122         buttons for MDI children were drawn with the same light
19123         color as the background, therefore loosing the 3D effect).
19124         
19125         * SizeGrip.cs:
19126         - Add a CapturedControl property that is used to 
19127         determine the control to resize (defaults to parent). 
19128         Needed for MdiClient, since its SizeGrip's parent is
19129         MdiClient, but the control to resize is the main form.
19130         
19131         * MdiClient.cs:
19132         - Set SizeGrip's CapturedControl to the main form in order
19133         to resize the main form and not the MdiClient.
19134         - Override AfterTopMostControl to leave the scrollbars 
19135         always on top.
19136
19137 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19138
19139         * ListView.cs: fixed ListViewItemCollection AddRange and
19140                         implemented ListViewItemCollection AddRange 2.0 support.
19141
19142 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19143
19144         * ListViewGroup.cs: Add.
19145         * ListViewGroupCollection.cs: Add
19146         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
19147         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
19148                                 stub for ImageKey 2.0 support.
19149
19150 2006-12-14  Mike Kestner  <mkestner@novell.com>
19151
19152         * ListView.cs: add text padding to the autocalculation for columns
19153         of width -2.  Fixes #80207.
19154  
19155 2006-12-14  Mike Kestner  <mkestner@novell.com>
19156
19157         * ListView.cs: add some index guarding for partial row navigation 
19158         logic.  Fixes #80250.
19159
19160 2006-12-14  Mike Kestner  <mkestner@novell.com>
19161
19162         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
19163         are added or inserted to the collection.  Fixes #81099.
19164
19165 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
19166
19167         * MenuAPI.cs: Closes menu when right click out side of popup
19168         it fix problem in ContextMenu and MainMenu. Fixes #80252.
19169
19170 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19171
19172         * ListViewItem.cs: Fix dumb error.
19173
19174         * ListView.cs: Add Find and ContainsKey methods in 
19175         ListViewItemCollection, and also return true for IsReadOnly
19176         and IsFixedSize (changes for 2.0). 
19177
19178 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
19179
19180         * Control.cs: Allow Region to be set to null.
19181
19182 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19183
19184         * MdiWindowManager.cs: Remove unused (commented out) code.
19185         * Form.cs: When the MdiChild is maximized, the form needs 
19186         WM_NCMOUSELEAVE, so request it.
19187         * InternalWindowManager.cs: 
19188         - Added tooltips to control buttons.
19189         - Removed duplicated control button handling code.
19190         - Removed unused (commented out) code.
19191         
19192 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
19193
19194         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
19195         was used because we must set cursor without trigger ChangeCursor event
19196         and without change Cursor control property. Fixes #79963.
19197
19198 2006-12-12  Andreia Gaita  <avidigal@novell.com>
19199         
19200         * Control.cs: Check if Region setter value is null, and ignore
19201
19202 2006-12-12  Jackson Harper  <jackson@ximian.com>
19203
19204         * TextControl.cs: We were almost always drawing one more line then
19205         needed, since the GetLineByPixel will return the last line found
19206         at that pixel. In most cases though, we were invalidating up to
19207         the junction between two lines.
19208         - Improve debug code.
19209
19210 2006-12-12  Chris Toshok  <toshok@ximian.com>
19211
19212         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
19213         and FillReversibleRectangle.
19214
19215         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
19216         and FillReversibleRectangle.
19217
19218         * XplatUIWin32.cs: add stubs which do nothing for
19219         DrawReversibleFrame, DrawReversibleLine, and
19220         FillReversibleRectangle.
19221
19222         * XplatUIOSX.cs: add stubs which raise NIE for
19223         DrawReversibleFrame, DrawReversibleLine, and
19224         FillReversibleRectangle.
19225
19226         * XplatUIX11.cs: add working implementation for
19227         DrawReversibleFrame, DrawReversibleLine, and
19228         FillReversibleRectangle.
19229         
19230         * ControlPaint.cs: implement DrawReversibleFrame,
19231         DrawReversibleLine, and FillReversibleRectangle, by calling into
19232         the appropriate XplatUI method.
19233
19234 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19235
19236         * Form.cs: Make MdiClient have the focus even if it's
19237         not selectable, since it should receive WM_KEY* and WM_MOUSE 
19238         messages. Fixes #79907.
19239         
19240 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19241
19242         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
19243         queried after the window is created.
19244         
19245         * XplatUIX11.cs: Added SendParentNotify to implement 
19246         WM_PARENTNOTIFY logic. Fixes #79965.
19247         
19248         * Control.cs: Added MakeParam.
19249         
19250 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19251
19252         * MdiClient.cs: Resume Layout before setting window
19253         states (fixes #80201).
19254
19255 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19256
19257         * MenuAPI.cs: Deselect a menu item after performing
19258         the click (fixes #80197).
19259
19260 2006-12-11  Jackson Harper  <jackson@ximian.com>
19261
19262         * TextBoxBase.cs: We need to cap this value, since Maximum -
19263         ViewPortHeight can be less than zero.
19264         - Only do selection with the left mouse button.
19265         * TextBox.cs: Don't tell the world that we have a context menu.
19266         * Control.cs: New method so that we can control whether or not the
19267         context menu is visible outside MWF.
19268
19269 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
19270
19271         * ToolBarButton.cs: Fix text positon. 
19272
19273 2006-12-11  Miguel de Icaza  <miguel@novell.com>
19274
19275         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
19276
19277         * Control.cs (DoubleBuffered): Add implementation.
19278
19279         * Application.cs (OpenForms): Add.
19280
19281 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
19282
19283         * Form.cs: Use opacity instead of Opactiy to determine if we need
19284         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
19285
19286 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
19287
19288         * Control.cs: Fix NRE if Control.Site was set to null.
19289
19290 2006-12-11  Chris Toshok  <toshok@ximian.com>
19291
19292         * Control.cs: ControlCollection.Remove should return if the arg is
19293         null, and ControlCollection.SetChildIndex should raise a ANE.
19294
19295 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
19296
19297         * Control.cs: Verify value set for Dock property. Code formatting
19298         updates.
19299
19300 2006-12-11  Jackson Harper  <jackson@ximian.com>
19301
19302         * TextControl.cs: Draw the caret and the selection when a flag is
19303         set on the owner.
19304         * TextBoxBase.cs: We want to draw the caret and the selection for
19305         TextBox but not for TextBoxBase.
19306         - If the window is resized and scrolling is no longer needed (the
19307         whole doc is visible) set the scroll position to zero.
19308         - The default SelectWord (the one TextBox uses) should move the
19309         caret to the end of the word.
19310         - SelectAll moves the caret to the end of the selection.
19311         * TextBox.cs: We don't selectall on focus, we just do it when the
19312         control is created.
19313         
19314 2006-12-11  Mike Kestner  <mkestner@novell.com>
19315
19316         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
19317
19318 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19319
19320         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
19321         2.0 support.
19322         * ListViewItem.cs: Add Name 2.0 property.
19323
19324 2006-12-11  Andreia Gaita  <avidigal@novell.com>
19325
19326         * TabControl.cs: Set visibility on selected or default tab 
19327         when tabcontrol handle is created, so that it's contents
19328         actually show up (duh). Fixes #80193
19329         Don't redraw the control if there is no handle created, as
19330         the selected index might be completely invalid. Added some tests
19331         to check for this.
19332
19333 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
19334
19335         * ToolBar.cs: Uses maximun width and height of all buttons as 
19336         button rectangle when ButtonSize specified, it looks strange but
19337         is what happens in Win32. Fixes #80189.
19338
19339 2006-12-11  Jackson Harper  <jackson@ximian.com>
19340
19341         * TextControl.cs: Need to track undo levels ourself, since
19342         compound actions will mess them up.
19343
19344 2006-12-10  Andreia Gaita  <avidigal@novell.com>
19345
19346         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
19347         SelectedIndex value is changed (even if it's not valid).
19348         Reset SelectedIndex to 0 when the handle is created and if
19349         the current index is invalid.
19350         Fixes SelectdeIndex unit tests and #80128
19351
19352 2006-12-08  Chris Toshok  <toshok@ximian.com>
19353
19354         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
19355         calls EndEdit, it needs to be called before we set current_cell to
19356         its new value.  Otherwise, we end up committing the value in the
19357         textbox to the new cell as well.  Fixes bug #80160.
19358
19359 2006-12-08  Chris Toshok  <toshok@ximian.com>
19360
19361         * Form.cs (set_CancelButton): if the button's DialogResult is
19362         None, set it to Cancel.  Fixes bug 80180.
19363
19364 2006-12-08  Jackson Harper  <jackson@ximian.com>
19365
19366         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
19367         to watch ourselves when setting the canvas size and setting the
19368         scrollbar values.
19369
19370 2006-12-08  Chris Toshok  <toshok@ximian.com>
19371
19372         * DataGrid.cs: comment out the two MakeTransparent calls for the
19373         time being so people using trunk (and not 1.2.2) on windows can
19374         actually use the datagrid.  This deals with bug #80151.
19375
19376 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
19377
19378         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
19379         Graphics.DrawImage (image, int, int, int, int) overload instead
19380         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
19381         the dpi difference and was blurring images it drew.
19382         [Fixes bug #79960]
19383
19384 2006-12-08  Chris Toshok  <toshok@ximian.com>
19385
19386         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
19387         rowcnt is 0 (such as with an empty datasource), and make sure we
19388         initialize not_usedarea.Y to cells.Y, so we don't draw over the
19389         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
19390
19391 2006-12-08  Chris Toshok  <toshok@ximian.com>
19392
19393         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
19394         grid.
19395
19396 2006-12-08  Chris Toshok  <toshok@ximian.com>
19397
19398         [ Fixes bug #80167 ]
19399         
19400         * ThemeWin32Classic.cs: don't draw the image if the button's flat
19401         style is FlatStyle.System.
19402
19403         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
19404         ButtonBase.flat_style private, and switch uses of it to the public
19405         property.
19406         
19407 2006-12-08  Chris Toshok  <toshok@ximian.com>
19408
19409         [ Fixes bug #80121 ]
19410         
19411         * ThemeWin32Classic.cs: center the caption text in the datagrid
19412         when we draw it.
19413
19414         * DataGrid.cs: lessen the amount we add to the caption height from
19415         6 to 2.  6 was making it huge.
19416
19417 2006-12-08  Andreia Gaita  <avidigal@novell.com>
19418
19419         * UpDownBase: Handle MouseWheel call directly instead of capturing
19420         the inner textbox's OnMouseWheel. Fixes #80166
19421
19422 2006-12-08  Jackson Harper  <jackson@ximian.com>
19423
19424         * TextControl.cs: We need to invalidate the textbox when we empty
19425         it (how had this not been discovered before?)
19426
19427 2006-12-08  Jackson Harper  <jackson@ximian.com>
19428
19429         * TextBoxBase.cs: Reworked the mouse down code so I could get it
19430         to behave like MS, we now ignore the eventargs.Click and just
19431         track state ourself, which we were already doing anyways.
19432         - Constrain the double click handler to the double click size.
19433         
19434 2006-12-08  Chris Toshok  <toshok@ximian.com>
19435
19436         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
19437         direction if that scrollbar isn't shown.  fixes bug #80158.
19438
19439 2006-12-08  Andreia Gaita  <avidigal@novell.com>
19440
19441         * NumericUpDown.cs: Update value on getter. Fixes #79950
19442
19443 2006-12-08  Chris Toshok  <toshok@ximian.com>
19444
19445         * MenuItem.cs: add back in the event cloning code.  I didn't know
19446         how to do it in the face of the EventHandlerList work i'd done
19447         last week.  Fixes bug #80183.
19448
19449 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
19450
19451         * Control.cs: Add an invalidate to the BackgroundImage setter.
19452         [Fixes 80184]
19453
19454 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
19455
19456         * ToolStrip*: Add some small properties reported by MoMA, fix event
19457         firing and default properties based off of unit tests, and add some
19458         attributes based off of the class status page.
19459
19460 2006-12-07  Jackson Harper  <jackson@ximian.com>
19461
19462         * TextBoxBase.cs: Take HideSelection into account when determining
19463         whether or not to show the selection.
19464         * RichTextBox.cs: After inserting the RTF into the document move
19465         the cursor to the beginning of the document.
19466
19467 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
19468
19469         * Control.cs: Remove static ArrayList "controls" which maintained
19470         a reference to every control created.
19471         * Application.cs: Create a static FormCollection to maintain a reference
19472         to every form created.  Use it in places that formerly enumerated through
19473         the controls one looking for forms.
19474         * Form.cs: Add and remove self from above FormCollection.
19475
19476 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
19477
19478         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
19479           not libgdk (though it makes me wonder why I didn't have any
19480           problems)
19481
19482 2006-12-07  Chris Toshok  <toshok@ximian.com>
19483
19484         [ you had to know this was coming after that last commit...]
19485         
19486         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
19487         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
19488         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
19489         XCopyArea).
19490
19491 2006-12-07  Chris Toshok  <toshok@ximian.com>
19492
19493         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
19494         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
19495         all the behavior we need for double buffering.
19496
19497         * XplatUIDriver.cs: implement the 3 double buffer methods using a
19498         client side Bitmap, just like the old Control-based double buffer
19499         code did.  The methods are virtual, so each XplatUI driver
19500         subclass can replace the implementation to use a faster, platform
19501         specific approach.
19502
19503         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
19504         double buffer code, and clean things up a bit in the process.
19505
19506 2006-12-06  Chris Toshok  <toshok@ximian.com>
19507
19508         * Control.cs: reindent WndProc.
19509
19510 2006-12-06  Chris Toshok  <toshok@ximian.com>
19511
19512         [ I wanna be like BenM when I grow up ]
19513         
19514         * Hwnd.cs: create a single static Graphics object on the static
19515         Bitmap we create.  use this for our text measurements.
19516
19517         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
19518         This was causing us to allocate a backbuffer for every control,
19519         even when it wasn't flagged as double buffered.  Instead use the
19520         single graphics instance.  This might have implications for
19521         multithreaded applications.  If we run into problems we can switch
19522         to creating 1 Graphics per control, on the static Hwnd bitmap.
19523
19524         this change nets us a 7M savings in private dirty mappings when
19525         running FormsTest.exe.
19526
19527 2006-12-06  Chris Toshok  <toshok@ximian.com>
19528
19529         * ListView.cs: the BackgroundImage override is just to set
19530         attributes.  chain up to base.BackgroundImage.
19531
19532         * RichTextBox.cs: same.
19533
19534         * ToolBar.cs: same, but we need to also redraw the toolbar when it
19535         changes, so instead a handler for BackgroundImageChanged.
19536         
19537         * Control.cs: make background_image private.
19538
19539 2006-12-06  Chris Toshok  <toshok@ximian.com>
19540
19541         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
19542         sure we even need this assignment, but roll with it for now.
19543
19544         * Control.cs: make the cursor field private.
19545
19546 2006-12-06  Chris Toshok  <toshok@ximian.com>
19547
19548         * Form.cs: we don't need to explicitly set ImeMode to
19549         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
19550         behavior in the face of ImeMode.Inherit.
19551
19552         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
19553         change the ctor's assignment to use ImeMode instead of ime_mode.
19554
19555         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
19556         ImeModeInherit.  Only check for the parent's imemode (and return
19557         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
19558         This fixes the button unit test, which sets both ImeMode and
19559         DefaultImeMode to ImeMode.Disable.
19560
19561         also make the ime_mode field private.
19562
19563 2006-12-06  Chris Toshok  <toshok@ximian.com>
19564
19565         * Control.cs: make control_style private.
19566
19567         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
19568         setting the styles to true, then setting them to false instead of
19569         reverting to their previous values.
19570
19571         also, call SetStyle on the scrollbars instead of using
19572         control_style directly.
19573
19574 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
19575
19576         * FormCollection.cs: Implement. [2.0]
19577
19578 2006-12-06  Chris Toshok  <toshok@ximian.com>
19579
19580         * Control.cs: make tab_stop private.
19581
19582         * Label.cs: set TabStop, not tab_stop.  reformat some event
19583         add/remove methods to make them more compact.
19584
19585 2006-12-06  Chris Toshok  <toshok@ximian.com>
19586
19587         * RadioButton.cs: fix TabStop handling.
19588
19589 2006-12-06  Chris Toshok  <toshok@ximian.com>
19590
19591         * TextBox.cs: remove the explicit assignments to has_focus.
19592         Control does that.
19593
19594         * ButtonBase.cs: remove the assignment to has_focus.  Control will
19595         manage that.
19596         
19597 2006-12-06  Chris Toshok  <toshok@ximian.com>
19598
19599         * ButtonBase.cs: remove all uses of is_enabled from this code.
19600         it's always true when any of the code containing the checks is
19601         executed.
19602
19603 2006-12-06  Chris Toshok  <toshok@ximian.com>
19604
19605         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
19606         with different semantics (some are present in both 1.1 and 2.0
19607         profiles) so that we match MS's behavior in our unit tests.
19608
19609 2006-12-06  Jackson Harper  <jackson@ximian.com>
19610
19611         * TextControl.cs: Make this operation undoable.
19612         * TextBoxBase.cs: Factor the border width into the preferred
19613         height.
19614         - implement Modified as per the spec.
19615
19616 2006-12-06  Chris Toshok  <toshok@ximian.com>
19617
19618         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
19619
19620 2006-12-06  Chris Toshok  <toshok@ximian.com>
19621
19622         * Control.cs: make right_to_left and context_menu fields private.
19623
19624 2006-12-06  Chris Toshok  <toshok@ximian.com>
19625
19626         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
19627         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
19628         Control.child_controls private.  switch all uses over to
19629         Control.Controls.
19630
19631 2006-12-06  Chris Toshok  <toshok@ximian.com>
19632
19633         * System.Windows.Forms/GroupBox.cs,
19634         System.Windows.Forms/AccessibleObject.cs,
19635         System.Windows.Forms/ErrorProvider.cs,
19636         System.Windows.Forms/Control.cs,
19637         System.Windows.Forms/UpDownBase.cs,
19638         System.Windows.Forms/ScrollBar.cs,
19639         System.Windows.Forms/DateTimePicker.cs,
19640         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
19641         System.Windows.Forms/ToolTip.cs,
19642         System.Windows.Forms/RadioButton.cs,
19643         System.Windows.Forms/LinkLabel.cs,
19644         System.Windows.Forms/Splitter.cs,
19645         System.Windows.Forms/TextBoxBase.cs,
19646         System.Windows.Forms/ToolStripTextBox.cs,
19647         System.Windows.Forms/ContainerControl.cs,
19648         System.Windows.Forms/ThemeWin32Classic.cs,
19649         System.Windows.Forms/SizeGrip.cs,
19650         System.Windows.Forms/ToolStripDropDown.cs,
19651         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
19652         private.  switch all uses over to Control.Parent.
19653
19654 2006-12-06  Chris Toshok  <toshok@ximian.com>
19655
19656         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
19657         Control does this before calling emitting these events.
19658
19659         * TabControl.cs: same.
19660
19661         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
19662         Control.client_rect.
19663
19664         * ButtonBase.cs: use the ClientSize property instead of the
19665         client_size field.
19666
19667         * ScrollableControl.cs: same.
19668
19669         * Control.cs: another pass at making properties private.  also,
19670         move the initialization of tab_stop to the ctor.
19671
19672 2006-12-05  Andreia Gaita <avidigal@novell.com>
19673
19674         * TabControl.cs: Let the selected index be set freely if the 
19675         control handle is not yet created.
19676
19677 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
19678
19679         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
19680         internal until I can rewrite DefaultLayout.
19681         * ToolStrip.cs: Fix build error and some general cleaning.
19682         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
19683         Fix build errors caused by making some of Control's fields private.
19684
19685 2006-12-05  Jackson Harper  <jackson@ximian.com>
19686
19687         * TextControl.cs: Redo Insert a little so that it use IndexOf
19688         instead of Split, this prevents it from messing up on things like
19689         \n\n\n. Also more effecient since the split array doesn't need to
19690         be created.
19691         * TextBoxBase.cs: AppendText doesnt handle multiline and non
19692         multiline text differently, this is the first of many fixes that
19693         will make multiline/non-multiline the same thing as far as the
19694         TextBoxBase is concerned.
19695         - Don't split the text and insert lines, this can lose some line
19696         endings (like is the last line a soft or hard break). Instead use
19697         the new Insert.
19698         - Fix an off by one when combining all the lines in the Text
19699         getter.
19700         - Remove separate multiline handling from the Text getter/setter.
19701
19702 2006-12-05  Chris Toshok  <toshok@ximian.com>
19703
19704         * ButtonBase.cs: a few changes:
19705
19706         - don't reinitialize internal Control fields in the ctor when they
19707         have the same values as Control sets them.
19708
19709         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
19710         this before calling those methods.
19711
19712         - we don't need to call Refresh for anything.  use Invalidate
19713         instead.
19714
19715         - OnEnabledChanged doesn't need to redraw at all - Control.cs
19716         calls Refresh in its OnEnabledChanged.
19717         
19718         - several of the events we were registered for in the ctor to
19719         redraw ourselves already include calls to Invalidate in the
19720         property setters that raise the events.  remove the extra
19721         invalidation.
19722
19723         - reformat a switch statement that was 83274658 columns wide.
19724         
19725 2006-12-05  Mike Kestner  <mkestner@novell.com>
19726
19727         * ComboBox.cs: fix a unit test regression from a TextBox
19728         SelectionLength return of -1 when there's no selection.  
19729
19730 2006-12-05  Chris Toshok  <toshok@ximian.com>
19731
19732         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
19733         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
19734         cleaning up some of the internal Control fields being used by
19735         subclasses.
19736
19737 2006-12-05  Mike Kestner  <mkestner@novell.com>
19738
19739         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
19740         listbox after AddImplicit calls since it defaults to hidden. Add a 
19741         hack to preserve requested heights across DropDownStyle changes.
19742
19743 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
19744
19745         * PropertyGrid.cs: Hide FindFirstItem method from public API.
19746
19747 2006-12-05  Chris Toshok  <toshok@ximian.com>
19748
19749         * DataGridView.cs: fix compiler warnings.
19750
19751         * PrintControllerWithStatusDialog.cs: same.
19752
19753         * ToolBar.cs: same.
19754
19755         * FolderBrowserDialog.cs: same.
19756
19757         * Splitter.cs: same.
19758
19759         * DataGridViewComboBoxCell.cs: same.
19760
19761         * XplatUIWin32.cs: same.
19762
19763         * PictureBox.cs: same.
19764
19765         * Win32DnD.cs: same.
19766
19767         * PageSetupDialog.cs: same.
19768
19769         * FileDialog.cs: same.
19770
19771         * PrintDialog.cs: same.
19772
19773         * DataGridTextBoxColumn.cs: same.
19774
19775         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
19776
19777 2006-12-05  Chris Toshok  <toshok@ximian.com>
19778
19779         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
19780         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
19781         System.ComponentModel.EventHandlerList work.
19782
19783 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
19784
19785         * DrawTreeNodeEventArgs.cs: Added.
19786
19787 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19788         
19789         * InternalWindowManager.cs: Remove an unused field.
19790         
19791 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19792
19793         * InternalWindowManager.cs:
19794         - Save the point where the title bar is clicked.
19795         
19796         * MdiWindowManager.cs:
19797         - Only allow moving of the window as long as the 
19798         clicked point on the title bar does not get out of
19799         MdiClient's rectangle. Fixes #79982.
19800         
19801         * MdiClient.cs:
19802         - Added Horizontal/VerticalScrollbarVisible.
19803         - Simplified the scrollbar sizing algorithm.
19804         - Cache the difference in scrolled value in
19805         H/VBarValueChanged and move the calculation out
19806         of the for loop.
19807
19808 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19809
19810         * Control.cs: Make the Console.WriteLine in WndProc 
19811         write more info.
19812
19813 2006-12-05  Chris Toshok  <toshok@ximian.com>
19814
19815         * ToolStripManager.cs, ToolStripButton.cs,
19816         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
19817         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
19818         ToolStripSplitButton.cs, ToolStripSeparator.cs,
19819         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
19820         ToolStripProgressBar.cs, ToolStripContainer.cs,
19821         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
19822         to using System.ComponentModel.EventHandlerList.
19823
19824 2006-12-04  Chris Toshok  <toshok@ximian.com>
19825
19826         * LinkLabel.cs: fix up compiler warnings.
19827
19828         * TableLayoutSettings.cs: same.
19829
19830         * TreeView.cs: same.
19831
19832         * ToolBar.cs: same.
19833
19834         * TabControl.cs: same.
19835
19836         * RichTextBox.cs: same.
19837
19838         * ListViewItem.cs: same.
19839
19840         * PropertyGrid.cs: same.
19841
19842         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
19843
19844         * ToolTip.cs same.
19845
19846         * TextRenderer.cs: fix up compiler warnings.
19847
19848         * Label.cs: same.
19849
19850         * Form.cs: corcompare fixes.
19851
19852         * PictureBox.cs: fix up compiler warnings.
19853
19854         * ImageListStreamer.cs: same.
19855
19856         * TrackBar.cs: corcompare fix.
19857
19858         * Control.cs: fix up compiler warnings.
19859
19860         * SplitterPanel.cs: same.
19861
19862         * NumericTextBox.cs: same.
19863
19864         * ImageList.cs: same.
19865
19866         * StatusStrip.cs: same.
19867
19868         * ProgressBar.cs: corcompare fix.
19869
19870         * ToolStripButton.cs: fix up compiler warnings.
19871
19872         * ToolStripStatusLabel.cs: same.
19873
19874         * ToolStripSplitButton.cs: same.
19875
19876         * ToolStripSeparator.cs: same.
19877
19878         * ToolStripProgressBar.cs: same.
19879
19880         * ToolStripDropDownMenu.cs: same
19881
19882         * ToolStripDropDown.cs: same.
19883
19884         * ToolStripDropDownButton.cs: same.
19885
19886         * ToolStrip.cs: same.
19887
19888         * ToolStripControlHost.cs: same.
19889
19890         * ToolStripContentPanel.cs: same.
19891
19892         * ToolStripDropDown.cs: same.
19893
19894         * ToolStripContainer.cs: same.
19895
19896         * ToolStripPanel.cs: same, and add "new" where we need it to work
19897         with the new ArrangedElementCollection.
19898
19899         * ToolStripItemCollection.cs: add "new" where we need it to work
19900         with the new ArrangedElementCollection.
19901
19902 2006-12-04  Andreia Gaita <avidigal@novell.com>
19903
19904         * TabControl.cs: Fix default tab selection to after TabControl
19905         gets focus and not before. Fixes #80128
19906
19907 2006-12-04  Chris Toshok  <toshok@ximian.com>
19908
19909         * DataGridTableStyle.cs: remove the gross calling of
19910         datagrid.Refresh from here.  It's a broken idea and it doesn't
19911         work anyway.
19912
19913         * DataGrid.cs: instead, just register/unregister from the
19914         DataGridTableStyle events in CurrentTableStyle.  we play it
19915         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
19916         even though some would most likely not require it.  Fixes bug
19917         #80115 (and one portion of #80117 as a side effect).
19918
19919 2006-12-04  Chris Toshok  <toshok@ximian.com>
19920
19921         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
19922         so the textbox (if any) goes away.  Fixes bug #80117.
19923
19924 2006-12-04  Chris Toshok  <toshok@ximian.com>
19925
19926         * DataGridColumnStyle.cs: set the column's readonly property
19927         initially based on the property descriptor's IsReadOnly.  Fixes
19928         bug #80044.
19929
19930 2006-12-04  Chris Toshok  <toshok@ximian.com>
19931
19932         * ComboBox.cs: wrap the dropdown style changing work in
19933         SuspendLayout/ResumeLayout.  Fixes bug #79968.
19934
19935 2006-12-04  Jackson Harper  <jackson@ximian.com>
19936
19937         * TextBoxBase.cs: Fix off by one, since these are one-based.
19938         * TextBox.cs: Select all the text when we get focus.  The TextBox
19939         does this but the RTB does not.
19940
19941 2006-12-04  Chris Toshok  <toshok@ximian.com>
19942
19943         * DataGridTextBoxColumn.cs: remove some spew.
19944
19945         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
19946         but some part of me is saying "it shouldn't be here.."  At any
19947         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
19948         setting the value.
19949
19950 2006-12-04  Chris Toshok  <toshok@ximian.com>
19951
19952         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
19953         to reassign the propertydescriptor.
19954
19955 2006-12-04  Jackson Harper  <jackson@ximian.com>
19956
19957         * TextBoxBase.cs:
19958         * TextControl.cs: Remove some unused variables.  Maybe this will
19959         patch things up between mike and I.
19960         - don't split lines less then one char wide, if the viewport is
19961         that small text won't be visible anyways.
19962         
19963 2006-12-04  Jackson Harper  <jackson@ximian.com>
19964
19965         * TextBoxBase.cs: Default selection length is -1, need to do some
19966         more testing on windows to see when this is used for the property.
19967         - Redid the Lines [] property to that we properly remove soft line
19968         breaks
19969         - added support for preserving carriage returns
19970         -  CanUndo is not a variable like 'is undo enabled' it just returns
19971         true if there is undo operations available.
19972         - AppendText doesn't need to grab the last tag itself anymore,
19973         this happens automatically when we move the cursor.
19974         * TextControl.cs: Add CompoundActions to the undo class. This
19975         allows combining the other operations into one big option.  ie a
19976         paste will combine { delete old, insert new, move cursor }
19977         - Add InsertString undo operation
19978         - New method for deleting multiline text
19979         - Add carriage returns to lines. So we can preserve carriage
19980         returns when text is 'roundtripped'
19981
19982 2006-12-04  Chris Toshok  <toshok@ximian.com>
19983
19984         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
19985         minimum 0.  Fixes the scrollbar exception in bug #80136.
19986
19987 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19988
19989         * MdiClient.cs: 
19990         * MdiWindowManager: Removed unused fields and methods.
19991         
19992 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19993         
19994         * StatusBar.cs: Update all panels when a AutoSize=Contents
19995         panel needs updating.
19996         
19997         * StatusBarPanel.cs: Remove twidth and only use initialize.
19998         Fixes #80031.
19999                 
20000 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20001
20002         * Form.cs: When a form's MdiParent is set add it directly
20003         on top of the z-order in stead of relying on MdiClient's
20004         ActivateChild to do it. Fixes #80135.
20005         
20006         * MdiClient.cs: 
20007         - Remove original_order, mdi_child_list is already doing
20008         the same thing.
20009         - Create mdi_child_list on construction in
20010         stead of first use (avoids a few null checks).
20011
20012         * MenuItem.cs: Use an already existing list of mdi children
20013         to get the correct order of children and remove the other
20014         redundant list.
20015
20016 2006-12-04  Chris Toshok  <toshok@ximian.com>
20017
20018         * PropertyGridView.cs: cached_splitter_location is only used in
20019         !DOUBLEBUFFER code.
20020
20021         * PropertyGrid.cs: implement the ComComponentNameChanged event
20022         using Events, hoping that would fix the warning.  Looks like a
20023         compiler bug instead (#80144).
20024
20025         * PropertyManager.cs: remove unused method.
20026
20027 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
20028
20029         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
20030         include parentesis to fix expression evaluation. Fixes #79634.
20031
20032 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
20033         
20034         * MenuAPI.cs:
20035         - Changes to fix behavior in Menu control, some reported in #80097
20036         and other detected during behavior refactory like a select event
20037         problems.
20038         - Remove unneded "if's" conditions.
20039         - Created an internal to flag when popup is active in control, we need 
20040         it because in .NET you can have menu active but without popup active
20041         when you active menu using popup without visible items.
20042         - Mimic win32 behavior for Select and Popup events.  
20043         - Dont open popup menu when you dont have visible subitems.
20044         - Do nothing when click on disabled menu item.
20045         - Some small changes to follow the coding style guidelines.
20046         - Unselect menu only when another control gives focus. Fixes #80097.
20047         - Remove unused code.
20048         
20049         * MenuItem.cs: internal VisibleItems method to check if menu
20050         theres visible subitems, it will be usefull to fix some 
20051         behavior in Menu control.
20052         
20053 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
20054         
20055         * Timer.cs: Tag property for 2.0 profile.
20056         
20057 2006-12-01  Chris Toshok  <toshok@ximian.com>
20058
20059         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
20060         
20061         * Win32DnD.cs: comment out some unused fields.
20062
20063         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
20064         some unused properties/methods.
20065
20066         * XplatUIX11.cs: fix MousePosition so we override the base class's
20067         property instead of conflicting with it.
20068
20069         * PictureBox.cs: comment out some unused fields
20070
20071         * OSXStructs.cs: make some struct fields public.
20072
20073         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
20074         MousePosition so we override the base class's property instead of
20075         conflicting with it.
20076
20077         * X11Dnd.cs: comment out some unused fields
20078
20079         * X11DesktopColors.cs: fix some struct field visibility to quiet
20080         the compiler.
20081
20082         * X11Dnd.cs: remove some debug code.
20083
20084         * ThemeClearlooks.cs: comment out unused field.
20085
20086         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
20087
20088         * ThemeGtk.cs: comment out some unused pinvokes.
20089
20090         * Timer.cs: remove some unused fields.
20091
20092         * ThemeClearlooks.cs: comment out unused field.
20093
20094         * UpDownBase.cs: comment out unused field.
20095
20096         * DataObject.cs: comment out unused field.
20097
20098         * DataGridBoolColumn.cs: reomve unused field.
20099
20100         * DataGrid.cs: remove unused field.
20101
20102         * Cursor.cs: remove old ToBitmap code.
20103
20104         * ControlPaint.cs: remove unused method.
20105
20106         * ScrollBar.cs: remove unused fields.
20107
20108         * ComboBox.cs: remove unused field, and chain up to
20109         AccessibleObject ctor.
20110
20111         * ListBox.cs: remove unused field.
20112
20113         * ButtonBase.cs: wrap a couple fields in NET_2_0.
20114
20115         * GridEntry.cs: remove unused fields.
20116
20117         * Binding.cs: remove unused fields.
20118
20119         * AxHost.cs: remove unused method.
20120
20121         * ContainerControl.cs: remove unused field.
20122
20123         * ScrollableControl.cs: remove unused fields.
20124
20125 2006-12-01  Chris Toshok  <toshok@ximian.com>
20126
20127         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
20128         the Where/WhereString stuff.  it's easy enough to CWL
20129         Environment.StackTrace.
20130
20131         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
20132         unused private fields.
20133
20134 2006-12-01  Jackson Harper  <jackson@ximian.com>
20135
20136         * TextControl.cs: Do not update the view while inserting multiline
20137         text. If we update the view we might wrap lines, before entering
20138         the new lines, which causes the new line insertion calculations to
20139         be totally fubared.
20140         - Remove an old TODO
20141         - Make debug output a little nicer
20142         
20143 2006-12-01  Chris Toshok  <toshok@ximian.com>
20144
20145         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
20146
20147 2006-12-01  Chris Toshok  <toshok@ximian.com>
20148
20149         [ fix the majority of the CS0108 warnings we've been suppressing ]
20150         
20151         * TreeView.cs: mark BackgroundImageChanged as 'new'.
20152
20153         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
20154         to "LayoutToolBar" to quiet mcs.
20155         
20156         * TabControl.cs: mark our ControlCollection class as 'new'.
20157
20158         * TextBoxBase.cs: mark some events as 'new'.
20159
20160         * Splitter.cs: TabStop is 'new'.
20161
20162         * ControlBindingsCollection.cs: mark a few methods as new since
20163         they change the visibility from protected to public.
20164
20165         * RadioButton.cs: DoubleClick -> base class, and remove unused
20166         HaveDoubleClick.
20167
20168         * MonthCalendar.cs: ImeMode property -> base class, and mark many
20169         events as new.
20170
20171         * NumericUpDown.cs: TextChanged -> base class.
20172
20173         * CheckedListBox.cs: mark our ObjectCollection class as new to
20174         quiet mcs.
20175
20176         * FolderBrowserDialog.cs: make HelpRequest event new and have it
20177         muck with the base class.
20178
20179         * StatusBar.cs: fix some mcs warnings about Update being the same
20180         name as a base class method.
20181
20182         * RichTextBox.cs: mark some events as new, and make them do things
20183         to the base class impl.
20184
20185         * UserControl.cs: mark TextChanged as new, and have it manipulate
20186         base.TextChanged.
20187
20188         * UpDownBase.cs: mark some things new.
20189
20190         * CheckBox.cs: mark DoubleClick "new", and add some text about
20191         what we need to look at.
20192
20193         * Panel.cs: make the events "new", and manipulate the base
20194         version.  these are just here for attributes.
20195
20196         * AccessibleObject.cs: make owner private.
20197
20198         * Control.cs: deal with AccessibleObject.owner being private.
20199         cache our own copy if we need it.
20200
20201         * Button.cs: add "new" to the DoubleClickEvent.
20202
20203         * ListBox.cs: no need to track our own has_focus here.  let
20204         Control.has_focus do it for us.  Also some other work to clear up
20205         warnings about not overriding base class methods of the same name.
20206         
20207         * ComboBox.cs: clear up some warnings about not override base
20208         class methods of the same name.
20209
20210 2006-12-01  Chris Toshok  <toshok@ximian.com>
20211
20212         * Form.cs: flag a few things as "new" to quiet some of the mcs
20213         warnings.
20214
20215         * AxHost.cs: same.
20216
20217         * PrintPreviewDialog.cs: same.
20218
20219         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
20220         now DGV isn't so horrible on the class status page.  also, move
20221         all events to using System.ComponentModel.EventHandlerList.  my
20222         wrists hurt.
20223
20224 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20225
20226         * MdiWindowManager.cs:
20227         - Set form to active mdi child if shown,
20228         and update the active mdi child to the next 
20229         remaining child in the z-order if the form is hidden.
20230
20231         * Form.cs: 
20232         - Track if the form has been visible and if its 
20233         visibility is beeing changed, so that the MdiClient
20234         can properly decide the ActiveMdiChild. The MdiClient 
20235         cannot track this since the form can change visibility 
20236         before MdiClient is created.
20237
20238         * MdiClient.cs:
20239         - Don't activate anything of the parent form is changing
20240         its visibility.
20241         - Rework ActiveMdiChild to only return visible mdi 
20242         children and take into account several other corner 
20243         cases.
20244
20245 2006-12-01  Chris Toshok  <toshok@ximian.com>
20246
20247         * IBindableComponent.cs: new 2.0 interface.
20248
20249 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
20250
20251         * DataGrid.cs: Font for caption area is bold by default.
20252
20253 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
20254
20255         * Menu.cs: Tag property for 2.0.
20256         
20257 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
20258
20259         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
20260         
20261 2006-12-01  Chris Toshok  <toshok@ximian.com>
20262
20263         * TreeView.cs: doh, the Begin* events should be
20264         TreeViewCancelEventHandler.
20265
20266 2006-12-01  Chris Toshok  <toshok@ximian.com>
20267
20268         * Form.cs: Form.ControlCollection already stores off the
20269         form_owner field.  don't access the base class's internal "owner"
20270         field.
20271
20272         * Control.cs: make all the fields in Control.ControlCollection
20273         private.  there's no need for any internal fields here.
20274
20275 2006-12-01  Chris Toshok  <toshok@ximian.com>
20276
20277         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
20278         OnHandleCreated.  Fixes bug #80109.
20279
20280 2006-12-01  Chris Toshok  <toshok@ximian.com>
20281
20282         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
20283         SplitContainer.cs, Control.cs, StatusStrip.cs,
20284         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
20285         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
20286         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
20287         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
20288         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
20289         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
20290         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
20291         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
20292         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
20293         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
20294
20295         do most of the work to convert our code over to use
20296         System.ComponentModel.Component.Events for
20297         adding/removing/dispatching events.
20298
20299
20300 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
20301
20302         * DataGridView.cs: Fix an ArgumentNullException reported 
20303         twice today in IRC.
20304
20305 2006-11-30  Mike Kestner  <mkestner@novell.com>
20306
20307         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
20308         grabbed listbox.  Fixes #80036 and #80101.
20309
20310 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
20311
20312         * Message.cs: Changed ToString() to match MS.
20313         
20314 2006-11-30  Jackson Harper  <jackson@ximian.com>
20315
20316         * TextBoxBase.cs: You can still change the selected text on a read
20317         only textbox.
20318         * TextControl.cs: Lower magic number for wrap calculations. This
20319         lets text get closer to the right (far) edge.
20320
20321 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
20322
20323         * Control.cs: Tweak 2.0 layout properties.
20324         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
20325         * TextRenderer.cs: Add a new overload.
20326         * ToolStrip*: Huge amount of changes and new features.
20327
20328 2006-11-30  Mike Kestner  <mkestner@novell.com>
20329
20330         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
20331         scroll range correct.  Fixes #79994.
20332
20333 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
20334
20335         * MdiWindowManager.cs: Update main form's text when
20336         a form is closed. (fixes #80038)
20337         
20338 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
20339
20340         * ToolBar.cs:
20341         - Fix an regression in ButtonSize.
20342         - Get ImeMode default value change to "Disable".
20343         - Get ShowTooltips default value change to true, default value is 
20344         "false" but after make a test in .NET we get "true" result as default.
20345         
20346 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
20347
20348         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
20349
20350 2006-11-29  Chris Toshok  <toshok@ximian.com>
20351
20352         * XplatUIWin32.cs (GetWindowTransparency): check return value of
20353         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
20354         SetWindowTransparency hasn't been called.
20355
20356 2006-11-29  Chris Toshok  <toshok@ximian.com>
20357
20358         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
20359         if it's supported.
20360         (set_AllowTransparency): reorder things a little so that the
20361         WS_EX_LAYERED style is removed properly.
20362
20363 2006-11-29  Chris Toshok  <toshok@ximian.com>
20364
20365         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
20366         
20367         * Form.cs: only call the XplatUI transparency method (get/set) if
20368         SupportsTransparency says it's supported. Otherwise fallback to
20369         doing nothing (in the set case) or returning the instance field we
20370         cache (in the get case).
20371
20372         * XplatUIStructs.cs: add TransparencySupport flag enum.
20373         
20374         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
20375         change to SupportsTransparency.
20376
20377         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
20378         TransparencySupport.None from SupportsTransparency.
20379
20380         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
20381         TransparencySupport.Set from SupportsTransparency.
20382
20383         * XplatUIWin32.cs: implement GetWindowTransparency calling
20384         GetLayeredWindowAttributes, and implement SupportsTransparency by
20385         checking whether or not both
20386         GetWindowTransparency/SetWindowTransparency are available
20387         entrypoints.  We need to do this since SetWindowTransparency is
20388         available as of win2k, but GetWindowTransparency requires winxp.
20389         yay win32 api.
20390
20391         * XplatUI.cs: Add GetWindowTransparency, and change
20392         SupportsTransparency to allow for either/both Get/Set.
20393
20394 2006-11-29  Chris Toshok  <toshok@ximian.com>
20395
20396         * DataGrid.cs: keep from going into an infinite loop redrawing a
20397         datagrid that has no datasource.  Fixes bug #80033.
20398
20399 2006-11-29  Chris Toshok  <toshok@ximian.com>
20400
20401         * MenuItem.cs: fix the NRE when we assign text (and therefore call
20402         Invalidate) before the mainmenu has been assigned to a control.
20403
20404 2006-11-29  Chris Toshok  <toshok@ximian.com>
20405
20406         * DataGrid.cs: detect when we should be double the double click
20407         row/column autosize stuff, although that codepath has yet to be
20408         written.  part of the work for bug #79891.
20409
20410 2006-11-29  Chris Toshok  <toshok@ximian.com>
20411
20412         * Binding.cs (SetControl): fix unit test.
20413
20414 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20415
20416         * PageSetupDialog.cs: Validate the margins and set them in
20417         PageSettings. 
20418         * NumericTextBox.cs: New class to mimic the behavior of the
20419         textboxes used in the printing dialogs.
20420
20421 2006-11-29  Andreia Gaita  <avidigal@novell.com>
20422         
20423         * Form.cs: Revert previous change (remove call UpdateBounds
20424         from form constructor), because it messes with the handle creation
20425         order, and that one needs lots and lots of love.
20426         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
20427         for valid printer and throw InvalidPrinterException if document
20428         is set but printer not valid), adding a MonoTODO. Once 
20429         handle creation is done properly, we can put this back in.
20430
20431 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20432
20433         * MenuItem.cs: Create a invalidate method for menu item, to be
20434         calling from set text, it make text changes to imadiate update
20435         on screen. Fixes #80013. 
20436         
20437 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20438
20439         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
20440         fixes bug #80070 and some other problem on toolbar buttons
20441         layout.
20442
20443 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20444
20445         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
20446         with dotted brush.      Fixes #79564
20447         
20448 2006-11-28  Andreia Gaita  <avidigal@novell.com>
20449
20450         * Form.cs: Removed call to UpdateBounds on Form
20451         constructor, it was causing a call to CreateHandle
20452         before it was supposed to.
20453         * PrintControllerWithStatusDialog: Applied patch
20454         by Chris Toshok to hide controller when there are
20455         no printers available.
20456         PrintDialog.cs: initialize printer settings to 
20457         null - correct DefaultValues test #5
20458         * PrintPreviewControl.cs: Move PrintController
20459         initialization to GeneratePreview
20460         * PrintPreviewDialog.cs: 
20461         - Remove Preview generation     from Document_set(). It is 
20462         called on OnPaint
20463         - Throw InvalidPrinterException on CreateHandle if
20464         a Document is set but there are no printers or 
20465         printer is not valid.
20466         * ThemeWin32Classic: don't paint PrintPreviewControl
20467         if there is nothing to paint    
20468
20469 2006-11-28  Miguel de Icaza  <miguel@novell.com>
20470
20471         * Form.cs: Add another popular method.
20472
20473         * TabPage.cs: ditto.
20474
20475 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20476
20477         * MenuItem.cs: Fixed a warning.
20478         * InternalWindowManager: Fixed a warning.
20479
20480 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20481
20482         * MenuItem.cs:
20483         - When cloning a menu also clone MdiList and clone the 
20484           window menu items properly (as the forms and menuitems
20485           are kept in an internal hashtable, these need updating 
20486           as well)
20487         - Rewrote the window menu code, menu items are added in the
20488           order the forms were added to their parent, and they are
20489           updated every time the window menu is shown (before the
20490           list was only generated once, in the current order of the
20491           forms, and would never be updated). A checkmark is shown
20492           next to the item corresponding to the active mdi child.
20493
20494 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20495
20496         * XplatUIStructs.cs: 
20497         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
20498         
20499         * XplatUIWin32.cs: 
20500         - Added TME_NONCLIENT to TMEFlags.
20501         - Handles WM_NCMOUSEMOVE in GetMessage to 
20502           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
20503
20504         * MdiWindowManager:
20505         - Now merges mdi child menu to parent menu when maximized.
20506         - Recalculate NC areas of both mdi child and mdi parent. 
20507           Fixes #79757 (4).
20508           on window state and size changes.Fixes #79844 (3).
20509         - Handle WM_NCCALCSIZE to properly calculate borders.
20510
20511         * Form.cs:
20512         - Add/remove to the mdi containers list of mdi children 
20513           in the order they are added.
20514         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
20515           to the maximized mdi child.
20516         
20517         * InternalWindowManager.cs:
20518         - Only execute a click on the control buttons on the mouse up,
20519           not on the mouse down. Show the state of the button 
20520           (was only showing Normal state, never Pressed state). The
20521           pressed button now follows the mouse (if you click the Close 
20522           button and move the mouse over the Maximize button, the 
20523           Maximize button will be shown as pressed). Since Win32 does
20524           not generate WM_NCLBUTTONUP if you release the button outside
20525           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
20526           it as a mouse up.
20527         
20528         * ThemeWin32Classic.cs:
20529         - Draw a missing border around mdi child forms. Fixes #79844 (2).
20530
20531         * MdiClient.cs:
20532         - Added a list of forms which contains the order the forms are
20533           added to the mdi parent.
20534         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
20535         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
20536         - If the active form changes set the scrollbars to the top
20537           of the Z order, otherwise the form could hide them.
20538         - Scrollbars are now sized according to ClientSize, not 
20539           to Size, and they take into account the other scrollbar
20540           to determine maximum.
20541         
20542 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
20543         
20544         * XplatUI.cs:
20545         * XplatUIDriver.cs:
20546         * XplatUIX11.cs:
20547         * XplatUIWin32.cs:
20548         * XplatUIOSX.cs:
20549         - Added RequestAdditionalWM_NCMessages for windows to 
20550           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
20551           Currently only implemented in XplatUIWin32.
20552
20553 2006-11-27  Chris Toshok  <toshok@ximian.com>
20554
20555         * Hwnd.cs: only add the hwnd to the windows hash in
20556         set_WholeWindow and set_ClientWindow if whole_window/client_window
20557         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
20558
20559 2006-11-27  Mike Kestner  <mkestner@novell.com>
20560
20561         * ComboBox.cs: remove redundant OnDropDown call.  It is called
20562         from the ComboListBox.ShowWindow code. Fixes #79969.
20563
20564 2006-11-27  Chris Toshok  <toshok@ximian.com>
20565
20566         * Hwnd.cs: remove the setters for ExposePending and
20567         NCExposePending - noone uses them.
20568
20569 2006-11-27  Jackson Harper  <jackson@ximian.com>
20570
20571         * TextControl.cs: new param for ReplaceSelection which determines
20572         whether we select the new selection, or set the cursor to the end
20573         of the new selection.
20574         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
20575         pasting, select the new text.
20576         * RichTextBox.cs: Use new param for ReplaceSelection.
20577
20578 2006-11-27  Jackson Harper  <jackson@ximian.com>
20579
20580         * TextBoxBase.cs: Set the selection to the caret after the caret
20581         is moved, otherwise they get out of sync.
20582
20583 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
20584
20585         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
20586         it fixes #80015
20587
20588 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
20589
20590         * ThemeWin32Classic.cs: 
20591         - Fix toolbar drop down arrow position.
20592         - Fix drop down appearance when ToolBar.Appearance is normal,
20593         it fixes #80018.
20594         
20595 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
20596
20597         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
20598         * Control.cs: Same.
20599         * UpDownBase.cs: Same.
20600         * ButtonBase.cs: Same.
20601         * ScrollBar.cs: Same.
20602         * TrackBar.cs: Same.
20603         * PictureBox.cs: Same.
20604         * UserControl.cs: Same.
20605         * Label.cs: Same.
20606         * ListControl.cs: Same.
20607         * TextBoxBase.cs: Same.
20608         * ListView.cs: Same.
20609         * RichTextBox.cs: Same.
20610         * TreeView.cs: Same.
20611
20612 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
20613
20614         * PrintDialog.cs:
20615         - Text label for where 
20616         - Text label comment was not shown
20617
20618 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
20619
20620         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
20621
20622 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20623
20624         * InternalWindowManager.cs: 
20625         - Handle WM_PARENTNOTIFY to activate the form
20626         if any child control is clicked.
20627         - The form is only sizable if not minimized.
20628
20629         * MdiWindowManager.cs:
20630         - Save the IconicBounds if the form is moved.
20631         - Rework SetWindowState, now the window bounds 
20632         are stored only if the old window state is Normal.
20633         
20634         * MdiClient.cs:
20635         - In SetWindowStates store the old window state if 
20636         the window is maximized and restore window state if
20637         the window looses focus.
20638         - Don't handle any scrollbar value changes if 
20639         initializing the scroll bars. Fixes #79771.
20640         - Reworked ArrangeIconicWindows. Current algorithm
20641         tests bounds agains all other minimized windows, if
20642         any intersections create new bounds (going left to 
20643         right, bottom to top) and then test again. When 
20644         successful the bounds are saved and never computed
20645         again. Fixes #79774.
20646
20647 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20648
20649         * InternalWindowManager.cs: Added HandleTitleBarUp.
20650
20651 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20652
20653         * NumericUpDown.cs: In .NET 1.1, user entered text is still
20654         hexadecimal in ParseUserEdit.
20655
20656         
20657 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20658
20659         * MdiWindowManager.cs: 
20660         - Handle a click on the form's icon to show the 
20661         system menu (when maximized). Fixes #79775.
20662         - Change the existing click handler for the form's
20663         icon when not maximized to show on MouseUp.
20664         Fixes #79776.
20665
20666         * Form.cs: In OnResize only layout the mdi child's
20667         parent if it actually has a parent. Might not if
20668         the window is closing.
20669
20670
20671 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20672
20673         * MdiClient.cs: Ignore active MDI client for text of parent, if
20674         child has no text set.
20675
20676 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20677
20678         * ToolBar.cs: Fixed ToString to match MS.
20679
20680 2006-11-22  Andreia Gaita  <avidigal@novell.com>
20681
20682         * NumericUpDown: 
20683         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
20684         update inner values on set. Fixes #79966.
20685         - Override OnLostFocus to update value on NET 2. Fixes #79950.
20686         - Fix hexadecimal parsing.
20687         
20688         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
20689         parent. Fixes #79957
20690
20691 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20692
20693         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
20694         the actual size has to be queried, since if height /
20695         width is negative Win32 changes it to 0. 
20696         Fixes #79999 on Windows.
20697         
20698         * XplatUIX11.cs: Set height / width to 0 if negative
20699         in SetWindowPos. Fixes #79999 on Linux.
20700         
20701 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
20702
20703         * ThemeWin32Classic.cs: Fix text redenring when button is
20704         pressed.
20705
20706 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
20707
20708         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
20709         and later navigate by mouse. Fixes #79528.
20710
20711 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
20712
20713         * ToolBar.cs: Set default value for TabStop to false in
20714         constructor, it fixes remaining behavior of bug #79863.
20715
20716 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20717
20718         * MdiWindowManager.cs:
20719         * InternalWindowManager.cs:
20720         - Moved a few methods specific to Mdi from 
20721         InternalWindowManager to MdiWindowManager.
20722         Fixes #79996.
20723         
20724 2006-11-21  Chris Toshok  <toshok@ximian.com>
20725
20726         * XplatUIOSX.cs: stub out InvalidateNC.
20727
20728         * XplatUIWin32.cs: implement InvalidateNC using the call I found
20729         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
20730
20731         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
20732
20733         * XplatUIDriver.cs: add InvalidateNC abstract method.
20734
20735         * XplatUI.cs: add InvalidateNC.
20736
20737 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
20738
20739         * ToolBar.cs: Invalidate complete button area when pressed status 
20740         was changed.
20741         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
20742         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
20743         by 1 when button is pressed.
20744
20745 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20746
20747         * ToolButton.cs: Invalidate middle of DropDown button when
20748         ToolBar theres DropDownArrows.
20749         * ThemeWin32Classic.cs: Change position of DropDown arrow and
20750         fix DropDown drawing operations.
20751
20752 2006-11-20  Chris Toshok  <toshok@ximian.com>
20753
20754         * NativeWindow.cs: fix the formatting of functions ('{' on the
20755         following line), and enable the thread exception dialog.
20756
20757         * Application.cs: remove the duplicate exception catching from
20758         here.
20759
20760 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20761
20762         * Toolbar.cs: Triggers button click event when click on icon
20763         of dropdown ToolBarButton. Fixes #79912.
20764         
20765 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20766
20767         * Theme.cs:
20768         * ThemeWin32Classic.cs:
20769         - Added a property WindowBorderFont to enable themeing
20770           of mdi child windows' Text.
20771           
20772 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20773
20774         * InternalWindowManager.cs:
20775         * Form.cs:
20776         * MdiClient.cs:
20777         * MdiWindowManager.cs: 
20778         - If mdi child is maximized, set mdi parent's
20779           text to "Parent - [Child]". Fixes #79770.
20780         - If there is any maximized mdi child windows, only the active 
20781           window (and any new windows) is maximized, the rest are normal.
20782         - On a WindowState change only save mdi child's window bounds 
20783           if the old window state was normal. Fixes #79774.
20784         - The scroll bars are now calculated on hopefully all
20785           necessary events. Fixed #79771 / #79844->6 / #79906.
20786         - MdiClient.SizeScrollBars() now takes into account docked 
20787           controls in the parent when calculating available space.
20788         - InternalWindowManager now always repaints the entire title
20789           area. Fixes #79844->1/4/5.
20790         - Added RequestNCRecalc on mdi child windowstate changes.
20791           Fixes #79772.
20792
20793 2006-11-20  Mike Kestner  <mkestner@novell.com>
20794
20795         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
20796         in the MouseUp handler of the listbox and move the return handling
20797         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
20798
20799 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20800
20801         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
20802
20803 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20804
20805         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
20806           working in 1.2.x anymore. So, updated.
20807
20808 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
20809
20810         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
20811         NumberGroupSeparator of current culture instead of assuming en-US.
20812         Fixed bug #79967.
20813
20814 2006-11-17  Mike Kestner  <mkestner@novell.com>
20815
20816         * Control.cs: Add the concept of implicit bounds setting so that
20817         dock/undock round trips preserve explicitly set size/locations.
20818         Fixes #79313.
20819
20820 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20821
20822         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
20823           can't handle those filters. (Fixes bug #79961)
20824
20825 2006-11-17  Chris Toshok  <toshok@ximian.com>
20826
20827         [ fixes the exit/crashes associated with #79835.  it's clearly
20828         suboptimal though, we need to figure out a better way to solve
20829         this. ]
20830         
20831         * PrintPreviewControl.cs: deal with the new invalid printer
20832         exceptions.
20833
20834         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
20835         and return false (so CommonDialog.ShowDialog doesn't actually show
20836         the form.)
20837
20838         * PrintDialog.cs: enable/disable the Ok button depending on
20839         whether or not the printer is valid.
20840
20841         * CommonDialog.cs (ShowDialog): only actually show the form if
20842         RunDialog returns true.
20843
20844 2006-11-17  Jackson Harper  <jackson@ximian.com>
20845
20846         * TextControl.cs: When soft splitting a line, mark it as a soft
20847         split line. Also carry over the current line break to the next
20848         line.
20849
20850 2006-11-17  Chris Toshok  <toshok@ximian.com>
20851
20852         * XplatUIX11.cs: when scrolling a window with an invalid area, we
20853         only want to shift the part of the invalid area that overlaps the
20854         area we're scrolling.  we also don't want to clear the invalid
20855         area unless the invalid area was entirely contained within the
20856         scrolling area.
20857
20858 2006-11-16  Chris Toshok  <toshok@ximian.com>
20859
20860         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
20861         also make sure to free the memory returned by XGetWindowProperty
20862         in GetText().
20863
20864         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
20865
20866 2006-11-16  Chris Toshok  <toshok@ximian.com>
20867
20868         * XplatUI.cs: add a new super secret way to get at the totally
20869         unsupported X11 backend.
20870
20871 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
20872
20873         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
20874
20875 2006-11-16  Jackson Harper  <jackson@ximian.com>
20876
20877         * TreeView.cs: Allow more explicit setting of top node position
20878         for scrollbars. Slower algo, but more accurate.
20879         - CollapseAll should maintain the current top node.
20880         * TextBoxBase.cs: When positioning the caret, use the line, pos
20881         method, since the x, y method does not grab the correct tag, and
20882         the caret height never gets set correctly. (Maybe I should just do
20883         away with the caret having its own height, and always use the
20884         carets current tag for height).
20885
20886 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
20887
20888         [Fixes 79778, 79923]
20889
20890         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
20891         Parent to the FosterParent instead.
20892
20893 2006-11-16  Jackson Harper  <jackson@ximian.com>
20894
20895         * TreeView.cs: Need to recalc the topnode when we expand or
20896         collapse. The scrolling methods can't handle this on their own,
20897         since they use differences between the last scroll position, and
20898         those difference get completely messed up since we are expanding
20899         nodes.  This problem should probably be fixed in the scrolling
20900         methods, so they can figure out exactly where they are, but this
20901         will slow things down a little.
20902         * ThemeWin32Classic.cs: Special case for groupboxes with empty
20903         strings, makes nunit-gui look a lot nicer.
20904
20905 2006-11-16  Chris Toshok  <toshok@ximian.com>
20906
20907         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
20908         the broken multithreaded event handling we have in here.  File
20909         this entry under "Why we should move to the new X11 backend".
20910
20911         Any thread can make it into UpdateMessageQueue, which gets events
20912         from the X socket - some of which could belong to hwnds being
20913         managed by a different thread.  We can also have multiple threads
20914         in UpdateMessageQueue at the same time, with each one reading from
20915         the X socket.  This leads to many problems, with the following
20916         solutions:
20917
20918         We can't use hwnd.Queue.Enqueue anywhere in here and must use
20919         EnqueueLocked.
20920
20921         The MotionNotify compression we do can't work across threads
20922         (without locking the entire queue, perhaps) since we call
20923         hwnd.Queue.Peek, so we just punt and don't compress motion events
20924         unless the owning thread is the one which got the X event.
20925
20926         ConfigureNotify is another fun one, since it modifies the hwnd's
20927         bounds and then enqueues the event.  We add a lock to Hwnd which
20928         is held when setting configure_pending to true (and enqueuing the
20929         event).
20930
20931         There is a race wrt the wake socket.  we need to make sure that
20932         only 1 thread is waiting on that socket, or else a thread could
20933         sleep waiting for data that never comes.  It's difficult (but not
20934         impossible) to make happen, because it seems to require something
20935         like the following:
20936
20937             1. Thread 1 polls on wake_receive
20938         
20939             2. poll returns saying there's data to be read on
20940                wake_receive.
20941         
20942             3. Thread 2 polls on wake_receive and immediately returns
20943                saying there's data to be read.
20944
20945             4. Thread 2 reads the wakeup byte from wake_receive
20946
20947             5. Thread 1 attempts to read the wakeup byte from
20948                wake_receive.
20949
20950             6. Thread 2 exits (due to a form closing, perhaps).
20951
20952             7. Thread 1 blocks forever.
20953         
20954         Fun, eh?
20955
20956         Fixing the Expose handling isn't done yet, and the races inherent
20957         in that piece of code are responsible for the drawing mistakes you
20958         see when generating expose events in a MT app (like NPlot).  This
20959         one is the likely to be the hardest to bandaid, and it doesn't
20960         appear to cause anything but drawing problems.  The other issues
20961         caused apps to exit or hang.
20962
20963         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
20964         called from a different thread than the one that should be calling
20965         these functions.
20966
20967         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
20968
20969 2006-11-15  Chris Toshok  <toshok@ximian.com>
20970
20971         * Application.cs: null out the context's MainForm when we exit
20972         RunLoop.  Fixes a newly checked in unit test as well as the last
20973         ODE from bug #79933.
20974
20975 2006-11-15  Chris Toshok  <toshok@ximian.com>
20976
20977         * Form.cs (set_Owner): allow a null value so we can clear the
20978         form's owner.
20979         (Dispose): set all our owned_form's Owner properties to null, and
20980         clear the owned_forms collection.
20981         (WM_CLOSE): clean up this a little bit.. still not right though.
20982
20983         * ApplicationContext.cs: OnMainFormClosed should only call
20984         ExitThreadCore if the main form isn't recreating.  Fixes unit
20985         test.
20986
20987 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20988
20989         [Fixes 78346]
20990
20991         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
20992
20993 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20994
20995         [Fixes 79433]
20996
20997         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
20998         keep popup window types from stealing focus from the main form
20999         on Windows.
21000
21001         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
21002
21003         * MenuAPI.cs: Set above flag to true.
21004
21005 2006-11-15  Chris Toshok  <toshok@ximian.com>
21006
21007         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
21008         the button being released is not in wParam.
21009
21010 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
21011
21012         * Form.cs: Add the released button to MouseEventArgs.Button
21013         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
21014         on Win32.
21015
21016 2006-11-15  Chris Toshok  <toshok@ximian.com>
21017
21018         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
21019         GetText().  untested because it's unused in our implementation.
21020         Control.Text always caches the text, even if
21021         ControlStyles.CacheText is not set.
21022
21023         fixes bug #79939.
21024
21025 2006-11-15  Chris Toshok  <toshok@ximian.com>
21026
21027         [ fixes #79933 ]
21028         
21029         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
21030         message.  no hiding, no disposing.
21031
21032         in the WM_CLOSE handler, hide the form if it's modal.
21033
21034 2006-11-15  Chris Toshok  <toshok@ximian.com>
21035
21036         * XplatUIX11.cs: use AddExpose instead of sending a message.
21037         fixes textbox border drawing.
21038
21039 2006-11-15  Chris Toshok  <toshok@ximian.com>
21040
21041         * PropertyGridView.cs: keep from crashing on mouse move/down when
21042         the property grid is empty.
21043
21044 2006-11-14  Jackson Harper  <jackson@ximian.com>
21045
21046         * TextControl.cs: Make PageUp and PageDown more like the MS
21047         versions.
21048         * TextBoxBase.cs: When we set the text property position the
21049         cursor at the beginning of the document.
21050
21051 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21052
21053         * Form.cs: if a mdi child's WindowState has changed
21054         before it's creation, it would display wrong control
21055         buttons.
21056         
21057 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
21058
21059         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
21060           (Fixes bug #79927)
21061
21062 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
21063
21064         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
21065         the window gets to paint its borders even if the window is
21066         getting smaller.
21067         
21068         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
21069         otherwise the old control buttons would still be painted 
21070         if the window gets bigger.
21071         
21072         * PaintEventArgs.cs: add an internal method so that the clip 
21073         rectangle can be changed.
21074         
21075 2006-11-13  Chris Toshok  <toshok@ximian.com>
21076
21077         [ fixes bug #79745 ]
21078         
21079         * NotifyIcon.cs: lots of cleanup.
21080
21081         * X11Structs.cs: add an enum for XEMBED messages.
21082
21083         * XplatUIX11.cs: reindent one of the giant switch statements, it
21084         was taking up an additional tab stop, and this file is already way
21085         too wide for my laptop's screen.
21086
21087         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
21088         we get it, resize the hwnd to the WMNormalHints max_width/height.
21089
21090 2006-11-13  Jackson Harper  <jackson@ximian.com>
21091
21092         * TextBoxBase.cs: Compute the value changes for the mouse wheel
21093         teh simple way.
21094
21095 2006-11-13  Chris Toshok  <toshok@ximian.com>
21096
21097         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
21098         #79898.  force a reference to the Region to stick around so the
21099         unmanaged object isn't collected (rendering our handle in the MSG
21100         stale).
21101
21102 2006-11-13  Chris Toshok  <toshok@ximian.com>
21103
21104         * XplatUIX11.cs: fix #79917 for window managers which support
21105
21106         using XStoreName on the raw utf8, and we need to convert to
21107         COMPOUND_TEXT if it's non-latin1.
21108
21109 2006-11-13  Chris Toshok  <toshok@ximian.com>
21110
21111         * Form.cs (set_DialogResult): we need to set closing to false if
21112         we're setting our result to None.  fixes bug #79908.
21113
21114 2006-11-13  Jackson Harper  <jackson@ximian.com>
21115
21116         * TextControl.cs: When formatting text, compute the adjusted tag
21117         lengths correctly, using FindTag for the end tag instead of trying
21118         to figure it out outselves.
21119         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
21120         the item, ItemHeight doesn't work, because trees with large
21121         imagelists use those for their height
21122         * TreeView.cs: ActualItemHeight factors in the image height
21123         - compute left edge of checkboxes correctly
21124         - when expanding/collapsing move the bottom down one pixel, so we
21125         aren't moving part of the node
21126
21127 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21128
21129         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
21130         stack in PaintEventStart so that it won't get disposed by the gc
21131         before reaching PaintEventEnd.
21132
21133 2006-11-13  Jackson Harper  <jackson@ximian.com>
21134
21135         * TextBoxBase.cs: Don't select the word if we are on a line with
21136         no text.
21137         - We don't need to position the caret on mouse up, since the mouse
21138         move handler should be doing this
21139         - When double clicking a blank line, the caret is advanced to the
21140         next line.
21141
21142 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
21143
21144         * TreeNodeCollection.cs: Avoid duplicating indexer code.
21145
21146 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
21147
21148         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
21149         Fixes part of bug #79910.
21150
21151 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
21152
21153         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
21154           (bug #79903). Some minor string updates to match ms.
21155
21156 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21157
21158         * FileDialog.cs: Don't add an extension if the filename
21159           already ends with that extension.
21160
21161 2006-11-10  Jackson Harper  <jackson@ximian.com>
21162
21163         * TreeView.cs: Use the currently highlighted node for the
21164         BeforeSelect event.
21165         * TextBoxBase.cs: There is no need to expand selection on
21166         MouseMove.
21167         - CanUndo means 'is there any undo operations', not 'is undo
21168         allowed on this textcontrol. Fixed ClearUndo unit test.
21169
21170 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
21171
21172         * Button.cs: only perform click when button is Selectable (so as 
21173         not to activate default buttons when they're disabled)
21174         
21175         * Control.cs: Rewrite of the SelectNextControl and related 
21176         methods. HandleClick now selects next control if the current one
21177         is being disabled.
21178         
21179         * Form.cs: OnActivated selects next active control only if Load 
21180         has already occurred. If Load hasn't run, there's no point in 
21181         selecting here, Load might change the state of controls.
21182         
21183         * FocusTest.cs: Tests marked as working again for these fixes
21184
21185 2006-11-10  Chris Toshok  <toshok@ximian.com>
21186
21187         * XplatUIX11.cs: a couple of fixes.
21188
21189         - use XInternAtoms with almost all the atoms we need to register,
21190         instead of many, many calls to XInternAtom.  should help a bit on
21191         startup time, at the expense of making the code look a little
21192         worse.
21193
21194         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
21195         isn't reparented (which seems to be a clue that we're running fon
21196         compiz) and they have an Owner form.  This fixes the tool windows
21197         in paint.net when running under compiz.
21198
21199         - when setting the opacity of a window, support both the case
21200         where the window has been reparented and also when it hasn't been.
21201         Since compiz/beryl doesn't seem to reparent windows, and these are
21202         the only window managers which support translucency, I'm not sure
21203         why we need the hwnd.reparented case at all.. but leave it in.
21204         now we get translucent windows in paint.net under compiz/beryl.
21205
21206 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21207
21208         * FileDialog.cs: Always return the value for FilterIndex that
21209           was set. Internally convert it to values that make sense.
21210
21211 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
21212         
21213         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
21214
21215 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
21216
21217         * Toolbar.cs: Change default value of DropDownArrows to true, the 
21218         signature still using false to make it compatible with MS but the 
21219         initial value is true. Fixes #79855.
21220
21221 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21222
21223         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
21224           only available on Linux.
21225
21226 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
21227
21228         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
21229         reduce number of calls to redraw method during toolbar creation.
21230
21231 2006-11-09  Mike Kestner  <mkestner@novell.com>
21232
21233         * ListView.cs : raise SelectedIndexChanged when an item is selected
21234         programmatically via the Item.Selected property.  Gert's nice 
21235         ListViewSelectedIndexChanged test fixture now runs clean.
21236
21237 2006-11-09  Mike Kestner  <mkestner@novell.com>
21238
21239         * ListView.cs : raise SelectedIndexChanged when a selected item is
21240         removed from the item collection using Remove or RemoveAt.
21241
21242 2006-11-09  Mike Kestner  <mkestner@novell.com>
21243
21244         * ListView.cs : raise SelectedIndexChanged once per selected item
21245         for compat with MS.  Fixes #79849+.
21246
21247 2006-11-09  Chris Toshok  <toshok@ximian.com>
21248
21249         * TabControl.cs: initialize row_count to 0, and set it to 1 when
21250         we need to (if we have any tab pages).  Fixes unit test.
21251
21252 2006-11-09  Chris Toshok  <toshok@ximian.com>
21253
21254         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
21255         width is 0, not 3.  Fixes a unit test.
21256
21257 2006-11-09  Mike Kestner  <mkestner@novell.com>
21258
21259         * ListView.cs : use Implicit scrollbars so that focus isn't 
21260         stolen from the listview when they are clicked. Fixes #79850.
21261
21262 2006-11-09  Chris Toshok  <toshok@ximian.com>
21263
21264         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
21265         have a root item.  Fixes #79879.
21266
21267 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
21268
21269         * FileDialog.cs:
21270           - Fix ToString ()
21271           - An ArgumentException is now thrown if a wrong filter
21272             is applied (matches ms). The previous filter doesn't change
21273             anymore if an exception is thrown.
21274           - Changing the FileName property also affects FileNames
21275         * ColorDialog.cs: The length of the CustomColors array is always
21276           16. It doesn't matter if we use a smaller array or null to update
21277           or change the custom colors property.
21278         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
21279           for RootFolder if we get a undefined value.
21280
21281 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21282
21283         * StatusBarPanel.cs: 
21284         - Width is set to MinWidth if Width is smaller than
21285         MinWidth. Fixes #79842.
21286         - MinWidth now always overrides Width (MSDN says MinWidth
21287         is set to Width when AutoSize = None, but they do not 
21288         behave like that).
21289         - Style has now the the correct default value.
21290         
21291 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21292  
21293         * TrackBar.cs: 
21294         - The control is completely invalidated on 
21295         Got/LostFocus to draw the focus rectangle correctly.
21296         - When AutoSize then height is always 45 (width for 
21297         vertical controls).
21298         
21299         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
21300         on the mouse when moved and it doesn't move when grabbed
21301         until the mouse moves as well. Also fixed some wrong 
21302         calculations when clicking on the thumb (control thought
21303         click was outside of thumb and didn't grab it).
21304         Fixes some of the issues in #79718.
21305
21306 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
21307
21308         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
21309
21310 2006-11-08  Chris Toshok  <toshok@ximian.com>
21311
21312         * PropertyGridView.cs: only call ToggleValue if the item is not
21313         readonly.
21314
21315 2006-11-08  Jackson Harper  <jackson@ximian.com>
21316
21317         * TextBoxBase.cs: The RichTextBox and textbox have very different
21318         word selection methods.  Implement the textbox's simple word
21319         selection here, and let the RichTextBox override and provide it's
21320         own.
21321         - Don't do extra selection on mouseup
21322         * RichTextBox.cs: Use the documents word selection algorithm, I
21323         think ideally, this function will be pulled into the
21324         RichTextBox.cs code someday.
21325
21326 2006-11-08  Chris Toshok  <toshok@ximian.com>
21327
21328         * RootGridEntry.cs: new class to represent GridItemType.Root.
21329
21330         * CategoryGridEntry.cs: reformat, and add boilerplate.
21331         
21332         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
21333         returns the UI parent anyway, and we need special handling to
21334         implement the GetTarget method in the face of it.  Also, implement
21335         Select().
21336
21337         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
21338         a root grid item, and use that instead of PropertyGrid.grid_items.
21339         Also, make use of TypeConverters (and add limitted support for
21340         ICustomTypeDescriptors) when initially populating the grid.
21341         Arrays now show up more or less properly.
21342
21343 2006-11-08  Chris Toshok  <toshok@ximian.com>
21344
21345         * Application.cs: set the modal dialog to non modal after we close
21346         it.  Fixes bug #79866.
21347
21348 2006-11-08  Jackson Harper  <jackson@ximian.com>
21349
21350         * TextControl.cs: When combining lines carry over the line end
21351         style from the end line.
21352         - Invalidate the selected area when setting it, if it is visible.
21353         * TextBoxBase.cs: Only rich text box can do full line selects.
21354         - Make sure to set the cursor position when there is a click,
21355         otherwise two clicks in separate areas could cause a large chunk
21356         to be selected.
21357
21358 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21359
21360         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
21361         Fixes #79863.
21362
21363 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21364
21365         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
21366         time. Remove tooltips when ToolButton click events.  Fixes #79856.
21367
21368 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21369
21370         * MenuAPI.cs: Ignore right click for menu actions and fixes
21371         menu border when clicked.  Fixes #79846.
21372
21373 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21374
21375         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
21376         MouseState after create wParam for message, this fixes mouse button 
21377         equal none in mouse up events.
21378         
21379 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
21380
21381         * Control.cs : Focus() now calls Select to set the Container's
21382         Active Control and to give it focus. To avoid infinite recursion
21383         (because ActiveControl also calls Focus at one point), a check 
21384         is made in Focus with the help of a new internal variable
21385         is_focusing.
21386
21387 2006-11-07  Mike Kestner  <mkestner@novell.com>
21388
21389         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
21390         if there's a selection.  Fixes #79849.
21391
21392 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
21393
21394         * PropertyGrid.cs: Avoid fixed height of help description label.
21395         Fixes part of bug #79829.
21396
21397 2006-11-07  Chris Toshok  <toshok@ximian.com>
21398
21399         * XplatUIX11.cs: fix #79790 again, by using the
21400         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
21401
21402 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21403
21404         * ToolBar.cs: Fix left click checking.
21405
21406 2006-11-07  Chris Toshok  <toshok@ximian.com>
21407
21408         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
21409
21410 2006-11-07  Chris Toshok  <toshok@ximian.com>
21411
21412         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
21413         PropertyManager unit tests.
21414
21415         * PropertyManager.cs: make property_name internal.
21416
21417 2006-11-07  Chris Toshok  <toshok@ximian.com>
21418
21419         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
21420         pass a unit test.  Also, don't set image_index to anything in
21421         response to setting the ImageList property.
21422
21423 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21424
21425         * ToolBar.cs: Ignore click events when mouse button is not a
21426         left button, only accepts other button for dropdown menus.  
21427         Fixes #79854.
21428
21429 2006-11-07  Chris Toshok  <toshok@ximian.com>
21430
21431         * DataGrid.cs: make the back and parent row buttons a little less
21432         ugly.
21433
21434 2006-11-07  Jackson Harper  <jackson@ximian.com>
21435
21436         * TextBoxBase.cs: When converting to Text don't put line breaks in
21437         for soft line breaks.
21438         * TextControl.cs: There is an initial "fake" line in the document,
21439         this is now a soft break line, so that an extra line feed doesn't
21440         get added to the end of documents.
21441
21442 2006-11-07  Chris Toshok  <toshok@ximian.com>
21443
21444         [ fix bug #79778 ]
21445         
21446         * CurrencyManager.cs: if the list is readonly, don't bother
21447         checking if IBindingList.AllowNew is true.
21448
21449         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
21450         for non-DataRowView datasources..  or rather, make it not crash.
21451         (DataGridPaintRelationRow): make sure we limit the row painting to
21452         the area not covered by the row header, and make our cell width at
21453         least large enough to cover the relation area.  This allows grids
21454         that have relations but no rows to render correctly.
21455         (DataGridPaintRowContents): same type of changes here.
21456         (SetDataSource): move back to always calling
21457         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
21458         navigating back through relations.
21459         (HitTest): handle the case where we have no cells but have
21460         relations.  Right now we generate a hit in cell 0 of whatever the
21461         row is, not sure if this is strictly correct, but it works for our
21462         purposes.
21463         
21464         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
21465         bother doing anything.
21466
21467 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
21468
21469         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
21470         early version of StatusStrip.  Not responsible for eaten
21471         application or firstborn children.
21472
21473 2006-11-06  Chris Toshok  <toshok@ximian.com>
21474
21475         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
21476         call GetTabRect with a -1 index.  Fixes #79847.
21477
21478 2006-11-06  Jackson Harper  <jackson@ximian.com>
21479
21480         * TreeNodeCollection.cs: Update scrollbars after clearing.
21481
21482 2006-11-06  Chris Toshok  <toshok@ximian.com>
21483
21484         * NumericUpDown.cs: fix the ToString method for some unit test
21485         love.
21486
21487 2006-11-06  Chris Toshok  <toshok@ximian.com>
21488
21489         * PropertyGrid.cs:
21490         - set the initial SelectedGridItem if we can.
21491
21492         - Exclude non-mergable properties only if we're merging > 1
21493         object.  Merging 1 object isn't really merging, obviously.
21494
21495         - Handle PropertySort.NoSort just like Alphabetical, which is
21496         wrong of course, but at least gets things on the screen.
21497         
21498         * PropertyGridView.cs:
21499         - Add method "FindFirstItem" which finds the first property grid
21500         item, so we can select it by default.
21501
21502         - make use of GridEntry.CanResetValue.
21503
21504         - Don't call RedrawBelowItemOnExpansion here anymore, the
21505         individual GridEntry's will do that.
21506
21507         - Remove the ITypeDescriptorContextImpl internal class.
21508         
21509         * GridEntry.cs:
21510         - this class needs to implement ITypeDescriptorContext, as it's
21511         what MS's PropertyDescriptorGridEntry does, which means we can
21512         remove the ITypeDescriptorContextImpl internal class from
21513         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
21514
21515         - keep a reference to our PropertyGridView, and move the call to
21516         RedrawBelowItemOnExpansion here from PGV.  This means
21517         programmaticly setting Expanded actually does something visible.
21518
21519         - add a CanResetValue() function which takes into account our
21520         possibly multiple "selected_objects" in the merged case.  Shifting
21521         PropertyGridView to use this method fixes another unreported
21522         crasher found running the test for #79829.
21523
21524         - when Top or Bounds is updated, make sure the PropertyGridTextBox
21525         is updated to reflect this.
21526
21527         * CategoryGridEntry.cs: the ctor takes the PGV now.
21528         
21529 2006-11-06  Jackson Harper  <jackson@ximian.com>
21530
21531         * TextControl.cs: These are 1 based.
21532         * TextBoxBase.cs: When setting the selected text, don't change the
21533         selected text tags, this is done by ReplaceText, just position the
21534         cursor at the end of the new text.
21535
21536 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
21537
21538         * ListView.cs: Allow label edit only when, when LabelEdit is
21539           set to true.
21540
21541 2006-11-06  Jackson Harper  <jackson@ximian.com>
21542
21543         * TextControl.cs: If a suitable wrapping position isn't found,
21544         just wrap right in the middle of a word.
21545
21546 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
21547
21548         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
21549           bug #79820.
21550
21551 2006-11-06  Jackson Harper  <jackson@ximian.com>
21552
21553         * TreeView.cs: Can't use the VisibleCount property when setting
21554         scrollbar heights, because this doesn't take into account whether
21555         or not the horz scrollbar just came visible.
21556
21557 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
21558
21559         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
21560         activated.  Fixes #79369, #79832.
21561
21562 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
21563
21564         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
21565           had to remove support for links that point to a directory. FileInfo
21566           returns no usefull information (means, the directory they point to)
21567           for such links. Replaced some empty string ("") with String.Empty.
21568
21569 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
21570
21571         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
21572         NullReferenceException when attempting to remove node that is not in
21573         collection. Throw NullReferenceException when null is passed to 
21574         Remove. Allow first element of the collection to be removed. Fixes
21575         bug #79831.  In GetEnumerator ().Current return null if positioned 
21576         before the first element of the collection. In GetEnumerator ().Reset,
21577         position before first element of the collection.
21578
21579 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
21580
21581         * PropertyGrid.cs: To match MS, remove default title and description
21582         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
21583         buttons.
21584
21585 2006-11-04  Chris Toshok  <toshok@ximian.com>
21586
21587         * Theme.cs: add a Clamp method, just for kicks.
21588
21589         * ThemeWin32Classic.cs: clamp all color components to [0..255].
21590
21591 2006-11-04  Chris Toshok  <toshok@ximian.com>
21592
21593         * Form.cs: if the form isn't visible, Close() does nothing.
21594
21595 2006-11-03  Chris Toshok  <toshok@ximian.com>
21596
21597         * Form.cs (Close): if the form is modal, don't Dispose of it, only
21598         Hide it.
21599         (WndProc): don't Dispose after handling the WM_CLOSE message.
21600
21601         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
21602         them as such, instead of using casts from Control to Form.  Also,
21603         don't Dispose of the modal dialog when we fall out of the loop -
21604         Close() it instead.
21605
21606         fixes bug #79813.
21607
21608 2006-11-03  Chris Toshok  <toshok@ximian.com>
21609
21610         * Control.cs (Dispose): only go through the dispose thing if we're
21611         @disposing, and we haven't already been disposed.  Fixes bug
21612         #79814.
21613
21614         * Form.cs: no reason to call "base.Dispose()" here instead of
21615         "Dispose()".
21616
21617 2006-11-03  Mike Kestner  <mkestner@novell.com>
21618
21619         * ComboBox.cs : use ToString instead of casts in AddItem for
21620         sorting functionality.  Fixes #79812.
21621
21622 2006-11-03  Chris Toshok  <toshok@ximian.com>
21623
21624         * Application.cs: pave the way for actually using the thread
21625         exception dialog.  it's ifdefed out at the moment.
21626
21627 2006-11-03  Chris Toshok  <toshok@ximian.com>
21628
21629         * ThreadExceptionDialog.cs: until we get a better layout, actually
21630         hide the details textbox and label when we shouldn't see them.
21631
21632 2006-11-03  Jackson Harper  <jackson@ximian.com>
21633
21634         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
21635         multiline textboxes anymore.  This method also determines the
21636         width/height of a textboxes canvas area.
21637         - Sorta a revert of the last patch.  For multiline just position
21638         the controls, then bail.  This way the scrollbar width won't be
21639         altered.
21640
21641 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
21642
21643         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
21644         it dont need.  Fixes #79537.
21645
21646 2006-11-02  Jackson Harper  <jackson@ximian.com>
21647
21648         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
21649         send the status after firing the DndOver event.
21650
21651 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21652
21653         * TrackBar.cs: Now orientation only switches height / width if
21654         the control's handle is created (Win32 does it like this). Also 
21655         fixed a typo in ToString() for a test to pass, changed the 
21656         exception thrown in set_LargeChange and set_SmallChange to 
21657         match Win32 behaviour, and added TrackBar tests to the unit 
21658         tests.
21659
21660 2006-11-02  Chris Toshok  <toshok@ximian.com>
21661
21662         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
21663         not _NET_WM_STATE_NO_TASKBAR.
21664
21665 2006-11-02  Jackson Harper  <jackson@ximian.com>
21666
21667         * TextControl.cs: Increment count by one, since in the update view
21668         count - 1 is used.
21669
21670 2006-11-02  Jackson Harper  <jackson@ximian.com>
21671
21672         * TextBoxBase.cs: Use client rectangle not bounds for checking if
21673         the mouse is in the client rectangle (duh).
21674
21675 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21676         
21677         * TrackBar.cs: Fixed trackbar jumping around when clicking
21678         on it - the trackbar was not detecting correctly at which
21679         side of the thumb the click was done. (fixes #79718)
21680
21681 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
21682
21683         * ListBox.cs: scroll visible area when change SelectedIndex to
21684         a non visible area.  Fixes #79481.
21685
21686 2006-11-01  Jackson Harper  <jackson@ximian.com>
21687
21688         * TextControl.cs: When replacing the selection move the selection
21689         start/end/anchor to the end of the new text.
21690
21691 2006-11-01  Jackson Harper  <jackson@ximian.com>
21692
21693         * XplatUIWin32.cs: When setting the parent change the controls
21694         visibility to it's visibility flag, not to it's old parents
21695         visibility (.Visible walks the parent chain).
21696
21697 2006-11-01  Chris Toshok  <toshok@ximian.com>
21698
21699         * XplatUIX11.cs: revert the #79790 fix, as the simple.
21700         XSetTransientForHint fix breaks paint .net's tool windows.  more
21701         work needed for that one.
21702
21703 2006-11-01  Chris Toshok  <toshok@ximian.com>
21704
21705         * ScrollBar.cs: throw ArgumentException instead of Exception in
21706         LargeChange/SmallChange setters.  fixes unit tests.
21707
21708 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
21709
21710         * ContainerControl.cs: reverted rev.67183 (which was itself
21711         a reversion of rev.66853... eh).
21712         
21713         * Control.cs: Fixes Reflector hang by changing Focus() call
21714         to what it was before rev.66643 (calling Select() here sets 
21715         ActiveControl, which in some situations calls back Focus and 
21716         eventually does a stack overflow). Temp fix.    
21717         Changes to GetNextControl() to not look for children to select when
21718         parent cannot be selectable (so it looks for siblings instead)  
21719         
21720 2006-10-31  Mike Kestner  <mkestner@novell.com>
21721
21722         * CheckedListBox.cs : off by one error in returned index from
21723         ObjectCollection.Add.  Fixes #79758.
21724
21725 2006-10-31  Chris Toshok  <toshok@ximian.com>
21726
21727         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
21728         calls for the textbox/spinner, to keep from recursing to the point
21729         where we crash.  Fixes #79760.
21730
21731 2006-10-31  Chris Toshok  <toshok@ximian.com>
21732
21733         * ListControl.cs (set_SelectedValue): don't throw exceptions on
21734         null/"" value, just return.  matches ms's behavior and fixes some
21735         failing tests.
21736
21737 2006-10-31  Chris Toshok  <toshok@ximian.com>
21738
21739         * Control.cs (set_Capture): make a logic a little easier to
21740         follow.
21741
21742         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
21743         if it's being destroyed.  A necessary fix surely, but a bandaid
21744         also, to fix the stuck capture problem in bug #78413.
21745
21746 2006-10-31  Chris Toshok  <toshok@ximian.com>
21747
21748         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
21749         convention of clearing hwnd.ClientRect when we set the
21750         width/height (so it'll be recalculated by Hwnd).
21751
21752 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
21753
21754         * ContainerControl.cs: reversed Contains check from
21755         ActiveControl due to hanging problems. This fix
21756         partly regresses #79667 (button does not have
21757         initial focus), so this might be a symptom for 
21758         a larger parenting problem (set_ActiveControl
21759         is being called but the child control does
21760         not have the parent set yet?)   
21761         
21762 2006-10-31  Mike Kestner  <mkestner@novell.com>
21763
21764         * MenuAPI.cs : fix keynav when menu is click activated.
21765
21766 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
21767
21768         * ToolStrip*: Version 0.2.
21769
21770         * MenuStrip.cs: Version 0.1.
21771
21772         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
21773
21774 2006-10-30  Chris Toshok  <toshok@ximian.com>
21775
21776         [ fixes the oversized notify icon issue in bug #79745 ]
21777         
21778         * NotifyIcon.cs: scale the icon down to the size we're given by
21779         the XplatUI layer (this would be faster if we did it once instead
21780         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
21781         since it's never invoked.
21782
21783         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
21784         pixels high by default, so let's hardcode our systray icon to that
21785         size.  The SYSTEM_TRAY protocol should really have a way for
21786         client apps to query for the correct icon size.. but oh well.  A
21787         couple of patches to deal with the screwy client_window ==
21788         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
21789         instance, and also make sure we don't XSelectInput twice).
21790
21791 2006-10-30  Chris Toshok  <toshok@ximian.com>
21792
21793         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
21794         recreating forms.  Control recreation is the bane of my existence.
21795         Fix it in a way that keeps everyone happy.
21796
21797 2006-10-30  Chris Toshok  <toshok@ximian.com>
21798
21799         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
21800         just non-CHILD ones.  otherwise sometimes scrollbars end up with
21801         client_windows not being resized to the proper size (ReportBuilder
21802         shows this extremely well).
21803
21804 2006-10-30  Chris Toshok  <toshok@ximian.com>
21805
21806         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
21807         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
21808         showing up in the gnome taskbar.  Fixes bug #79790.
21809
21810 2006-10-30  Chris Toshok  <toshok@ximian.com>
21811
21812         * ApplicationContext.cs: guard against a NRE.
21813
21814         * Application.cs: null out the old MainForm for the context, so we
21815         don't try to use it again once it's disposed.  Fixes bug #79783.
21816
21817 2006-10-30  Chris Toshok  <toshok@ximian.com>
21818
21819         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
21820         BindingContext, set the data source directly, otherwise do the
21821         lazy approach - the actual ListManager will be created when we get
21822         a BindingContext. Fixes bug #79700.
21823
21824 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21825
21826         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
21827           XplatUIX11.cs: Remove old 2 parameter SetVisible.
21828
21829         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
21830
21831 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21832
21833         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
21834         of SetVisible that allows a window to be shown, but not activated.
21835         This is needed on Windows for MenuStrip, and can probably be used
21836         with MainMenu and ComboBox to fix the focus stealing issues on
21837         Windows.
21838
21839         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
21840
21841 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
21842
21843         * PictureBox.cs: Fix the output of the ToString method.
21844
21845 2006-10-29  Chris Toshok  <toshok@ximian.com>
21846
21847         * Control.cs (get_TopLevelControl): fix bug #79781.
21848
21849 2006-10-29  Chris Toshok  <toshok@ximian.com>
21850
21851         * ListControl.cs (set_DataSource): throw Exception here, not
21852         ArgumentException, to match MS behavior.
21853
21854 2006-10-29  Chris Toshok  <toshok@ximian.com>
21855
21856         * Form.cs: remove the try-catch's around calls to GetWindowState.
21857         We can just check the return value.
21858
21859         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
21860         Instead return -1.
21861
21862         * XplatUI.cs: Add note about additional return value for
21863         GetWindowState.
21864
21865 2006-10-29  Chris Toshok  <toshok@ximian.com>
21866
21867         * Control.cs (CreateHandle): when we create our handle, we also
21868         create the handles of our child controls.  Fixes one of the
21869         Control unit tests (CH11).
21870
21871 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
21872
21873         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
21874
21875 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
21876
21877         * ThemeClearlooks.cs: A little speedup.
21878
21879 2006-10-27  Chris Toshok  <toshok@ximian.com>
21880
21881         * Control.cs: implement Control.FromChildHandle in a way that
21882         matches the docs (and fixes the failed test.)
21883
21884 2006-10-27  Chris Toshok  <toshok@ximian.com>
21885
21886         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
21887         comments).
21888
21889         * DataGrid.cs: implement ResetForeColor such that the tests
21890         succeed.
21891         
21892 2006-10-27  Chris Toshok  <toshok@ximian.com>
21893
21894         * ToolBarButton.cs: setting text/tooltiptext to null results in it
21895         being set to "".  Fixes bug #79759.
21896
21897 2006-10-27  Jackson Harper  <jackson@ximian.com>
21898
21899         * TextControl.cs: We need to clear the entire selection area when
21900         setting the start, otherwise multiline selections are still
21901         visible.
21902
21903 2006-10-26  Chris Toshok  <toshok@ximian.com>
21904
21905         * PropertyGridView.cs: 
21906
21907         - ifdef all the code specific to the double
21908         buffer case, and provide some alternatives in the non-doublebuffer
21909         code, which makes heavy use of XplatUI.ScrollWindow to move things
21910         around without having to invalidate (and cause flicker).  There
21911         are still some drawing problems in the non-doublebuffered case, so
21912         DOUBLEBUFFER is defined by default.
21913
21914         - Fix the way dropdowns are handled.  now we explicitly watch for
21915         the events which might cause the dropdown to close, and break out
21916         of the nested event loop there.  This gets rid of all Capture
21917         code, at the expense of the Msg special casing.  Seems to work,
21918         though, and fixes bug #79743.
21919
21920 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
21921         * Control.cs: SetIsRecreating now recreates implicitly added
21922         child controls as well. Finally fixes #79629. The flag passed to 
21923         SetIsRecreating has also been removed since it wasn't used.
21924         
21925 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21926
21927         * PageSetupDialog.cs: Clean some code, fix some bits, 
21928         add some checks, and add a printer sub-dialog.
21929
21930 2006-10-26  Chris Toshok  <toshok@ximian.com>
21931
21932         * PropertyGrid.cs: make set_SelectedObject call
21933         set_SelectedObjects, and move the duplicate logic to the
21934         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
21935
21936         * PropertyGridView.cs: hide the textbox when we get a
21937         SelectedObjectsChanged event.
21938
21939         Fixes bug #79748.
21940
21941 2006-10-26  Chris Toshok  <toshok@ximian.com>
21942
21943         * PropertyGridView.cs: deal with the type converter not supporting
21944         GetStandardValues() or GetStandardValues() returning null, which
21945         is does in the default case.  Fixes #79742.
21946
21947 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
21948
21949         * CheckedListBox.cs: nunit no longer crashes when selecting 
21950         Project/Edit menu option
21951         
21952 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
21953
21954         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
21955         is no menu selected. fixes #79739
21956
21957 2006-10-25  Chris Toshok  <toshok@ximian.com>
21958
21959         * PropertyGridView.cs: factor out the splitter invalidation code
21960         into the SplitterPercent setter, and for kicks implement the
21961         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
21962         amount in either direction.
21963
21964 2006-10-25  Chris Toshok  <toshok@ximian.com>
21965
21966         * PropertyGridView.cs: do some cleanup of the brush used to draw
21967         text - read only fields should be grayed out.  not sure how to do
21968         this with the textbox, though.  but the textbox's should also be
21969         readonly now at least.  Also, hide/show the textbox when resizing
21970         the control.
21971         
21972         * CursorConverter.cs: use System.Reflection when getting the
21973         properties of Cursors, as TypeDescriptor.GetProperties isn't
21974         returning static properties.
21975
21976 2006-10-25  Chris Toshok  <toshok@ximian.com>
21977
21978         * PropertyGridView.cs: factor out the up/down handling, and reuse
21979         it for page up/down.  also add End/Home support.
21980
21981 2006-10-25  Chris Toshok  <toshok@ximian.com>
21982
21983         * PropertyGridView.cs:
21984
21985         - ensure the selected grid item is visible in the scrolled area,
21986         fixes bug #79572.
21987
21988         - fix Keys.Down handling when you're on the last item in the
21989         propertygrid.
21990
21991 2006-10-25  Mike Kestner  <mkestner@novell.com>
21992
21993         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
21994         clicks too.  Fixes #79725.
21995
21996 2006-10-24  Chris Toshok  <toshok@ximian.com>
21997
21998         * PropertyGrid.cs: use property.Converter instead of
21999         TypeDescriptor.GetConverter(property.PropertyType), so we catch
22000         TypeConverters declared on the property as well as on the
22001         PropertyType.  Fixes bug #79678.
22002
22003 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
22004
22005         * MimeIcon.cs, Mime.cs:
22006           Fallback to the default platform handler if no shared mime info
22007           stuff exists (fixes #79693).
22008
22009 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
22010         * ContainerControl.cs: Incorrect contains check in ActiveControl 
22011         from previous fix (duh).
22012
22013 2006-10-20  Chris Toshok  <toshok@ximian.com>
22014
22015         * PropertyGridView.cs: the dropdown should be MIN(number of items
22016         in list, 15).  Fixes #79551.
22017
22018 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
22019         Fixes #79384, #79394, #79652, #79667
22020         * Application.cs: 
22021         
22022         - Modal windows are now destroyed in the proper order for windows
22023         
22024         * ContainerControl.cs:
22025         
22026         - ActiveControl setter has more conditions on when to return:
22027                 - if we're reselecting the active control, but it actually
22028                 didn't have focus (window hidden or some such), it runs
22029                 - if the active control being selected doesn't actually 
22030                 exist in the container, it returns
22031         
22032         * Form.cs
22033         
22034         - The ShowDialog now gets the current form as the owner when
22035         invoking without parameters, and correctly activates the owner 
22036         when returning
22037         
22038         * MessageBox.cs
22039         
22040         - MessageBox now catches the Escape key to exit
22041
22042 2006-10-20  Chris Toshok  <toshok@ximian.com>
22043
22044         * PropertyGridView.cs: fix a number of issues (bug #78565, and
22045         most of bug #79676):
22046
22047         - you can navigate around the property grid with the arrow keys.
22048
22049         - the dropdown is sized properly when the pg has a vertical
22050         scrollbar.
22051
22052         - fix the indentation for subentries, and properly select the
22053         entire label rect.
22054
22055         - fix the gray bar's drawing (only draw it to the last element,
22056         not for the height of the control.  Also make sure we draw that
22057         last horizontal grid line.
22058
22059         - use the same mechanism the datagrid uses wrt the editing textbox
22060         when scrolling/resizing/etc.  Namely, we hide it first, do the
22061         operation, then show it again (if it's still visible).
22062         
22063         - aggressively remove a lot of unnecessary refreshes (and also
22064         calls to Invalidate(). call more limited variants, and only redraw
22065         what we need.)
22066         
22067         * PropertyGrid.cs:
22068
22069         - when we're populating the merged collection, fill in the UI
22070         parent with either the passed in item, or the category item we
22071         create.
22072
22073         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
22074
22075         * GridItem.cs: drop some fully qualified names.
22076         
22077         * GridEntry.cs: add a "UIParent", which is basically the parent
22078         treenode.
22079
22080         * GridItemCollection.cs: add an IndexOf method.
22081
22082 2006-10-20  Mike Kestner  <mkestner@novell.com>
22083
22084         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
22085         a working win32 NC invalidation mechanism, we can't invalidate
22086         menus.  [Fixes #79705]
22087
22088 2006-10-20  Mike Kestner  <mkestner@novell.com>
22089
22090         * ListBox.cs : don't update the VScrollbar if the list is empty,
22091         just hide it.  [Fixes #79692]
22092
22093 2006-10-20  Jackson Harper  <jackson@ximian.com>
22094
22095         * RichTextBox.cs: Handle some special chars better, and don't skip
22096         the entire group when we encounter a special char that we don't
22097         handle correctly.
22098
22099 2006-10-18  Chris Toshok  <toshok@ximian.com>
22100
22101         * PropertyGridView.cs: address a number of issues from bug #79676,
22102         mostly of the cosmetic variety.
22103
22104         - The highlight rectangle for indented items not extends all the
22105         way to the left.
22106
22107         - Indented items aren't indented so much.
22108
22109         - the dropdown is properly sized width-wise if the pg has a
22110         vertical scrollbar.
22111
22112 2006-10-18  Chris Toshok  <toshok@ximian.com>
22113
22114         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
22115         systray stuff is rather convoluted to begin with.
22116
22117         systray icons are a single window for some reason (that I haven't
22118         figured out yet), and for them, client_window == whole_window.
22119         Given the way the tests are structured elsewhere to determine
22120         which paints are pending (client vs. nc), that situation will
22121         always yield PAINT, not NCPAINT.  So, if we have a pending
22122         nc_expose and no pending expose, remove the hwnd from the paint
22123         queue, and also set nc_expose_pending to false, to keep us from
22124         blocking further expose's adding the hwnd to the paint queue.
22125
22126         phew.  like i said, a rather convoluted change.  Fixes the
22127         notifyicon repaint issues in bug #79645.
22128
22129 2006-10-18  Chris Toshok  <toshok@ximian.com>
22130
22131         * Form.cs: when getting the backcolor of the form, don't get
22132         base.BackColor, as this allows parents to influence the background
22133         color.  This breaks mdi forms.  Instead, if the background_color
22134         is empty, return the default.
22135
22136 2006-10-18  Chris Toshok  <toshok@ximian.com>
22137
22138         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
22139         to being private instead of internal static.
22140
22141         * Control.cs: remove all the stupid ParentWaitingOnRecreation
22142         crap, it wasn't working for more deeply nested controls anyway,
22143         and we already have the is_recreating flag - use that instead.
22144         Before calling DestroyHandle in RecreateHandle, recurse through
22145         the control tree setting it to true.  this returns the recreate
22146         code to much of its original simplicity, while now guaranteeing we
22147         actually recreate everything we're supposed to.  This change gets
22148         fyireporting actually showing mdi children.
22149
22150 2006-10-17  Chris Toshok  <toshok@ximian.com>
22151
22152         * Form.cs: remove some debug spew, and collapse some duplicate
22153         code at the end of SetClientSizeCore.
22154
22155         * XplatUIX11.cs: 
22156         - add some more debug spew here too wrt Destroy handling.
22157         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
22158         in Control's handling of WM_DESTROY.
22159         - Remove the handling of zombie window DestroyNotifies from the
22160         event loop - we don't need it.  Now the only DestroyNotifies we
22161         actually handle are ones generated by X.
22162         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
22163         match gtk's (functioning) handling of this. This keep metacity
22164         from leaving droppings in the form of wm borders with no window
22165         contents all over the place.
22166
22167         * Control.cs:
22168         - add a bunch of debug spew wrt control recreation.
22169         - fix a bug where we weren't tracking Visible properly on
22170         recreated hwnds.
22171         - fixed the WM_PAINT double buffer handling to support re-entrant
22172         calls (yes, i know it's gross, but it's happening to us).
22173
22174 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22175         * ThemeWin32Classic.cs: changed drawing of selected days
22176         to make them look better.
22177
22178 2006-10-16  Chris Toshok  <toshok@ximian.com>
22179
22180         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
22181         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
22182
22183         * XplatUIX11.cs: move away from using hwnd.client_dc and
22184         hwnd.non_client_dc and on to a stack of dc's (and in window's
22185         case, PAINTSTRUCT's), so we can deal with nested Paint calls
22186         without puking or not disposing of Graphics objects.
22187
22188         * XplatUIOSX.cs: same.
22189
22190         * XplatUIWin32.cs: same.
22191
22192 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
22193
22194         * FileDialog.cs: Don't call on_directory_changed inside
22195           OnSelectedIndexChanged (it changes the SelectedIndex too).
22196           Instead move it to OnSelectionChangeCommitted.
22197
22198 2006-10-13  Chris Toshok  <toshok@ximian.com>
22199
22200         * XplatUIX11.cs: more Destroy work.  the current code does the
22201         following things, in order:
22202
22203         1. Enumerates all handles of all controls at or below the one
22204         being destroyed, in pre-order.  As it is doing this, it marks the
22205         handles as zombie and clears all references to them.
22206         
22207         2. calls XDestroyWindow on the window passed in.
22208
22209         3. SendMessage's WM_DESTROY to all he handles in the accumulated
22210         list.
22211
22212 2006-10-13  Chris Toshok  <toshok@ximian.com>
22213
22214         * XplatUIX11.cs: set hwnd.zombie to true before calling
22215         SendMessage (WM_DESTROY).  this keeps us from marking the new
22216         window a zombie, and also keeps us from calling sendmessage at
22217         all.
22218
22219 2006-10-13  Jackson Harper  <jackson@ximian.com>
22220
22221         * TextControl.cs: Do not show the caret and selection at the same
22222         time.  Reduces ugliness by 35%.
22223
22224 2006-10-13  Chris Toshok  <toshok@ximian.com>
22225
22226         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
22227         zombie after we do the recursive call, so we actually do call
22228         SendMessage on the children controls.
22229         (GetMessage): if we find a pending paint event for a zombie hwnd,
22230         remove the hwnd from the paint queue, or else it will always be
22231         there (and we'll effectively loop infinitely)
22232
22233 2006-10-13  Mike Kestner  <mkestner@novell.com>
22234
22235         * MenuItem.cs : add Selected format under keynav too.
22236         Fixes #79528.
22237
22238 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
22239
22240         * PropertyGrid.cs: Fixed some NRE's and small difference between our
22241         implementation and that of MS.
22242
22243 2006-10-13  Chris Toshok  <toshok@ximian.com>
22244
22245         * Control.cs (OnInvalidated) only futz with the invalid_region if
22246         the control is double buffered.  this fixes the apparent hang in
22247         the ListView unit tests.  Someone needs to make the
22248         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
22249
22250 2006-10-13  Chris Toshok  <toshok@ximian.com>
22251
22252         * PropertyGridView.cs:
22253
22254         - do a little refactoring so that only one place calls
22255         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
22256         else call that.  Also make it Refresh, since there are redraw bugs
22257         otherwise (we should take a look at that...)
22258
22259         - do a little more refactoring work to share the body of code
22260         involved with the drop down.  it was duplicated in the code
22261         dealing with the listbox handling and in the code dealing with the
22262         UITypeEditors.
22263
22264         - add a Capture to the dropdown form's control once it's
22265         displayed, and add a MouseDown handler that checks to make sure
22266         the position is inside the control.  If it's not, close the
22267         dropdown.  This fixes #78190.
22268
22269         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
22270         if the value is different than the initial value.
22271         
22272 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
22273
22274         * Control.cs: see #78650
22275         - Fixed GetNextControl for several cases:
22276                 - Changed FindFlatForward to return 
22277                 correct sibling control when more than one
22278                 control has same TabIndex as the currently 
22279                 focused one.
22280                 - Changed FindFlatBackward to loop children
22281                 from last to first and apply same logic as in
22282                 FindFlatForward
22283                 - Changed FindControlForward to search for
22284                 children when control is not a container
22285                 but has children, or search for siblings if
22286                 control is a container...
22287                 - Changed FindControlBackward   to continue
22288                 searching for child controls when hitting 
22289                 Panel-like parents
22290                 
22291         - Fixed Focus method to update ActiveControl
22292         (FocusTest.FocusSetsActive failure)
22293         
22294         * TabControl.cs:
22295         - Focus rectangle now refreshes when gaining
22296         or losing focus
22297         - Removed grab for Tab key on IsInputKey that 
22298         was keeping tab navigation from working (#78650)
22299
22300 2006-10-13  Chris Toshok  <toshok@ximian.com>
22301
22302         * PropertyGridView.cs:
22303         - Rewrite SetPropertyValue to loop over SelectedGridItem's
22304         SelectedObjects.
22305
22306         - Deal with GridItem.Value == null a few places.
22307
22308         * PropertyGrid.cs: 
22309         - replace the PopulateGridItemCollection with a pair of methods
22310         which compute the intersection of all the properties in the
22311         SelectedObjects array.  Fixes #79615.
22312
22313         - Throw ArgumentException from set_SelectedObjects if there's a
22314         null in the array.
22315
22316         - Add GetTarget method which can be used to traverse up the
22317         GridItem.Parent chain.  It depends on the assumption that
22318         selected_objects for different GridEntries are always in the same
22319         order (a safe assumption).  Use this method and loop over all the
22320         selected objects in the entry when calling RemoveValueChanged and
22321         AddValueChanged.
22322         
22323         * GridEntry.cs: Make this handle multiple selected objects.
22324         .Value returns null if not all the selected objects share the same
22325         value.
22326
22327 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
22328         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
22329           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
22330           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
22331           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
22332           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
22333         add additional functionality.
22334
22335 2006-10-12  Mike Kestner  <mkestner@novell.com>
22336
22337         * ErrorProvider.cs : new ToolTipWindow ctor sig.
22338         * HelpProvider.cs : new ToolTipWindow ctor sig.
22339         * ToolTip.cs : remove ToolTip param from Window sig since it is
22340         not used.
22341         * ToolBar.cs : add tooltip support.  Fixes #79565.
22342
22343 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22344
22345         * ComboBox.cs: move the events in set_SelectedIndex to 
22346         after the call to HighlightIndex in order to avoid 
22347         possible recursion and subsequent problems with the call
22348         to HighlightIndex and include a range check in 
22349         set_HighlightIndex. Fixes #79588
22350         
22351 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22352
22353         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
22354         to ui thread's settings instead of sunday. 
22355         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
22356
22357 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22358
22359         * DateTimePicker.cs
22360         * MonthCalendar.cs
22361         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
22362         and implement missing functionality (selecting different parts 
22363         of the date and edit them individually with the keyboard).
22364         
22365 2006-10-11  Chris Toshok  <toshok@ximian.com>
22366
22367         * Control.cs (OnInvalidated): fix NRE relating to last change.
22368
22369 2006-10-11  Chris Toshok  <toshok@ximian.com>
22370
22371         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
22372         atoms in _NET_WM_STATE here if the window is maximized.  We need
22373         to do this because we're *replacing* the existing _NET_WM_STATE
22374         property, so those atoms will be lost otherwise, and any further
22375         call to GetWindowState will return Normal for a window which is
22376         actually maximized.  Fixes #79338.
22377
22378 2006-10-11  Jackson Harper  <jackson@ximian.com>
22379
22380         * TextControl.cs: Special case for setting selection end to
22381         selection start, we basically kill the anchor.
22382         - some todo comments.
22383
22384 2006-10-11  Chris Toshok  <toshok@ximian.com>
22385
22386         * Control.cs: switch to using an "invalid_region" to track which
22387         parts of the image buffer need updating.  This is more code than
22388         the simple fix from r66532.  That version just attempted to always
22389         fill the entire buffer on redraw, which turns out to be
22390         inefficient when invalidating small rectangles.  This version
22391         simply adds the invalid rectangle to the invalid region.  When we
22392         get any WM_PAINT message we see if it can be filled using the
22393         image buffer, and if it can't (if the paint event's clip rectangle
22394         is visible in the invalid region) we first fill the image buffer.
22395         So, the image buffer is still a cache, we just fill it lazily.
22396
22397         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
22398         need it any longer.
22399
22400 2006-10-11  Chris Toshok  <toshok@ximian.com>
22401
22402         * XplatUIX11.cs (SetWindowPos): we need to update both position as
22403         well as size after calling XMoveResizeWindow.  This keeps us from
22404         ignoring future SetWindowPos calls.  Fixes the disappearing
22405         DateTimePicker in the ToolBarDockExample from bug #72499.
22406
22407 2006-10-11  Chris Toshok  <toshok@ximian.com>
22408
22409         * TextBoxBase.cs: reorder things a bit when it comes to
22410         resizing-causing-recalculation.  we were recalculating the
22411         document when our position was changed, which shouldn't happen.
22412         We only care about size changes.  Clear up some more redundant
22413         recalculation calls while I'm at it.  This makes the toolbar dock
22414         example snappy when you're just dragging toolbars around (since it
22415         causes a relayout whenever you move one.)
22416
22417 2006-10-11  Chris Toshok  <toshok@ximian.com>
22418
22419         * ToolBarButton.cs (get_Rectangle): this only returns
22420         Rectangle.Empty if Visible == false, or Parent == null.
22421         Parent.Visible doesn't matter.
22422
22423 2006-10-10  Chris Toshok  <toshok@ximian.com>
22424
22425         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
22426         by .net 1.1, so switch to an internal method instead.
22427
22428 2006-10-10  Chris Toshok  <toshok@ximian.com>
22429
22430         * Control.cs (WM_PAINT): when a control is double buffered we draw
22431         initially to the ImageBuffer and then copy from there.  But when a
22432         parent control which has child controls is double buffered, the
22433         initial drawing doesn't encompass the entire ClientRectangle of
22434         the parent control, so we end up with uninitialized bits (this is
22435         easily seen by dragging the top toolbar in
22436         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
22437         manually set the ClipRectangle of the paint_event (only the one we
22438         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
22439         of the nastiness in bug #72499.
22440
22441         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
22442         which we use in Control.cs's WM_PAINT handling.
22443
22444 2006-10-10  Jackson Harper  <jackson@ximian.com>
22445
22446         * TextBoxBase.cs: Finish off the autoscrolling stuff.
22447
22448 2006-10-10  Chris Toshok  <toshok@ximian.com>
22449
22450         * Cursor.cs: Apply a slightly different patch to the one suggested
22451         in #79609.
22452
22453 2006-10-10  Jackson Harper  <jackson@ximian.com>
22454
22455         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
22456         not the parent form.
22457         * TextControl.cs: use difference in old line count vs new count to
22458         calculate how many lines were added, this takes into account soft
22459         line breaks properly.
22460
22461 2006-10-10  Chris Toshok  <toshok@ximian.com>
22462
22463         * LinkLabel.cs: don't call MeasureCharacterRanges against a
22464         rectangle located at 0,0 and the size of the text.  Use
22465         ClientRectangle instead.  This fixes rendering of non-left aligned
22466         link labels.
22467
22468 2006-10-10  Jackson Harper  <jackson@ximian.com>
22469
22470         * TextBoxBase.cs: When we set the selection start position the
22471         caret.
22472         * TextControl.cs: Need to update the caret when we decrement it to
22473         zero.
22474         - Make sure that the selection_visible flag gets reset to false if
22475         the selection isn't visible.  Before this you could get it set to
22476         visible by changing the selection start, then changing the end to
22477         equal the start.
22478
22479 2006-10-09  Jackson Harper  <jackson@ximian.com>
22480
22481         * TreeView.cs: Don't update scrollbars when we aren't visible.
22482         * TreeNodeCollection.cs: Only need to update scrollbars if being
22483         added to an expanded visible node or the root node.
22484
22485 2006-10-09  Chris Toshok  <toshok@ximian.com>
22486
22487         * XplatUIX11.cs (SendMessage): fix NRE.
22488
22489 2006-10-09  Jackson Harper  <jackson@ximian.com>
22490
22491         * TextBoxBase.cs: Implement horizontal autoscrolling.
22492         * TextControl.cs: Add a movement types that allows moving forward
22493         and backwards without wrapping.
22494
22495 2006-10-09  Mike Kestner  <mkestner@novell.com>
22496
22497         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
22498         with focus "expansion" of labels.  Fixes #79532 and then some.
22499         * ThemeWin32Classic.cs : add LineLimit to ListView label format
22500         when wrapping.
22501
22502 2006-10-09  Jackson Harper  <jackson@ximian.com>
22503
22504         * TextBoxBase.cs: Set the default max values to MaxValue since
22505         we use the scrollbar for autoscrolling and the default value is
22506         100.  If we don't do this the caret won't keep up with typing
22507         after about 18 characters.
22508         * TextControl.cs: Make sure the selection is offset by the
22509         viewport x.  This fixes selection when using auto scrolling.
22510
22511 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
22512         
22513         * Form.cs: The active control should be selected after the 
22514         OnLoad so that any child control initialization that affects
22515         the selection is done. Fixes #79406
22516
22517 2006-10-06  Chris Toshok  <toshok@ximian.com>
22518
22519         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
22520         to have no evil effects.
22521
22522         - Stop selecting StructureNotifyMask on non-toplevel windows.
22523
22524           The only way children should be resized is by using the SWF api,
22525           and we already send WM_WINDOWPOSCHANGED messages in those cases.
22526           Toplevel windows can be interacted with via the window manager,
22527           and so we keep the input mask there.
22528
22529           The other event StructureNotifyMask gives us (that we care
22530           about) is DestroyNotify.  The code is already structured such
22531           that it assumes we won't be getting a DestroyNotify event for
22532           the window we pass to XDestroyWindow (which is what
22533           StructureNotifyMask is supposed to guarantee.)  So, that code
22534           shouldn't be affected by this either.
22535
22536         - Stop selecting VisibilityChangeMask altogether.
22537
22538           We weren't doing anything with the resulting events anyway.
22539         
22540         This vastly reduces the number of X requests and events we see
22541         when resizing/laying out a large ui.
22542
22543 2006-10-06  Chris Toshok  <toshok@ximian.com>
22544
22545         * ScrollableControl.cs (DisplayRectangle): we need to take into
22546         account the DockPadding regardless of whether or not auto_scroll
22547         == true.  rework this slightly to this effect, and fix bug #79606,
22548         and part of #72499 (you can now see the drag handles and drag
22549         toolbars around).
22550
22551 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
22552
22553         * ListViewItem.cs: Collections of selected and checked items are now
22554         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
22555         we mark the collection "dirty".
22556         * ListView.cs: Marked collections readonly. Modified UpdateSelection
22557         to only clear SelectedItems when a new item is selected and MultiSelect
22558         is enabled. CheckedItems and SelectedItems now subscribe to Changed
22559         event of ListViewItemCollection, and mark its list dirty whenever
22560         that event is fire. This allows us to return selected/checked items 
22561         in the same order as they are in the Items collection. This matches
22562         the MS behavior.
22563
22564 2006-10-06  Chris Toshok  <toshok@ximian.com>
22565
22566         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
22567         right mouse clicks.  Fixes bug #79593.
22568
22569 2006-10-06  Chris Toshok  <toshok@ximian.com>
22570
22571         * Splitter.cs: doh, fix splitters that don't want to cancel the
22572         movement when you drag them.  Also, impose the limits on the
22573         values we send to the SplitterMovingEvent.  Fixes #79598.
22574
22575 2006-10-06  Jackson Harper  <jackson@ximian.com>
22576
22577         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
22578         since we use this for auto scrolling also.
22579
22580 2006-10-05  Chris Toshok  <toshok@ximian.com>
22581
22582         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
22583         beginning to think that most datagrid column types don't need this
22584         method.  Fixes bug #79392.
22585
22586 2006-10-05  Chris Toshok  <toshok@ximian.com>
22587
22588         * DataGrid.cs: move back to a more lazy scheme for creating the
22589         CurrencyManager, so we aren't updating it every time you set
22590         either DataSource or DataMember.  Also, don't call
22591         RecreateDataGridRows if the currency manager hasn't changed.
22592
22593 2006-10-05  Chris Toshok  <toshok@ximian.com>
22594
22595         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
22596         emitted, SelectedIndex should already be updated.  Fixes bug
22597         #78929.
22598
22599 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
22600
22601         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
22602           ToolStripTextBox.cs: Initial commit.
22603         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
22604
22605 2006-10-05  Jackson Harper  <jackson@ximian.com>
22606
22607         * TabControl.cs: We need to invalidate the tab control area when
22608         new ones are added (duh).
22609
22610 2006-10-03  Chris Toshok  <toshok@ximian.com>
22611
22612         * Form.cs (ProcessDialogKey): if the focused control is in this
22613         form and is a button, call its PerformClick method here.  Fixes
22614         #79534.
22615
22616 2006-10-04  Jackson Harper  <jackson@ximian.com>
22617
22618         * TabPage.cs: Ignore setting of Visible, and add an internal
22619         method for setting the controls visibility.  TabPage's Visible
22620         property is a little strange on MS, this seems to make us
22621         compatible, and fixes cases where people set all the tab pages to
22622         visible.
22623         * TabControl.cs: Use the new internal setting on tab pages
22624         visibility.
22625
22626 2006-10-03  Mike Kestner  <mkestner@novell.com>
22627
22628         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
22629
22630 2006-10-03  Mike Kestner  <mkestner@novell.com>
22631
22632         * ListView.cs : use is_visible instead of Visible to check if 
22633         scrollbars should be placed/sized.  Also some max_wrap_width
22634         love for LargeIcon view.  [Fixes #79533]
22635
22636 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
22637
22638         * TextControl.cs :
22639           Make set_TextAlign() do actually update the align. Fixed #78403.
22640
22641 2006-10-03  Chris Toshok  <toshok@ximian.com>
22642
22643         * DataGrid.cs: fix a crash when switching datasources if the
22644         vertical scrollbar is at someplace other than Value = 0.  Also,
22645         reduce the number of recalculation passes we do in SetDataSource
22646         from 2 to 1.
22647
22648 2006-10-03  Jackson Harper  <jackson@ximian.com>
22649
22650         * TextBoxBase.cs: Move the if value the same bail check up, we
22651         don't want to empty the document if it is already empty, this
22652         seems to severly mess up the caret.  TODO: I should probably fix
22653         the empty statement to update teh caret somehow.
22654
22655 2006-10-03  Chris Toshok  <toshok@ximian.com>
22656
22657         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
22658         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
22659         reflection, an internal row type, properties on said type, etc.)
22660         will work with our datagrid.  Fixes #79531.
22661
22662 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
22663
22664         * FileDialog.cs: Don't crash if a path is not accessible
22665           (System.UnauthorizedAccessException). Fixes #79569.
22666         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
22667           a ':' too. Return unknown icon for those paths/files.
22668
22669 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
22670
22671         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
22672         GetContainerControl returns null.
22673
22674 2006-10-02  Chris Toshok  <toshok@ximian.com>
22675
22676         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
22677         call to XGetWindowAttributes instead of "handle".  fixes an X
22678         error using notifyicon after the NotifyIconWindow to Form base
22679         class switch.
22680
22681 2006-10-02  Chris Toshok  <toshok@ximian.com>
22682
22683         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
22684         server grab and looping we need to do to get down to the most
22685         deeply nested child window.
22686         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
22687         QueryPointer again after the WarpPointer so we can generate a
22688         proper (fake) MotionNotify event to be enqueued in the destination
22689         window's queue.
22690         (GetCursorPos): call QueryPointer.
22691
22692         Fixes #79556.
22693
22694 2006-10-02  Jackson Harper  <jackson@ximian.com>
22695
22696         * NotifyIcon.cs: Derive the notify icon from a form, so things
22697         like FindForm work on it.
22698         - Swallow the WM_CONTEXTMENU message, since that is generated on
22699         mouse down, and context menu is a mouse up kinda guy.  I believe
22700         the correct fix here is probably to make the notify icon entirely
22701         NC area, but this seems to work fine for anyone not manipulating
22702         WndProc.
22703
22704 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
22705
22706         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
22707           ToolStripItemCollection.cs, ToolStripLabel.cs,
22708           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
22709           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
22710           Initial implementation.
22711         * TextRenderer.cs: Provide padding to MeasureText.
22712
22713 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
22714
22715         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
22716         of ButtonBaseAccessibleObject. Fix bug #79552.
22717
22718 2006-10-02  Jackson Harper  <jackson@ximian.com>
22719
22720         * MdiWindowManager.cs: When maximizing use the containers client
22721         rect, not it's bounds, so nc area is accounted correctly.
22722         - Use the parent form's size for the menu position, since the
22723         client isn't always the full form size.
22724
22725 2006-10-01  Chris Toshok  <toshok@ximian.com>
22726
22727         * ScrollableControl.cs: make sure neither right_edge or
22728         bottom_edge are < 0, since they're used as LargeChange for the
22729         horiz/vert scrollbars respectively.  Fixes #79539.
22730
22731 2006-10-01  Chris Toshok  <toshok@ximian.com>
22732
22733         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
22734         the xplatuix11 code can cause us to destroy/recreate our handle.
22735
22736         * XplatUIX11.cs
22737         (SystrayAdd):
22738         - this code can be invoked many times for the same Hwnd.  Make
22739           sure we only destroy the client window once (the first time this
22740           method is called).  This fixes bug #79544.
22741         - Remove the call to the improperly bound XSync.  why we had two
22742           bindings to this, I will never know, but this call resulted in
22743           events being discarded from the queue(!).
22744         - correct a misunderstanding of _XEMBED_INFO - the second atom is
22745           not our current state but the state we wish to be in.  So, 0 if
22746           we don't want to be mapped.  Change it to 1.
22747         (SystrayRemove): The XEMBED spec makes mention of the fact that
22748         gtk doesn't support the reparent of client windows away from the
22749         embedder.  Looking at gtksocket-x11.c seems to agree with this.
22750         The only avenue we have for removing systray icons is to destroy
22751         them.  We don't want the handle to go away for good, though, so
22752         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
22753         #79545.
22754         
22755 2006-10-01  Chris Toshok  <toshok@ximian.com>
22756
22757         * Form.cs (WndProc): inline the native_enabled variable usage into
22758         the cases in which it's used.  Fixes #79536.
22759
22760 2006-09-29  Mike Kestner  <mkestner@novell.com>
22761
22762         * ListView.cs : toggle the selection state for ctrl clicks in 
22763         multiselect mode. [Fixes #79417]
22764
22765 2006-09-29  Mike Kestner  <mkestner@novell.com>
22766
22767         * ListView.cs : kill CanMultiSelect and refactor the selection
22768         code to support multiselection in the absence of mod keys. Steal
22769         arrow/home/end keys by overriding InternalPreProcessMessage to
22770         restore regressed keynav behavior.
22771         [Fixes #79416]
22772
22773 2006-09-29  Jackson Harper  <jackson@ximian.com>
22774
22775         * MdiClient.cs: Repaint the titlebars when the active window is
22776         changed.
22777
22778 2006-09-29  Chris Toshok  <toshok@ximian.com>
22779
22780         * Application.cs: when entering a runloop with a modal, make sure
22781         the hwnd is enabled.  Fixes #79480.
22782
22783 2006-09-29  Chris Toshok  <toshok@ximian.com>
22784
22785         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
22786         when ListManager.CanAddRows == false, bump us back one.
22787
22788         * DataGridColumnStyle.cs (ParentReadOnly): remove the
22789         listmanager.CanAddRows check.  This makes ArrayLists uneditable
22790         using a datagrid, which is not right.
22791         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
22792         is an IEditable, but call property_descriptor.SetValue regardless.
22793         fixes #79435.
22794
22795 2006-09-29  Chris Toshok  <toshok@ximian.com>
22796
22797         * DataGridBoolColumn.cs: we need to test equality in the face of
22798         possible null values (as is the case with the default NullValue).
22799         This patch keeps us from crashing in that case.
22800
22801 2006-09-29  Jackson Harper  <jackson@ximian.com>
22802
22803         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
22804         here, since it will get called for every node collection in the
22805         tree. This is now done in the treeview once the sorting is
22806         finished.
22807         * TreeView.cs: Recalculate the visible order, and update the
22808         scrollbars after sorting, set the top nope to the root so that the
22809         recalc actually works.
22810
22811 2006-09-29  Chris Toshok  <toshok@ximian.com>
22812
22813         * LinkLabel.cs: more handling of the default link collection in
22814         the face of LinkArea manipulation.  The default link collection
22815         contains 1 element (start=0,length=-1).  If the user sets LinkArea
22816         to anything and the links collection is the default, clear it.
22817         Then only add the link if its nonempty.  Fixes #79518.
22818
22819 2006-09-29  Chris Toshok  <toshok@ximian.com>
22820
22821         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
22822         piece correctly when we hit a '\n'.  Fixes #79517.
22823
22824 2006-09-29  Chris Toshok  <toshok@ximian.com>
22825
22826         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
22827         change the binding of gdk_init_check to take two IntPtr's, and
22828         pass IntPtr.Zero for both of them.  Fixes #79520.
22829
22830 2006-09-29  Mike Kestner  <mkestner@novell.com>
22831
22832         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
22833         [Fixes #78779]
22834
22835 2006-09-28  Jackson Harper  <jackson@ximian.com>
22836
22837         * XplatUIX11.cs: When translating NC messages make sure we go from
22838         whole window to screen, not client window to screen.
22839         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
22840         method doesn't exist
22841         - Skip over controls that aren't forms when arranging.
22842
22843 2006-09-28  Jackson Harper  <jackson@ximian.com>
22844
22845         * XplatUIWin32.cs: Clip the rect to the parent window.
22846         * XplatUIStructs.cs: Add clipping modes struct.
22847         * InternalWindowManager.cs: New private method that factors title
22848         bar heights in when calculating the pos of an NC mouse message.
22849         - Use SendMessage to force a paint when the form's size is changed
22850         instead of painting the decorations immediately.
22851         - Don't let the NC button click messages get to DefWndProc,
22852         because they will attempt to handle windowing themself, and this
22853         messes up z-order (it will put them in front of the scrollbars).
22854         * XplatUIX11.cs: Make sure that we don't reset window managers if
22855         we already have one (ie the window is an MDI window).
22856
22857 2006-09-28  Chris Toshok  <toshok@ximian.com>
22858
22859         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
22860         menu code really needs going over.
22861
22862 2006-09-27  Chris Toshok  <toshok@ximian.com>
22863
22864         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
22865         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
22866         window is maximizable.  So, we need to make sure that even if we
22867         clear the border/wm frame of those functions, they're still
22868         available (basically, we remove the decoration without removing
22869         the function).  Half the fix for #79338.
22870
22871 2006-09-27  Chris Toshok  <toshok@ximian.com>
22872
22873         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
22874         Fixes bug #79515.
22875
22876 2006-09-27  Chris Toshok  <toshok@ximian.com>
22877
22878         * Splitter.cs: reorder things a bit so that we don't actually
22879         draw/move the splitter until after calling OnSplitterMoving.  This
22880         lets users cancel/disallow the movement by explicitly setting
22881         event.SplitX/SplitY.  Fixes #79372.
22882
22883 2006-09-27  Jackson Harper  <jackson@ximian.com>
22884
22885         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
22886         because it is most likely on a window being destroyed, and that
22887         will give us an X11 error.
22888
22889 2006-09-27  Chris Toshok  <toshok@ximian.com>
22890
22891         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
22892         the dropdown button now toggles between showing and hiding the
22893         dropdown.  Also, get rid of dropdown_form_showing and just use
22894         dropdown_form.Visible.  We still don't do a grab, but I'll leave
22895         that part to someone who has handled Capture-fu before.
22896
22897 2006-09-27  Chris Toshok  <toshok@ximian.com>
22898
22899         * DataGrid.cs: return false if alt isn't pressed when '0' is
22900         pressed.  this keeps the '0' key from being swallowed, and fixes
22901         bug #79350.
22902
22903 2006-09-27  Chris Toshok  <toshok@ximian.com>
22904
22905         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
22906         Calling Refresh (in response to a scrollbar event) screws up the
22907         scrollbar painting.  Fixes bug #78923.
22908
22909 2006-09-27  Chris Toshok  <toshok@ximian.com>
22910
22911         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
22912         then insert into hashtable" blocks threadsafe.
22913
22914 2006-09-27  Chris Toshok  <toshok@ximian.com>
22915
22916         * MessageBox.cs (CreateParams): the styles should be |'ed with our
22917         baseclass's, since otherwise the
22918         ControlBox/MinimizeBox/MaximizeBox assignments above have no
22919         effect.  This gets the close button back in messageboxes.
22920
22921 2006-09-27  Chris Toshok  <toshok@ximian.com>
22922
22923         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
22924         flag, not just != 0.  this makes flags that are actually multiple
22925         bits (like WS_CAPTION) work.  fixes bug #79508.
22926
22927 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
22928
22929         * PageSetupDialog.cs: add support for getting and settings the 
22930         paper size, source and orientation.
22931
22932 2006-09-26  Chris Toshok  <toshok@ximian.com>
22933
22934         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
22935         and caption == "", we need to remove the resize handles as well as
22936         the title bar.
22937
22938         * Control.cs (set_Text): turns out that setting Text on a form
22939         should change the WM styles on the window, since if ControlBox ==
22940         false, the only way to get a window border is to have a non-""
22941         Text property.  check winforms/forms/text.cs for an example.  so,
22942         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
22943         update both window styles and title.  This fixes a lot of dialogs
22944         (including the preferences dialog in MonoCalendar.)
22945
22946 2006-09-26  Chris Toshok  <toshok@ximian.com>
22947
22948         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
22949         control isn't a Form), call Win32ShowWindow to hide the window,
22950         but don't update the control Visible property.  When we reparent
22951         back to a parent control, call SetVisible in order for the
22952         window's visibility to be reinstated.
22953
22954         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
22955         the FosterParent.
22956
22957         * Control.cs (ControlCollection.Remove): remove that value.Hide()
22958         call for good, since it breaks MonoCalendar (and other things I'm
22959         sure.) Also, set all_controls to null *after* the owner calls,
22960         which end up regenerating it.
22961         (ChangeParent): allow new_parent to be == null, passing
22962         IntPtr.Zero down to XplatUI.
22963
22964         this fixes #79294 the right way.
22965
22966 2006-09-26  Mike Kestner  <mkestner@novell.com>
22967
22968         * GridEntry.cs : internal SetParent method.
22969         * PropertyGrid.cs : attach to property changed on the proper
22970         target if we have a hierarchical grid with subobjects. Setup
22971         GridItem.Parent for hierarchical items.
22972         * PropertyGridView.cs : Set value on the correct target for
22973         hierarchical grids. [Fixes #78903]
22974
22975 2006-09-26  Chris Toshok  <toshok@ximian.com>
22976
22977         * Control.cs (ChildNeedsRecreating): this should return true if
22978         either we're being recreated and the child is in our list, or our
22979         parent is waiting for our recreation.
22980
22981 2006-09-26  Chris Toshok  <toshok@ximian.com>
22982
22983         * Control.cs (ControlCollection.Remove): reinstate the
22984         value.Hide() call as suggested in bug #79294.
22985
22986 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
22987
22988         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
22989         coordinates (versus a relative move).
22990
22991 2006-09-26  Chris Toshok  <toshok@ximian.com>
22992
22993         * Control.cs: rework child recreation a little bit.  It turns out
22994         that we race between the DestroyNotify the WM_DESTROY message.  If
22995         the parent gets its DestroyNotify before the child gets the
22996         WM_DESTROY message, the child ends up not recreating (since the
22997         parent finishes its recreation on DestroyNotify, and the child
22998         checks ParentIsRecreating.)
22999
23000         So, instead we store off a list of all the child controls which
23001         need to be recreated when the parent control starts to recreate
23002         itself.  Then, when child controls get their WM_DESTROY message we
23003         check to see if they're in the parent's pending recreation list,
23004         and if so, we recreate.  This removes all dependency on ordering
23005         from the code and fixes the initial MonoCalendar upgrade dialog.
23006         
23007 2006-09-26  Jackson Harper  <jackson@ximian.com>
23008
23009         * TextControl.cs: Use the Line to get the length of the line,
23010         since soft line breaks can change the end line.
23011
23012 2006-09-26  Chris Toshok  <toshok@ximian.com>
23013
23014         * Control.cs (ControlCollection.AddImplicit): don't add the
23015         control again if it's already in one of our lists.  This keeps us
23016         from adding controls over and over again for comboboxes when their
23017         handle gets recreated (as the combobox adds implicit controls in
23018         OnHandleCreated).  Fixes the X11 errors in bug #79480.
23019
23020 2006-09-26  Jackson Harper  <jackson@ximian.com>
23021
23022         * TextControl.cs: When deleting characters make sure that any
23023         orphaned zero lengthed tags get deleted.
23024         - Fix ToString for zero lengthed tags.
23025
23026 2006-09-25  Jackson Harper  <jackson@ximian.com>
23027
23028         * TextControl.cs: When getting a tag at the location there can be
23029         multiple tags at the same spot, these are 0-lengthed tags that
23030         appear when extra formatting has been stuck in a location.  We
23031         need to pull out the last of these 0 lengthed tags.
23032
23033 2006-09-25  Jackson Harper  <jackson@ximian.com>
23034
23035         * TextControl.cs: Fix print out in debug method.
23036         * TextBoxBase.cs: When text is set bail if we are setting to the
23037         previous value.
23038         
23039 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
23040
23041         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
23042           It is now possible to change the selected index in a FontXXXListBox
23043           with the up and down arrow keys from the FontXXXTextBoxes.
23044           Also, send the FontXXXTextBox mouse wheel event to the corresponding
23045           FontXXXListBoxes to match ms.
23046
23047 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
23048
23049         * SystemInformation.cs: Return a clone of the theme's MenuFont because
23050         anyone can dispose it, anytime. All other properties returns enums, 
23051         structs or basic types so they don't need such tricks.
23052
23053 2006-09-22  Jackson Harper  <jackson@ximian.com>
23054
23055         * XplatUI.cs:
23056         * XplatUIWin32.cs:
23057         * Clipboard.cs:
23058         * DataFormats.cs:
23059         * XplatUIOSX.cs:
23060         * XplatUIDriver.cs: Update interface to add a primary selection
23061         flag, so the driver can use the primary selection buffer if
23062         needed.
23063         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
23064
23065         * RichTextBox.cs: We need to supply the data object to paste now
23066         (so we can choose to supply CLIPBOARD or PRIMARY).
23067         * TextBoxBase.cs: Supply data object to paste (see above).
23068         - Middle click uses the primary selection data object.
23069         
23070 2006-09-21  Chris Toshok  <toshok@ximian.com>
23071
23072         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
23073         of SetWMStyles.  It's still a rat's nest and is largely
23074         order-dependent which I dislike immensely.  This also fixes the X
23075         button disappearing from toplevel forms.
23076
23077 2006-09-21  Mike Kestner <mkestner@novell.com>
23078
23079         * ListBox.cs: move Jordi's click/dblclick raising code to the
23080         mouse up handler.
23081
23082 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
23083
23084         * ListBox.cs: Fixes 79450
23085
23086 2006-09-21  Mike Kestner <mkestner@novell.com>
23087
23088         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
23089         to deal with people updating the TreeNodeCollection after the tree
23090         is disposed.  "Fixes" 79330.
23091
23092 2006-09-20  Jackson Harper <jackson@ximian.com>
23093
23094         * TextControl.cs: Push the cursor record onto the undo stack
23095         before the delete action. This fixes 78651.
23096
23097 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
23098
23099         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
23100         CreateParams. Fixes 79329.
23101
23102 2006-09-19  Chris Toshok  <toshok@ximian.com>
23103
23104         * XplatUIX11.cs: a couple of blanket code massage passes to clean
23105         things up a bit.  First, get rid of the NetAtoms array (and the NA
23106         enum), and just embed the atoms as static fields.  Also, add a
23107         couple of functions (StyleSet and ExStyleSet) to clean up all the
23108         bitmask testing of styles.
23109
23110         * X11Structs.cs: remove the NA enum, not needed anymore.
23111         
23112 2006-09-19  Chris Toshok  <toshok@ximian.com>
23113
23114         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
23115         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
23116         added cleanup to get MessageBox titles appearing again, which were
23117         broken by my earlier fix for caption-less/ControlBox-less windows.
23118
23119 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
23120
23121         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
23122           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
23123           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
23124           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
23125           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
23126           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
23127           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
23128           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
23129           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
23130           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
23131           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
23132             Inital import.
23133         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
23134           ToolStripButton.cs: Stubs needed for above.
23135         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
23136
23137 2006-09-15  Chris Toshok  <toshok@ximian.com>
23138
23139         * XplatUIX11.cs:
23140         - make the MessageQueues hashtable Synchronized.
23141         
23142         - SendMessage: if the Hwnd is owned by a different thread, use the
23143         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
23144         thread.  Fixes bug #79201.
23145
23146 2006-09-15  Chris Toshok  <toshok@ximian.com>
23147
23148         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
23149         ControlBox == false, we disallow maximize/minimize/close.  If the
23150         form Caption is "" we also disallow move (and get rid of the Title
23151         decoration).  Unfortunately, regardless of how things are set,
23152         we're stuck with the Title and WM menu.
23153
23154 2006-09-15  Chris Toshok  <toshok@ximian.com>
23155
23156         * Application.cs: add locking around the static message_filters
23157         ArrayList, part of #79196.
23158
23159 2006-09-15  Chris Toshok  <toshok@ximian.com>
23160
23161         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
23162         Form.ControlBox == false, the window has no titlebar nor resize
23163         handles.  fixes bug #79368.
23164
23165 2006-09-15  Chris Toshok  <toshok@ximian.com>
23166
23167         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
23168         >= 0.  Fixes bug #79370.
23169
23170 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
23171         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
23172         * Control.cs:
23173             Add properties: LayoutEngine, Margin, DefaultMargin.
23174             Add method: GetPreferredSize.
23175             Move layout logic from PerformLayout to layout engines. 
23176
23177 2006-09-13  Chris Toshok  <toshok@ximian.com>
23178
23179         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
23180         fix for #79326 broke #78718, so this change addresses that.
23181
23182         - in SendWMDestroyMessages remove the call to
23183         CleanupCachedWindows, since we might be recreating the control and
23184         need to maintain the references to right Hwnd handles.  Also, set
23185         the zombie flag to true for each of the children in the hierarchy
23186         instead of calling hwnd.Dispose.  This will cause GetMessage to
23187         ignore all events for the window except for DestroyNotify.
23188
23189         - In GetMessage, ignore messages except for DestroyNotify for
23190         zombie hwnds.
23191         
23192         * Control.cs: revert the is_recreating fix from the last
23193         ChangeLog.  It's definitely "right", but it breaks switching from
23194         an MDI form to a non-MDI form.  Will need to revisit that.
23195
23196         * Hwnd.cs: add a zombie flag, which means "the
23197         client_window/whole_window handles are invalid, but we're waiting
23198         for the DestroyNotify event to come in for them".  Set the flag to
23199         false explicitly if setting WholeWindow/ClientWindow, and also
23200         when Disposing.
23201         
23202 2006-09-13  Chris Toshok  <toshok@ximian.com>
23203
23204         * XplatUIX11.cs: rework window destruction slightly.
23205
23206         - when destroying the windows associated with a control, we don't
23207         need 2 separate XDestroyWindow calls.  Just the one for the
23208         whole_window (or for client_window if whole_window is somehow
23209         IntPtr.Zero -- can this happen?) is enough.
23210
23211         - reworked SendWMDestroyMessages slightly, so we always dispose
23212         the child control hwnd's after sending the messages.
23213         
23214         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
23215         the two places it was used (one was even using hwnd.Handle and the
23216         other hwnd.client_window.  ugh), adding another call in
23217         SendWMDestroyMessages.  We need this new call because now the
23218         DestroyNotify events in the queue will be ignored for the child
23219         controls (as their hwnd's were disposed, and the window id's
23220         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
23221
23222         - this fixes bug #79326.
23223
23224 2006-09-13  Chris Toshok  <toshok@ximian.com>
23225
23226         * Control.cs: don't always set is_recreating to false at the end
23227         of RecreateHandle, since sometimes we're not done (and won't be
23228         until WndProc handles the WM_DESTROY message).  Also, set
23229         is_recreating to false in the WM_DESTROY handling code.  Part of
23230         the fix for bug #79326.
23231
23232 2006-09-13  Miguel de Icaza  <miguel@novell.com>
23233
23234         * X11DesktopColors.cs: Start the droppage of debugging messages.
23235
23236         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
23237
23238 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
23239
23240         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
23241
23242 2006-09-12  Chris Toshok  <toshok@ximian.com>
23243
23244         * DataGrid.cs (get_ListManager): if the list_manager is null, try
23245         to create it using SetDataSource.  Fixes bug #79151.
23246
23247 2006-09-11  Chris Toshok  <toshok@ximian.com>
23248
23249         * XEventQueue.cs: add a DispatchIdle property.
23250
23251         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
23252         either the queue is null, or the queue has DispatchIdle set to
23253         true.
23254         (DoEvents): set queue.DispatchIdle to false around the
23255         peek/translate/dispatch message loop in this method.  This keeps
23256         Application.Doevents from emitting idle events.  Part of the fix
23257         for #78823.
23258
23259 2006-09-11  Chris Toshok  <toshok@ximian.com>
23260
23261         * DataGrid.cs (set_DataSource): make this work for both the
23262         winforms/datagrid test and ReportBuilder.  It seems as though when
23263         we've created a ListManager (or maybe it's if we have a
23264         BindingContext?), when we set the DataSource it clears the
23265         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
23266         #79333.
23267
23268 2006-09-11  Chris Toshok  <toshok@ximian.com>
23269
23270         * XplatUIX11.cs: deal with queue being null, which happens in all
23271         the Clipboard functions.  Fixes one of the two problems mentioned
23272         in #78612.
23273
23274 2006-09-11  Chris Toshok  <toshok@ximian.com>
23275
23276         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
23277         button on various spots (including outside the menu) works closer
23278         to MS, and doesn't crash.  Fixes #79343.
23279
23280 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
23281
23282         * ListView.cs: Do not initialize item_sorter in init. To match MS,
23283         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
23284         and the internal comparer is set. When a new ListViewItemSorter is set,
23285         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
23286         was specified. No further processing is necessary if SortOrder is set
23287         to it's current value. If Sorting is modified to None, and View is
23288         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
23289         (either custom or our internal ItemComparer) to null, on 1.0 profile
23290         only set item_sorter to null if its our internal IComparer. If Sorting
23291         is modified to Ascending or Descending, then use our internal IComparer
23292         if none is set, and if the current IComparer is our internal one then:
23293         on 2.0 profile always replace it with one for new Sorting, and on 1.0
23294         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
23295         Enum.IsDefined to verify whether a valid View value is specified in
23296         its setter. Automatically sort listview items when listview is
23297         created. In Sort, do nothing if ListView is not yet created, or if
23298         no item_sorter is set (no Sorting was set, Sorting was explicitly set
23299         to None or ListViewItemSorter was set to null). Added Sort overload
23300         taking a bool to indicate whether the ListView should be redrawn when
23301         items are sorted (we use this in ListViewItemCollection to avoid double
23302         redraws). Modified our internal IComparer to take the sort order into
23303         account. In Add and AddRange methods of ListViewItemCollection, also
23304         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
23305         view), but use overload with noredraw option to avoid double redraw.
23306         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
23307         true when View is Tile, and do the same when attempting to set View to
23308         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
23309         for selected/checked indices, as it involves overhead when sorting is
23310         done while these collections are not used all that often. Instead
23311         we'll build the indices on demand. Modified IList implementation of
23312         CheckedIndexCollection to use public methods if object is int.
23313         Modified CheckedListViewItemCollection to hide checked items if
23314         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
23315         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
23316         IList implementation in SelectedIndexCollection to use public methods
23317         if object is int. Modified SelectedListViewItemCollection to hide
23318         selected items if listview is not yet created.
23319         * ListViewItem.cs: CheckedIndices list no longer needs to be
23320         maintained separately (see ListView changes). Also clone font, fixes
23321         test failure.
23322
23323 2006-09-11  Mike Kestner  <mkestner@novell.com>
23324
23325         * ComboBox.cs: if we are updating the contents of the currently
23326         selected index, refresh the control or the textbox selection.
23327         [Fixes #79066]
23328
23329 2006-09-11  Mike Kestner  <mkestner@novell.com>
23330
23331         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
23332         the 'specified' logic has been moved there.  This seems like a bug 
23333         in Control.cs, since our current SetBoundsCore completely ignores 
23334         the specified parameter.  Peter's commit seems to indicate that is 
23335         the way the MS control implementation works.  [Fixes #79325]
23336
23337 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
23338
23339         * XplatUI.cs: Set default_class_name to be composed
23340         of current domain id. This allows MWF to be loaded in multiple
23341         domains on Win32.
23342
23343 2006-09-09  Miguel de Icaza  <miguel@novell.com>
23344
23345         * X11Keyboard.cs: If we are unable to obtain the input method, do
23346         not call CreateXic to create the input context.   Should fix
23347         #78944/79276.
23348
23349 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
23350
23351         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
23352           Simplified gnome support by adding more pinvokes to get the
23353           icon for a file or mime type.
23354
23355 2006-09-08  Jackson Harper  <jackson@ximian.com>
23356
23357         * MenuAPI.cs: Deslect popup context menu items before closing the
23358         window, so that you don't see the previously selected item
23359         selected when you reopen the menu.
23360         * TextControl.cs: Update the cursor position even if we don't have
23361         focus.  This fixes typing in things like the ComboBox.  I'm not
23362         totally sure we should always set the visibility if we don't have
23363         focus, but couldn't find any corner cases where the cursor showed
23364         up when it shouldn't.
23365
23366 2006-09-08  Chris Toshok  <toshok@ximian.com>
23367
23368         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
23369         our arrays are length 256.  & 0xff before indexing.  Fixes the
23370         crash in bug #78077.
23371         
23372 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23373
23374         * ThemeWin32Classic.cs: 
23375         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
23376         is true. Handle that check box too.
23377
23378 2006-09-07  Chris Toshok  <toshok@ximian.com>
23379
23380         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
23381         79244.
23382
23383 2006-09-07  Chris Toshok  <toshok@ximian.com>
23384
23385         * Control.cs: in set_BackColor only do the work if
23386         background_color != value.
23387
23388         * XplatUIX11.cs: move the clearing of invalid areas (both client
23389         and nc) to the same block of code where we set (nc_)expose_pending
23390         to false.  That is, move it from PaintEventEnd to PaintEventStart,
23391         so things that cause invalidates from within OnPaint will trigger
23392         another call to OnPaint.  Fixes bug #79262.
23393
23394 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
23395
23396         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
23397         * FileDialog.cs: Fix typo
23398
23399 2006-09-07  Jackson Harper  <jackson@ximian.com>
23400
23401         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
23402         for tab pages if they have any.
23403
23404 2006-09-06  Mike Kestner  <mkestner@novell.com>
23405
23406         * Splitter.cs: use the "current" rect when finishing drag handle
23407         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
23408
23409 2006-09-06  Mike Kestner  <mkestner@novell.com>
23410
23411         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
23412         support offset splitters. [Fixes #79298]
23413
23414 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
23415
23416         * Mime.cs: Fixed a bug that could override the global mime type
23417           result.
23418
23419 2006-09-05  Jackson Harper  <jackson@ximian.com>
23420
23421         * TabControl.cs: Better calculation method for setting the slider
23422         pos. Prevents crashes on really wide tabs.
23423         - Draw Image on tab pages if an image list is used.
23424
23425 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23426
23427         * MonthCalendar.cs: When Font changes, the Size should be
23428         updated to fit the new font's space requirements.
23429
23430 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
23431
23432         * ListBox.cs: If the items are cleared with Items.Clear set
23433           top_index to 0.
23434
23435 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23436
23437         * MonthCalendar.cs: Handle arrow keys as input keys. Also
23438         fire DateChanged event instead of DateSelected event when
23439         the date was changed by keyboard interaction.
23440
23441 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23442
23443         * DateTimePicker.cs: Handle DateChanged for the associated
23444         month_calendar control, and set month_calendar.Font from 
23445         OnFontChanged method, as well as resize the height of the
23446         control when needed. Make PreferredHeight proportional.
23447
23448 2006-09-01  Chris Toshok  <toshok@ximian.com>
23449
23450         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
23451         properties.
23452
23453         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
23454
23455 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
23456
23457         * FileDialog.cs: Set ClientSize instead of window size, to allow space
23458           for decorations (Fixes #79219)
23459
23460 2006-09-01  Mike Kestner  <mkestner@novell.com>
23461
23462         * ComboBox.cs: first stab at sorting plus some selection handling
23463         fixes to bring us more in line with MS behavior.  Also switches back
23464         to index based selection.  Alternative patches for index-based 
23465         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
23466         and latency@gmx.de on bug 78848.  I assume they were similar to this
23467         code I've had simmering in my tree forever.
23468         [Fixes #78848]
23469
23470 2006-09-01  Chris Toshok  <toshok@ximian.com>
23471
23472         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
23473         when setting list position guard against ending up with a -1 index
23474         (the other part of the fix for #78812).  Should probably make sure
23475         we don't need the analogous fix in the ItemDeleted case.
23476
23477         * DataGrid.cs:
23478         - in SetDataSource, work around the fact that the way
23479         OnBindingContextChanged is invoked will cause us to re-enter this
23480         method.  I'll remove the hack once I investigate
23481         OnBindingContextChanged.
23482
23483         - fix the logic in set_DataSource and set_DataMember (basically
23484         what to do if the other of the two is null.)
23485         
23486         - in OnListManagerItemChanged, we need to take into account the
23487         edit row when deciding whether or not to call RecreateDataGridRows
23488         (part of the fix for #78812).
23489
23490 2006-09-01  Jackson Harper  <jackson@ximian.com>
23491
23492         * Splitter.cs: Don't do anything if there is no control to affect
23493         (prevents us from crashing in weird tet cases).
23494         * TreeView.cs: Bounding box for the mouse movement reverting
23495         focus/selection back to previously selected node.  This matches
23496         MS, and makes the tree a lot more useable.
23497         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
23498         use clipping so they are not drawn.  This fixes when the control
23499         is set to have a transparent background, or if it was over an
23500         image.
23501
23502 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
23503
23504         * MimeIcon.cs: Improved handling for reading default icons when
23505           using gnome (2.16 made it necessary). Check and read svg icons
23506           first, then 48x48 and then 32x32 icons.
23507
23508 2006-08-31  Chris Toshok  <toshok@ximian.com>
23509
23510         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
23511         visible.
23512
23513         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
23514         ProcessKeyPreview.  Fixes part of #77806.
23515
23516         * DataGrid.cs: big patch.
23517
23518         - revert the queueing up of DataSource/DataMember if inside
23519         BeginInit/EndInit calls.  That's not the way the datagrid achieves
23520         its delayed databinding.  Instead, call SetDataSource in
23521         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
23522         #78811.
23523
23524         - Also, it wasn't mentioned in #78811, but the test case exhibits
23525         behavior that was lacking in our datagrid implementation - Columns
23526         that have mapping names that don't exist in the datasource's
23527         properties aren't shown.  Yuck.  To fix this I added the bound
23528         field to the column style, and basically any calculation to figure
23529         out anything about columns uses a loop to find the bound columns.
23530         still need to investigate if I can cache an array of the bound
23531         columns or if the indices must be the same.
23532
23533         - When setting CurrentCell, we no longer abort if the cell being
23534         edited was in the add row.  This fixes the other part of #77806.
23535
23536         - The new code also fixes #78807.
23537         
23538         * ThemeWin32Classic.cs: perpetrate the same disgusting
23539         column.bound field hack, and only render bound fields.
23540
23541 2006-08-31  Chris Toshok  <toshok@ximian.com>
23542
23543         * DataGridColumnStyle.cs: add bound field.  this field is true if
23544         the datasource has a property corresponding to the mapping name.
23545
23546         * DataGridTableStyle.cs: set the bound field on the column styles
23547         depending on whether or not we have a column for that property.
23548
23549 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
23550
23551         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
23552           splitter control (fixes #79228)
23553
23554 2006-08-31  Chris Toshok  <toshok@ximian.com>
23555
23556         * DataGridColumnStyle.cs: we need to delay the assignment of
23557         property descriptor until the last possible moment due to the lazy
23558         databinding stuff in the datagrid.  Also, fix the exceptions
23559         thrown by CheckValidDataSource to match MS.
23560
23561 2006-08-31  Jackson Harper  <jackson@ximian.com>
23562
23563         * Form.cs: When activated select the active control, if there is
23564         no active control, we select the first control.
23565         * XplatUIX11.cs: If there is no focus control when we get a
23566         FocusIn event, find the toplevel form and activate it.  This
23567         occurs when you popup a window, it becomes the focus window, then
23568         you close that window, giving focus back to the main window.
23569
23570 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23571
23572         * MonthCalendar.cs: 
23573         * ThemeWin32Classic.cs: Cache Font in bold style, as well
23574         as StringFormat with Center alignments in MonthCalendar,
23575         instead of creating new ones when drawing the control. 
23576         Also, draw the month name in bold style.
23577
23578 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
23579
23580         * Control.cs:
23581           - PerformLayout(): It would seem MS performs the fill even if the 
23582             control is not visible (part of #79218 fix)
23583           - ResetBackColor(): Use the setter to reset the color, to allow
23584             overriders to catch the change.
23585         * Form.cs:
23586           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
23587           - CreateHandle(): dito (part of $79218 fix)
23588           - Don't set an icon if we have a dialog
23589         * ScrollableControl.cs:
23590           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
23591           - ScrollIntoView(): No need to scroll if control is already visible
23592             (resolves fixme and fixes #79218)
23593
23594 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23595
23596         * MonthCalendar.cs: Change proportions in SingleMonthSize
23597         to match the aspect of the original control.
23598
23599 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
23600
23601         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
23602           get updated when they get maximized.
23603
23604 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
23605
23606         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
23607
23608 2006-08-29  Chris Toshok  <toshok@ximian.com>
23609
23610         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
23611
23612 2006-08-29  Jackson Harper  <jackson@ximian.com>
23613
23614         * TreeView.cs: Need to track selected node and highlighted node,
23615         they aren't always the same thing, when the mouse is down on a
23616         node it is hilighted, but not selected yet.
23617         - Do the HideSelection stuff right
23618         - Need to focus on rbutton mouse down. And redraw selection when
23619         right click is mouse upped.
23620
23621 2006-08-29  Mike Kestner  <mkestner@novell.com>
23622
23623         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
23624         when SubItems.Count < Columns.Count.  [Fixes #79167]
23625
23626 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
23627
23628         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
23629
23630 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
23631
23632         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
23633           from X. Only send based on ConfigureNotify if we don't have the
23634           correct location in hwnd (if the window manager moved us)
23635
23636 2006-08-28  Mike Kestner  <mkestner@novell.com>
23637
23638         * ListView.cs: remove a TODO. 
23639         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
23640         [Fixes ListView part of #79166]
23641
23642 2006-08-28  Mike Kestner  <mkestner@novell.com>
23643
23644         * ListView.cs: move wheel handler to parent since it is focused
23645         instead of the item_control now.  [Fixes #79177]
23646
23647 2006-08-28  Mike Kestner  <mkestner@novell.com>
23648
23649         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
23650         when the control is focused. [Fixes #79171]
23651
23652 2006-08-28  Mike Kestner  <mkestner@novell.com>
23653
23654         * ListView.cs: size the item and header controls for empty and
23655         unscrollable views.
23656         * ThemeWin32Classic.cs: draw disabled backgrounds.
23657         [Fixes #79187]
23658
23659 2006-08-28  Chris Toshok  <toshok@ximian.com>
23660
23661         * Form.cs: remove unused "active_form" static field.
23662
23663         * Hwnd.cs: lock around accesses to static windows collection.
23664
23665         * Application.cs: lock threads in Exit ().
23666
23667 2006-08-28  Chris Toshok  <toshok@ximian.com>
23668
23669         * NativeWindow.cs: lock around accesses to window_collection.
23670         
23671 2006-08-28  Chris Toshok  <toshok@ximian.com>
23672
23673         * Control.cs: err, fix this the right way, by locking on controls
23674         when using it.  not by making it synchronized.
23675
23676 2006-08-28  Chris Toshok  <toshok@ximian.com>
23677
23678         * Control.cs: make the static "controls" field synchronized, as it
23679         gets updated from multiple threads.
23680
23681 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
23682
23683         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
23684           Prevent other threads from exiting when calling thread sets quit state.
23685         * XEventQueue.cs: Added PostQuitState property
23686
23687 2006-08-27  Chris Toshok  <toshok@ximian.com>
23688
23689         * AsyncMethodData.cs: add a slot for the window handle.
23690
23691         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
23692         window (the destination control's window, not the foster window).
23693
23694         * Control.cs (BeginInvokeInternal): store the window's handle in
23695         the AsyncMethodData.
23696         
23697
23698 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
23699
23700         * XplatUIX11.cs:
23701           - PostQuitMessage: Removed resetting S.D display handle, we might have
23702             another loop started after calling PostQuitMessage (Fixes #79119)
23703           - Created destructor to reset S.D handle
23704
23705 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
23706
23707         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
23708
23709 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23710
23711         * TextControl.cs (Insert): Update the caret position even if we don't
23712           have a handle yet, just don't call the driver in that case.
23713         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
23714           to the end of the new selection text (Fixes #79184)
23715
23716 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23717
23718         * Form.cs (Activate): Only activate if the handle is created)
23719         * Control.c:
23720           - Mark window as invisible when it's disposed
23721           - Check if window handle is created when setting window visible, 
23722             instead of relying just on the is_created variable
23723           - Check if object is disposed when creating the control (Fixes #79155)
23724
23725 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23726
23727         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
23728           when allowing layout again. Otherwise we re-generate the anchoring 
23729           distance to the border again and actually alter what the user wanted
23730           This is ugly, it'd be better if we used DisplayRectangle instead of
23731           ClientRectangle for Control.UpdateDistances, but that causes us to
23732           have other problems (initial anchoring positons would be wrong)
23733           (Fixes #78835)
23734
23735 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23736
23737         * Control.cs:
23738           - The size and location setters shouldn't go directly to 
23739             SetBoundsCore, but to SetBounds, which triggers layout on the
23740             parent, then calls SetBoundsCore. (Related to fix for #78835)
23741           - SetBounds: Moved actual location update code into this function
23742             from SetBoundsCore, to match MS. Added call to PerformLayout if
23743             we have a parent (to trigger resizing of anchored parents if the 
23744             child size has changed (see testcase for #78835) 
23745         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
23746           new control code
23747         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
23748
23749 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23750
23751         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
23752           System.Drawing when a toplevel window gets closed; there might
23753           be other toplevel windows belonging to the same app (Fixes #78052)
23754
23755 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
23756
23757         * FileDialog.cs: After reading FileDialog settings from mwf_config
23758           use Desktop prefix only if a real folder doesn't exist anymore.
23759         * FontDialog.cs: Added char sets.
23760           It is now possible to select the font, size or style with the
23761           textboxes.
23762
23763 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
23764
23765         * PrintPreviewDialog.cs: Use assembly name constants.
23766
23767 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23768
23769         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
23770           scrollbar from whacking it's buttons)
23771
23772 2006-08-24  Chris Toshok  <toshok@ximian.com>
23773
23774         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
23775         in this patch (aggregating setting Left/Top/Width/Height to
23776         setting Bounds on the scrollbars), but the crux of the fix is in
23777         Recalculate, where we scroll by the remaining scroll_position if
23778         we're hiding a scrollbar.  The 2*$5 reward in the comment is
23779         serious.
23780
23781 2006-08-24  Jackson Harper  <jackson@ximian.com>
23782
23783         * MdiClient.cs:
23784         * MdiWindowManager.cs: If the form is made a non-mdi window we
23785         need to remove the form closed event so that closing forms works
23786         correctly.
23787
23788 2006-08-24  Jackson Harper  <jackson@ximian.com>
23789
23790         * Control.cs: Make IsRecreating internal so that the driver can
23791         check it
23792         - Temporarily remove the Hide when controls are removed, its
23793         making a whole bunch of things not work because visibility isn't
23794         getting reset elsewhere correctly
23795         * Form.cs: Need to do a full handle recreation when the mdi parent
23796         is set.
23797         * XplatUIX11.cs: If we are recreating handles don't dispose the
23798         HWNDs.  What was happening is the handles were being recreated in
23799         SendWMDestroyMessages, but then flow continued on in that method
23800         and destroyed the new handles.
23801
23802 2006-08-23  Jackson Harper  <jackson@ximian.com>
23803
23804         * Form.cs: MdiClient is always at the back of the bus
23805         * Control.cs: When the order of items in the collection is changed
23806         we need to reset the all_controls array
23807         - do the same sorta setup thats done when adding a control when a
23808         control is set on the collection.
23809
23810 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23811
23812         * TextBoxBase.cs (get_Text): Return an empty array if our document
23813           is empty (fixes #79052)
23814
23815 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23816
23817         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
23818           on WM_SYSCHAR messages (fixes #79053)
23819
23820 2006-08-23  Chris Toshok  <toshok@ximian.com>
23821
23822         * DataGrid.cs: fix flickering when scrolling vertically.
23823
23824 2006-08-23  Chris Toshok  <toshok@ximian.com>
23825
23826         * DataGrid.cs (EndEdit): only invalidate the row header when we
23827         need to.
23828
23829 2006-08-23  Chris Toshok  <toshok@ximian.com>
23830
23831         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
23832         methods.  fixes the flicker when scrolling around.
23833
23834 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23835
23836         * FileDialog.cs: Making sure the control is created before we get a 
23837           chance to use it with BeginInvoke (Fixes #79096)
23838
23839 2006-08-23  Chris Toshok  <toshok@ximian.com>
23840
23841         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
23842         width to use when painting the rows.
23843
23844 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23845
23846         * TextBoxBase.cs:
23847           - Throw ArgumentException if a negative value is passed to SelectionLength
23848           - Update the selection end if start is moved. end needs to be always
23849             after start. (Fixes #79095)
23850           - Track selection length; MS keeps the selection length even if start
23851             is changed; reset on all other operations affection selection
23852
23853 2006-08-22  Jackson Harper  <jackson@ximian.com>
23854
23855         * TreeView.cs: Make sure both scrollbars get displayed and sized
23856         correctly when the other bar is visible.
23857         - Use the original clip rectangle for checking if the area between
23858         the two scrollbars is visible, not the viewport adjusted clipping
23859         rectangle.
23860
23861 2006-08-22  Jackson Harper  <jackson@ximian.com>
23862
23863         * Binding.cs: We don't use IsBinding because it requires the
23864         control to be created, which really shouldn't be necessary just to
23865         set a property on the control.
23866
23867 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23868
23869         * ComboBox.cs: Some CB.ObjectCollection methods must throw
23870         ArgumentNullReferenceException when the argument is null.
23871
23872 2006-08-21  Jackson Harper  <jackson@ximian.com>
23873
23874         * Timer.cs: Track the thread that the timer is started in (NOT
23875         CREATED), this way messages for it will only be triggered on its
23876         queue.
23877         * XEventQueue.cs: Track the timers here, this makes timers per
23878         thread, like MS.
23879         * XplatUIX11.cs: The timers are moved to the XEventQueue.
23880
23881 2006-08-19  Chris Toshok  <toshok@ximian.com>
23882
23883         * XplatUIX11.cs: after further communication with pdb, we get the
23884         best of both worlds.  SetZOrder working for un-Mapped windows, and
23885         no X errors for un-mapped windows.
23886
23887 2006-08-19  Chris Toshok  <toshok@ximian.com>
23888
23889         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
23890         as it was causing pdn toolbars to not have the correct stacking.
23891
23892 2006-08-18  Mike Kestner  <mkestner@novell.com> 
23893
23894         * ListView.cs : guard against negative ClientArea.Width in scrollbar
23895         calculation.  Not sure why control should ever be setting a negative
23896         width though.  Fixes #78931.
23897
23898 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23899
23900         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
23901         null items in ObjectCollection class.
23902         * ListBox.cs.: Likewise.
23903
23904 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
23905
23906         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
23907           as the base method in ThemeWin32Classic should work fine.
23908           Fixed bug #78607.
23909
23910 2006-08-18  Jackson Harper  <jackson@ximian.com>
23911
23912         * Binding.cs: When validating if the value entered doesn't convert
23913         properly reset to the old value.
23914         * RadioButton.cs: Don't fire click when we get focus.
23915
23916 2006-08-18  Jackson Harper  <jackson@ximian.com>
23917
23918         * FileDialog.cs: Paint the selection on the directory combobox the
23919         same way as on MS. 
23920
23921 2006-08-17  Jackson Harper  <jackson@ximian.com>
23922
23923         * ErrorProvider.cs: Don't allow the error control to be selected.
23924         * Control.cs: Don't send the SetFocus messages, the control
23925         activation will do this, and if we do it blindly here validation
23926         does not work.
23927
23928 2006-08-17  Jackson Harper  <jackson@ximian.com>
23929
23930         * Control.cs:
23931         * ContainerControl.cs: Make validation events fire in the correct
23932         order.  TODO: For some reason the first validation event is not
23933         getting fired.
23934
23935 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23936
23937         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
23938
23939 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23940
23941         * ComboBox.cs : implement scroll wheel support for popped-down
23942         state. Fixes #78945. 
23943
23944 2006-08-17  Jackson Harper  <jackson@ximian.com>
23945
23946         * TreeView.cs: Specify treeview actions (old patch that didn't get
23947         committed for some reason).
23948         - Don't let the mouse wheel scroll us too far.  Just want to make
23949         the bottom node visible, not scroll it all the ways to the top.
23950
23951 2006-08-17  Jackson Harper  <jackson@ximian.com>
23952
23953         * XplatUIX11.cs: Mouse wheel events go to the focused window.
23954
23955 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23956
23957         * ComboBox.cs : don't do mouseover selection in simple mode.
23958
23959 2006-08-16  Jackson Harper  <jackson@ximian.com>
23960
23961         * Form.cs: Fire the closing events for all the mdi child windows
23962         when a window is closed.  If the cancel args are set to true, the
23963         main window still gets the event fired, but it doesn't not close.
23964         * MdiWindowManager.cs: Do this closing cleanup in a Closed
23965         handler, instead of when the button is clicked, so cancelling the
23966         close works correctly.
23967         * ComboBox.cs: Send the mouse down to the scrollbar.
23968
23969 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23970
23971         * ListBox.cs: When passing 'null' to SelectedItem,
23972         set SelectedIndex to -1, to unselect items. This is the
23973         observed behaviour in .Net.
23974
23975 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
23976
23977         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
23978           MS flags saying there won't be any. (fixes #78800)
23979         * Control.cs (HandleClick): Made virtual
23980
23981 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
23982
23983         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
23984           cultures. Fixed bug #78399.
23985
23986 2006-08-16  Jackson Harper  <jackson@ximian.com>
23987
23988         * Form.cs: Use the MdiClients MdiChildren property to access
23989         MdiChildren instead of creating the array from the child controls.
23990         * MdiClient.cs: Maintain a separate array of the mdi children, so
23991         that insertion order is maintained when the Z-order is changed.
23992
23993 2006-08-16  Mike Kestner  <mkestner@novell.com> 
23994
23995         * ListView.cs : add an ItemComparer and default to it for sorting.
23996         Fixes #79076, but sorting needs a complete overhaul to be compat with
23997         MS.
23998
23999 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
24000
24001         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
24002
24003 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24004
24005         * Hwnd.cs (Mapped): Properly traverse the tree
24006
24007 2006-08-15  Chris Toshok  <toshok@ximian.com>
24008
24009         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
24010         pass manager.Current.GetType() to ParseData.  It has to be the
24011         property type.  So, hold off doing the ParseData until we're in
24012         SetPropertyValue where we know the type.  This fixes the crash in
24013         #78821 but the textbox is still empty.
24014
24015 2006-08-15  Chris Toshok  <toshok@ximian.com>
24016
24017         * DataGrid.cs:
24018         - when we're scrolling, only call Edit() again if the
24019         current cell is still unobscured. Fixes bug #78927.
24020         - when handling mousedown on a cell, ensure the cell is visible
24021         before calling Edit.
24022         - remove the properties from DataGridRow, and remove the
24023         DataGridParentRow class altogether.
24024         
24025
24026 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24027
24028         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
24029           fire OnTextChanged by ourselves. There's no point calling base,
24030           we don't set the base value anywhere else. Fixes #78773.
24031
24032 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24033
24034         * ListBox.cs: Call CollectionChanged when modifying
24035         an item from Items indexer, to update the actual items
24036         in the list box.
24037
24038 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24039
24040         * PrintDialog.cs: Small fixes for focus and a pair of checks,
24041         to match .Net behaviour.
24042
24043 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24044
24045         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
24046
24047 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
24048
24049         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
24050
24051 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24052
24053         * MessageBox.cs: Prevent potential NRE exception.
24054         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
24055
24056 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
24057
24058         * MessageBox.cs: Calculate the owner of a messagebox, also make
24059           it topmost. Fixes #78753
24060
24061 2006-08-14  Chris Toshok  <toshok@ximian.com>
24062
24063         * XplatUIX11.cs: A couple of fixes so that metacity will let us
24064         programmatically move windows.  first, set the PPosition hint as
24065         well as the USPosition hint.  Second include some code from pdb
24066         that sets the window type to NORMAL when we set the transient for
24067         hint.  This is because, in the absence of a window type, metacity
24068         thinks any window with TransientFor set is a dialog, and refuses
24069         to let us move it programmatically.  fascists.
24070
24071 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
24072
24073         * XplatUIX11.cs: When setting normal hints, take into consideration
24074           an different hints previously set so we don't delete them (fixes #78866)
24075
24076 2006-08-12  Chris Toshok  <toshok@ximian.com>
24077
24078         * ToolBarButton.cs: make Layout return a boolean, if something to
24079         do with the button's layout changed.
24080
24081         * ToolBar.cs:
24082         - add another parameter to Redraw, @force, which all existing
24083           calls set to true.
24084         - make the Layout function return a boolean which is true if the
24085           layout has actually changed.  Redraw now uses this (and @force)
24086           to determine when to invalidate.  At present the only place
24087           where @force can be false is the call from OnResize, when
24088           background_image == null.  So, resizing a toolbar when the
24089           layout doesn't change results in no drawing.
24090
24091 2006-08-12  Chris Toshok  <toshok@ximian.com>
24092
24093         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
24094         the VScrollBar and HScrollbar reversed.  oops.
24095
24096         * DataGrid.cs: fix the logic that assigns sizes to the implicit
24097         scrollbars.  we were assigning them twice (once in
24098         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
24099         therefore causing two scrollbar resizes (and redraws?) to happen
24100         per grid resize.
24101
24102 2006-08-12  Chris Toshok  <toshok@ximian.com>
24103
24104         * ToolBarButton.cs: redraw the entire button if the theme tells us
24105         to.
24106
24107         * Theme.cs: add ToolBarInvalidateEntireButton.
24108
24109         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
24110         buttons, just the border.
24111
24112         * ThemeNice.cs: redraw the entire toolbar button since we need to
24113         draw the highlight image.
24114
24115         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
24116         we need to redraw the entire button (not just the border).
24117
24118 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
24119
24120         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
24121           for vertical bars. Fixes the mismatches shown by #78513
24122
24123 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
24124
24125         * FileDialog.cs: If a saved/remembered path doesn't exist
24126           anymore, fall back to "Desktop".
24127
24128 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
24129
24130         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
24131           parent. It's apparently legal to not have one
24132         * XplatUIX11.cs:
24133           - SetZOrder: Don't try to set Z-Order on an unmapped window
24134           - CreateWindow: 0,0 are legal coordinates for a window. don't move
24135             it unless the coordinates are negative
24136
24137 2006-08-10  Mike Kestner  <mkestner@novell.com>
24138
24139         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
24140         when setting to null per msdn docs.  Fixes #78854.
24141
24142 2006-08-10  Chris Toshok  <toshok@ximian.com>
24143
24144         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
24145         flickering by setting a clip rectangle on the Graphics when we
24146         need to redraw just a particular menuitem.  Also, rename "OnClick"
24147         to "OnMouseDown" to reflect what it actually is.
24148         
24149         * Form.cs: track the OnMouseDown change.
24150
24151 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
24152
24153         * CommonDialog.cs: Properly inherit the CreateParams from the form
24154           and only change what we need. Fixes #78865
24155
24156 2006-08-10  Chris Toshok  <toshok@ximian.com>
24157
24158         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
24159         flickering in flat mode (and most of the flickering in general) by
24160         only invalidating the button border (and not the entire rectangle)
24161         when the state changes.  A couple of cases still flicker:
24162         ToggleButtons, and the dropdown arrow case when the user mouse
24163         ups.
24164
24165 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
24166
24167         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
24168           for german keyboards. Numlock state shouldn't affect the behaviour
24169           of the Del key. Fixes bug #78291.
24170
24171 2006-08-10  Chris Toshok  <toshok@ximian.com>
24172
24173         * ListControl.cs: remove the items.Clear line from BindDataItems,
24174         as this is the first thing done by both subclasses in their
24175         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
24176         passed -1, refresh the list.  This gets databinding working when
24177         the datasource is set on the list before the datasource is
24178         populated (as in wf-apps/ReportBuilder.)
24179
24180         * ComboBox.cs: remove the argument to BindDataItems.  This call
24181         should really go away, and be initiated by the ListControl code.
24182
24183         * ListBox.cs: same.
24184
24185 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
24186
24187         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
24188           if no data is in the document when the control is displayed
24189
24190 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
24191
24192         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
24193           yes (fixes #78806)
24194         * TextControl.cs: 
24195           - PositionCaret: Allow positioning of caret but don't call methods 
24196             requiring a handle if the window isn't created yet
24197           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
24198           - owner_HandleCreated: Don't position the caret, just update it's 
24199             location. User might have already set a different position
24200
24201 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
24202
24203         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
24204           windows. Screws up the returned coordinates for child windows. 
24205           Fixes #78825. I'm hoping this doesn't break something, since the
24206           code was explicitly put in 8 months ago, but no bug was attached.
24207           Menus still seem to work properly.
24208
24209 2006-08-08  Chris Toshok  <toshok@ximian.com>
24210
24211         * DataGrid.cs: make BeginInit/EndInit actually do what they're
24212         supposed to do - delay data binding until the EndInit call.  Also,
24213         make the table style collection's CollectionChangeAction.Refresh
24214         work properly.
24215
24216         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
24217         (with action = Refresh) when a consituent table's MappingName is
24218         changed.
24219
24220 2006-08-08  Chris Toshok  <toshok@ximian.com>
24221
24222         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
24223         Invalidate, since changing the text can change the size of the all
24224         toolbar buttons.
24225
24226 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
24227
24228         * Form.cs (AddOwnedForm): Still need to add the form to our listif
24229           we don't have it yet
24230
24231 2006-08-08  Chris Toshok  <toshok@ximian.com>
24232
24233         * PrintControllerWithStatusDialog.cs: don't .Close() the status
24234         dialog, as this causes X errors later on, since we actually
24235         destroy the window.  Instead, .Hide() it.
24236
24237 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
24238
24239         * ComboBox.cs: Added focus reflection for popup window
24240         * XplatUIX11.cs: 
24241           - Removed transient setting for non-app windows for now, not sure it
24242             was needed
24243           - Fixed logic checking if we have captions when deciding 
24244             override_redirect, WS_CAPTION is two bits and a 0 check was not
24245             sufficient
24246           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
24247             complicated
24248         * Form.cs: 
24249           - AddOwnedForm: Don't just add the form to the list, call the property
24250             to ensure the driver is informed about the ownership as well
24251           - CreateHandle: Set the TopMost status in the driver if we have an owner
24252         * XplatUI.cs: Fixed debug statement
24253
24254 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
24255         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24256           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
24257           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
24258           TrackBarRenderer.cs: Make constructor private.
24259         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
24260         * ProfessionalColorTable.cs: Make properties virtual.
24261
24262 2006-08-06  Duncan Mak  <duncan@novell.com>
24263
24264         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
24265         is not changing.
24266
24267 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24268         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24269           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
24270           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
24271           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
24272           Initial import of new 2.0 classes.
24273
24274 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24275         * Application.cs: Add 2.0 VisualStyles properties.
24276
24277 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24278         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
24279           XplatUIX11.cs: Create property to allow access to existing private
24280           variable "themes_enabled"
24281
24282 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24283
24284         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
24285         file size, as otherwise our class libraries fail using windows. Fixes
24286         bug #78759.
24287
24288 2006-08-04  Jackson Harper  <jackson@ximian.com>
24289
24290         * Form.cs:
24291         * XplatUIX11.cs: Move the toolwindow window manager creation into
24292         the X11 driver, this way on win32 we can let windows create/handle
24293         the toolwindows.
24294
24295 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24296
24297         * PrintDialog.cs: Remove some redundant checks, add some others,
24298         clean some code, and move the focus to the text boxes when the
24299         values are incorrect.
24300
24301 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
24302
24303         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
24304
24305 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
24306
24307         * NumericUpDown.cs: Setting the Minimum and Maximum is now
24308           handled correctly. Fixes bug #79001.
24309
24310 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24311
24312         * PrintDialog.cs: The "Copies" numeric up down must have
24313         set the Minimum property to 1; only if the value is bigger
24314         than 1, activate "Collate" check box. This is the behaviour of .Net.
24315         Also modify the Document elements only if it is not null.
24316
24317 2006-08-03  Jackson Harper  <jackson@ximian.com>
24318
24319         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
24320         length. (We have a larger array then actual node count).
24321                 
24322 2006-08-03  Jackson Harper  <jackson@ximian.com>
24323
24324         * ComboBox.cs: Don't show selection by default.
24325         - The SelectAll isn't needed here, since the focus code should do
24326         that
24327         - DDL style lists to manual selection drawing, so when they
24328         get/lose focus they have to invalidate.
24329
24330 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
24331
24332         * TextBoxBase.cs: Don't always show all selections by default.
24333
24334 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
24335         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
24336           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
24337           Fixed various typos.
24338
24339 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
24340
24341         * Control.cs: Removing the controls in a ControlCollection with
24342           Clear now hides the controls as expected. Fixes bug #78804. 
24343
24344 2006-08-03  Jackson Harper  <jackson@ximian.com>
24345
24346         * Control.cs: Revert previous focus patch, it breaks reflector.
24347
24348 2006-08-03  Jackson Harper  <jackson@ximian.com>
24349
24350         * ComboBox.cs: Cleanup selection and focus with the combobox.
24351         This also eliminates some duplicated keyboard code, since now
24352         everything is handled by the main class.
24353         - Make list selection work on mouse up instead of down, to match
24354         MS.
24355
24356 2006-08-02  Jackson Harper  <jackson@ximian.com>
24357
24358         * Control.cs: Setting focus needs to go through the whole
24359         selection mechanism.
24360
24361 2006-08-02  Chris Toshok  <toshok@ximian.com>
24362
24363         * PrintPreviewDialog.cs: change MinimumSize to use
24364         base.MinimumSize so it works.
24365
24366 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
24367
24368         * TextControl.cs:
24369           - UpdateCaret: Added sanity check in case caret isn't defined yet
24370           - Line.Delete: Now updating selection and caret markers if we're
24371             transfering a node (Properly fixes #78323)
24372           - SetSelectionEnd: Added sanity check
24373         * TextBoxBase.cs: Removed broken attempt to fix #78323
24374
24375 2006-08-01  Chris Toshok  <toshok@ximian.com>
24376
24377         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
24378         Close() call is handled in Form, not here.
24379
24380 2006-08-01  Chris Toshok  <toshok@ximian.com>
24381
24382         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
24383         layout/rendering.
24384
24385         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
24386         for sizes < 100% zoom.  The code now aggressively attempts to keep
24387         from calling document.Print (), and tries not to use the scaling
24388         g.DrawImage whenever possible (it still does if you scale to >
24389         100%, since usually that involves huge images).
24390
24391         * PrintPreviewControl.cs: hook up the close button.
24392
24393 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
24394         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
24395           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
24396           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
24397           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
24398           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
24399           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
24400           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
24401           Removed [Serializable] for 2.0 Event Handlers.
24402
24403 2006-07-31  Jackson Harper  <jackson@ximian.com>
24404
24405         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
24406         * TextControl.cs: Uncomment out the body of this method.
24407
24408 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
24409
24410         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
24411           standard cursors.
24412
24413 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24414
24415         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
24416           that embed TextBox and need selections visible even if textbox is not
24417           focused to enforce that behaviour.
24418         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
24419           selection drawing
24420
24421 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24422
24423         * TextControl.cs:
24424           - Added new SetSelectionStart/SetSelectionEnd overloads
24425           - Fixed viewport width assignment to be accurate
24426           - Adjusted alignment line shift calculations to allow cursor on right
24427             aligned lines to be always visible at the right border (like MS)
24428         * TextBoxBase.cs:
24429           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
24430           - TextBoxBase_SizeChanged: recalculating canvas on size changes
24431           - CalculateScrollBars: Use ViewPort size instead of window size, to
24432             properly consider space occupied by the border and scrollbars 
24433             (Fixes #78661)
24434           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
24435             calculations; no longer leaves artifacts
24436           - CaretMoved: Adjusted window scrolling to match MS and fixed several
24437             calculation bugs (Still missing right/center align calculations)
24438
24439 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
24440
24441         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
24442           use of both scroll rect and clip rect, as they do the same.
24443
24444 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24445
24446         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
24447           in the event handler (fixes #78912)
24448
24449 2006-07-31  Chris Toshok  <toshok@ximian.com>
24450
24451         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
24452         grid.ListManager.Count, since grid.ListManager might be null.
24453         This of course begs the question "why are we drawing rows for a
24454         grid with no list manager (and therefor no rows)?"  Fixes the
24455         crash in bug #78929.
24456
24457 2006-07-31  Chris Toshok  <toshok@ximian.com>
24458
24459         * RelatedPropertyManager.cs: Don't always chain up to the parent
24460         ctor.  instead, call SetDataSource if the parent's position is !=
24461         -1.  Fixes the crash in #78822.
24462
24463 2006-07-31  Chris Toshok  <toshok@ximian.com>
24464
24465         * DataGrid.cs (get_ListManager): use field instead of property
24466         accessors for datasource and datamember.
24467         (RowsCount): make internal again.
24468         (OnMouseDown): end edits before resizing columns/rows.
24469         (OnMouseUp): restart edits after resizing columns/rows.
24470
24471 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
24472
24473         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
24474           This fixes the situation where the last set cursor is displayed
24475           whenever the mouse is over scrollbars.
24476
24477 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24478
24479         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
24480         Document properties, as well as initial values.
24481
24482 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
24483
24484         * XplatUIWin32.cs (SetBorderStyle): Setting both border
24485           and ClientEdge results in a 3-pixel border, which is
24486           wrong.
24487
24488 2006-07-28  Jackson Harper  <jackson@ximian.com>
24489
24490         * TreeNodeCollection.cs: Fix the clear method.
24491         - Fix the Shrink also
24492
24493 2006-07-27  Jackson Harper  <jackson@ximian.com>
24494
24495         * TreeView.cs: Make sure the visible order is computed when we
24496         attempt to size the scrollbars (for trees that mess with the
24497         scrolling when they shouldn't.
24498         - Make sure to give the scrollbars valid values.
24499
24500 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
24501
24502         * XplatUIX11.cs: Move motion compression code to where it
24503           has less performance impact
24504
24505 2006-07-26  Jackson Harper  <jackson@ximian.com>
24506
24507         * UpDownBase.cs: When the control is selected make the child
24508         controls non selectable, so that a click on them won't do a
24509         focus/unfocus cycle.
24510         - Don't give focus to the text box when the spinner is selected.
24511         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
24512
24513 2006-07-26  Chris Toshok  <toshok@ximian.com>
24514
24515         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
24516         satisfied with this solution.  If the bitmaps are small, we should
24517         just cache them in the PrintPreviewDialog and draw them here.
24518         Also, the layout is broken for the 2-up and 3-up cases.
24519
24520         * Theme.cs: add PrintPReviewControlPaint.
24521
24522         * PrintPreviewDialog.cs: first pass implementation.
24523
24524         * PrintPreviewControl.cs: first pass implementation.  No
24525         scrollbars yet.
24526
24527         * PrintDialog.cs: only validate fields if that particular portion
24528         of the UI is enabled.  Also, set the document's controller to a
24529         PrintControllerWithStatusDialog wrapping the document's print
24530         controller.
24531
24532         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
24533         bring up a SaveFileDialog (i hope we don't want to match the
24534         behavior of the crappy windows file entry) and set the
24535         PrinterSettings.PrintFileName accordingly.
24536
24537 2006-07-26  Jackson Harper  <jackson@ximian.com>
24538
24539         * ContainerControl.cs: Add a field that disables auto selecting
24540         the next control in a container when the container is activated.
24541         * UpDownBase.cs: Don't select the text box when the up down is
24542         selected.
24543
24544 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
24545
24546         * XEventQueue.cs: Added methods for peeking (used for compression
24547           of successive events)
24548         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
24549           mouse move events (fixes #78732)
24550
24551 2006-07-25  Jackson Harper  <jackson@ximian.com>
24552
24553         * UpDownBase.cs: Use an internal class for the textbox so that we
24554         can control focus.  the updown control should always have focus,
24555         if either the text area or the buttons are clicked.
24556         - Send the key messages to the textbox, since it never actually
24557         has focus
24558         - Activate and decativate the textbox caret.
24559
24560 2006-07-24  Jackson Harper  <jackson@ximian.com>
24561
24562         * Control.cs: Use the directed select when selecting a control,
24563         this way the container controls override will get called and the
24564         whole ActiveControl chain will get triggered.  TODO: probably need
24565         to make sure this gets done everywhere instead of the old
24566         Select(Control).
24567         * ContainerControl.cs: Implement the directed Select method to
24568         find and activate the correct child control.    
24569         
24570 2006-07-22  Mike Kestner  <mkestner@novell.com>
24571
24572         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
24573         menu handling code so that clicks without a grab work too.
24574         [Fixes #78914]
24575
24576 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
24577
24578         * FileDialog.cs: Enable the BackButton when dirstack has one element.
24579           Added some small optimizations.
24580
24581 2006-07-21  Matt Hargett  <matt@use.net>
24582
24583         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
24584
24585 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
24586
24587         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
24588           tests pass and match MS in some strange border cases.
24589
24590 2006-07-21  Chris Toshok  <toshok@ximian.com>
24591
24592         * ThemeWin32Classic.cs: handle drawing of the relation links and
24593         parent row buttons.
24594
24595         * Theme.cs: change args to DataGridPaintParentRow.
24596
24597         * DataGrid.cs: Don't use controls for the relation links and
24598         parent buttons, so we have to handle all their interactions in
24599         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
24600         when we're navigating through child tables, so we can reinstate
24601         selection, expanded state, current cell, etc.
24602
24603 2006-07-20  Chris Toshok  <toshok@ximian.com>
24604
24605         * ToolBar.cs: When we redraw a button, for whatever reason,
24606         there's no reason to redraw the entire toolbar.  Also, don't call
24607         Control.Refresh from within Redraw, as it's much heavier than
24608         Invalidate (which is really what we want).
24609
24610 2006-07-20  Chris Toshok  <toshok@ximian.com>
24611
24612         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
24613         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
24614         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
24615         traces from within a debug IBindingList datasource
24616         (in mono/winforms/datagrid) for *days*, I've finally gotten things
24617         to work in a similar fashion.
24618
24619 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24620
24621         * ListBox.cs: Don't call Sort () when setting 
24622         the Sorted property to false (avoid an unnecessary sort).
24623
24624 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24625
24626         * ListControl.cs: DataSource should throw an ArgumentException
24627         instead of a normal exception when the argument is not of the 
24628         correct type.
24629
24630 2006-07-20  Mike Kestner  <mkestner@novell.com>
24631
24632         * Control.cs: add InternalPreProcessMessage to allow us to steal
24633         key events before MWF gets its paws on them.  Adapted from a
24634         suggestion by eno.
24635         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
24636         up/down/left/right navigation. Override the new internal control
24637         method to steal the events since they never make it to WndProc.
24638         * ToolBarButton.cs: don't worry about pushed when setting hilight
24639         since the drawing code prefers pushed to hilight. Invalidate on 
24640         Hilight changes. Fixes #78547 and #78525.
24641
24642 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
24643
24644         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
24645           the canvas size. Fixes #78868
24646
24647 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
24648
24649         * Splitter.cs: Track requested split position until first layout
24650           is performed. Fixes #78871
24651
24652 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
24653
24654         * Application.cs: Removed code that forces 1.x for the version
24655           number if the version started with 0. Not sure why that code was
24656           there and I couldn't find any bugs that indicated we needed it.
24657           Fixes #78869
24658
24659 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
24660
24661         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
24662           ResetDefaults(), just write some output to the console until it's
24663           implemented. Fixes bug #78907 for now. Eliminated two warnings.
24664
24665 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
24666
24667         * PropertyGridView.cs: set StartPosition of drop down forms
24668         so they appear in correct initial spot.  Fixes #78190.
24669
24670 2006-07-19  Mike Kestner  <mkestner@novell.com>
24671
24672         * ThemeWin32Classic.cs: use parent background color when drawing
24673         flat toolbars.  Restructure the conditionals to make sure non-flat
24674         non-Divider toolbars are filled too.  Fixes #78837.
24675
24676 2006-07-19  Mike Kestner  <mkestner@novell.com>
24677
24678         * ListBox.cs: Sort on collection changes even if the handle
24679         isn't created yet.  Fixes #78813.
24680
24681 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24682
24683         * ListControl.cs: DisplayMember should never be null,
24684         and now we assign String.Empty when null is passed to it (this
24685         is the .Net way).
24686
24687 2006-07-17  Mike Kestner  <mkestner@novell.com>
24688
24689         * ListViewItem.cs: restructure Font and subitem Font handling 
24690         to hold a specific font and refer back to owner on null.
24691         Fixes #78761.
24692
24693 2006-07-17  Mike Kestner  <mkestner@novell.com>
24694
24695         * ToolBar.cs: bandaid for side-effect of previous patch which was
24696         discarding explicit heights for non-AutoSize toolbars.  Need to
24697         extend my format tester to deal with AutoSize=false. Fixes #78864.
24698
24699 2006-07-15  Jackson Harper  <jackson@ximian.com>
24700
24701         * LabelEditTextBox.cs:
24702         * TreeView.cs: Use a new LabelEdit class for node editing, this
24703         class automatically 'closes' itself when it gets the enter key or
24704         loses focus.
24705         - Use the client rectangle when setting the trees scrollbars, so
24706         border style is taken into account.
24707         
24708 2006-07-14  Jackson Harper  <jackson@ximian.com>
24709
24710         * TreeNode.cs:
24711         * TreeView.cs: Make the editing work similar to MSs, firing the
24712         events correctly and ending edits correctly.
24713
24714 2006-07-14  Mike Kestner  <mkestner@novell.com>
24715
24716         * ToolBarButton.cs:
24717         * ToolBar.cs: layout restructuring and redraw enhancements to support
24718         formatting changes gracefully, like setting TextAlign, ImageList, 
24719         ButtonSize, and Appearance.  Handles explicit button sizing quirks
24720         of the MS controls.  Things like flat toolbars ignoring button size
24721         but becoming constant sized at the largest button's size.  Normal
24722         toolbars with an image set cannot be shrunk smaller than the image,
24723         but text can be clipped/ignored.
24724         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
24725         is zero.  Seems like DrawString should be smart enough to not put
24726         anything on screen though. Also trim labels and ellipsize at the char
24727         boundary, not word.
24728         Fixes #78711 and #78483.
24729
24730 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24731
24732         * FolderBrowserDialog.cs: Disable "New Folder" button and
24733           "New Folder" contextmenu menuitem if a folder like "My Computer"
24734           is selected.
24735
24736 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24737
24738         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
24739         * FolderBrowserDialog.cs:
24740           - Use MWFConfig to store and read size and position settings
24741           - Added code to create a new folder (button or context menu).
24742             Use TreeView labeledit to change the name of the new folder.
24743
24744 2006-07-14  Jackson Harper  <jackson@ximian.com>
24745
24746         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
24747         when the tree is scrolled we end editing.
24748
24749 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24750
24751         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
24752           Down arrows
24753
24754 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
24755
24756         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
24757         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
24758         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
24759         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
24760         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
24761         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
24762         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
24763         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
24764         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
24765         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
24766         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
24767         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
24768         ListViewItemSelectionChangedEventHandler.cs,
24769         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
24770         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
24771         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
24772         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
24773         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
24774         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
24775         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
24776         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
24777         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
24778         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
24779         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
24780         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
24781         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
24782         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
24783         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
24784         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
24785         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
24786         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
24787         WebBrowserNavigatingEventHandler.cs, 
24788         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
24789
24790 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
24791
24792         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
24793         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
24794         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
24795         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
24796         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
24797         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
24798         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
24799         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
24800         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
24801         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
24802         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
24803         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
24804         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
24805         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
24806         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
24807         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
24808         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
24809         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
24810         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
24811         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
24812         ListViewItemStates.cs, MaskFormat.cs: Added
24813
24814 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
24815
24816         * PropertyGridView.cs: Fix keyboard navigation of drop down.
24817         Patch from eno for bug 78558.
24818         
24819 2006-07-13  Jackson Harper  <jackson@ximian.com>
24820
24821         * TreeView.cs: When an edit is finished make sure that the
24822         selected node is visible.
24823         - When setting the top/bottom use the scrollbars is_visible, so
24824         everything will be set correctly even if the tree isn't visible
24825         yet.
24826
24827 2006-07-13  Jackson Harper  <jackson@ximian.com>
24828
24829         * ComboBox.cs: Revert the item->index part of my previous patch.
24830         * TreeView.cs: Use LostFocus instead of Leave for detecting when
24831         the edit box has lost focus (duh).
24832         - Just make the edit box not visible when we get return, that will
24833         take the focus, which will call EndEdit
24834         * TreeNode.cs When we start editing, notify the treeview.
24835
24836 2006-07-12  Jackson Harper  <jackson@ximian.com>
24837
24838         * ComboBox.cs: Clear out old items before setting the item list.
24839         This prevents databound controls from having their items added
24840         twice.
24841         - Switch the combobox to use indices whereever possible instead of
24842         using Item's.  This allows usto navigate through lists that have
24843         more then one item with the same string value (ie a, b, b, a).
24844         - Scroll the listboxes scrollbar when a non visible item is
24845         highlighted
24846         - Allow keypress to cycle through all the possible values. For
24847         example if you have b1, b2, b3 and hold down the B key all the
24848         values will be cycled through.
24849         
24850 2006-07-12  Jackson Harper  <jackson@ximian.com>
24851
24852         * TextBoxBase.cs:
24853         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
24854         this using the internal methods.
24855         * Control.cs: Add OnGotFocusInternal.  A new method that allows
24856         controls to "override" OnGotFocus and change focus behavior if
24857         needed.
24858         - Same thing for LostFocus
24859         * ComboBox.cs: Pass off focus to the text control properly.
24860
24861 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
24862
24863         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
24864         * FolderBrowserDialog.cs: Almost a complete rewrite.
24865           - Better support for Environment.Specialfolders
24866           - Added support for MWFVFS
24867           - Made setting SelectedPath work
24868
24869 2006-07-12  Jackson Harper  <jackson@ximian.com>
24870
24871         * Control.cs: Optimze getting all the controls.
24872
24873 2006-07-11  Jackson Harper  <jackson@ximian.com>
24874
24875         * ContainerControl.cs: Override SETFOCUS in the container control,
24876         so that it is not selected on mouse click.
24877
24878 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
24879
24880         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
24881           Hopefully we will have a better way once all of focus is complete.
24882
24883 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
24884
24885         * ThemeWin32Classic.cs: Commented out some debug code and fixed
24886           a compile error with csc.
24887
24888 2006-07-11  Jackson Harper  <jackson@ximian.com>
24889
24890         * Control.cs: When hiding a control only select the next control
24891         if the current control was focused.
24892         - Don't handle enter/leave when setting/killing focus, this is
24893         done by the container control.
24894         - Remove is_selected, it's not needed anymore.
24895         - Add utility methods for selecting a child control, and for
24896         firing the Enter/Leave events.
24897         * ContainerControl.cs: When a control is activated fire the
24898         enter/leave events.
24899         - Don't wrap when processing the tab key, so that focus can be
24900         moved outside of the container.
24901         - Use the correct active control
24902
24903 2006-07-11  Jackson Harper  <jackson@ximian.com>
24904
24905         * ComboBox.cs: Remove some debug code that was blinding me.
24906         * UpDownBase.cs: These controls actually aren't implicit, they are
24907         visible to the user.
24908
24909 2006-07-10  Chris Toshok  <toshok@ximian.com>
24910
24911         * DataGrid.cs: move back to the is_adding boolean field.  god i
24912         hate this is_editing/is_adding/is_changing stuff.
24913
24914 2006-07-10  Chris Toshok  <toshok@ximian.com>
24915
24916         * DataGridTableStyle.cs: just check if the property type is bool.
24917         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
24918         Don't use CanRenderType.
24919
24920         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
24921         if our text == NullText.  Remove CanRenderType.
24922
24923         * DataGridBoolColumn.cs: nuke CanRenderType.
24924
24925         * DataGrid.cs: reenable some code to end the current edit inside
24926         of set_CurrentCell.  This fixes the other 1.1.16 regression.
24927         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
24928         Also, remove the visible_row_count arg from CalcRowHeaders, since
24929         we don't need to worry about the actual height of the area.
24930
24931 2006-07-10  Chris Toshok  <toshok@ximian.com>
24932
24933         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
24934         mode, just return.
24935
24936         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
24937         the real sense of the IsInEditOrNavigateMode property (true =
24938         navigate, false = edit).  Also, update OnKeyPress to reflect this.
24939
24940         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
24941         column style exists, we still need to set its property descriptor
24942         to match up with our list manager.
24943
24944 2006-07-10  Chris Toshok  <toshok@ximian.com>
24945
24946         * ThemeWin32Classic.cs: implement the new row/header painting
24947         approach.  The parent row painting will likely go away and
24948         replaced with label controls, but the rest seems to work ok (and
24949         efficiently).
24950
24951         * Theme.cs: change the way we draw datagrid rows.  we don't draw
24952         the row headers as a block now.  Instead we draw them in the
24953         normal draw-row loop.  Add some calls for drawing parent rows and
24954         relation rows.
24955
24956         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
24957         a default table style.  Set the defaults from ThemeEngine.Current,
24958         not SystemColors.  Fix lots of misc issues with property setters.
24959
24960         * DataGrid.cs: move loads of style information out of this class
24961         as it's being duplicated with DataGridTableStyle.  keep track of a
24962         special DataGridTableStyle for the properties we used to mirror
24963         here.  Switch all the style properties to access this table style
24964         instead of instance fields of this class.  Also add a internal
24965         class to represent parent rows (more needs to be stored here, like
24966         the selection state from the parent table, as well as the
24967         expansion state.)  Also, for datasources with relations, do the
24968         right thing for collapse/expand, and add support for the
24969         navigation/parent row buttons.
24970
24971         Lastly, fix the crash in the 1.1.16 build.
24972
24973         * GridTableStylesCollection.cs: make the explicit interface
24974         implementations call the class's methods as opposed to duplicating
24975         them.
24976
24977         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
24978         0 so the text doesn't jump around when we move the cursor.
24979
24980 2006-07-10  Jackson Harper  <jackson@ximian.com>
24981
24982         * TextBoxBase.cs:
24983         * ListBox.cs: Match MS's ToString (this makes debugging focus
24984         stuff infinitely easier).
24985
24986 2006-07-10  Jackson Harper  <jackson@ximian.com>
24987
24988         * Control.cs (SelectNextControl): When checking the control's
24989         parent use this instead of ctrl.parent so that null can be passed
24990         to SelectNextControl. (I have unit tests for this).
24991         - Remove unused var.
24992
24993 2006-07-10  Chris Toshok  <toshok@ximian.com>
24994
24995         * CurrencyManager.cs: correct one regression, the removal of the
24996         finalType field.  Also, add a MonoTODO on CanAddRows, implement
24997         Refresh() correctly, and fix some event emission in
24998         ListChangedHandler.
24999
25000 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
25001
25002         * FileDialog.cs: Don't use brackets for new folders if they exist
25003           under *nix. Instead use -(number of existing folders +1).
25004
25005 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
25006
25007         * FileDialog.cs:
25008           - Fixed really nasty bug #78771
25009           - Don't block the whole GUI when reading directories with a lot of
25010             entries. Use an other thread instead and call BeginInvoke to
25011             update the ListView in MWFFileView
25012
25013 2006-07-07  Chris Toshok  <toshok@ximian.com>
25014
25015         * Control.cs (Dispose): release any Capture when disposing.
25016
25017 2006-07-07  Chris Toshok  <toshok@ximian.com>
25018
25019         * LinkLabel.cs (Select): if we chain up to the parent, set
25020         focused_index to -1 so we'll search for the first available link
25021         the next time the user tabs into us.  Also, if the direction is
25022         backward and focused_index == -1, start the search from the last
25023         element.
25024
25025 2006-07-07  Chris Toshok  <toshok@ximian.com>
25026
25027         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
25028         is beyond the end of the text, don't do anything.
25029         (CreateLinkPieces): set our ControlStyles.Selectable based on
25030         whether or not we have any links.
25031         (Link.Invalidate): use a loop instead of foreach.
25032         (Link.set_Start): null out owner.sorted_links so it'll be
25033         recreated by CreateLinkPieces.
25034
25035 2006-07-06  Chris Toshok  <toshok@ximian.com>
25036
25037         * LinkLabel.cs: revert the SetStyle change.
25038
25039 2006-07-06  Chris Toshok  <toshok@ximian.com>
25040
25041         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
25042         (OnEnableChanged): s/Refresh/Invalidate
25043         (OnGotFocus): if we have a focused index already, refocus it (so
25044         if we mouse out/in to the window it'll focus the right link).
25045         (OnKeyDown): move the tab handling out of here.
25046         (OnLostFocus): don't set focused_index to -1, so we can refocus it
25047         when we lose focus.
25048         (OnMouseDown): don't Capture here - Control handles it.  Also,
25049         focus the active link.
25050         (OnMouseUp): don't deal with Capture.
25051         (OnPaintBackgroundInternal): remove.
25052         (OnTextAlignChanged): CreateLinkPieces before calling the
25053         superclass's method.
25054         (OnTextChanged): call CreateLinkPieces before calling superclass's
25055         method.
25056         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
25057         move around.
25058         (Select): implement this, moving the selection between different
25059         links, and call parent.SelectNextControl if we don't have another
25060         link to focus in the given direction.
25061         (CreateLinkPieces): call Invalidate instead of Refresh.
25062         
25063 2006-07-06  Chris Toshok  <toshok@ximian.com>
25064
25065         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
25066         new LinkLabel internals.
25067
25068         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
25069         over pieces looking for active/focused/etc links.  also, deal with
25070         runs of text (and links) with embedded \n's in them, and use
25071         MeasureCharacterRanges instead of MeasureString to figure out the
25072         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
25073         two-step.
25074
25075 2006-07-04  Jackson Harper  <jackson@ximian.com>
25076
25077         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
25078         XKB or key auto repeat, do it manually.  Without key auto repeat,
25079         when a key is held down we get key press, key release, key press,
25080         key release, ... with auto repeat we get key press, key press, key
25081         press ..., and then a release when the key is actually released.
25082
25083 2006-07-03  Jackson Harper  <jackson@ximian.com>
25084
25085         * TabControl.cs:
25086         * ThemeWin32Classic.cs: Tabs do not obey normal background color
25087         rules, they are always control color regardless of the background
25088         color.
25089
25090 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
25091
25092         * FileDialog.cs: Added internal class MWFConfig.
25093           Removed Registry support and replaced it with support for the new
25094           MWFConfig class. See MWFConfig comments for more information.
25095
25096 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
25097
25098         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
25099           rectangle. Added some patches from eno from bug #78490 and fixed
25100           the arrow position for small up and down CPDrawScrollButtons.
25101
25102 2006-06-30  Jackson Harper  <jackson@ximian.com>
25103
25104         * InternalWindowManager.cs: Remove some debug code.
25105         * Form.cs: When an MdiParent is set to null, the window is
25106         "detatched" and becomes a normal window.
25107         * MdiClient.cs: Don't bring the new child form to the front until
25108         it is activated (setting it as active does this), this makes the
25109         previously active forms titlebar get redrawn as inactive.
25110
25111 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
25112
25113         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
25114           with later controls
25115
25116 2006-06-29  Mike Kestner  <mkestner@novell.com>
25117
25118         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
25119         arrow in keynav state.  Fixes #78682.
25120
25121 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
25122
25123         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
25124           order (fixes #78393)
25125
25126 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
25127
25128         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
25129           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
25130           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
25131           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
25132           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
25133           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
25134           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
25135           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
25136           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
25137           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
25138           enumerations (FlagsAttribute, SerializableAttribute, added/removed
25139           values)
25140
25141 2006-06-28  Mike Kestner  <mkestner@novell.com>
25142
25143         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
25144
25145 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
25146
25147         * PropertyGrid.cs,
25148           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
25149           item lines from other area (It also makes BackColor consistent and
25150           compatible with .NET). Fixed bug #78564.
25151
25152 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
25153
25154         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
25155         Patch from Eno for #78555.
25156
25157 2006-06-27  Chris Toshok  <toshok@ximian.com>
25158
25159         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
25160
25161         * DataGridColumnStyle.cs: same.
25162
25163         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
25164         
25165         * DataGridDrawingLogic.cs: nuke.
25166
25167 2006-06-27  Chris Toshok  <toshok@ximian.com>
25168
25169         * DataGridTableStyle.cs: clean up the constructors, and build the
25170         list of child relations for this table.  I have no idea if this is
25171         where we should be doing it (it probably isn't), but since we're
25172         already iterating over the properties..
25173
25174         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
25175         struct and array for keeping track of row information, similar to
25176         what's shown in a hack on
25177         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
25178
25179         * Theme.cs: be consistent about the naming of DataGrid methods,
25180         prefering ColumnWidths and RowHeights over columnsWidths and
25181         RowsHeights.
25182
25183         * ThemeWin32Classic.cs: same, and also add support for variable
25184         sized rows (and the +/- expansion icons for related rows).
25185
25186 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
25187
25188         * TextBoxBase.cs: Applied Eno's patch from #78660
25189
25190 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
25191
25192         * Form.cs (ScaleCore): We don't want to scale our form if it's
25193           state is minimized or maximized, but we still need to scale our
25194           child windows. Also, added try/finally block to ensure layout
25195           gets reset (Fixes #78697)
25196
25197 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
25198
25199         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
25200
25201 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
25202
25203         * Form.cs: Fixed c+p error and added check to resize form if minimum
25204           size is bigger than current size (Fixes #78709)
25205
25206 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
25207
25208         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
25209
25210 2006-06-26  Mike Kestner  <mkestner@novell.com>
25211
25212         * ComboBox.cs: only do Keypress handling in the combo when there  
25213         are items in the collection. Fixes #78710.
25214
25215 2006-06-26  Chris Toshok  <toshok@ximian.com>
25216
25217         * Binding.cs: make this work bi-directionally.  also, clear up
25218         other mixups between Push/Pull Data (e.g. we're supposed to pull
25219         data when validating).
25220
25221         * BindingManagerBase.cs: trim some fully qualified collection
25222         types.
25223
25224         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
25225
25226 2006-06-23  Chris Toshok  <toshok@ximian.com>
25227
25228         * PropertyManager.cs: It appears (according to the unit tests)
25229         that PropertyManager doesn't use
25230         PropertyDescriptor.AddValueChanged to track propery value changes
25231         in its datasource, but uses the same scheme as Binding, where it
25232         looks for a <Property>Changed event and binds to it.
25233
25234         Also, according to the docs, IsSuspended always returns false for
25235         a property manager with a non-null datasource.
25236
25237 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
25238
25239         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
25240           need to update the actual DialogResult. (Fixes #78613)
25241
25242 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
25243
25244         * Form.cs (ShowDialog): Release any captures before running the
25245           new message pump (fixes #78680)
25246
25247 2006-06-22  Mike Kestner  <mkestner@novell.com>
25248
25249         * ListView.cs: Layout column widths properly in details mode even 
25250         if HeaderStyle.None is set.  Fixes #78691.
25251
25252 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
25253
25254         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
25255
25256 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
25257
25258         * Control.cs (ContainsFocus): Using new driver method to get focused
25259           window, instead of trying to use internal tracking var, which can
25260           recursion issues (Fixes #78685)
25261         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
25262           XplatUIWin32.cs: Added GetFocus method to return focused window
25263
25264 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25265
25266         * ColorDialog.cs: when the mouse button is pressed inside the color
25267         matrix, don't let the cursor move out of it until the button is
25268         released, which is the behavior on windows. Changed 'colours' by
25269         'colors' to use the same word consistently.
25270
25271 2006-06-21  Chris Toshok  <toshok@ximian.com>
25272
25273         * DataGrid.cs: add in some basic navigation stuff (navigating to a
25274         child relation and back, using a stack).  Also, remove
25275         GetDataSource and the code that calls it - it's not needed.  Also,
25276         track CurrencyManager.ListName's removal.
25277
25278 2006-06-21  Chris Toshok  <toshok@ximian.com>
25279
25280         * CurrencyManager.cs: push some of the original type checking from
25281         BindingContext.CreateBindingManager to here, and remove some of
25282         the finalType stuff.  Need more tests to make sure I've got the
25283         ListName part right, and we might need more in SetDataSource.
25284
25285         * PropertyManager.cs: add a ctor that takes just the datasource,
25286         and no property name.  Make SetDataSource work with a null
25287         property_name, and make Current return the data_source if the
25288         property descriptor is null.  this makes 'string foo = "hi";
25289         BindingContext[foo].Current' return "hi" as it should.
25290
25291         * RelatedCurrencyManager.cs: make this code more generic - there's
25292         no reason the parent manager has to be CurrencyManager, and
25293         there's no reason to pass the DataRelation.  It suffices to use a
25294         BindingManagerBase and PropetyDescriptor.
25295
25296         * RelatedPropertyManager.cs: make a similar change here.
25297         
25298         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
25299         flower I knew it could be.
25300
25301 2006-06-20  Chris Toshok  <toshok@ximian.com>
25302
25303         * PropertyManager.cs: the PropertyChangedHandler is invoked when
25304         data in the source has changed and we need to update the control,
25305         so s/PullData/PushData.
25306
25307         * CurrencyManager.cs: Refresh is meant to update the control from
25308         data in the datasource.  So, s/PullData/PushData.
25309
25310         * BindingContext.cs: add more ugliness (we weren't handling the
25311         case where data_source = DataTable and data_member = column_name).
25312
25313         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
25314         from the perspective of the datasource.  PullData pulls from the
25315         control, PushData pushes to the control.
25316
25317 2006-06-20  Chris Toshok  <toshok@ximian.com>
25318
25319         * BindingContext.cs: rewrite the CreateBindingManager code to
25320         handle navigation paths more or less properly.  This could
25321         definitely stand some more work, in particular to push the
25322         recursion up to the toplevel.  But that relies on fixes in other
25323         places (System.Data comes to mind).
25324
25325         Also, move to a flat hashtable (and encode the twolevel nature of
25326         the dictionary into the hash key).  This lets us implement the
25327         IEnumerable.GetEnumerator method.
25328
25329         * RelatedCurrencyManager.cs: new class.  Update our view based on
25330         our relation and our parent CurrencyManager's position.
25331
25332         * CurrencyManager.cs: split out some logic from the ctor into
25333         SetView, so it can be called from the new RelatedCurrencyManager
25334         subclass.
25335
25336         * RelatedPropertyManager.cs: new class.  Update our datasource
25337         based on the position of our parent CurrencyManager.
25338
25339         * PropertyManager.cs: split out some logic from the ctor into
25340         SetDataSource, so it can be called from the new RelatedDataSource
25341         subclass.  Also, make the Current getter return the value
25342         of the PropertyDescriptor, not the data_source.
25343
25344         * Binding.cs: no need to duplicate the string splitting code here.
25345
25346 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
25347
25348         * Control.cs:
25349           - set_Enabled: OnEnabledChanged is not called if the inherited state 
25350             of the control is not altered, even though  we might be changing the
25351             internal state of the control (#78458)
25352           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
25353             OnEnabledChanged, to allow easy altering of any child window state
25354           - OnEnabledChanged: Added code to enable/disable driver window state
25355           - OnParentEnabledChanged: Instead of firing the event, call 
25356             OnEnabledChanged, which will fire the event and also a) set driver
25357             window state and pass the enabled state to any grandchildren (#78458)
25358
25359 2006-06-19  Jackson Harper  <jackson@ximian.com>
25360
25361         * InternalWindowManager.cs: We don't set the cursor explicitly
25362         thats done via the response to NCHITTESTs.
25363         - Don't need to adjust for titlebar heights anymore, the
25364         coordinates are coming in the correct coordinates now (see peters
25365         last patch).
25366
25367
25368 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
25369
25370         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
25371           being translated relative to whole window, instead of client window.
25372           That caused broken offsets on mouseclick (and caused gas for our
25373           InternalWindowManager)
25374
25375 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
25376
25377         * TextControl.cs:
25378           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
25379           - Undo(): Added replay of cursor move on DeleteChars action; added
25380             calling Undo() again if a recorded cursor move is invalid (to
25381             ensure that some action is performed on Undo)
25382         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
25383
25384 2006-06-16  Jackson Harper  <jackson@ximian.com>
25385
25386         * MdiClient.cs: Instead of just sizing maximized windows when
25387         there is a resize we also have to adjust the Y of minimized
25388         windows, so they stay pinned to the bottom of the mdi container.
25389         - Eliminate separate tracking of the active control, we can just
25390         get this from the controls collection.
25391         - Paint the decorations for the newly activated titlebar so we get
25392         a pretty blue bar.
25393         * InternalWindowManager.cs:
25394         * ThemeWin32Classic.cs: Minimized windows get all three buttons
25395         even if they are a tool window.
25396         
25397 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
25398
25399         * TextControl.cs (Undo): Handle non-existent cursor locations in the
25400           undo buffer, these can happen when text was deleted and the cursor
25401           was recorded first. Since we will also have a recorded cursor
25402           after the delete this is not an issue. (Fixes #78651)
25403
25404 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
25405
25406         * AccessibleObject.cs: Remove dependence on Control.is_selected;
25407           instead properly track control states internally (allows us to
25408           remove is_selected from Control)
25409
25410 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25411
25412         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
25413         whose width is not a multiple of 8.
25414
25415 2006-06-13  Jackson Harper  <jackson@ximian.com>
25416
25417         * MdiClient.cs:  Only maximize the next child if the current one
25418         is maximized.
25419
25420 2006-06-13  Chris Toshok  <toshok@ximian.com>
25421
25422         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
25423         modified.  Also, guard against grid or grid_drawing being null in
25424         Invalidate.
25425
25426         * DataGrid.cs: Reformat tons of getters/setters.  In the
25427         DataMember setter, just call SetNewDataSource instead of
25428         duplicating some of its functionality.  In SetNewDataSource, don't
25429         check ListManager for null, since the property getter creates the
25430         object if needed.
25431
25432         * DataGridTableStyle.cs: don't set TableStyle or call
25433         SetDataGridInternal on the column here, it's done in
25434         GridColumnStylesCollection.Add.
25435
25436         * GridColumnStylesCollection.cs: fix all the explicit interface
25437         implementations to just call our methods.  Nuke AddInternal() and
25438         move the body of it to Add().  Also, add a call to
25439         column.SetDataGridInternal to Add().
25440
25441         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
25442         base()+duplicate code.  Also, use the Format property instead of
25443         format to generate an Invalidate ala MS.  Lastly, create the
25444         textbox here, unconditionally.
25445         (set_Format): call Invalidate.
25446         (get_TextBox): no need to call EnsureTextBox.
25447         (Commit): remove the message box.
25448         (Edit) remove the call to EnsureTextBox.
25449         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
25450         (EnterNullValue): no need to check textbox for null.
25451         (HideEditBox): no need to check textbox for null.
25452         (SetDataGridInColumn): add the textbox to the grid's controls.
25453         (EnsureTextBox): nuke.
25454         
25455 2006-06-13  Jackson Harper  <jackson@ximian.com>
25456
25457         * MdiWindowManager.cs: Hook up to the maximized menus paint event
25458         and redraw the buttons when needed. Unhook when the window is
25459         unmaximized.
25460         * MainMenu.cs: Add an internal Paint event, the mdi window manager
25461         needs this so that it can redraw its buttons when the menu is
25462         repainted.
25463         * InternalWindowManager.cs:
25464         * Form.cs: The method order has changed for DrawMaximizedButtons,
25465         so that it can be a PaintEventHandler.
25466         
25467 2006-06-13  Jackson Harper  <jackson@ximian.com>
25468
25469         * MdiClient.cs: When we close a maximized mdi window, the next mdi
25470         window is activated and maximized, even if it wasn't before.
25471         - When  a new window is activated repaint the decorations of the
25472         old one, so that it no longer has the Active "look" (the blue
25473         titlebar).
25474         * InternalWindowManager.cs: Open up CreateButtons to base classes
25475         so they can recreate the buttons on state changes.
25476         - If a window is maximized give it all three buttons
25477         * MdiWindowManager.cs: Create the titlebar buttons when the state
25478         is changed, this is needed because a toolwindow will not have all
25479         three buttons until it is maximized.
25480
25481 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
25482
25483         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
25484           Fixed bug #78609.
25485
25486 2006-06-12  Jackson Harper  <jackson@ximian.com>
25487
25488         * KeysConverter.cs: Make sure we handle the Ctrl special case
25489         if its the only key.
25490         
25491 2006-06-12  Jackson Harper  <jackson@ximian.com>
25492
25493         * Theme.cs: Add a method to get the size of a managed window
25494         toolbar button.
25495         * InternalWindowManager.cs: Remove the ButtonSize property, this
25496         should be retrieved from the theme.
25497         * MdiWindowManager.cs: Get the button size from the theme
25498         * ThemeWin32Classic.cs: Make the method to get the managed window
25499         titlebar button size public.
25500         - Handle the different button sizes of maximized toolwindows
25501         (should match any maximized window).
25502         - Get the titlebar height from the theme, not the WM (which gets
25503         it from the theme).
25504
25505 2006-06-12  Jackson Harper  <jackson@ximian.com>
25506
25507         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
25508         event down to the mdi window manager.
25509         - Expose some extra stuff to base classes
25510         - Make sure to end the Capture on an NC Mouse up, so that we can
25511         get double clicks properly, and the sizing doens't stick.
25512         - When doing PointToClient contain it in the workable desktop
25513         area, this prevents windows from changing size when the cursor is
25514         pulled outside of the working area while sizing.
25515         * MdiWindowManager.cs: When we get a double click maximize the
25516         window.
25517         - Reset the cursor after handling mode changes.
25518
25519 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
25520
25521         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
25522           current desktop, instead of just assuming a 0, 0 origin. This
25523           is needed for our internal window manager, to know the top
25524           margin of the desktop
25525
25526 2006-06-12  Chris Toshok  <toshok@ximian.com>
25527
25528         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
25529         we need this to get rid of the selected background in the bool
25530         column.
25531         (CancelEditing): move the ConcedeFocus call to above the Abort
25532         call.  Also, set is_changing to false and invalidate the row
25533         header if we were changing before.
25534         (ProcessKeyPreviewInternal): remove, since noone outside this
25535         class calls it anymore.  Roll the code into ProcessKeyPreview.
25536         (EndEdit): remove the internal version.
25537         (InvalidateCurrentRowHeader): make private.
25538
25539         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
25540         Keys.Escape handling (and with it the last call to
25541         DataGrid.EndEdit from outside the class.)
25542
25543
25544 2006-06-12  Chris Toshok  <toshok@ximian.com>
25545
25546         * DataGridTextBox.cs (.ctor): isedit defaults to false.
25547         (OnKeyPress): set isedit to true.
25548         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
25549         already handled by the grid.
25550
25551         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
25552         right.  ugh.
25553         (set_DataSource): SetDataSource always returns true, so stop
25554         putting it in an if statement.
25555         (EndEdit): get rid of some {}'s
25556         (ProcessGridKey): return true in case Keys.Escape.
25557         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
25558         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
25559         PositionChanged, stopped connecting to CurrentChanged.
25560         (GetDataSource): simplify this a bunch.
25561         (SetDataSource): change return type from bool to void.
25562         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
25563         to this, and make sure we don't set ListManager.Position inside
25564         set_CurrentCell.
25565         (OnListManagerItemChanged): if we're passed an actual index,
25566         redraw that row.
25567
25568         * CurrencyManager.cs (set_Position): don't call PullData here.
25569
25570 2006-06-09  Jackson Harper  <jackson@ximian.com>
25571
25572         * TreeNode.cs:  Recalculate the visible order before doing the
25573         Expand/Collapse Below calls, because those calls generate an
25574         expose.
25575         - Reduce calls to the TreeView property, which is mildly expensive
25576         by using a local var.
25577         * Form.cs: Layout the MDI child windows when creating the parent
25578         form.
25579         - Don't use the internal constructor anymore
25580         * MdiClient.cs: use the parent form width/height (if available)
25581         when laying out the child windows, we do this because the
25582         mdiclient isn't docked yet when the initial layout is done.
25583         - Don't need an internal constructor anymore.
25584
25585 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25586
25587         * FileDialog.cs: handle access errors when trying to create a folder
25588         or changing to a directory. No need to initialize out parameters.
25589
25590 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25591
25592         * FileDialog.cs: Append a number when creating a new folder if the
25593           folder already exists (use parenthesis instead of square brackets)
25594
25595 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25596
25597         * FileDialog.cs:
25598           - Disabled registry support for windows and added better registry
25599             error checking for other systems (need to investigate why it
25600             works perfectly on my system)
25601           - If a folder already exist show an error MessageBox instead of
25602             trying to create an indexed name.
25603           - Fixed a non intentional typo.
25604
25605 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25606
25607         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
25608
25609 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25610
25611         * FileDialog.cs: When creating a new folder don't crash if the
25612           folder already exists.
25613
25614 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25615
25616         * FileDialog.cs: Allmost a complete rewrite.
25617           - added a "virtual" file system that handles the differences
25618             between unix and windows file systems (especially the directory
25619             structure). Moved most of the directory and file handling code
25620             into the vfs.
25621             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
25622             UnixFileSystem and FSEntry.
25623           - Recently used folder/directory, size, location and used file names
25624             (file name ComboBox) are now stored in the registry and get read
25625             before the dialog shows up (fixes part 6 of bug #78446).
25626           - Creation of new folders/directories is now possible (context menu
25627             or ToolBar). Added TextEntryDialog for this that fills in the gap
25628             until ListView.LabelEdit works.
25629           - Fixed cursor handling (bug #78527) and focus handling for
25630             PopupButtonPanel
25631           - Various "Search in" ComboBox enhancements. The content of the
25632             dropdown listbox now almost matches ms.
25633           - Changed the behaviour when the user switches to SpecialFolder
25634             Recent to show the ListView in View.Details.
25635           - Beside using the ToolBar to change the View property of the
25636             file ListView it is now possible to use the context menu too.
25637
25638 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25639
25640         * ComboBox.cs: Don't create a new ObjectCollection when an item
25641           gets inserted. Just insert the item in the existing object_items
25642           ArrayList.
25643
25644 2006-06-08  Jackson Harper  <jackson@ximian.com>
25645
25646         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
25647         that the treeview and root node checks are done also, this fixes a
25648         regression i caused in the unit tests.
25649
25650 2006-06-07  Wade Berrier <wberrier@novell.com> 
25651
25652         * RichTextBox.cs: More ISO8859-1 -> unicode
25653
25654 2006-06-07  Mike Kestner  <mkestner@novell.com>
25655
25656         * ComboBox.cs : use items to hold highlight/selection so that
25657         collection insertions don't require synchronization.
25658
25659 2006-06-07  Jackson Harper  <jackson@ximian.com>
25660
25661         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
25662         routine.  We now always keep the sized edge at the cursor instead
25663         of computing movement and adjusting rects.  There is one buglet
25664         with this method though when the cursor is moved over area that
25665         the window can not expand too (such as the toolbars on the desktop).
25666
25667 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25668
25669         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
25670         here. Fixes crash on startup in AlbumSurfer.
25671
25672 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
25673
25674         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
25675           values
25676
25677 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25678
25679         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
25680         statement to avoid calling XNextEvent which will block if another thread
25681         took the event that we were expecting. Fixes bug #78605.
25682
25683 2006-06-07  Mike Kestner  <mkestner@novell.com>
25684
25685         * ListView.cs : isolated checkbox clicking from the selection logic.
25686         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
25687
25688 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
25689
25690         * Form.cs: Check that the value passed to Form.DialogResult
25691         is a valid enum value.
25692
25693 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25694
25695         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
25696         Computer'. Clicking it in the network view goes to 'My Computer'.
25697         Added CIFS filesystem type. Display the mount point of filesystems.
25698         Avoid duplicate mount points (happens for me with CIFS);
25699
25700 2006-06-06  Jackson Harper  <jackson@ximian.com>
25701
25702         * InternalWindowManager.cs: Draw the maximized windows buttons
25703         when resizing.
25704
25705 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25706
25707         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
25708         all other dialogs. Fixes bug #78585.
25709
25710 2006-06-06  Mike Kestner  <mkestner@novell.com>
25711
25712         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
25713         Only invalidate checkbox on checkstate changes to avoid flicker.
25714         * ListBox.cs : avoid unselect/select when clicking selected item.
25715         avoid reselection flicker for already multiselected items.
25716         Fixes #78382.
25717
25718 2006-06-06  Jackson Harper  <jackson@ximian.com>
25719
25720         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
25721         the parent form so that the menu is removed if needed.
25722
25723 2006-06-06  Mike Kestner  <mkestner@novell.com>
25724
25725         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
25726         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
25727
25728 2006-06-06  Mike Kestner  <mkestner@novell.com>
25729
25730         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
25731
25732
25733 2006-06-06  Jackson Harper  <jackson@ximian.com>
25734
25735         * Control.cs: Use the property (instead of the field) to get the
25736         default cursor so it is instantiated correctly.
25737         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
25738         resizes so we need to manually repaint the window decorations here.
25739         - Set the titlebar button locations as soon as they are created,
25740         otherwise they are not set correctly on win32.
25741         
25742 2006-06-06  Chris Toshok  <toshok@ximian.com>
25743
25744         * CurrencyManager.cs (set_Position): call PullData before
25745         OnCurrentChanged.
25746         (AddNew): after calling IBindingList.AddNew, update our
25747         listposition, and call OnCurrentChanged/OnPositionChanged (without
25748         calling PullData).
25749         (OnCurrentChanged): remove the call to PullData from here.
25750         (OnItemChanged): remove the call to PushData from here.
25751         (OnPositionChanged): change the test from == null to != null to
25752         match the other methods.
25753         (ListChangedHandler): the grossest part of the patch.  Implement
25754         this such that it passes the unit tests in CurrencyManagerTest and
25755         the output more or less matches that of MS's implementation.
25756  
25757 2006-06-06  Mike Kestner  <mkestner@novell.com>
25758
25759         * ListView.cs : only update check state on single click.
25760         * ThemeWin32Classic.cs : fix focus drawing for details view without
25761         fullrowselect.  Fixes #78454.
25762         * XplatUIX11.cs : fix for double click emission.
25763
25764 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
25765
25766         * PropertyGridView.cs : Applied Atsushi's patch to fix
25767         font dialog bug  (#78197).
25768
25769 2006-06-05  Jackson Harper  <jackson@ximian.com>
25770
25771         * TreeNode.cs: Compute the next node for expanding/collapsing
25772         correctly. We now factor in nodes without a NextNode
25773         correctly. (Fixes somes cases in nunit-gui).
25774         * InternalWindowManager.cs: Set the bounds when updating the
25775         virtual position of a tool window.
25776         
25777 2006-06-05  Chris Toshok  <toshok@ximian.com>
25778
25779         * DataGrid.cs: rename cached_currencymgr to list_manager.
25780         (set_CurrentCell): move SetCurrentCell code here, and clean it up
25781         some.
25782         (CurrentRow, CurrentColumn): single accessors so we can make the
25783         cursor movement code a lot easier to understand.
25784         (CurrentRowIndex): implement this in terms of CurrentRow.
25785         (BeginEdit): clean this up a bit.
25786         (CancelEditing): sort out the is_editing/is_changing/is_adding
25787         stuff a little.
25788         (EndEdit): minor changes.
25789         (OnKeyDown): add a comment about a (most likely) unnecessary
25790         check.
25791         (OnMouseDown): cancel editing when we click on a row header.  And
25792         use the CurrentRow setter, not CurrentCell.
25793         (ProcessDialogKey): directly call ProcessGridKey.
25794         (UpdateSelectionAfterCursorMove): factor out this common block of
25795         code (it's used everywhere that we move the cursor by updating row
25796         or column).
25797         (ProcessGridKey): pretty substantial overhaul.  Use the
25798         CurrentRow/CurrentColumn properties to make the code a lot more
25799         readable.  Only use the CurrentCell property when we have to
25800         modify both row and column at once.  Tab behavior is still broken,
25801         and Delete is untested.
25802         (Select): if we have no selected rows, set selection_start to
25803         @row.
25804         (EditCurrentCell): rename EditCell this.  It was only ever invoked
25805         with CurrentCell as the arg, so drop the arg and rename it.
25806
25807         * DataGridColumnStyle.cs: clean up the constructors a little, and
25808         drop CommonConstructor().
25809
25810         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
25811         actually get notified when the user hits it.
25812         (ProcessKeyMessage): *substantially* simplify this method.
25813         There's no reason (that I can see) for the textbox to be making
25814         calls into the datagrid at all.  Remove all of them but the ones
25815         for Enter handling.  those will take some more work.
25816
25817         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
25818         calling HideEditBox.
25819         (HideEditBox): if we have an active textbox, render it invisible
25820         without causing a re-layout of the datagrid.
25821
25822 2006-06-05  Mike Kestner  <mkestner@novell.com>
25823
25824         * ListView.cs : fix NRE crasher when focuseditem is cleared by
25825         collection changes by resetting it to Items[0].  Fixes #78587.
25826
25827 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25828
25829         * MessageBox.cs: if the height of the text is larger than the icon_size,
25830         use that. Fixes bug #78575.
25831
25832 2006-06-05  Jackson Harper  <jackson@ximian.com>
25833
25834         * TreeView.cs: Fix line drawing when scrolling.  To do this each
25835         node is basically responsible for drawing its entire horizontal
25836         area.  When drawing a node it draws its parent node lines if
25837         needed.
25838         - Adjust the clip area to the viewport rectangle
25839         - Fix Left/Right key handling to match MS. (It expand/collapses
25840         and moves to parents/first child but does not move selection to
25841         sibling nodes).
25842         - Fix SetTop to work with new bound calculation code
25843         - When scrollbars are no longer needed we need to reset scrolling
25844         vars and recalculate the visible order so the redraw is correct
25845         * TreeNode.cs: We can't expand/collapse nodes with no children.
25846
25847 2006-06-03  John Luke  <john.luke@gmail.com> 
25848
25849         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
25850         so the colors work without dev packages
25851         
25852 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
25853
25854         * Control.cs 
25855           - Select: Implemented to just use activate. Seems to match MS 
25856             behaviour closest. Documented to only do actual control walking 
25857             based on it's parameters if in a container control so I moved 
25858             the code there.
25859           - Removed selection check logic from our internal Select() method
25860         * ContainerControl.cs:
25861           - Select: Moved selection logic from Control here, since MS documents
25862             that containers obey the bool arguments. No longer calling base
25863
25864 2006-06-02  Jackson Harper  <jackson@ximian.com>
25865
25866         * TreeView.cs: If the selected node isn't changed when we get
25867         focus update the previously selected node so that we see the
25868         selection box.
25869
25870 2006-06-02  Mike Kestner  <mkestner@novell.com>
25871
25872         * ComboBox.cs: restructure grab and general mouse event handling.
25873         Make the composite control raise mouse events like it was a single
25874         control for leaves/enters/motion/up/down events.  fix dropdown list
25875         coordinate mangling and refactor it into the scrollbar subclass to
25876         reduce code duplication.  Fixes #78282 #78361 and #78457.
25877
25878 2006-06-02  Mike Kestner  <mkestner@novell.com>
25879
25880         * ScrollBar.cs: remove Capture setting/clearing, as it happens
25881         automatically in the Control.WndProc.
25882
25883 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25884
25885         * FileDialog.cs: fix crash when running SharpChess, which sets the
25886         FilterIndex to 2 with only one Filter.
25887
25888 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25889
25890         * ToolBar.cs: add SizeSpecified property.
25891         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
25892         try to figure out our real size, otherwise fallback to what the
25893         container says.
25894
25895 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
25896
25897         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
25898         * Control.cs (WndProc): MS always calls the DefWndProc to pass
25899           up the event
25900
25901 2006-06-01  Mike Kestner  <mkestner@novell.com>
25902
25903         * ListView.cs: revamp the focus management in ListView.  It still
25904         causes churn of LostFocus/GotFocus emissions on clicks, but it's
25905         better than not handling focus at all.  Will revisit when pdb feels
25906         the general focus handling is solid.  Fixes #78526.
25907
25908 2006-06-01  Jackson Harper  <jackson@ximian.com>
25909
25910         * TreeView.cs: Set the default border style in the constructor.
25911         - Move painting to use OnPaintInternal instead of capturing
25912         WM_PAINT, this is the correct way of doing things
25913         - UpdateBelow shouldn't invalidate the scrollbar area
25914         - Cap the top on update below in case the node was above the top
25915         of the viewport rectangle.
25916         - ExpandBelow and Collapse below need to obey Begin/End Update.
25917         * TreeNode.cs: Make is_expanded internal so the treenode
25918         collection can change it without firing the whole event chain.
25919         * TreeNodeCollection.cs: When clearing all the child nodes make
25920         sure to recalc the visible order.
25921         - Improve algo for remove the top node
25922
25923 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
25924
25925         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
25926           SendMessage directly calling window procedures, which in turn might
25927           call SetFocus()
25928
25929 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
25930
25931         * Control.cs: Don't handle WM_SETFOCUS if the same window already
25932           has focus (works around X11 sending a FocusIn after our SetFocus)
25933         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
25934
25935 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
25936
25937         * Mime.cs: Fix for the NET_2_0 build.
25938           NameValueCollection needs StringComparer now.
25939
25940 2006-05-31  Chris Toshok  <toshok@ximian.com>
25941
25942         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
25943         return (via an out parameter) the starting X of the column.
25944         (UpdateVisibleColumn): track change to FromPixelToColumn.
25945         (HitTest): add a ColumnResize case here.
25946         (DrawResizeLine): new function, probably poorly named.
25947
25948         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
25949         only need to keep one reference.
25950         (set_ListManager): same.
25951         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
25952         Also, add support for HitTestType.ColumnResize.
25953         (OnMouseMove): add column resize behavior here, and change the
25954         cursor to the correct one as we move around the datagrid.
25955         (OnMouseUp): terminate the column resize if we're resizing.
25956         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
25957         for the current cell.
25958         (ConnectListManagerEvents): use cached_currencymgr.
25959         (DisconnectListManagerEvents): fill this in, using
25960         cached_currencymgr.
25961         (SetCurrentCell): remove cached_currencymgr_events handling.
25962         (SetDataMember): only call DisconnectListManagerEvents if
25963         cached_currencymgr is != null.
25964         (SetDataSource): same.
25965         (OnListManagerCurrentChanged): cached_currencymgr_events ->
25966         cached_currencymgr.
25967
25968 2006-05-31  Jackson Harper  <jackson@ximian.com>
25969
25970         * BindingManagerBase.cs: Remove somedebug code that creeped into
25971         SVN.
25972         * TreeNode.cs: We get the indent level dynamically right now, so
25973         don't track it as a member.
25974         * TreeNodeCollection.cs: Make sure all nodes added to the list
25975         have parents, treeviews/topnodes setup properly.
25976         - Don't attempt to track indent level.
25977
25978 2006-05-30  Jackson Harper  <jackson@ximian.com>
25979
25980         * BindingContext.cs: Create the currency manager tables here.
25981         This allows us to more easily create null tables (when bad data
25982         members are used), and more easily create related currency
25983         managers.
25984         * CurrencyManager.cs: All the table creation stuff is done by the
25985         binding context now.
25986         - Current should throw an exception if listposition is -1.
25987         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
25988         been bound yet.
25989
25990 2006-05-30  Mike Kestner  <mkestner@novell.com>
25991
25992         * ListView.cs: allow reexpansion of zero-width column headers.
25993         Fixes #78528.
25994
25995 2006-05-28  Chris Toshok  <toshok@ximian.com>
25996
25997         * CurrencyManager.cs (get_Current): after the late binding
25998         listposition = -1 fix, we need to guard against it here and return
25999         null, otherwise we raise an exception (which is swallowed
26000         elsewhere, and breaks datagrid databinding.)
26001
26002 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
26003
26004         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
26005           than WM_SYSKEY, don't throw if get something unexpected (#78507)
26006
26007 2006-05-26  Jackson Harper  <jackson@ximian.com>
26008
26009         * ControlPaint.cs:
26010         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
26011         values, it's faster and it's all we care about (we don't care if
26012         the names aren't equal).
26013         * KeyboardLayouts.cs: Eliminate some dead code.
26014         - Lazy init things
26015         * X11Keyboard.cs: Lazy init keyboard detection.
26016         - Cleanup access modifiers a little.
26017
26018 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
26019
26020         * XplatUIX11.cs: Once again, attempting to get layout just right.
26021
26022 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
26023
26024         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
26025           the sizes of each link section, that will result in sizes that
26026           match DrawString's layout (Fixes #78391)
26027
26028 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
26029
26030         * FileDialog.cs: If AddExtension property is true autocomplete the
26031           extensions in SaveFileDialog correctly. Fixes bug #78453.
26032           Set MyNetwork and MyComputer to "C:\" for windows. This should
26033           fix part 8 of bug #78446 for now.
26034
26035 2006-05-26  Chris Toshok  <toshok@ximian.com>
26036
26037         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
26038         invalidate the current row header if we need to, but presumably
26039         we'll invalidate the row corrsponding to the bounds or
26040         editingControl.
26041         (GridHScrolled): switch back to this method, as it's part of the
26042         public api.  *sigh*.
26043         (GridVScrolled): same.
26044         (OnMouseWheel): hack up something that more or less works.  Call
26045         GridHScrolled/GridVScrolled directly, instead of duplicating much
26046         of their code here.
26047         (EnsureCellVisibility): reinstate a bunch of this code, since we
26048         can't just set the scrollbar Value and expect to do all the work
26049         in the ValueChanged handler.  Also, Call Update() after scrolling
26050         in one direction so the other XplatX11.ScrollWindow call has the
26051         proper stuff in the proper places.
26052         (EditCell): set is_editing to true before calling .Edit.
26053
26054         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
26055         don't bother comparing first.
26056         (OnKeyPress): call grid.ColumnStartedEditing before calling
26057         base.OnKeyPress.  this will set is_changing and invalidate the row
26058         header if necessary.
26059         (ProcessKeyMessage): for WM_CHAR messages, call
26060         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
26061         and WM_KEYDOWN.
26062         
26063         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
26064         it's done in the DataGrid.
26065         (NextState): call grid.ColumnStartedEditing, which takes care of
26066         invalidating the row header (and setting is_changing).
26067
26068         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
26069         here.  it's done in the DataGrid.
26070
26071 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26072
26073         * Control.cs: allow changing the cursor when the mouse position is
26074         out of bounds but Capture is set.
26075         * LinkLabel.cs: handle the case when the mouse button is pressed on the
26076         linklabel but released somewhere else.
26077
26078 2006-05-25  Jackson Harper  <jackson@ximian.com>
26079
26080         * TreeView.cs: When we get focus if there is no selected node make
26081         it the top node
26082         - Remove some uneeded setup code from Draw.
26083         * TreeNodeCollection.cs: If the tree doesn't have a top node when
26084         a new node is inserted make the new node the top.
26085         * XplatUIX11.cs:
26086         * Timer.cs: Use Utc time so that no local time zone stuff needs to
26087         be used (should be faster).
26088         
26089 2006-05-25  Chris Toshok  <toshok@ximian.com>
26090
26091         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
26092         problem with the last commit.
26093
26094 2006-05-25  Chris Toshok  <toshok@ximian.com>
26095
26096         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
26097         need the invalidate call here, while scrolling right-to-left via
26098         the left arrow key (i.e. moving the editing cell while scrolling).
26099
26100         * DataGrid.cs (.ctor): remove the initialization of
26101         ctrl_pressed/shift_pressed.  We no longer track them using key
26102         up/down handlers, but by using Control.ModifierKeys.  Also, switch
26103         to using ValueChanged handlers on the scrollbars instead of
26104         Scrolled event handlers.  This simplifies a bunch of the scrolling
26105         code.
26106         (GridHValueChanged): rename from GridHScrolled, and change it to
26107         work with the new event args.
26108         (GridVValueChanged): same.
26109         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
26110         (OnMouseWheel): actually scroll the datagrid.  Don't change the
26111         selected cell.
26112         (ProcessGridKey): correct all the keyboard navigation stuff I
26113         could find.  Ctrl up/down/left/right/home/end work now.
26114         (EnsureCellVisibility): correct method name spelling.  Also,
26115         simplify this a touch by not explicitly calling the
26116         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
26117         scrollbar value.
26118         (OnKeyUpDG): no need for this method now.
26119         
26120 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26121
26122         * LinkLabel.cs: display the OverrideCursor when hovering the label.
26123         Fixes bug #78392.
26124
26125 2006-05-25  Chris Toshok  <toshok@ximian.com>
26126
26127         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
26128         r61019.
26129
26130 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
26131
26132         * Application.cs: Moved setting of is_modal and closing to before
26133           we create the control, to allow the event handlers called as a
26134           result of creation affect closing. Also removed Gonzalo's previous
26135           change to setting DialogResult, the behaviour has been moved to 
26136           Form.ShowDialog()
26137         * Form.cs: 
26138           - ShowDialog(): Removed explicit creation of the form, let RunLoop
26139             handle it instead
26140           - ShowDialog(): If no dialog result is set, we need to return Cancel
26141           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
26142             the close is cancelled
26143
26144 2006-05-25  Jackson Harper  <jackson@ximian.com>
26145
26146         * StatusBar.cs: We only need to update the sizes of the other
26147         panels when we have auto size contents.  Also we are only updating
26148         the contents of the panel, not the borders, so compensate for the
26149         border width (TODO: get this width from the theme somehow).
26150         * TreeView.cs: Scrollable is true by default
26151         - Use invalidate instead of refresh where needed
26152         - Factor the scrollable value into scrollbar updating
26153         - Update the scrollbars if the Scrollable property is altered
26154         - Update the selected node if its ImageIndex is changed
26155         - Handle null nodes in UpdateNode (mainly so we don't have to
26156         check if selected is null when updating it
26157         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
26158         are factored into the visible count
26159         - Use VisibleCount for clarity in the code
26160         - When the font is changed we need to recurse through all the
26161         nodes and invalidate their sizes
26162         
26163 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26164
26165         * Application.cs: set the DialogResult to fixed when the main form is
26166         hidden or destroyed while being modal.
26167
26168 2006-05-25  Miguel de Icaza  <miguel@novell.com>
26169
26170         * Theme.cs: Use Tangoified messagebox icons. 
26171
26172         (GetSizedResourceImage): Also cope with width = 0 and do not
26173         trigger a warning in that case (0 means "give me your icon from
26174         the resouce, no special size needed).
26175
26176 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
26177
26178         * Application.cs: Leave runloop if the the main modal form is 
26179           hidden (fixes #78484)
26180
26181 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
26182
26183         * BindingContext.cs : reject null datasource in Contains() and
26184           Item[].
26185         * CurrencyManager.cs : check data_member validity when data_source
26186           is dataset. When it is late binding, the initial position is -1.
26187
26188 2006-05-24  Jackson Harper  <jackson@ximian.com>
26189
26190         * TreeNodeCollection.cs: Dont't recalculate the visible order on
26191         inserted nodes that aren't visible.  This changes the
26192         max_visible_order which confuses scrollbar settings.
26193         - Use the enumerator to get the prev node instead of duplicating
26194         code.
26195         * TreeView.cs: Use new method for setting scrollbar values
26196         - Don't set the bounds every time the scrollbar is updated
26197         - When updating below the root node use an invalidate instead of a
26198         refresh to prevent the child controls (scrollbars) from being
26199         refreshed. (UpdateBelow still needs to be reworked anyways).
26200         - Reenable SetBottom now that visible orders are set correctly,
26201         added some debug code incase we ever get bad values there again.
26202         - Set the scrollbar max to 2 less then the max value, this
26203         compensates for the max value being one above the node count, and
26204         for scrollbars adding one extra "notch".
26205         - When drawing image nodes if there is an imagelist we draw the
26206         first image in the list if the supplied image index is out of the
26207         image list's bounds.
26208         
26209 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
26210
26211         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
26212           we receive a size change from the WM (Fixes #78503)
26213
26214 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
26215
26216         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
26217           rectangle (Fixes #78501)
26218
26219 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
26220
26221         * ButtonBase.cs: 
26222           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
26223             as a bitfield.
26224           - Fixed MouseMove to no longer switch pressed state unless the left
26225             mouse button is pressed. Atsushi provided the original patch (#78485)
26226           
26227 2006-05-24  Jackson Harper  <jackson@ximian.com>
26228
26229         * ScrollBar.cs: New internal methods that allow us to change a
26230         couple values on the scrollbar (the most common case is maximum
26231         and large change) without getting multiple invalidates.
26232
26233 2006-05-24  Chris Toshok  <toshok@ximian.com>
26234
26235         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
26236         (Edit): save off the original state in oldState, and set
26237         grid.is_editing to true.
26238         (OnKeyDown): abort editing if escape is pressed.  also, call
26239         NextState if space is pressed.
26240         (OnMouseDown): call NextState.
26241         (NextState): factor out shared code from OnKeyDown and OnMouseDown
26242         here.  Also, only invalidate the row header once (on the initial
26243         is_changing switch) to save on redraws.
26244
26245 2006-05-24  Chris Toshok  <toshok@ximian.com>
26246
26247         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
26248         if the value in the cell is different than it was before.  This
26249         keeps us from triggering a layout when we move around a datarid
26250         with a highlighted cell.
26251         (Edit): suspend layout when creating/positining the text box, and
26252         resume passing false so we don't ever actually re-layout.
26253         (ReleaseHostedControl): same.
26254         (EnsureTextBox): reformat slightly, and set WordWrap to false.
26255
26256         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
26257         control-key sequences should go to the datagrid - remove that
26258         lock.  Also, modify the conditions under which we move between
26259         cells when moving the cursor within a cell, and remove the "this"
26260         and "base" from field accesses.  We weren't even consistent, given
26261         they all were in the base class.
26262
26263 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
26264
26265         * Binding.cs : (.ctor)
26266           An obvious NRE fix for BindingTest.CtorNullTest().
26267
26268 2006-05-23  Chris Toshok  <toshok@ximian.com>
26269
26270         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
26271         them between lines.  This fixes some quirks editing cells in the
26272         datagrid.
26273
26274 2006-05-23  Jackson Harper  <jackson@ximian.com>
26275
26276         * TreeView.cs: Use begin/end update when doing expand/collapse all
26277         so that we don't get flicker on the scrollbar.
26278
26279 2006-05-23  Jackson Harper  <jackson@ximian.com>
26280
26281         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
26282         treenode calculations to be independant of the painting code. To
26283         do this nodes track a visible order which is calculated by the
26284         treeview.
26285         - Call new methods for expanding/collapsing nodes.  These methods
26286         use scrollwindow so we don't have to update everything below the
26287         node.
26288         * TreeView.cs: Refactored drawing and scrolling code.  We don't
26289         need to update nodes when drawing anymore or calculate scrollbar
26290         stuff.
26291         - Added new methods for expanding/collapsing nodes. These methods
26292         use ScrollWindow so as to not have to redraw all the nodes below.
26293         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
26294         we add/remove nodes or sort.
26295         - Handle removing the selected and the top node properly.
26296
26297 2006-05-23  Chris Toshok  <toshok@ximian.com>
26298
26299         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
26300         maybe this should actually happen in the datagrid code?
26301         (EndEdit): no need to invalidate anything, given that
26302         ReleaseHostedControl causes the datagrid to relayout, which
26303         invalidates everything anyway.
26304
26305         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
26306         in SetCurrentCell).
26307         (set_SelectionBackColor): call InvalidateSelection instead of
26308         Refresh.
26309         (set_SelectionForeColor): same.
26310         (BeginEdit): Flesh this out a bit.
26311         (CancelEditing): only do any of this if we're editing/adding.
26312         (EndEdit): same.
26313         (OnMouseDown): there's no need to cancel editing here, it's done
26314         in SetCurrentCell.
26315         (SetCurrentCell): only invalidate the current row header if it's a
26316         different row than the new one.
26317         (ShiftSelection): fix this to work like MS does.
26318         (ResetSelection): factor out the invalidation of selected_rows to
26319         InvalidateSelection.
26320         (SetDataSource): cancel any editing that's going on.
26321
26322         * DataGridColumnStyle.cs
26323         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
26324         call the non-interface version.
26325
26326         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
26327         header rectangle with the clip rectangle so we don't redraw the
26328         entire header for just a small area.  Gets rid of the last flicker
26329         when horizontally scrolling.
26330         (DataGridPaintRow): same.
26331
26332 2006-05-23  Mike Kestner  <mkestner@novell.com>
26333
26334         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
26335         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
26336         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
26337         Critical bug report.
26338
26339 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
26340
26341         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
26342           and this fixes #78493
26343
26344 2006-05-23  Miguel de Icaza  <miguel@novell.com>
26345
26346         * Theme.cs (GetSizedResourceImage): Scale images if the proper
26347         size is not found.  
26348         
26349         * FileDialog.cs: Do not change the background for the side bar as
26350         it wont work nicely with the theme, and also reduces the artifacts
26351         in rendering the icons (which I want to fix too).
26352
26353         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
26354         resources, not resgen resources. 
26355
26356         (PlatformDefaultHandler): Pull images using the new API.
26357
26358 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
26359
26360         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
26361           a reference to the hwnd and will not remove it unless there are
26362           no pending exposures (fixes #78341)
26363         * XplatUI.cs: Improved debug
26364
26365 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
26366
26367         * MenuAPI.cs : don't handle OnClick event when it was not the left
26368           button. Fixed bug #78487.
26369
26370 2006-05-23  Mike Kestner  <mkestner@novell.com>
26371
26372         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
26373         prefer submenus to the top menu for item lookup, to avoid popping down
26374         top-row items.
26375
26376 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
26377
26378         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
26379           Graphics.FillRectangle as the visual results are really bad (even
26380           on win). We now draw perfect arrows (and perfect shadows when the
26381           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
26382           Pen.DashPattern to draw the dots of each line.
26383
26384 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
26385
26386         * FileDialog.cs: Update the filename combobox when navigating through
26387           the ListView with the cursor keys. Fixes part 7 of bug #78446.
26388
26389 2006-05-22  Mike Kestner  <mkestner@novell.com>
26390
26391         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
26392         Fixes #78463.
26393
26394 2006-05-22  Mike Kestner  <mkestner@novell.com>
26395
26396         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
26397         requests. Fix a misspelled parameter and a copy paste exception error
26398         in Select.
26399
26400 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
26401
26402         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
26403           to get the same width/height (5/13) on X11 as the default font has on
26404           win32. This means that our DefaultFont emSize is smaller than the 
26405           the MS SWF equivalent (even thought the width/height stays the same)
26406
26407 2006-05-20  Jackson Harper  <jackson@ximian.com>
26408
26409         * MdiClient.cs:
26410         * MdiWindowManager.cs:
26411         * InternalWindowManager.cs: Make sure to use the border width from
26412         the theme.
26413
26414 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
26415
26416         * PrintDialog.cs: Implements printer details
26417
26418 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
26419
26420         * FileDialog.cs: Added focus handling for PopupButtonPanel.
26421           Fixes part 1 and 2 of bug #78446
26422
26423 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
26424
26425         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
26426           instead of sticking to the first ever calculated value
26427
26428 2006-05-19  Mike Kestner  <mkestner@novell.com>
26429
26430         * ComboBox.cs: fix mouse motion selection to use MousePosition and
26431         PointToClient, since Capture is set. Fixes #78344.
26432
26433 2006-05-19  Mike Kestner  <mkestner@novell.com>
26434
26435         * ListView.cs: match MS behavior in Details view where items are not
26436         drawn if Columns.Count == 0. 
26437         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
26438         Use a separate pen to draw the check, since changing the width affects
26439         the box as well.  Fixes #78454.
26440
26441 2006-05-18  Miguel de Icaza  <miguel@novell.com>
26442
26443         * ListView.cs: ArgumentOutOfRangeException, single versions of the
26444         exception should throw the name of the invalid argument.
26445
26446         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
26447         there are no files listed. 
26448
26449 2006-05-18  Jackson Harper  <jackson@ximian.com>
26450
26451         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
26452         up.
26453
26454 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
26455
26456         * Control.cs: Brought back our old UpdateZOrder method as a private
26457           function and switched our calls from UpdateZOrder to the new one.
26458           This fixes the Paint.Net canvas disappearing bug.
26459
26460 2006-05-18  Jackson Harper  <jackson@ximian.com>
26461
26462         * Theme.cs:
26463         * ThemeWin32Classic.cs:
26464         * InternalWindowManager.cs: Move the drawing into the theme,
26465         expose everything the theme should need from the window manager.
26466
26467 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
26468
26469         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
26470           from the call to NativeWindow to avoid walking up the parent chain
26471           further than needed (speeds up setting cursors and avoids setting
26472           the wrong cursor if a parent has another cursor defined)
26473         * Cursor.cs: When loading an icon as cursor, MS uses the center of
26474           the icon as hotspot, not what's contained as hotspot in the icon
26475           file. This fixes the perceived drawing offset seen with Paint.Net
26476         
26477 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
26478
26479         * XplatUIX11.cs: 
26480           - Store the calculated rectangle in Hwnd object and use it when 
26481             setting the client size
26482           - Force Toolwindows to always be type Dock, to ensure they're on top
26483
26484 2006-05-18  Mike Kestner  <mkestner@novell.com>
26485
26486         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
26487         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
26488         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
26489         Substantial refactoring to remove confusing nested classes. Coding
26490         standard and Get+Set->property refactorings.  Shift to index based
26491         highlighting in ComboListBox instead of constantly using IndexOf and
26492         Items[]. Add invalidations on resize for DropDownList to fix ugliness
26493         in FileDialog growth.  Draw borders manually since Simple mode needs
26494         to look like two independent controls.  Make listbox border
26495         conditional to DropDownStyle.  Improved OwnerDraw support.
26496
26497 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
26498
26499         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
26500         Don't set the disposed graphics to null, so we can throw the "right"
26501         exception if the graphics is reused later (added a flag to avoid 
26502         double disposing). Some behaviours are different under 2.0 and are
26503         filled under bug #78448.
26504
26505 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
26506
26507         * Control.cs: When double-buffering is enabled, we need to reset
26508           our graphics context between paint calls. Otherwise, any 
26509           transformations and other alterations on the context will 
26510           become cumulative (#77734)
26511
26512 2006-05-18  Mike Kestner  <mkestner@novell.com>
26513
26514         * ListView.cs: do focused item selection like MS on clicks. 
26515         Rework focus handling for ItemControl so LostFocus invalidates as
26516         well.
26517         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
26518         the ListView ItemControl has focus.
26519
26520 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
26521
26522         * XplatUIX11.cs: If client_window ends up being width or height zero
26523           due to border settings, move it off window inside whole_window (#78433)
26524
26525 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
26526
26527         * Mime.cs: Shrink the mime file cache correctly.
26528
26529 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
26530
26531         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
26532
26533 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26534
26535         * XplatUIX11.cs (AddExpose): More sanity checks
26536
26537 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26538
26539         * XplatUIX11.cs:
26540           - AddExpose: Don't add expose ranges outside the size of our
26541             window
26542           - Cast opacity values to Int32 to avoid crashes with certain
26543             values
26544           - Added disabled code paths that protect against illegal cross-
26545             thread painting (Developers.exe)
26546
26547 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26548
26549         * ProgressBar.cs: Invalidate the control when it's resized
26550           since block size is based on control size. (#78388)
26551
26552 2006-05-16  Miguel de Icaza  <miguel@novell.com>
26553
26554         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
26555         of setting the incoming argument to the "reset" value, we set the
26556         this.datamember to string.empty (before we were invalidating the
26557         incoming data).   
26558
26559         Fixes 78420
26560
26561 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26562
26563         * Form.cs: Only apply transparency settings after the form
26564           is created. (Fixes #77800)
26565
26566 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26567
26568         * ApplicationContext.cs: Grab the HandleDestroyed event so
26569           we know when to fire OnMainFormClosed 
26570
26571 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26572
26573         * Application.cs: Introduced sub-class to allow tracking of
26574           threads and centralized triggering of the event mess for
26575           ThreadExit, AppExit, etc..  (#76156)
26576
26577 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
26578
26579         * MimeIcon.cs:
26580           - Do not return a null icon index value for a mime subclass.
26581             Instead try the main mime type class too.
26582           - Seems that some newer distributions don't have a link to some
26583             gnome default icons anymore. So check the default gnome dir too.
26584           
26585
26586 2006-05-16  Jackson Harper  <jackson@ximian.com>
26587
26588         * MdiClient.cs: Don't paint the parent background image if we have
26589         our own background image.
26590
26591 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26592
26593         * Control.cs:
26594           - PerformLayout: Do not shrink space filled by DockStyle.Fill
26595             controls, all filled controls are supposed to overlap (#78080)
26596           - UpdateZOrder is supposed to update the control's z-order in the
26597             parent's z-order chain. Fixed to behave like that
26598           - BringToFront: Removed obsolete code
26599           - SendToBack: Simplyfied
26600           - SetChildIndex: Trigger layout calculations when Z-order changes
26601             since layout is done by z-order
26602
26603 2006-05-16  Chris Toshok  <toshok@ximian.com>
26604
26605         [ fixes bug #78410 ]
26606         * DataGrid.cs (set_AlternatingBackColor): use
26607         grid_drawing.InvalidateCells instead of Refresh().
26608         (set_BackColor): call grid_drawing.InvalidateCells.
26609         (set_BackgroundColor): use Invalidate instead of Refresh.
26610
26611         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
26612         invalidate the cell area.
26613
26614 2006-05-15  Chris Toshok  <toshok@ximian.com>
26615
26616         [ fixes bug #78011 ]
26617         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
26618         on to DataGridPaintRow.
26619         (DataGridPaintRow): take a clip argument, and only draw the cells
26620         which intersect it.  same with the not_usedarea.
26621
26622         * Theme.cs (DataGridPaintRow) add @clip parameter.
26623
26624         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
26625         XplatUI.ScrollWindow.
26626         (ScrollToRow): same.
26627
26628         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
26629         with last column which was causing a gray swath to appear with the
26630         XplatUI.ScrollWindow code.
26631
26632 2006-05-15  Chris Toshok  <toshok@ximian.com>
26633
26634         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
26635         use XplatUI.ScrollWindow.
26636         (VerticalScrollEvent): use XplatUI.ScrollWindow.
26637
26638 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
26639
26640         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
26641
26642 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
26643
26644         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
26645           file since there are no equivalent X11 cursors
26646
26647 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
26648
26649         * MonthCalendar.cs : DateTimePicker should reflect selected date
26650           on mouse*up*, not mouse*down*. Fixed originally reported part of
26651           bug #76474.
26652
26653 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
26654
26655         * TabControl.cs : When argument index is equal or more than tab
26656           count, just ignore. Fixed bug #78395.
26657
26658 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
26659
26660         * Control.cs: Dispose all child controls when control is diposed (#78394)
26661
26662 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26663
26664         * ColorDialog.cs: Finally it is possible to select the color with
26665           the text boxes
26666
26667 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26668
26669         * PrintDialog.cs: Fix typo
26670
26671 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26672
26673         * PrintDialog.cs: PrintDialog is not resizable
26674         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
26675           color. Made some ToolBar drawing methods protected virtual.
26676
26677 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
26678
26679         * PrintDialog.cs: Implementation of the PrintDialog
26680
26681 2006-05-12  Chris Toshok  <toshok@ximian.com>
26682
26683         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
26684         thumb, instead use MoveThumb.  This has the side effect of making
26685         most of the other thumb moving machinery use MoveThumb as well.
26686         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
26687         need to actually invalidate the rectangle where the new thumb will
26688         go.
26689         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
26690         We force an Update() after, so it's not as fast as it could be,
26691         but at least there's zero flicker and no droppings.
26692         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
26693         (UpdateThumbPos): add another argument (dirty), which says whether
26694         or not to calculate/add dirty regions which we later invalidate.
26695         For cases where we know we're going to use MoveThumb, we pass
26696         false for this.  Otherwise, pass true.
26697
26698 2006-05-12  Jackson Harper  <jackson@ximian.com>
26699
26700         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
26701         the status bar.
26702         
26703 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
26704
26705         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
26706           and GetClipRegion methods and UserClipWontExposeParent property.
26707         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
26708           overriding UserClipWontExposeParent property, setting to false, since
26709           Win32 handles the required expose messages to draw our clipped parent
26710           areas internally
26711         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
26712           PaintEventStart to set the user clip region if set.
26713         * Control.cs: 
26714           - Now internally tracking the Region for the control since we need to
26715             store it if the handle is not yet created and only set it when it
26716             becomes created. Before setting the region forced handle creation
26717           - Added code to draw the parents underneath a user-clipped region
26718         * Hwnd.cs: Added UserClip property
26719
26720 2006-05-12  Chris Toshok  <toshok@ximian.com>
26721
26722         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
26723         (set_Maximum): same.
26724         (set_Minimum): same.
26725         (set_SmallChange): same.
26726         (OnMouseUpSB): remove the call to refresh when releasing the
26727         thumb.  We shouldn't need it.
26728         
26729 2006-05-12  Miguel de Icaza  <miguel@novell.com>
26730
26731         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
26732         AutoSize set to None, we do not need to relayout everything, we
26733         just need to invalidate the current region.
26734
26735         (Draw): Do not draw the entire ClientArea, just redraw the
26736         clip area being passed.
26737
26738         * MdiClient.cs: Make MdiClient constructor with the Form argument
26739         internal. 
26740
26741 2006-05-12  Jackson Harper  <jackson@ximian.com>
26742
26743         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
26744         parents background image,  but strangely not their own.
26745         - (DrawStatusBarPanel): Take into account horizontal alignment
26746         when drawing the strings and icons.
26747
26748 2006-05-12  Mike Kestner  <mkestner@novell.com>
26749
26750         * ListBox.cs: avoid invalidations for focus when the collection is
26751         empty. 
26752
26753 2006-05-12  Chris Toshok  <toshok@ximian.com>
26754
26755         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
26756         invalidate the entire thumb area.  Call InvalidateDirty which
26757         limits the redraw to the thumb itself and surrounding pixels.
26758
26759         * XplatUIX11.cs (ScrollWindow): optimize copying.
26760         
26761 2006-05-12  Chris Toshok  <toshok@ximian.com>
26762
26763         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
26764         Figure out the positioning/layout in a single pass instead of
26765         multiple recursive invocations.  Speeds up the initial display of
26766         the data grid.  Also, make many things private that were
26767         originally public but unused outside this class.
26768
26769 2006-05-11  Jackson Harper  <jackson@ximian.com>
26770
26771         * MdiClient.cs: Improved layout code.
26772
26773 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
26774
26775         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
26776           not SelectedObject.
26777
26778 2006-05-11  Chris Toshok  <toshok@ximian.com>
26779
26780         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
26781         union of that will always be {0,0,width,height}.
26782
26783 2006-05-11  Jackson Harper  <jackson@ximian.com>
26784
26785         * Form.cs: Match MS's DefaultSize for forms (they must have
26786         changed the size in sp2).
26787
26788 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
26789
26790         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
26791
26792 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
26793
26794         * TextControl.cs : Fixed bug #78109. This incorrect position
26795           comparison caused crash on automatic line split.
26796         * TextBoxBase.cs : reduce duplicate code.
26797
26798 2006-05-10  Jackson Harper  <jackson@ximian.com>
26799
26800         * MdiClient.cs: Active form is only sent to the back when using
26801         the Next form functionality, when a form is clicked the current
26802         active shouldn't be sent to the back.
26803         - Layout the mdi windows when the container is first made visible.
26804         * Form.cs: Give the MdiClient a ref to the containing form when we
26805         create it.
26806         
26807 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26808
26809         * LinkLabel.cs : link_font could be uninitialized, so populate one
26810           before actual use. Fixed bug #78340.
26811
26812 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26813
26814         * XplatUIX11.cs : clipboard format native value is IntPtr.
26815           Fixed bug #78283.
26816
26817 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26818
26819         * Control.cs: 
26820           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
26821             which is passed up the parent chain by DefWndProc
26822           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
26823             to DefWndProc (#77956)
26824         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
26825
26826 2006-05-10  Jackson Harper  <jackson@ximian.com>
26827
26828         * MdiClient.cs: We need to remove the controls from the mdi
26829         collection, when we close the window.
26830         * MdiWindowManager.cs: Special handling of closing mdi windows.
26831         * InternalWindowManager.cs: Make the close method virtual so the
26832         mdi window manager can handle it specially.
26833
26834 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
26835
26836         * DataGrid.cs:
26837           - Recalculate grid when the data source has changed
26838           - Matches styles provided by user from all data sources types
26839         * DataGridTableStyle.cs: For columns that provided by the user set the
26840         with the preferred value is there was unassigned.
26841         * CurrencyManager.cs: throw OnItemChanged event
26842
26843 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
26844
26845         * PictureBox.cs: Don't animate until handle is created. Start animation
26846           when handle is created.
26847
26848 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26849
26850         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
26851           current codebase.
26852         * XEventQueue.cs: We don't need to provide the extra info
26853
26854 2006-05-10  Jackson Harper  <jackson@ximian.com>
26855
26856         * MdiClient.cs: If the mdi clients parent form has a background
26857         image set, we draw that background image for the mdi area's
26858         background.
26859
26860 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26861
26862         * TextBoxBase.cs: Set IBeam cursor (#78347)
26863
26864 2006-05-10  Mike Kestner  <mkestner@novell.com>
26865
26866         * ToolBar.cs: fix some text padding issues with ButtonSize
26867         calculation. Update the default size to match MS documentation.
26868         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
26869         button size. Fixes #78296.
26870
26871 2006-05-10  Mike Kestner  <mkestner@novell.com>
26872
26873         * ListBox.cs: use is_visible for scrollbar positioning in case the
26874         control isn't on screen yet.  Fix off by one with Right vs Width
26875         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
26876         
26877 2006-05-10  Jackson Harper  <jackson@ximian.com>
26878
26879         * X11Dnd.cs: Drop to a control with another control on top of it.
26880         * ToolBar.cs: Work on a copy of the buttons list, so that it can
26881         be modified in click handlers. TODO: Look for similar problems in
26882         other controls.
26883
26884 2006-05-09  Jackson Harper  <jackson@ximian.com>
26885
26886         * Form.cs: Window managers need the old window state when setting
26887         window state now.
26888         * InternalWindowManager.cs: Allow the base mdi window manager to
26889         handle more of the MDI only stuff (like maximize buttons).
26890         * MdiWindowManager.cs: Fix some snafus in changing the window
26891         state.  Add all the menu functionality, for both popup and
26892         maximized menus.
26893         * MdiClient.cs: When a new form is selected the currently
26894         activated form is sent to the back, this matches MS.
26895         - Implement a new method to activate the next mdi child window.
26896
26897 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
26898
26899         * Control.cs: 
26900           - Added new InternalCapture method to allow controls to prevent
26901             the capture behaviour on the click handlers
26902           - Switched to use InternalCapture
26903         * ComboBox.cs:
26904           - Using InternalCapture to prevent mouse captures from being released
26905             on mouse button release (Fixes #78100)
26906         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
26907           returns Form borders if a caption is present. (Fixes #78310)
26908
26909 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
26910
26911         * TreeNode.cs: Changed serialization .ctor to not require every field
26912           to be present. (#78265)
26913         * OwnerDrawPropertyBag.cs: Added serialization .ctor
26914
26915 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
26916
26917         * MimeIcon.cs: for is faster than foreach for strings.
26918
26919 2006-05-05  Mike Kestner  <mkestner@novell.com>
26920
26921         * CheckedListBox.cs: update check handling code to not use selected.
26922         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
26923         behavior for visual feedback, motion response, shift/ctrl handling,
26924         and properly deal with all 4 selection modes. Updates to bounds
26925         handling logic.  Add scroll wheel support. [Fixes #77842]
26926
26927 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
26928
26929         * ListView.cs:
26930           - Moved adding of Implicit controls into .ctor. That way, subsequent
26931             creation of the controls will not cause them to think they are 
26932             toplevel windows (fixes #78200 header problem)
26933           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
26934           - Switched visibility setting of header control to use internal field
26935             to avoid triggering handle creation
26936           - Now checking if handle is created before causing a refresh when items
26937             are added (This makes us now match handle creation time with MS)
26938         * Splitter.cs: Removed loading of private splitter cursor, switched to
26939           Cursors version now that that is loading the right ones
26940         * Cursors.cs: Load proper splitter cursors from resources
26941         * Cursor.cs: Added second method of loading resource cursors for the 
26942           VS.Net users amongst us
26943
26944 2006-05-05  Mike Kestner  <mkestner@novell.com>
26945
26946         * ListView.cs: give header_control a minimum size based on the
26947         ListView size.
26948
26949 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
26950
26951         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
26952           window seems to do that with metacity, so set that type. (#78120)
26953
26954 2006-05-05  Mike Kestner  <mkestner@novell.com>
26955
26956         * ListViewItem.cs: fix Details mode checkbox layout bug.
26957         * ThemeWin32Classic.cs: draw a ListView column header for unused space
26958         at the end of the header, if it exists. [Fixes for #78200]
26959
26960 2006-05-04  Jackson Harper  <jackson@ximian.com>
26961
26962         * MdiClient.cs: Add a helper property to get the container form.
26963         * MdiWindowManager.cs: We have to make sure to use the menu origin
26964         when drawing the icons and buttons, this fixes maximized window
26965         icons/buttons on win32.
26966         * InternalWindowManager.cs: Reset the restore captions when a
26967         window goes from Maximized to Minimized and vice versa. Move the
26968         DrawMaximizedButtons into the MdiWindowManager source, tool
26969         windows can't be maximized. NOTE: This could use a little
26970         refactoring if time ever permits.
26971         
26972 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
26973
26974         * TextBox.cs: Add MWFCategoryAttributes
26975         * TextBoxBase.cs: Add MWFCategoryAttributes
26976         * Form.cs: Add MWFCategoryAttributes
26977
26978 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
26979
26980         * Control.cs: Add MWFCategoryAttributes
26981         * ScrollableControl.cs: Add MWFCategoryAttributes
26982
26983 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
26984
26985         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
26986           Divider is true. Fix a little glitch in PropertyToolBar
26987           drawing code
26988
26989 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
26990
26991         * Control.cs:
26992           - Dispose: Call base.Dispose, this causes the disposed event
26993             to be fired (and probably other, more important stuff)
26994           - SetVisibleCore: Set is_visible to true after creating the
26995             window so that the window still gets created invisible (if
26996             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
26997             to generate a WM_ACTIVE message
26998         * Form.cs: Call Dispose when we want to destroy the window, instead of
26999           just destroying the handle (Dispose will do that for us)
27000         * XplatUIX11.cs:
27001           - RootWindow also needs a queue, so we can properly process the
27002             property change events from RootWindow (like Activate)
27003           - Generatic synthetic WM_ACTIVE message when the active window is
27004             being destroyed
27005
27006 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
27007
27008         * LinkLabel.cs: Trigger a recalc of our label dimensions when
27009           bounds are changed
27010
27011 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
27012
27013         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
27014           for determining width and height (image might not be assigned if
27015           we're drawing an imagelist)
27016
27017 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
27018
27019         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
27020         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
27021           height from system
27022         * Theme.cs: No longer returns hardcoded menu height, instead calls
27023           new driver method
27024         * Form.cs (OnLoad): Scaling happens before triggering Load events 
27025           on MS (# 78257)
27026
27027 2006-05-01  Mike Kestner  <mkestner@novell.com>
27028
27029         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
27030
27031 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
27032
27033         * TextBoxBase.cs: Removed Fixme
27034         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
27035
27036 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
27037
27038         * XplatUIX11.cs:
27039           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
27040             the rectangle relative to the parent, considering borders. We
27041             don't really want that.
27042           - ScrollWindow: Fixed warning to be more understandable
27043         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
27044           scrollbars and scroll only the visible area
27045         * RichTextBox.cs: Removed debug output
27046
27047 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27048
27049         * NumericUpDown.cs (Text): Just use base
27050         * UpDownBase.cs: Ensure txtView is created before using it
27051
27052 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
27053
27054         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
27055           casting to IntPtr to avoid 64bit overflow errors
27056
27057 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27058
27059         * Control.cs:
27060           - AllowDrop: Don't force handle creation.
27061           - CreateHandle: Added call to tell driver if we're allowed to drop
27062
27063 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27064
27065         * FileDialog.cs: Remember the last directory not only for the
27066           current instance but also for new FileDialog instances.
27067
27068 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
27069         
27070         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
27071           broke sending async messages
27072
27073 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27074
27075         * XplatUIX11.cs:
27076           - ScrollWindow: Fixed method. We finally generate expose events again
27077             for scrolled areas. This was causing 'garbage' when scrolling
27078             textbox and other controls that used ScrollWindow
27079           - Switched from using the regular queue for paint events to the MS 
27080             model of 'generating' paint events when the queue is empty.
27081             We use the new XQueueEvent.Paint subclass to store which windows
27082             need painting.
27083           - AddExpose now takes the x/y/width/height of the exposed area
27084             and inserts the window into the paint queue if not already there
27085           - InvalidateWholeWindow: Switched to use new AddExpose method
27086           - UpdateMessageQueue: Added which queue to monitor for paint events
27087           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
27088             the unlikely case nothing above handles it. We reset the expose
27089             pending states to get them off the queue.
27090           - GetMessage: Now pulls a paint event if no other events are in the
27091             queue
27092           - Invalidate: Switched to new AddExpose method
27093           - PeekMessage: Updated to understand pending paint events
27094           - UpdateWindow: Fixed logic bug. We were only updating if the window
27095             didn't need updating. Also switched to sending WM_PAINT directly,
27096             like MS does.
27097         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
27098           and random access Remove(). The random access is needed to handle
27099           UpdateWindow() where a WM_PAINT is sent directly without accessing
27100           the queue.
27101         * ScrollBar.cs: Added Update() calls to cause immediate updates to
27102           allow for better feedback when scrolling. Scrollbars are small and
27103           the immediate update should make it 'feel' more responsive without
27104           slowing things down. ScrollBar still needs it's invaliate logic
27105           updated to not always invalidate the whole bar on certain changes.
27106
27107 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27108
27109         * Control.cs:
27110         (BackColor): if the control does not support a transparent background,
27111         return the default backcolor when the parent backcolor is transparent.
27112
27113 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
27114
27115         * Application.cs: Updated to new StartLoop/GetMessage API
27116         * RichTextBox.cs: Provide some output on RTF parsing errors
27117         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
27118           new queue_id argument to GetMessage and PeekMessage to allow faster
27119           handling of per-thread queues in drivers.
27120         * Hwnd.cs: Added Queue tracking and property
27121         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
27122         * XEventQueue.cs: Added thread trackingA
27123         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
27124         * XplatUIX11.cs:
27125           - Implemented new per-thread queue
27126           - GetMessage: Fixed return/break behaviour on several cases. We were
27127             returning stale messages in some cases, instead of just processing
27128             the next message
27129
27130 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
27131
27132         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
27133
27134 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
27135
27136         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
27137           fixed off-by-one comparisons between Width/Height and Right/Bottom.
27138
27139 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
27140
27141         * PropertyGridView.cs: Fix drop down width.
27142
27143 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27144
27145         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
27146           a mess in DrawToolBar, so I removed one of them.
27147
27148 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27149
27150         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
27151           needed (clip). Otherwise we get artifacts.
27152
27153 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
27154
27155         * FixedSizeTextBox.cs: Added constructor to allow specifying which
27156           dimension is fixed
27157         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
27158           and switched FixedSizeTextBox to only be fixed vertical (#78116)
27159         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
27160           if it matches the scale base font (avoids unneeded scaling)
27161
27162 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
27163
27164         * X11DesktopColors.cs: One gtk_init_check should be enough
27165
27166 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
27167
27168         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
27169           match MS behaviour
27170
27171 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
27172
27173         * TextBoxBase.cs: 
27174           - Generate OnTextChanged for Backspace even if we're only deleting
27175             the current selection
27176           - When setting the Text property, only select all text if the
27177             control does not have focus when it is being set. Otherwise
27178             just place the cursor at the beginning of the control
27179
27180 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
27181
27182         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
27183           Added a little helper to draw PropertyGrid ToolBar with a different
27184           border and a different BackColor.
27185         * PropertyGrid.cs: Some background parts didn't get painted with the
27186           correct background color. Added a class that helps us to draw the
27187           correct border for PropertyGridView and a class that helps us to
27188           draw ToolBars with a different backcolor
27189         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
27190
27191 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
27192
27193         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
27194         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
27195
27196 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
27197
27198         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
27199           into the palette entries. Also, since we're working on a copy
27200           we needed to copy the palette back onto the bitmap.
27201         * Cursor.cs: Same fix as XplatUIWin32.cs.
27202
27203 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
27204
27205         * ImageListStreamer.cs: Need to read the var (or we're off)
27206
27207 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
27208
27209         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
27210           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
27211           TextBoxBase.cs: Unused var fixes
27212         * AxHost.cs: Small 2.0 fix
27213         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
27214           as it seems that is what at least Metacity expects. This will make
27215           icons show up on 64bit platforms. We still have some 64bit size
27216           issues, though, since the startup app window size still won't match.
27217
27218 2006-04-25  Mike Kestner  <mkestner@novell.com>
27219
27220         * *.cs: cleanup newly reported exception var unused warnings.
27221
27222 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27223
27224         * ThemeWin32Classic.cs: Button image alignment now matches exactly
27225           ms
27226
27227 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27228
27229         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
27230           image. The image position is always the same, no matter if the
27231           button is pressed or not.
27232
27233 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27234
27235         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
27236           selection and set the correct filename for SaveFileDialog.
27237           Patch by Emery Conrad.
27238
27239 2006-04-24  Mike Kestner  <mkestner@novell.com>
27240
27241         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
27242         check for item.X outside the ClientRect instead of item.Y. Fixes
27243         #78151.
27244
27245 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27246
27247         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
27248         trust that value blindly and do some sanity check. Fixes bug #77814.
27249
27250 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27251
27252         * ImageListStreamer.cs: save the mask as a 1bpp image.
27253
27254 2006-04-21  Mike Kestner  <mkestner@novell.com>
27255
27256         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
27257         pass Checked and Indeterminate to the Theme Engine. Improve
27258         encapsulation with ListBox.
27259         * ListBox.cs: Keep a StringFormat instead of calculating it every item
27260         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
27261         nested types.  Move all CheckState functionality to CheckedListBox.
27262         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
27263         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
27264         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
27265         single base list. Fix scrollbar sizing and placement to mirror MS.
27266         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
27267         used.
27268         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
27269         for CheckedListBox by using new DrawItemState info.  Center the
27270         checkboxes on the items. Use new StringFormat property.
27271
27272 2006-04-18  Jackson Harper  <jackson@ximian.com>
27273
27274         * Form.cs: MdiChildren don't do default locations the same way as
27275         regular forms.  This prevents a crash when trying to position the
27276         mdi windows.
27277
27278 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
27279
27280         * PropertyGridTextBox.cs: Formatting, copyright
27281         * PropertiesTab.cs: Formatting
27282         * PropertyGrid.cs: Formatting
27283         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
27284           click toggling of values
27285           
27286 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
27287
27288         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
27289         * Control.cs (.ctor): verify_thread_handle is static, don't reset
27290           every time a control is created
27291         * Application.cs: Removed obsolete EnableRTLMirroring method
27292
27293 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
27294
27295         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
27296         SelectedIndex to -1. Fixes bug #78121.
27297
27298 2006-04-17  Jackson Harper  <jackson@ximian.com>
27299
27300         * Binding.cs: Handle null values for Current and BindingContext.
27301         This occurs when binding is a little delayed.
27302         * CurrencyManager.cs: return null for Current when there are no
27303         items in the list.
27304         - Hookup to the listchanged event on the DataView and update
27305         bindings when the list is changed.  This fixes late binding of
27306         controls.
27307
27308 2006-04-17  Jackson Harper  <jackson@ximian.com>
27309
27310         * X11Dnd.cs:
27311         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
27312         Ringenbach.
27313
27314 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
27315
27316         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
27317           place
27318         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
27319           with the correct ButtonState
27320
27321 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
27322
27323         * XplatUIX11.cs: Improved distinguishing between window types to
27324           tell the WM a type closer to what the app wants (Fixes #78107)
27325
27326 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
27327
27328         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
27329           GrabHandle
27330
27331 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
27332
27333         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
27334           drawing code to reflect the size grip changes
27335
27336 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27337
27338         * ImageListStreamer.cs: fix handling of the mask that follows the main
27339         bitmap when deserializing and serialize it properly. The generated mask
27340         should better be a 1bpp image, but I'll do that later.
27341
27342 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
27343
27344         * FileDialog.cs: Show something in the DirComboBox on *nix if the
27345           path doesn't fit into some of our Current.Places
27346
27347 2006-04-13  Jackson Harper  <jackson@ximian.com>
27348
27349         * ComboBox.cs: Use borders instead of drawing our own decorations,
27350         try to obey correct rules for heights.
27351         * Theme.cs:
27352         * ThemeNice.cs:
27353         * ThemeClearLooks.cs:
27354         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
27355         this is now handled by borders.
27356         - Remove unused DrawListBoxDecorationSize method.
27357         
27358 2006-04-13  Mike Kestner  <mkestner@novell.com>
27359
27360         * MenuAPI.cs: null guarding for the disbled click check fixes crash
27361         reported by Alex.
27362
27363 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
27364
27365         * ThemeWin32Classic.cs: 
27366           - Fixed CPDrawStringDisabled
27367           - Corrected drawing of disabled menu items
27368           - Fixed drawing of disabled radio buttons (bug #78095)
27369           - Draw check in a disabled CheckBox with color ControlDark 
27370
27371 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27372
27373         * Form.cs: Use the provided width when calculating the menu size;
27374           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
27375           and ClientSize.Width won't be updated yet
27376         * Application.cs: Use Visible instead of Show() to make form visible,
27377           this way we create the handle later and menusize is considered
27378
27379 2006-04-12  Mike Kestner  <mkestner@novell.com>
27380
27381         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
27382         reporting.
27383
27384 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27385
27386         * TextBox.cs: Implemented context menu
27387
27388 2006-04-12  Mike Kestner  <mkestner@novell.com>
27389
27390         * ListView.cs: implement box selection. fixes #77838.
27391         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
27392
27393 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
27394
27395         * XplatUIX11.cs: Added setting of window type when transient window
27396           is created (metacity would move it otherwise)
27397         * X11Structs.cs: Added WINDOW_TYPE atoms
27398         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
27399           background (the control is Opaque but still wants transparent
27400           backgrounds)
27401
27402 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27403
27404         * Control.cs: Added OnPaintBackgroundInternal to allow controls
27405           that set Opaque but don't mean it (like all ButtonBase-derived
27406           controls) to still draw their background
27407         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
27408           the background
27409
27410 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
27411
27412         * Control.cs (PaintControlBackground): Set the graphics object
27413           on our PaintEvent to null to prevent it from being disposed
27414           when the PaintEvent gets disposed
27415
27416 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
27417
27418         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
27419         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
27420
27421 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27422
27423         * Control.cs: 
27424           - Added transparency check to BackColor property. Transparent
27425             backgrounds are only allowed if the control styles permit it
27426           - Added recursive painting of parent control background and
27427             foreground if a control with a transparent backcolor is drawn
27428             (Thanks to Tim Ringenback for providing his 'hack' as a base
27429              for this patch) Fixes #77985 and #78026.
27430           - Added Opaque style check before calling OnPaintBackground, no
27431             need to draw the background if the control is opaque
27432           - Removed ControlAccessibleObject owner variable (inherited from
27433             base, no need to define again)
27434           - Added some documentation links explaining the drawing events
27435             and styles
27436
27437 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
27438
27439         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
27440           that the affected control is the located at the left border of our
27441           parent (Fixes #77936)
27442
27443 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27444
27445         * TextBoxBase.cs: When rendering disabled or readonly controls,
27446           draw the background with 'Control' instead of 'Window' color as
27447           long as the user hasn't specifically set a color
27448
27449 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
27450
27451         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
27452           since that won't be updated if the user types text (only if it's
27453           programatically set)
27454
27455 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27456
27457         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
27458           layout changes do to app-triggered resizes will have the proper
27459           display rectangle for layout
27460
27461 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
27462
27463         * ThemeWin32Classic.cs:
27464           - Make use of the SystemBrushes and SystemPens wherever possible
27465           - Corrected some highlight colors
27466           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
27467             drawing
27468         * Theme.cs: Added Empty field to CPColor struct
27469
27470 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27471
27472         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
27473           is displayed when calculating the display rectangle. Thanks to Mike
27474           for teaching me the err of my ways.
27475
27476 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
27477
27478         * ScrollableControl.cs:
27479           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
27480             (instead of 0,0) and we now return the real width/height instead of
27481             just the clientrectangle, adjusted for padding. The rectangle is
27482             now cached and created by the new CalculateDisplayRectangle method.
27483           - Created new CalculateDisplayRectange method, which basically does
27484             what get_DisplayRectangle() did originally, but now using the 
27485             right edge instead of DisplayRectangle to determine the size of
27486             our scrollbars
27487           - get_Canvas(): Fixed it to properly calculate canvas for 
27488             right/bottom controls which seem to be placed to the right/bottom
27489             of any controls that have a fixed location
27490           - Removed TODO that's taken care of
27491           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
27492             and SetDisplayRectLocation according to new MSDN2 docs
27493           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
27494             event when that is called, this is added for compatibility
27495           - ScrollControlIntoView(): Implemented.
27496           - Switched scrollbars to be implicit, they shouldn't be selectable
27497         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
27498           call it when the active control is set/changed
27499         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
27500         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
27501           implicit_control variable (used for native Win32 message generation)
27502         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
27503           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
27504         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
27505         * XplatUIStructs.cs: Added ScrollBarCommands enum
27506
27507 2006-04-10  Jackson Harper  <jackson@ximian.com>
27508
27509         * ButtonBase.cs:
27510         * CheckedListBox.cs:
27511         * ComboBox.cs:
27512         * DataGrid.cs:
27513         * DataGridView.cs:
27514         * Form.cs:
27515         * GroupBox.cs:
27516         * ListBox.cs:
27517         * PrintPreviewControl.cs:
27518         * ProgressBar.cs:
27519         * PropertyGrid.cs:
27520         * Splitter.cs:
27521         * StatusBar.cs:
27522         * TrackBar.cs:
27523         * UpDownBase.cs: Fixup base event overrides.
27524         
27525 2006-04-06  Mike Kestner  <mkestner@novell.com>
27526
27527         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
27528         all user-initiated value changes to min <= value <= max-thumbsz+1.
27529         (set_Value): check for vert/horiz when calculating new thumb position.
27530         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
27531         like MS does.
27532         (OnMouseMoveSB): refactor the thumb dragging code and refine
27533         invalidation logic to reduce flicker.
27534         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
27535         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
27536         (UpdateThumbPosition): small code readability cleanup
27537
27538 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
27539
27540         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
27541           different
27542
27543 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
27544
27545         * ThemeNice.cs: Use a better graphics effect when a button is pressed
27546
27547 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
27548
27549         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
27550         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
27551           This dramatically reduces the number of Pen.Dispose calls. 
27552           Where possible call ResPool methods only once instead of calling it
27553           over and over again (for example for the same color).
27554
27555 2006-04-06  Mike Kestner  <mkestner@novell.com>
27556
27557         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
27558         Also remove an unused private field on the collection. Fixes #77972.
27559
27560 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
27561
27562         * ThemeNice.cs: Added ToolBar drawing code
27563
27564 2006-04-06  Mike Kestner  <mkestner@novell.com>
27565
27566         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
27567         I'm assuming that means we need to look up the toplevel for the
27568         provided control. Fixes the crash trace in #77911 but exposes another
27569         crash in some strange reflection usage in NDocGui.
27570
27571 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
27572
27573         * ThemeNice.cs: Gave it a little silver touch and added Images
27574           method
27575         * FontDialog.cs: FontDialog is not resizable
27576         * FileDialg.cs: Added SizeGripStyle.Show
27577
27578 2006-04-05  Jackson Harper  <jackson@ximian.com>
27579
27580         * KeyboardLayouts.cs: Remove warning.
27581
27582 2006-04-05  Jackson Harper  <jackson@ximian.com>
27583
27584         * Control.cs: Enable OnPaintInternal so we can use it for drawing
27585         all of our controls instead of Paint +=.
27586         * ListBox.cs:
27587         * ListView.cs:
27588         * MenuAPI.cs:
27589         * MessageBox.cs:
27590         * NotifyIcon.cs:
27591         * ProgressBar.cs:
27592         * ScrollBar.cs:
27593         * Splitter.cs:
27594         * StatusBar.cs:
27595         * TabControl.cs:
27596         * TextBoxBase.cs:
27597         * ToolBar.cs:
27598         * TrackBar.cs:
27599         * UpDownBase.cs:
27600         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
27601         use OnPaintInternal. Remove Width/Height and Visible checks in
27602         paint handler, this is done at a higher level now.
27603         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
27604         * PaintEventArgs.cs: Add a handled flag so controls that don't
27605         want anymore painting after OnPaintInternal can make sure OnPaint
27606         isn't called.
27607
27608 2006-04-05  Mike Kestner  <mkestner@novell.com>
27609
27610         * Form.cs: fix the menu WndProc hacks to respect the native enabled
27611         state of the form, so that we don't process events when Modal dialogs
27612         are up. Fixes #77922.
27613
27614 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
27615
27616         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
27617           checking is done.
27618
27619 2006-04-05  Mike Kestner  <mkestner@novell.com>
27620
27621         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
27622
27623 2006-04-05  Mike Kestner  <mkestner@novell.com>
27624
27625         * ListView.cs (HeaderMouseMove): null guarding for the over column
27626         when setting up the drag_to_index.  Fixes #78015.
27627
27628 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
27629
27630         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
27631           in the taskbar. Transient windows seem to accomplish that.
27632
27633 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
27634
27635         * Form.cs:
27636           - Re-enabled CreateParams.X/Y code for FormStartPosition
27637           - Added code for manual placement when creating the Control
27638           - Incomplete patch to treat MDI forms differently when
27639             setting the ClientSizeCore. (Still need to figure out handling
27640             x/y coords there)
27641         * XplatUIX11.cs:
27642           - When we're explicitly setting the X/Y position of a non-Child
27643             window, let the WM know. Metacity really wants this.
27644
27645 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27646
27647         * ThemeNice.cs: Added CPDrawButton
27648
27649 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27650
27651         * ThemeNice.cs: Changed the color for focused buttons and activated
27652           the arrows for small scroll buttons.
27653
27654 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27655
27656         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
27657           anymore. Changed some method modifiers to protected (virtual)
27658         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
27659           changes
27660         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
27661           Updated drawing of menus, buttons and progressbars; added
27662           CPDrawBorder3D 
27663
27664 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27665
27666         * ImageListStreamer.cs: implemented serialization/deserialization
27667         of the images.
27668
27669 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
27670
27671         * ThemeWin32Classic.cs:
27672           - Removed all the DrawFrameControl stuff; CPDrawButton,
27673             CPDrawCheckBox and CPDrawRadioButton are now handled directly
27674             inside the methods
27675           - Updated and corrected the drawing code of CPDrawButton,
27676             CPDrawCheckBox and CPDrawRadioButton to better match ms
27677           - Updated theme checkbox and radiobutton code to use the CP*
27678             methods
27679
27680 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
27681
27682         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
27683           bug is fixed
27684
27685 2006-03-31  Jackson Harper  <jackson@ximian.com>
27686
27687         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
27688         sometimes.
27689         * UpDownBase.cs: Don't CreateGraphics manually, use a
27690         Refresh. Ideally we would invalidate the correct areas here.
27691
27692 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
27693
27694         * XplatUIX11.cs: 
27695           - We now track the mapping state of windows. If a window (or 
27696             one of it's parents) is not mapped we no longer permit
27697             WM_PAINT messages to be generated since we'd otherwise get 
27698             lots of BadMatch X errors. Jackson did all the work figuring
27699             out the problem.
27700           - Destroying the caret if the window it's contained in is 
27701             destroyed. Can't use regular DestroyCaret method since it
27702             might fall into a drawing function (trying to remove the
27703             caret) and with that generate new BadMatch errors. Again,
27704             Jackson tracked this down.
27705           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
27706             make sure we send the messages to all windows. (The old code
27707             would send the WM_DESTROY to the window, and then all child
27708             windows would be 'gone' because the WM_DESTROY handle lookup
27709             would no longer find the destroyed window)
27710         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
27711         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
27712
27713 2006-03-31  Jackson Harper  <jackson@ximian.com>
27714
27715         * ScrollableControl.cs: Dont recalc if we are not visible.
27716
27717 2006-03-31  Mike Kestner  <mkestner@novell.com>
27718
27719         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
27720         the visibility branch.
27721
27722 2006-03-31  Jackson Harper  <jackson@ximian.com>
27723
27724         * ScrollBar.cs: Cap values when incrementing/decrementing.
27725
27726 2006-03-31  Mike Kestner  <mkestner@novell.com>
27727
27728         * MenuAPI.cs: setup menu.tracker for popup/context menus.
27729         * ToolTip.cs: guard against timer expirations with no active control.
27730         Not sure why it happened.
27731
27732 2006-03-31  Mike Kestner  <mkestner@novell.com>
27733
27734         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
27735         text.
27736         * ToolTip.cs: Position the tooltip based on where the cursor is at
27737         popup time, not at MouseEnter time.  Add a Down state so that we don't
27738         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
27739         positioning offset. Lookup DisplaySize at positioning time, since it
27740         can theoretically change during invocation.
27741         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
27742         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
27743
27744 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27745
27746         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
27747           Fixes behaviour when the Text property of the box is String.Empty
27748
27749 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
27750
27751         * XplatUIX11.cs: Only send mouseleave for our client windows, not
27752           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
27753           a window)
27754
27755 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27756
27757         * FileDialog.cs: Visual enhancement for the popup buttons in 
27758           PopupButtonPanel
27759
27760 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27761
27762         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
27763           code
27764
27765 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
27766
27767         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
27768           highlighted menu items to match ms
27769
27770 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
27771
27772         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
27773
27774 2006-03-30  Mike Kestner  <mkestner@novell.com>
27775
27776         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
27777         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
27778         go active to account for HotLight to Selected transition.
27779         * MenuItem.cs: add internal Selected prop. Fill out the Status
27780         property by calculating it from item info. Add HotLight,
27781         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
27782
27783 2006-03-30  Mike Kestner  <mkestner@novell.com>
27784
27785         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
27786
27787 2006-03-29  Jackson Harper  <jackson@ximian.com>
27788
27789         * Form.cs: Implement TODO.
27790
27791 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
27792
27793         * PrintPreviewDialog.cs: Implemented missing methods and events; still
27794           missing proper dialog setup in the constructor
27795
27796 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
27797
27798         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
27799         * Control.cs:
27800           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
27801           - Fixed ResetBindings and removed TODO
27802           - Added check for cross-thread calls to get_Handle()
27803           - Added Marshaller attribute for set_Font to satisfy class status
27804         * FontDialog.cs: Removed TODOs that seemed implemented
27805         * UpDownBase.cs: Removed unneeded TODO and Fixme
27806         * MessageBox.cs: Implemented support for Default button and removed TODO
27807         * FileDialog.cs: Removed obsolete TODO
27808         * DomainUpDown.cs: Removed obsolete TODO
27809         * ButtonBase.cs: Removed obsolete TODO
27810         * XplatUIWin32.cs: Removed obsolete TODO
27811         * Form.cs:
27812           - Removed obsolete TODO
27813           - Calling CheckAcceptButton when the acceptbutton is changed to allow
27814             internal status updates
27815           - Making sure the active control is selected when the control is created
27816         * CurrencyManager.cs: Removed obsolete TODO
27817
27818 2006-03-29  Mike Kestner  <mkestner@novell.com>
27819
27820         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
27821         of PrintPreviewDialog and RichTextBox.
27822
27823 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27824
27825         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
27826           DarkDark, Light and LightLight colors for a specific color
27827         * ThemeWin32Classic.cs:
27828           - Use Button drawing code to draw RadioButtons and CheckBoxes with
27829             Appearance = Button 
27830           - Make use of the new ResPool helper CPColor
27831           - Draw ProgressBar and StatusBar with correct 3D borders
27832
27833 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27834
27835         * ColorDialog.cs: Return selected color. Fixes bug #77940.
27836
27837 2006-03-28  Mike Kestner  <mkestner@novell.com>
27838
27839         * ListView.cs: fix Icon layout to plan for scrollbar widths when
27840         calculating col/row counts.
27841
27842 2006-03-28  Mike Kestner  <mkestner@novell.com>
27843
27844         * ColumnHeader.cs:
27845         * ListView.cs:
27846         * ListViewItem.cs:
27847         * Menu.cs: 
27848         switch to explicit interface method implementation for some methods
27849         corcompare identifies as inconsistent with MS.
27850
27851 2006-03-28  Mike Kestner  <mkestner@novell.com>
27852
27853         * MainMenu.cs: 
27854         * Menu.cs:
27855         add a few missing methods from the class status output.
27856
27857 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
27858
27859         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
27860           correct.
27861
27862 2006-03-28  Mike Kestner  <mkestner@novell.com>
27863
27864         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
27865
27866 2006-03-27  Mike Kestner  <mkestner@novell.com>
27867
27868         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
27869         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
27870
27871 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
27872
27873         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
27874
27875 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27876
27877         * ThemeWin32Classic.cs:
27878           - GroupBox: Inserted a little gap between the text and the lines
27879             on the right side
27880           - Made the code in CPDrawBorder3D more readable
27881           - Corrected the drawing location of the up and down arrows in 
27882             CPDrawScrollButton
27883
27884 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27885
27886         * ControlPaint.cs: Corrected line widths in DrawBorder for
27887           ButtonBorderStyle Inset and Outset
27888
27889 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27890
27891         * ThemeWin32Classic.cs:
27892           - Rewrote the totally broken CPDrawBorder3D method. That was
27893             one of the main problems for the terrific ThemeWin32Classic
27894             look
27895           - Updated and corrected Button drawing
27896           - Correct the dimensions of the SizeGrip to match ms ones
27897           - Removed a small drawing glitch in DrawComboBoxEditDecorations
27898         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
27899           Border3DStyle.Sunken to match ms.
27900
27901 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27902
27903         * ThemeWin32Classic.cs: First small part of the "de-uglify
27904           ThemeWin32Classic" effort, SizeGrip
27905
27906 2006-03-24  Jackson Harper  <jackson@ximian.com>
27907
27908         * XplatUIX11.cs: Give a max idle time of one second, this matches
27909         MS and forces an Idle event every second when there are no other
27910         events in the queue.
27911
27912 2006-03-24  Mike Kestner  <mkestner@novell.com>
27913
27914         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
27915         * ListView.Item.cs: fix layout issues with null image lists and images
27916         smaller than checkbox size.
27917         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
27918         mode like MS does.  It's weird, but consistent.  ;-)
27919         Fixes #77890.
27920
27921 2006-03-24  Mike Kestner  <mkestner@novell.com>
27922
27923         * ListView.cs: Scroll wheel support for the item control.  Fixes
27924         #77839.
27925
27926 2006-03-23  Jackson Harper  <jackson@ximian.com>
27927
27928         * ScrollableControl.cs: Special case negative sized areas, not
27929         zero.
27930         * MonthCalendar.cs: Save the rect of the clicked date so we can
27931         use it for invalidation.
27932         - Try to cut down on the number of invalidates
27933         - Invalidate the rect the mouse is over and was over when moving
27934         the mouse, so we get the focus box following the cursor.
27935
27936 2006-03-23  Mike Kestner  <mkestner@novell.com>
27937
27938         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
27939         focus rectangle drawing. Fixes #77835.
27940
27941 2006-03-23  Mike Kestner  <mkestner@novell.com>
27942
27943         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
27944         the if and else if and reverting back to the original == check on the
27945         None conditional.
27946
27947 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
27948
27949         * FontDialog.cs: Update the example panel if the selected index of
27950           the fontListBox changes.
27951
27952 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
27953
27954         * FileDialog.cs: Make FileDialog remember which directory it was in
27955           last in the same execution.
27956
27957 2006-03-22  Mike Kestner  <mkestner@novell.com>
27958
27959         * FileDialog.cs: make the DropDownMenu on the toolbar display
27960         RadioChecks since they are mutually exclusive and that's what MS does.
27961
27962 2006-03-22  Mike Kestner  <mkestner@novell.com>
27963
27964         * Theme.cs: add Color param to CPDrawMenuGlyph.
27965         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
27966         checks and radio marks and arrows are visible on highlighted items.
27967         * ControlPaint.cs: update to use new Theme signature.
27968
27969 2006-03-22  Mike Kestner  <mkestner@novell.com>
27970
27971         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
27972         is active. Fixes #77870.
27973
27974 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
27975
27976         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
27977           to be focused/selected after startup
27978
27979 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
27980
27981         * ColorDialog.cs: 
27982           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
27983             CustomColors and ShowHelp properties
27984           - Some internal rewrites to get better results when using the
27985             ColorMatrix
27986
27987 2006-03-22  Mike Kestner  <mkestner@novell.com>
27988
27989         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
27990         HoverSelection.  Fixes #77836.
27991
27992 2006-03-22  Mike Kestner  <mkestner@novell.com>
27993
27994         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
27995         ToggleButtons.  (De)Sensitize the Back button around a stack count of
27996         1, not 0.  Update ButtonSize based on a pixel count of the win32
27997         control.  Adjust the toolbar size/location for new button size.
27998
27999 2006-03-22  Jackson Harper  <jackson@ximian.com>
28000
28001         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
28002         true.
28003         * ScrollBar.cs: When doing increments and decrements we need to
28004         set the Value property so that ValueChanged gets raised. A
28005         possible optimization here would be to make an internal SetValue
28006         that doesn't invalidate immediately.
28007         * ToolTip.cs: Tooltips get added to their container (when
28008         supplied) so they get disposed when the container is disposed.
28009         - Don't create tooltips for String.Empty. This prevents all these
28010         little 2-3 pixel windows from showing up when running nunit-gui
28011         and driving me mad.
28012         * Form.cs: Don't set topmost when setting the owner if the handles
28013         haven't been created yet.  The topmost set will happen when the
28014         handles are created.
28015
28016 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
28017
28018         * XplatUIX11.cs:
28019           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
28020           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
28021             visible (to allow them to recalculate their sizes)
28022
28023 2006-03-21  Mike Kestner  <mkestner@novell.com>
28024
28025         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
28026         methods. Removed a ton of redundant code.  Still not really happy with
28027         the border rendering, but I think that's mainly because of the
28028         ControlDarkDark being black instead of a dark grey. Depending on how 
28029         close we want to be, we might want to revisit those color choices.
28030         Among the new features added during the refactor were DropDownArrow
28031         pressed rendering, Disabled image rendering.  Proper flat appearance
28032         boundary rendering.  Removed the Divider and Wrapping dividers since I
28033         can't figure out any combination of themes and conditions to make the
28034         MS control draw a horizontal line on a toolbar despite what the
28035         Divider property docs indicate.
28036         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
28037         conditions and incorrect layout.  Updated to coding standard.
28038         * ToolBarButton.cs: refactored layout and positioning code from
28039         ToolBar to here.  Invalidate wherever possible instead of forcing
28040         redraws of the whole toolbar. 
28041         (Known remaining issues: explicit ButtonSize smaller than provided
28042         images.)
28043
28044 2006-03-21  Mike Kestner  <mkestner@novell.com>
28045
28046         * ContextMenu.cs (Show): use the position parameter instead of just
28047         showing at the MousePosition.
28048
28049 2006-03-21  Jackson Harper  <jackson@ximian.com>
28050
28051         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
28052         control handle this.
28053         * TreeNodeCollection.cs: If we are clearing the root node we need
28054         to reset top_node so calcs can still happen.
28055         * ThemeWin32Classic.cs: This is a Flags so we need to check
28056         properly.
28057         
28058 2006-03-21  Jackson Harper  <jackson@ximian.com>
28059
28060         * DataGrid.cs: Create columns when the binding context has been
28061         changed.
28062         * X11Structs.cs: Keysyms are uints.
28063         - Add size to fix build.
28064
28065 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
28066
28067         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
28068           XplatUIOSX.cs: 
28069           - Added ResetMouseHover method to allow controls to retrigger
28070             hovering if they need it more than once
28071           - Implemented MouseHoverTime and MouseHoverSize properties
28072         * Timer.cs: Start() must reset the interval
28073         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
28074           properties
28075
28076 2006-03-21  Jackson Harper  <jackson@ximian.com>
28077
28078         * X11Keyboard.cs: improved layout detection. Move the nonchar
28079         tables into this file.
28080         * KeyboardLayouts.cs: Move the tables into resource files.
28081
28082 2006-03-21  Mike Kestner  <mkestner@novell.com>
28083
28084         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
28085
28086 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
28087
28088         * Mime.cs: Various speed optimizations. Looking up mime types
28089           is now 2 times faster than before
28090
28091 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
28092
28093         * CreateParams.cs: Added internal menu field
28094         * Control.cs: 
28095           - Switched call order for UpdateBounds; now we always call
28096             the one that also takes ClientSize, and we're calculating the 
28097             client size via driver method in the others. The previous
28098             method of tracking client size by difference wasn't working
28099             for forms where even the starting client size wouldn't match
28100             the overall form size (due to borders) (Part of fix for #77729)
28101           - CreateParams(): Do not use parent.Handle unless the handle is
28102             already created. Causes havoc with Nexxia and throws off our
28103             creation of controls
28104         * XplatUIX11.cs:
28105           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
28106           - Switched handling of ConfigureNotify over to new PerformNCCalc 
28107             method (consolidates code)
28108           - Changed RequestNCRecalc to use new PerformNCCalc method
28109           - Added calls to RequestNCRecalc when menus and borders are changed
28110             to allow app to set NC size. (Part of fix for #77729) This matches
28111             when MS send a WM_NCRECALC on Win32 windows.
28112           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
28113             (Part of fix for #77729). This matches what MS does, they also
28114             send that message when the form is made visible.
28115           - XException.GetMessage: Improved usability of X errors by including
28116             a translation of the window into Hwnd and Control class
28117           - Improved debug info for window creation, reparenting and destruction
28118           - Created helper method WindowIsMapped() [Currently not used]
28119         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
28120         * Form.cs:
28121           - CreateParams: Now setting our menu on the new internal menu field
28122           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
28123             avoid calculating the same property twice
28124         * Hwnd.cs:
28125           - Improved usability of ToString() for debugging purposes
28126           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
28127             determine the height of the menu, instead of just the font. This
28128             required to also create a graphics context and to keep a bmp 
28129             around (for performance reasons)
28130
28131 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
28132
28133         * MenuAPI.cs: Added OnMouseUp method
28134         * Form.cs:
28135           - Now remembering the requested client size, avoids size errors
28136           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
28137             instead of base if the menu is active. This is required due to
28138             control now capturing and releasing on down/up and it would
28139             prematurely release our menu capture
28140
28141 2006-03-17  Jackson Harper  <jackson@ximian.com>
28142
28143         * KeyboardLayouts.cs: Add the czech layouts.
28144
28145 2006-03-16  Jackson Harper  <jackson@ximian.com>
28146
28147         * Control.cs: Use the viewport space when sizing not the controls
28148         client size, so things like ScrollableControl that effect the
28149         viewport size (when scrollbars are added) are computed correctly.
28150         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
28151         of ManagerEntrys.
28152         - Handle creating BindingManagers for null data sources.
28153         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
28154         source, otherwise when rows are added they are added to the 'fake'
28155         datasource and we will crash when trying to set the position in
28156         those rows.
28157         - Use Implicit scrollbars on the datagrid so they arent
28158         selectable.
28159         
28160 2006-03-16  Jackson Harper  <jackson@ximian.com>
28161
28162         * Binding.cs:
28163         * InternalWindowManager.cs:
28164         * MdiWindowManager.cs:
28165         * X11Keyboard.cs: I really want Mike to love me again (fix
28166         compiler warnings).
28167
28168 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
28169
28170         * DataGrid.cs:
28171           - OnMouseDown: Switch to editing mode when clicking on the cell
28172                          even if we're clicking on the cell that's currently 
28173                          selected
28174           - ProcessGridKey: Left/Right now wrap like MS.Net does
28175           - ProcessGridKey: Tab now knows to add a new row when tab is
28176                             pressed in the cell of the last column of the 
28177                             last row
28178           - ProcessGridKey: Enter now adds another row  if pressed in the last
28179                             row and selectes the new row, same column cell
28180           - ProcessGridKey: Home/End navigate columns, not rows, like 
28181                             originally implemented
28182           - Broke ProcessKeyPreview code out into an extra Internal method
28183             so it can be called from the edit code
28184         * DataGridTextBox.cs (ProcessKeyMessage):
28185           - Switched to accept Tab keypresses
28186           - Added F2 handling to allow jumping to the end of the edited cell
28187           - Added logic to allow moving caret left/right inside edited cell
28188             and making the edited cell jump when the caret hits cell borders
28189           - Tab and Enter are now passed to the datagrid after being handled
28190         * TextBoxBase.cs:
28191           - Removed capture code now that Control handles it
28192           - set_SelectionStart now ensures caret is visible
28193
28194 2006-03-16  Jackson Harper  <jackson@ximian.com>
28195
28196         * TrackBar.cs: Debackwards the increment/decrement for handling
28197         mouse clicks on the bar with vertical trackbars.
28198         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
28199         bottom to match MS.
28200
28201 2006-03-16  Mike Kestner  <mkestner@novell.com>
28202
28203         * ListView.cs: make shift/ctrl keyboard and mouse selection 
28204         consistent with the MS control. Fix a bug in
28205         SelectedListViewItemCollection.Clear that was pissing me off for the
28206         better part of a day because the collection was being altered
28207         underneath us as we walked the list.
28208
28209 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
28210
28211         * Control.cs: Not sure how we could miss this so long, but it seems
28212           that MS.Net has Capture set all the way from before calling 
28213           OnMouseDown through sending the mouse events until after
28214           OnMouseUp. This will fix DataGrid's selection being set to end
28215           at the location of the MouseUp.
28216
28217 2006-03-15  Jackson Harper  <jackson@ximian.com>
28218
28219         * BindingContext.cs: Check the binding after its added so that it
28220           can initialize the binding managers and hookup to events.
28221         * Binding.cs: Data members seem to sometimes include rows/cols in
28222           the format Row.Column we now take this into account.
28223           - Hookup to the position changed event so we can update the
28224           control when the position has changed in the data set.
28225         * CurrencyManager.cs: Take into account the row/col naming
28226           convention when creating dataset tables.
28227         * BindingContext.cs: Using a newer better way of storing
28228           datasource/datamember pairs.  Hopefully this better matches MS for
28229           looking up binding managers.
28230
28231
28232 2006-03-15  Jackson Harper  <jackson@ximian.com>
28233
28234         * BindingContext.cs: The currency manager needs the data member
28235         name, if the member is a data set we use the name to find the
28236         correct table.
28237         * CurrencyManager.cs: When creating the list prefer an IList over
28238         an IListSource.
28239         - Attempt to create a DataTable from a DataSet (TODO: might need
28240         some better error checking here, although MS doesn't seem to have much)
28241         - If we have a DataTable create a view and use it as our list.
28242
28243 2006-03-15  Mike Kestner  <mkestner@novell.com>
28244
28245         * ListView.cs: keep a matrix of the icon mode layout to facilitate
28246         keyboard navigation. Support Up/Down/Left/Right selection correctly
28247         for all 4 View modes.
28248         * ListViewItem.cs: add internal row/col fields for icon layouts.
28249
28250 2006-03-15  Jackson Harper  <jackson@ximian.com>
28251
28252         * TabControl.cs: Redraw the tabs when we resize so their newly
28253         calculated sizes are drawn on screen.
28254         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
28255         composite characters.
28256         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
28257         - filter events so that composite characters can be created
28258         patches by peter
28259         * X11Structs.cs: Add XIMProperties enum.
28260
28261 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
28262
28263         * Control.cs (BringToFront, SendToBack): Don't use window or handle
28264           unless it's created
28265
28266 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
28267
28268         * Control.cs (PerformLayout): We don't need to consider visiblity
28269           for anchoring, only for docking. This fixes 'whacky' alignment
28270           in listbox and other controls that use implicit scrollbars after
28271           the previous PerformLayout patch
28272         * ListBox.cs: Switched to use implicit scrollbars
28273           
28274 2006-03-14  Mike Kestner  <mkestner@novell.com>
28275
28276         * ToolBar.cs: 
28277         * VScrollBar.cs:
28278         - chain up the "new event" overrides to base and use
28279         OnEvent to raise them.  Part of fix for bug #76509.
28280
28281 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
28282
28283         * FileDialog.cs: Do not select an item in the parent directory
28284           on backspace
28285
28286 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
28287
28288         * Control.cs (PerformLayout): It would seem that we considered
28289           invisible windows for our layout. Not quite the right thing
28290           to do. Now we don't any longer, thereby fixing bug #76889.
28291
28292 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
28293
28294         * Control.cs (CanFocus): I goofed. A control can have focus 
28295           even though it's not selectable. Made it match MS docs.
28296
28297 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28298
28299         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
28300           center by default (fixes #76895)
28301         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
28302           all uses of Border3DSides.All with the explicit ORd together
28303           Left|Right|Top|Bottom because I assume that nobody was aware 
28304           that All also implies a center fill. Most places I checked had
28305           a fill right above.
28306         * ProgressBarStyle.cs: Added
28307
28308 2006-03-13  Mike Kestner  <mkestner@novell.com>
28309
28310         * ListView.cs: fix breakage in drag shadow header positioning 
28311         from Peter's csc compilation fix.
28312
28313 2006-03-13  Mike Kestner  <mkestner@novell.com>
28314
28315         * ListView.cs: fix NRE produced by backspacing twice in a focused
28316         FileDialog.
28317
28318 2006-03-13  Mike Kestner  <mkestner@novell.com>
28319
28320         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
28321
28322 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28323
28324         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
28325           be changed
28326         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
28327           the allowed size before making programmatic size changes
28328
28329 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
28330
28331         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
28332           set, metacity is broken and will still use the emty sizes in 
28333           the struct. (Fix for #77089)
28334
28335 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28336
28337         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
28338           WindowExStyles and marked both enums as Flags
28339         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
28340           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
28341           to match WindowStyles split
28342         * XplatUIX11.cs:
28343           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
28344           - Updated to match WindowStyles split
28345         * XplatUIWin32.cs:
28346           - Fixed FosterParent creation, was using ExStyle on the Style field
28347             (This should help with Popup focus issues)
28348           - Updated to match WindowStyles split
28349
28350 2006-03-13  Jackson Harper  <jackson@ximian.com>
28351
28352         * MdiWindowManager.cs: Use the system menu height. Fixes some
28353         strange sizing issues.
28354
28355 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
28356
28357         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
28358         * TextBoxBase.cs:
28359           - Scroll to caret after inserting text (#77672)
28360           - Make scroll range one pixel higher, fixes off-by-one error (and
28361             makes underlines visible on the last line)
28362
28363 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
28364
28365         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
28366           the keyboard state from being stuck with keys in 'pressed' state when
28367           focus is switched away via keyboard
28368         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
28369           reset the keyboard if no X11 KeyUp events are expected to come
28370         * X11Structs.cs: Switched type of Visible to bool to match driver
28371
28372 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
28373
28374         * TextControl.cs:
28375           - Switched caret to be just 1 pixel wide, matches MS and looks less
28376             clunky
28377           - Moved caret display 1 pixel down from the top of the control
28378             to improve view
28379           - InsertCharAtCharet: Update the selection start if moving the caret
28380             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
28381           - No longer always creating the caret when the caret methods are
28382             called. Only the actual ShowCaret/HideCaret will do that now
28383           - Only setting caret visible if the owner control has focus
28384           - UpdateView: Added invalidation-shortcut logic for center and right 
28385             aligned text. Previously we'd update all according to the left
28386             logic which caused drawing errors. Also fixed height of invalidated
28387             areas, now properly invalidating the whole area (was off-by-one)
28388           - owner_HandleCreated: Always generate the document when the
28389             handle is created; this ensures that 
28390         * TextBoxBase.cs:
28391           - Fixed situation where caret would disappear under the right
28392             window border, also improved scrolling behaviour on left-
28393             aligned textboxes
28394           - Fixed right-aligned textboxes to have a border to the
28395             right instead of the caret being under the right border
28396         * XplatUIX11.cs:
28397           - Switched from 'nested' to simple visible/not visible tracking 
28398             for caret (part of fix for #77671)
28399           - No longer passing through translated FocusIn/FocusOut messages
28400             since we were notifying too often and the wrong windows. Instead
28401             we just notify our focussed window of receiving or loosing focus
28402         * XplatUIWin32.cs: Switched from 'nested' show/hide 
28403           counting for caret to simple visible yes/no behaviour (part of 
28404           fix for #77671)
28405
28406 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
28407
28408         * Mime.cs: Remove debug code...
28409
28410 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
28411
28412         * MimeGenerated.cs: Removed
28413         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
28414           and subclasses) from /usr/(local/)share/mime and
28415           $HOME/.local/share/mime.
28416
28417 2006-03-10  Jackson Harper  <jackson@ximian.com>
28418
28419         * MdiWindowManager.cs: Recalc the NC area when a window is
28420         maximized/restored so that the menu area is drawn on forms that
28421         don't have a menu.
28422
28423 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28424
28425         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
28426           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
28427           us to force a WM_NCCALCRESIZE message being sent. This is needed
28428           for MDI maximizing.
28429
28430 2006-03-10  Jackson Harper  <jackson@ximian.com>
28431
28432         * Form.cs: We need to use the ActiveMenu when calculating menu
28433         height.
28434         - Fix nullref when the window manager hasn't been created yet.
28435         * Control.cs: Fix nullref when we try to bring a control to the
28436         front that has no parent.
28437         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
28438         height.
28439         - Add a dummy item to the maximized menu so it always has the
28440         correct height. Otherwise when there are no menus we don't get our
28441         icon and buttons.
28442         
28443
28444 2006-03-10  Jackson Harper  <jackson@ximian.com>
28445
28446         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
28447         stuff.
28448         * Form.cs: Make the window_state internal so the window managers
28449         can track it.
28450         - When an MDI child is maximized let its window manager create the
28451         main menu (so it can add its icon).
28452         - Notify the window managers of state changes
28453         - Let the window manager paint its buttons and handle button
28454         clicks on the menu when it is maximized.
28455         * InternalWindowManager.cs: Move the prev_bounds into the mdi
28456         window manager, since tool windows don't use it, only mdi windows.
28457         - Tell the main form that we don't want it to handle NCPAINT
28458         itself to avoid extra painting.
28459         - Handle clicks on a maximized windows menu.
28460         - Handle window state changes
28461         - Handle minimize/maximize clicks correctly by setting the window state.
28462         * MdiWindowManager.cs: Add an icon menu that (the menu you get
28463         when clicking on the forms icon).
28464         - New method to create a forms maximized menu. This is its normal
28465         menu + an icon.
28466         - Handle window state changes.
28467         - Handle sizing of maximized windows.  Maximized windows are just
28468         drawn bigger then the parent visible area. All controls are still
28469         there, they are just outside the visible area (this matches windows).
28470         * MdiClient.cs: No scrollbars when a child window is maximized.
28471         - Let the children windows figure out how big they should be when
28472         sizing maximized windows.
28473         - Implement a version of ArrangeIconicWindows somewhat similar to
28474         Windows version.  There are some little differences, but I don't
28475         think any app will rely on the layout of minimized mdi windows.
28476
28477 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28478
28479         * Padding.cs: Several fixes to allow compiling with csc 2.0
28480
28481 2006-03-09  Jackson Harper  <jackson@ximian.com>
28482
28483         * Menu.cs:
28484         * MenuItem.cs: Cheap hack so we can add items to the list without
28485         the events being raised.  This allows adding mdi items during
28486         drawing. TODO: Should probably find a better time to add the items.
28487
28488 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28489
28490         * ThemeWin32Classic.cs:
28491           - CheckBox_DrawText: Added logic to not wrap if not enough space
28492             is available (Fix for bug #77727)
28493           - RadioButton_DrawText: Added logic not to wrap if not enough
28494             space is available (Fix for bug #77727). Also removed some
28495             duplicate code, DrawString always drawing the regular text
28496             before hitting the if statement.
28497
28498 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
28499
28500         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
28501
28502 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28503
28504         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
28505         * ContainerControl.cs: Partial implementation of some 2.0 scaling
28506           methods. Moved the new 2.0 properties into alphabetical order with
28507           other properties and added MonoTODO tags
28508
28509 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28510
28511         * AutoScaleMode.cs: Added. Fix build.
28512
28513 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28514
28515         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
28516           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
28517           and was requiring premature handle creation for calls from above
28518         * Form.cs, Control.cs: Removed handle arguments from calls to
28519           CalculateClientRect()
28520
28521 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28522
28523         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
28524           drag_column.column_rect is MarshalByRef and can't be used that way
28525
28526 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28527
28528         * AxHost.cs: Added deserialization constructor for 
28529           AxHost+State (fixes 77743)
28530
28531 2006-03-09  Mike Kestner  <mkestner@novell.com>
28532
28533         * ListView.cs: 
28534         - Added column drag reordering for details view.
28535         - fixed behavior when mouse is dragged off column and
28536         AllowColumnReorder is false.
28537         * ColumnHeader.cs: clone the format too in Clone.
28538         * Theme.cs: add DrawListViewHeaderDragDetails method.
28539         * ThemeWin32Classic.cs:
28540         - impl new method for drawing drag column shadows and targets.
28541         - support column offset for details mode in DrawListViewItem.
28542
28543 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28544
28545         * TextControl.cs: Reset the char_count when the document is cleared
28546           (Fixes bug reported on mono-winforms mailing list)
28547
28548 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28549
28550         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
28551           of calling base we simply process the key ourselves, since both
28552           DefWindowProc and the handled method would set m.Result. 
28553           (Fixes #77732)
28554
28555 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28556
28557         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
28558           method also moves the window; instead implemented a copy of
28559           Control.ScaleCore (Part of fix for #77456)
28560         * TextBoxBase.cs: 
28561           - Created new CreateGraphicsInternal method to allow providing
28562             a graphics context when no handle is created without triggering
28563             handle creation. (Part of fix for #77456)
28564           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
28565         * TextControl.cs: 
28566           - Switched Constructor to require TextBoxBase instead of Control (to
28567             allow uncast access to CreateGraphicsInternal)
28568           - Safeguarded use of owner.Handle property. No longer accessing it
28569             unless the handle is already created.
28570           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
28571           - Now triggering a recalc when owning control becomes visible
28572         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
28573           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
28574           premature handle creation (Part of fix for #77456)
28575         * Control.cs:
28576           - We now only destroy our double-buffering buffers when the
28577             control is resized or disposed, but not when visibility
28578             changes. (The code even re-created them twice every time)
28579           - Now requiring a redraw of the buffer on visibility changes
28580             (fixes bug 77654 part 2)
28581           - Not passing OnParentVisibleChanged up unless the control
28582             is visible
28583           - CanFocus: Fixed to match MS documentation
28584           - Focus: Fixed to return actual focus state and to check if
28585             setting focus is legal before setting it
28586
28587 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
28588
28589         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
28590           when to draw focus rectangle by looking at parent focus and
28591           selected state instead. This fixes TabPages on Linux sometimes
28592           having none or multiple focus rectangles.
28593         * XplatUIX11.cs (SetFocus): 
28594           - Don't set the focus if the same window already has focus
28595           - Use SendMessage instead of PostMessage (like it's Win32
28596             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
28597             to match MS behaviour
28598         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
28599           are not selectable.
28600
28601 2006-03-07  Jackson Harper  <jackson@ximian.com>
28602
28603         * PictureBox.cs: Revert line I accidently committed last week.
28604
28605 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
28606
28607         * Control.cs: 
28608           - Added new IsRecreating and ParentIsRecreating properties to
28609             allow testing if RecreateHandle has been called on ourselves
28610             or one of our parents
28611           - WndProc(WM_DESTROY): If our control handle is being recreated
28612             we immediately need to create the handle when receiving the
28613             destroy, that way our child windows find a valid parent handle
28614             when they themselves are being recreated upon WM_DESTROY receipt
28615             (fix for bug #77654 part 1)
28616         * XplatUIX11.cs:
28617           - DestroyWindow: WM_DESTROY must be sent to our own window before
28618             notifying any child windows. MS documents that child windows
28619             are still valid when WM_DESTROY is received. (Control now relies on
28620             this behaviour)
28621           - Added some fine-grain debug options
28622
28623 2006-03-06  Jackson Harper  <jackson@ximian.com>
28624
28625         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
28626         box and base calculations off this.
28627         * MdiChildContext.cs:
28628         * MdiWindowManager.cs: Don't need to ensure scrollbars here
28629         anymore.
28630         
28631 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
28632
28633         * Splitter.cs: In situations where the affected control is added
28634           to the parent's control list after the splitter, we would not
28635           populate affected. Now we try populating it on mousedown, if
28636           it's not already set, and force it to be re-set whenever our
28637           parent changes.
28638
28639 2006-03-03  Matt Hargett  <matt@use.net>
28640
28641         * Control.cs: implement Control.Padding
28642         * Padding.cs: -Padding.All returns -1 when constructing with the
28643         implicit default ctor
28644         -Padding.ToString() matches MS.NET
28645         * ContainerControl.cs: implement
28646         ContainerControl.AutoScaleDimensions
28647         * ListControl.cs: implement ListControl.FormattingEnabled
28648         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
28649         * ButtonBase.cs:
28650         * TabPage.cs: Implement UseVisualStyleBackColor.
28651         * PictureBox.cs: Implement PictureBox.InitialImage.
28652
28653 2006-03-03  Mike Kestner  <mkestner@novell.com>
28654
28655         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
28656         event declarations to proxy to base event.
28657         * ListViewItem.cs: update to use ItemControl.
28658         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
28659         * ThemeWin32Classic.cs: update to new ListView theme API and fix
28660         column header label rendering for 0 width columns.
28661
28662 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
28663
28664         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
28665           that causes the control to be created. Fixes #77476.
28666
28667 2006-03-02  Jackson Harper  <jackson@ximian.com>
28668
28669         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
28670         expose_pending.
28671
28672 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
28673
28674         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
28675           passed in for the EventArgs (fixes #77690)
28676
28677 2006-03-01  Jackson Harper  <jackson@ximian.com>
28678
28679         * ScrollBar.cs: Refresh afterbeing resized.
28680
28681 2006-02-28  Mike Kestner  <mkestner@novell.com>
28682
28683         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
28684         Clean up a tracker compile warning.
28685         * MenuItem.cs: add internal PerformPopup method.
28686         [Fixes #77457]
28687
28688 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
28689
28690         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
28691           implicit expose) when the text is set to null
28692
28693 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
28694
28695         * RichTextBox.cs (FlushText): When newline is true, we always
28696           need to split the line, even if no text is on it and we may
28697           never eat newlines. (Fixes #77669)
28698
28699 2006-02-28  Mike Kestner  <mkestner@novell.com>
28700
28701         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
28702         and set Selected instead.
28703         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
28704         collections.
28705
28706 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
28707
28708         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
28709
28710 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
28711
28712         * FontDialog.cs:
28713           - Got rid of the panel. All controls are now directly added to
28714             the dialog form
28715           - It is now possible to set a font with the Font property
28716           - MinSize and MaxSize property do now what they should
28717           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
28718           - Searching and selecting a font with the font textbox works now,
28719             the same applies to the style and size textbox
28720           - Draw the correct 3D border in the example panel
28721           - Fixed a little mem leak (unused fonts didn't get disposed)
28722           - Many other internal updates/rewrites...
28723           - Fix typo
28724
28725 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
28726
28727         * TextControl.cs: 
28728           - InsertRTFFromStream: Added 'number of characters inserted' argument
28729           - set_SelectedRTF: Now using the number of characters to calculate
28730             the new location for the selection and cursor (x/y cannot be used
28731             due to potentially already wrapped text)
28732
28733 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
28734
28735         * TextControl.cs: Added property and implemented means to allow 
28736           disabling recalculation of a document (can be used to speed up
28737           multiple inserts and is needed to make RTF inserts predictable, see
28738           bug #77659)
28739         * RichTextBox.cs: Using the new NoRecalc property of Document to
28740           keep x/y insert locations predictable. Also makes it faster inserting
28741           large chunks of RTF
28742
28743 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
28744
28745         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
28746           it's easier for a child control to handle the other messages without
28747           having to duplicate the special functionality
28748         * TextBoxBase.cs
28749           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
28750             code to handle processing the key ourselves, in order to get 
28751             access to the result of KeyEventArgs.Handled. We now only call 
28752             ProcessKey if they key hasn't been handled already. Fixes #77526.
28753           - set_Text: If null or empty string is given, just clear the 
28754             document. Fixes part of #77526
28755
28756 2006-02-27  Jackson Harper  <jackson@ximian.com>
28757
28758         * SizeGrip.cs: Paint the background color before painting the grip
28759         so things look right.
28760         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
28761
28762 2006-02-27  Mike Kestner  <mkestner@novell.com>
28763
28764         * ListView.cs:
28765           - Restructure layout and invalidation model to remove a ton of
28766           flicker from the control and speed up performance in general.
28767           - Add manual column resize, flickers like crazy, but I already have
28768           some ideas on how I'll fix that. (#76822)
28769           - Merge the three Icon-based views into a single layout method.
28770           - Move item selection interaction logic from the item since 
28771           interaction with the collections is more appropriate to the view.
28772           - Deselection on non-item clicks.
28773         * ListViewItem.cs:
28774           - Encapsulate most of the layout. Add some internal props to trigger
28775           layout.  Move to a model where Items invalidate themselves instead
28776           of just invalidating the whole control every time something changes.
28777           - Invalidate on Text/Caption changes.
28778           - switch to an offset based layout model to avoid having to absolute
28779           position every element on item moves.
28780           - correct checkbox layout to conform to MS layout.
28781         * ThemeWin32Classic.cs:
28782           - refactor some column header drawing code.
28783           - fix string justification for column headers (#76821)
28784           - make SmallIcon labels top justified for compat with MS impl.
28785         * ThemeClearlooks.cs:
28786           - adjust to new ListViewItem internal checkbox bounds api.
28787
28788 2006-02-27  Jackson Harper  <jackson@ximian.com>
28789
28790         * Control.cs:  Change where implicit controls fall in the zorder.
28791         They are now on top of all children.
28792         - Synced AddImplicit code with Add
28793         - Removed unused enumerator.
28794         * SizeGrip.cs: Remove the TODO as its been TODONE.
28795
28796 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
28797
28798         * TextControl.cs(Insert): Combine the last lines unless the insertion
28799           string ends with \n\n, otherwise we leave one line too many (Fixes
28800           something I noticed with the testapp for #77526; the bug itself was
28801           already fixed in the previous checkin)
28802
28803 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
28804
28805         * RichTextBox.cs:
28806           - SelectionColor and SelectionFont methods no longer set absolute
28807             styles. Instead, the keep font or color respectively (This 
28808             resolves a long-standing FIXME in the code)
28809           - When flushing RTF text, the insert code now considers text trailing
28810             behind the insertion point (Fixes the bug where when replacing
28811             the selected text via SelectedRTF the remainder of the line behind 
28812             the selection would stay on the first insertion line)
28813         * TextBoxBase.cs:
28814           - AppendText now updates the selection points after inserting text
28815           - AppendText now ensures that the last tag (sometimes 0-length) of
28816             the document is used for the style information (Fixes part of 
28817             bug #77220)
28818         * TextControl.cs:
28819           - Created new FontDefiniton class to allow describing partial style
28820             changes
28821           - StreamLine() now takes a lines argument, to allow it to decide
28822             whether an encountered zero-length tag is the last in the document
28823             (which must be kept to not loose the font/color contained in it,
28824             for later appends)
28825           - Created Combine() and Split() methods for Marker structs, to 
28826             support marker updates due to reformatted documents (soft line
28827             wraps)
28828           - Implemented Document.CaretTag setter
28829           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
28830             of the last line (Not the cause, but also exposed by bug #77220)
28831           - Added LineTag argument to InsertString method, to allow callers
28832             to force a certain tag to be used (required to force use of the
28833             trailing zero-length tag of a document)
28834           - Now updating markers in Combine(), to avoid stale tag markers
28835           - Added some method descriptions to aid maintenance
28836           - Implemented new FormatText concept, allowing additive/subtractive
28837             formatting by only specifying the components that are to be 
28838             changed. This was needed for resolving the RTB.SelectedColor/
28839             RTB.SelectedFont fixmes
28840           - Added Break() support method to allow breaking up linetags (used
28841             for partial formatting)
28842           - Added GenerateTextFormat() method. It is used for partial 
28843             formatting and allows to generate a full font/color from given
28844             attributes and an existing tag.
28845
28846 2006-02-26  Jackson Harper  <jackson@ximian.com>
28847
28848         * XplatUIX11.cs:  Use the correct caption height.
28849         - Translate hittest coordinates to screen coords to match MS.
28850         * XplatUIWin32.cs: When we create MDI windows we need to reset
28851         some of the style flags, so we get a nice blank window, and can
28852         draw all the decorations ourselves.
28853         - Set a clipping rectangle on the non client paint event, the
28854         window manager drawing code needs one.
28855         * Form.cs: The window manager needs to know when the window state
28856         has been updated.
28857         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
28858         don't need to factor in border and title sizes in these
28859         methods. TODO: Remove the args and fix the call points.
28860         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
28861         properly.
28862         - Let the driver set the cursors.
28863         - Improve active window handling
28864         - Correct sizes for title bars and buttons.
28865         - Match MS drawing better
28866         * MdiWindowManager.cs: We don't need to handle border style
28867         updates specially anymore.
28868         - Check for scrollbars when windows are done moving
28869         - Handle Active properly.
28870         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
28871         correctly. I am spewing the exception though, so we don't hide the
28872         bugs.
28873         
28874 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
28875
28876         * DataGridViewRowPostPaintEventArgs.cs,
28877           DataGridViewCellPaintingEventArgs.cs,
28878           DataGridViewRowCollection.cs,
28879           DataGridViewRowPrePaintEventArgs.cs,
28880           DataGridViewCell.cs: Clear a few warnings and implement a few
28881           exceptions that should be thrown.
28882
28883 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
28884
28885         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
28886           'inheriting' our parent's (non-default) cursor. (Part of
28887            the fix for #77479)
28888
28889 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
28890
28891         * XplatUIX11.cs: Fixed cast to make csc happy
28892
28893 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
28894
28895         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
28896           it's for the client area (part of fix for #77479 and needed
28897           for MDI window cursor handling)
28898         * XplatUIX11.cs
28899           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
28900             the appropriate default cursors and also passing the message
28901             up the parent chain 
28902           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
28903             for non-client areas
28904
28905 2006-02-15  Jackson Harper  <jackson@ximian.com>
28906
28907         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
28908         is a real MDI window
28909
28910 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
28911
28912         * X11DesktopColors.cs: Instead of checking the desktop session
28913           string for "KDE" check if it starts with "KDE"
28914
28915 2006-02-10  Jackson Harper  <jackson@ximian.com>
28916
28917         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
28918         systems).
28919
28920 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
28921
28922         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
28923           errors
28924         * ColorDialog.cs:
28925           - Got rid of the panel. All controls are now directly added to
28926             the dialog form
28927           - Changed to mono coding style
28928
28929 2006-02-10  Jackson Harper  <jackson@ximian.com>
28930
28931         * InternalWindowManager.cs: We don't need the set visibility to
28932         false hack anymore now that peter has written beautiful shutdown
28933         code.
28934
28935 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
28936
28937         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
28938           where already explicitly destroyed
28939
28940 2006-02-10  Jackson Harper  <jackson@ximian.com>
28941
28942         * MdiClient.cs: Handle the case where windows are too high or to
28943         the left and we need scrollbars.
28944
28945 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
28946
28947         * MimeIcon.cs: Added some icons
28948         * FileDialog.cs:
28949           - Fixed bug #77477
28950           - Got rid of the panel. All controls are now directly added to
28951             the dialog form
28952           - Changed to mono coding style
28953           - On Linux "My Computer" and "My Network" will now show some
28954             more usefull information. A new class, MasterMount, gathers
28955             this information from /proc/mount. Updated MWFFileView to make
28956             use of this information
28957           - Fixed a bug that caused FileDialog to crash when
28958             ".recently_used" file had a zero size
28959           - FilterIndex does now what it should
28960           - Some Refactoring
28961         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
28962             FileDialog changes
28963
28964 2006-02-09  Jackson Harper  <jackson@ximian.com>
28965
28966         * ComboBox.cs: Don't touch if null.
28967
28968 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
28969
28970         * Cursor.cs: 64bit safeness fix
28971         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
28972
28973 2006-02-09  Jackson Harper  <jackson@ximian.com>
28974
28975         * Form.cs: If a form is made into an MDI form update the styles so
28976         all the props can get set correctly.
28977         - Kill the mdi_container when we dont need it anymore.
28978         * InternalWindowManager.cs: Add missing NOT
28979
28980 2006-02-08  Jackson Harper  <jackson@ximian.com>
28981
28982         * InternalWindowManager.cs: Respek clipping when drawing MDi
28983         decorations.
28984
28985 2006-02-08  Jackson Harper  <jackson@ximian.com>
28986
28987         * Hwnd.cs: Add bits to track non client expose events.
28988         * XplatUIX11.cs: Track non client expose events on the hwnd. This
28989         gives us a proper invalid rect and will allow for some nice
28990         optimizations with NC client drawing
28991         - MDI windows are children windows, so move their style handling
28992         into the child window block.
28993         * InternalWindowManager.cs: Remove a state reset that was
28994         getting invoked at the wrong time. Fixes managed windows getting
28995         into a 'stuck' captured state.
28996
28997 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
28998
28999         * TextControl.cs (Document.ctor): Now initializing 
29000           selection_anchor. Fixes #77493
29001
29002 2006-02-07  Jackson Harper  <jackson@ximian.com>
29003
29004         * TrackBar.cs: The increment/decrements were backwards.
29005
29006 2006-02-07  Mike Kestner  <mkestner@novell.com>
29007
29008         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
29009         to the instance itself.
29010
29011 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
29012
29013         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
29014           on ulongs and pointers, the size differs between 32bit and 64bit
29015           systems. 
29016
29017 2006-02-07  Mike Kestner  <mkestner@novell.com>
29018
29019         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
29020         for 64 bit platforms to work around a metacity bug. 
29021
29022 2006-02-07  Jackson Harper  <jackson@ximian.com>
29023
29024         * TrackBar.cs: Process the input keys we need, and hookup to
29025         KeyDown instead of using WndProc, so we get key messages.
29026
29027 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
29028
29029         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
29030           machine we're on. 
29031         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
29032           we need to translate the XdndVersion atoms array before sending it
29033
29034 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
29035
29036         * XplatUIX11.cs: 
29037           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
29038             number of bits for the property, not the number of bytes. The
29039             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
29040             but would not crash since it specified 8 bits instead of 4 bits)
29041           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
29042             defined as XID -> long in the C headers)
29043           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
29044             references since those are now IntPtr to begin with
29045           - Switched all Atom.XXX 'int' casts to IntPtr casts
29046           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
29047           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
29048           - Added XChangeActivePointerGrab DllImport (for X11DnD)
29049         * X11Structs.cs:
29050           - Changed 'int' type for Atoms in XEvent structures to IntPtr
29051           - Changed atom in HoverStruct to be IntPtr
29052         * X11DnD.cs:
29053           - Removed local DllImports, switched code to use those from XplatUIX11
29054           - Removed/fixed casts related to the switch of Atom to be a IntPtr
29055
29056 2006-02-06  Mike Kestner  <mkestner@novell.com>
29057
29058         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
29059         method signatures in the import region.  There may still be some
29060         lingering struct marshaling issues, as I didn't drill down into those.
29061         Yet.
29062
29063 2006-02-06  Jackson Harper  <jackson@ximian.com>
29064
29065         * ComboBox.cs: Dont manually set the top_item, this is computed
29066         when the scrollbar position is set.
29067
29068 2006-02-06  Mike Kestner  <mkestner@novell.com>
29069
29070         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
29071         startup crashes on amd64.  There's other fixes needed.  All pinvoke
29072         usage of Atom needs to be mapped to IntPtr for example.  And there are
29073         likely other int/long issues to be addressed.
29074
29075 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
29076
29077         * FileDialog.cs: One more...
29078
29079 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29080
29081         * FileDialog.cs: Next try
29082
29083 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29084
29085         * FileDialog.cs: First part of fix for #77464
29086
29087 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29088
29089         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
29090           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
29091           AcceptButton border drawing.
29092
29093 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
29094
29095         * Form.cs: Moved positioning of form after auto scaling is applied,
29096           otherwise it would possibly use wrong form size.
29097
29098 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
29099
29100         * Control.cs (RecreateHandle): No need to re-create any child
29101           controls, the child windows will get destroyed automatically by
29102           the windowing system or driver, and re-created when the handle
29103           is being accessed the first time. Fixes #77456
29104         * Form.cs: No longer setting the form to closing if the handle is 
29105           being recreated. This seems like the right thing to do, don't
29106           have a bug or testcase for this, though.
29107
29108 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
29109
29110         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
29111           controls to avoid unwanted side effects
29112
29113 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
29114
29115         * Control.cs: 
29116           - ScaleCore needs to scale the bounds, not the ClientSize of the 
29117             control. Fixes #77416.
29118           - DefaultSize is 0,0 for control
29119         * TextBoxBase.cs: 
29120           - DefaultSize is 100, 20
29121           - SetBoundsCore: Now enforcing the height, no matter if the provided
29122             height is more or less than the preferred one, as long as AutoSize
29123             is on
29124         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
29125
29126 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
29127
29128         * Control.cs:
29129           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
29130             call unless both performLayout is true *and* we have a pending
29131             layout change
29132           - ResumeLayout: MS does not completely nest Suspend and Resume,
29133             they bottom out at 0, fixed our code to match that.
29134           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
29135             SetBoundsCore, we were updating even when we shouldn't. This fixes
29136             swf-anchors mis-anchoring when resizing the app fast and lots.
29137           - UpdateDistances: Now only setting the left and top distance if 
29138             we have a parent and are not suspended, this is based on
29139             a suggestion by Don Edvaldson in bug #77355.
29140           - OnVisibleChanged: Fixed logic when to create the control. We may
29141             not create the control if we have no parent or if it's not visible;
29142             switched to using Visible property instead of is_visible field 
29143             since the property also considers parent states. This fixes a bug
29144             when starting Paint.Net
29145
29146 2006-02-02  Jackson Harper  <jackson@ximian.com>
29147
29148         * Form.cs: If the forms handle hasn't been created yet don't call
29149         into xplatui to make it top most, just set the topmost flag on the
29150         form in CreateParams
29151         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
29152
29153 2006-02-01  Jackson Harper  <jackson@ximian.com>
29154
29155         * ScrollableControl.cs: Refactored the Recalculate method a
29156         little, this wasn't handling all the variants of bottom and right
29157         bars needed to be added and added/removed based on their
29158         counterparts being added/removed (which changes the drawable
29159         size). Also we special case client widths and heights of 0 and
29160         don't add the scrollbar for those.
29161
29162 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
29163
29164         * XplatUIX11.cs: 
29165           - Added method to get AbsoluteGeometry(); currently unused, but might
29166             be used in the future, if we try again to figure out toplevel
29167             coordinates with some more crappy window managers
29168           - Added FrameExtents() method to retrieve the WM set decoration size
29169           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
29170             to deal with at least KDE, FVWM and metacity (Fixes #77092)
29171         * Hwnd.cs: 
29172           - Added whacky_wm tracking var for metacity
29173           - Added logic to have default menu height if the actual menu height
29174             has not yet been calculated (part of fix for #77426)
29175         * Form.cs: Keep track whether client size has been set and re-set 
29176           it if a menu is added/removed afterwards (Fixes #77426)
29177
29178 2006-01-31  Jackson Harper  <jackson@ximian.com>
29179
29180         * Control.cs: When a new Site is set on the component attempt to
29181         pull the AmbientProperties from it.
29182
29183 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
29184
29185         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
29186           in the background of the owning form. Fixes #77332
29187
29188 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
29189
29190         * MimeIcon.cs: Fix for #77409
29191
29192 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
29193
29194         * XplatUIX11GTK.cs: Initial import
29195
29196 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
29197
29198         * FixedSizeTextBox: fixes class signature
29199
29200 2006-01-30  Jackson Harper  <jackson@ximian.com>
29201
29202         * FixedSizeTextBox.cs: New internal class that represents a
29203         textBox that will not be scaled.
29204         * TreeView.cs:
29205         * ComboBox.cs:
29206         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
29207         standard TextBox.
29208                 
29209 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
29210
29211         * XplatUIX11.cs: Retrieve default screen number instead of
29212           assuming 0. Attempted fix for #77318
29213
29214 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
29215
29216         * XplatUIWin32.cs: 
29217           - GetWindowPos: When a window is parented by FosterParent, use 
29218             the desktop instead of FosterParent as the base to get coordinates
29219           - CreateWindow: Don't make FosterParent the parent window for Popups
29220             if we don't want a taskbar entry, Popups automatically don't get one
29221         * Hwnd.cs: Need to call remove to actually remove the key from the
29222           hash table
29223
29224 2006-01-30  Mike Kestner  <mkestner@novell.com>
29225
29226         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
29227
29228 2006-01-30  Jackson Harper  <jackson@ximian.com>
29229
29230         * TreeView.cs:
29231         * TreeNode.cs: Raise events no matter how the treenode is
29232         checked. Patch by Don Edvalson.
29233
29234 2006-01-30  Jackson Harper  <jackson@ximian.com>
29235
29236         * TreeNode.cs: Signature fix.
29237
29238 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
29239
29240         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
29241
29242 2006-01-20  Mike Kestner  <mkestner@novell.com>
29243
29244         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
29245         event forwarding when menus are active.
29246         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
29247         Most of the patch is pdb's with a little rework.
29248
29249 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
29250
29251         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
29252           Removed GetMenuDC and ReleaseMenuDC methods; replaced
29253           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
29254         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
29255         * InternalWindowManager.cs: Added use of PaintEventStart/End to
29256           handling of WM_NCPAINT message, now passing the PaintEventArgs to
29257           the PaintWindowDecorations method
29258         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
29259         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
29260         * MenuAPI.cs: Made tracker window invisible
29261         * XplatUIWin32.cs:
29262           - Removed GetMenuDC and ReleaseMenuDC methods
29263           - Implemented the client=false path for PaintEventStart and
29264             PaintEventEnd
29265
29266 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
29267
29268         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
29269         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
29270           styles
29271         * Form.cs: 
29272           - MaximizeBox, MinimizeBox: Recreate the handle when setting
29273             the style
29274           - CreateParams: Reworked the styles to match MS look'n'feel,
29275             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
29276             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
29277
29278 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
29279
29280         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
29281           window is not mapped, since otherwise every form that's being 
29282           created is considered minimized, which is wrong.
29283         * Form.cs: Catching the exception and returning our internal value
29284           instead
29285
29286 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
29287
29288         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
29289           SetWindowMinMax() to have means to tell the driver about the minimum,
29290           maximum and maximized state window sizes. (Part of the fix for #76485)
29291         * Form.cs:
29292           - Implemented tracking of minimum and maximum window size, now calling
29293             new SetWindowMinMax() driver method to tell the driver (Part of the
29294             fix for #76485)
29295           - Finished handling of WM_GETMINMAXINFO method, now setting all values
29296             (Completes fix for #76485)
29297           - Calling new SetWindowMinMax driver method when the handle for a 
29298             form is created, to make sure the driver knows about it even if
29299             the values have been set before the window was created
29300           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
29301             to avoid messing up our anchoring calculations (partial fix
29302             for #77355)
29303         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
29304         * XplatUIX11.cs:
29305           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
29306           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
29307             (and presumably other freedesktop.org compliant WMs). Left the
29308             assumption unmapped=minimized, needed for SetVisible to work.
29309           - Now setting the window state when creating windows
29310           - Fixed SetVisible to consider/set the window state when mapping
29311             a Form. We cannot set the state before it's mapped, and we cannot
29312             use Form.WindowState once it's mapped (since it would ask the
29313             driver and get 'normal'. Therefore, we grab the state before
29314             mapping, map, and then set state.
29315           - Implmemented SetWindowMinMax method; Metacity does not seem to
29316             honor the ZoomHints, though.
29317         * XplatUIWin32.cs:
29318           - Removed MINMAXINFO (moved to XplatUIStructs)
29319           - Added SetWindowMinMax stub (on Win32 the only way to set that
29320             information is in response to the WM_GETMINMAXINFO message, which
29321             is handled in Form.cs)
29322           - Added logic to SetVisible to set the proper window state when a 
29323             form is made visible (fixes #75720)
29324
29325 2006-01-26  Jackson Harper  <jackson@ximian.com>
29326
29327         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
29328         same way we handle them with Invoke.
29329
29330 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
29331
29332         * Form.cs:
29333           - Added tracking of window state so CreateParams can return
29334             the appropriate style
29335           - Moved setting of WS_CAPTION style in CreateParams to allow
29336             styles without caption
29337         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
29338           control if the TextBox property is accessed. Fixes #77345
29339         * Control.cs:
29340           - get_Created: now uses is_disposed and is_created to determine
29341             return value (suggested by Jackson)
29342           - CreateHandle: No longer exits if the handle is being recreated
29343           - RecreateHandle: If the handle is not yet created call the 
29344             appropriate method to create either control or handle. If the
29345             control is already created CreateHandle will simply exit instead
29346             of just creating the handle
29347         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
29348           now SendMessage WM_DESTROY directly to the control when DestroyWindow
29349           is called.
29350         * XplatUIX11.cs: 
29351           - When DestroyWindow is called, instead of waiting for the 
29352             DestroyNotification from X11, we directly post it to the WndProc
29353             and immediately dispose the hwnd object.
29354             Same applies to DestroyChildWindows, and this obsoletes the
29355             expose_pending tracking. Contrary to Win32 behaviour we destroy our
29356             child windows before our own, to avoid X11 errors.
29357           - Removed the direct sending of WM_PAINT on UpdateWindow
29358         * XplatUIWin32.cs:
29359           - Reworked DoEvents and GetMessage to allow access to internal queue
29360             even when trying non-blocking access to the queue.  Fixes #77335. 
29361             Based on a patch suggestion by Don Edvalson. The new private
29362             GetMessage can now also be used as a backend for a PeekMessage
29363             frontend version.
29364         * XplatUI.cs: Improved debug output for CreateWindow
29365
29366 2006-01-25  Jackson Harper  <jackson@ximian.com>
29367
29368         * Help.cs: Allow param to be null. Patch by Don Edvalson.
29369
29370 2006-01-24  Jackson Harper  <jackson@ximian.com>
29371
29372         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
29373         when we have a MaxDropItems lower then the selected index.
29374
29375 2006-01-24  Jackson Harper  <jackson@ximian.com>
29376
29377         * Control.cs: Don't allow selection of non visible controls, allow
29378         selection of controls without parents.
29379
29380 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
29381
29382         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
29383         * DataGridDrawingLogic.cs: Add editing row only when is necessary
29384
29385 2006-01-23  Jackson Harper  <jackson@ximian.com>
29386
29387         * UpDownBase.cs: Make the textbox handle all the selection and
29388         tabbing. This fixes tabing to updown controls.
29389
29390 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
29391
29392         * TextBoxBase.cs: fixes exception thown the object was null
29393
29394 2006-01-23  Jackson Harper  <jackson@ximian.com>
29395
29396         * ButtonBase.cs: Just use the base CreateParams. They set
29397         visibility and enabled correctly.
29398         * ComboBox.cs:
29399         * TrackBar.cs:
29400         * MonthCalendar.cs: Lets let the base set as much of the
29401         createparams as possible so we don't have duplicate code all over
29402         the place.
29403
29404 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
29405
29406         * ThemeGtk.cs: Added TrackBar and some experimental code to
29407           get double buffering back
29408
29409 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
29410
29411         * DataGrid.cs: Allows row number set internally higher than the last
29412         when creating a new row. Restores the editing functionality.
29413
29414 2006-01-20  Mike Kestner  <mkestner@novell.com>
29415
29416         * MimeIcon.cs: delay Image creation until the icons are accessed
29417         instead of creating 190 scaled images on GnomeHandler startup.
29418
29419 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
29420
29421         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
29422           first call base before processing the event. Fixes #77279
29423
29424 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
29425
29426         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
29427           that the stride for the GDI bitmap would match the stride of
29428           a DIB or a Cursor.
29429
29430 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
29431
29432         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
29433
29434 2006-01-19  Jackson Harper  <jackson@ximian.com>
29435
29436         * ComboBox.cs: Hookup the text controls keydown event so we get
29437         those when the text control has the focus.
29438
29439 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
29440
29441         * Label.cs: Now using the base events instead of defining new ones;
29442           this allows us to just call the base properties without having to
29443           duplicate all base property logic 
29444
29445 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
29446
29447         * Label.cs: A label by default is not a tabstop (Fixes one of our
29448           failing nunit tests)
29449
29450 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
29451
29452         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
29453         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
29454
29455 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
29456
29457         * Cursor.cs: Reimplemented creating cursor bitmaps without using
29458           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
29459           This fixes #77218
29460         * XplatUIWin32.cs: 
29461           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
29462             constructor creates images that can't be saved. Part of the fix
29463             for #76103
29464           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
29465           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
29466             bug fix for handling window state in forms properly)
29467
29468 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29469
29470         * ThemeGtk.cs: Simplify ScrollBar drawing
29471
29472 2006-01-18  Jackson Harper  <jackson@ximian.com>
29473
29474         * Splitter.cs: Set the default dock style for the splitter control
29475         in the constructor.
29476
29477 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29478
29479         * ThemeGtk.cs: Corrected StateType and ShadowType for
29480           gtk_paint_box
29481
29482 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29483
29484         * Control.cs: Make use of Theme.DoubleBufferingSupported
29485         * ThemeGtk.cs:
29486           - Added drawing for flat style buttons
29487           - Added ScrollBar drawing
29488
29489 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29490
29491         * ThemeClearlooks.cs: Removed some unneeded code.
29492         * ThemeGtk.cs: First part of ThemeGtk enhancements.
29493
29494 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
29495
29496         * LinkLabel.cs: We need to update the hover drawing when
29497           leaving the control as well.
29498
29499 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
29500
29501         * DataGrid.cs: Clicking on non empty areas in the columns
29502            area was giving an exception
29503
29504 2006-01-17  Jackson Harper  <jackson@ximian.com>
29505
29506         * ThemeWin32Classic.cs:
29507         * ListView.cs: Do not draw/clip the headers when the header style
29508         is None.
29509
29510 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
29511
29512         * DataGrid.cs: Fixes 77260
29513         
29514 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
29515
29516         * DataGrid.cs: Clicking on a column on a empty grid was giving
29517           an exception
29518
29519 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
29520
29521         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
29522           or any keypress will crash the grid.
29523
29524 2006-01-17  Mike Kestner  <mkestner@novell.com>
29525
29526         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
29527         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
29528         invisible/previously-visible items.
29529         [Fixes #76909]
29530
29531 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
29532
29533         * ThemeClearlooks.cs:
29534         - Added CL_Draw_Button method; now other theme controls that are 
29535           not derived from button or do not have a button can draw buttons
29536           too
29537         - Updated ComboBox drawing
29538         - Beautified RadioButton drawing
29539         - Corrected drawing of bottom and left tabs
29540         - Beautified DateTimePicker and MonthCalendar
29541         - Added CPDrawButton and CPDrawRadioButton
29542
29543 2006-01-16  Jackson Harper  <jackson@ximian.com>
29544
29545         * ComboBox.cs: Set the initial value of the scrollbar to the
29546         current index. Reduce the numbers of refreshs and IndexOfs called.
29547
29548 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
29549
29550         * FileDialog.cs: When the file listview is focused hitting the
29551           backspace key moves the fileview to the parent directory
29552
29553 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
29554
29555         * Form.cs: 
29556           - Added RecreateHandle call when changing taskbar visibility to 
29557             trigger reparenting in Win32 driver (Fixes #75719)
29558           - If a window has minimize or maximize buttons, it cannot have
29559             a help button
29560         * XplatUIWin32.cs:
29561           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
29562             the toplevel form with FosterParent (A toolwindow not on the
29563             taskbar) (Fixes #75719)
29564           - Made FosterParent a toolwindow
29565
29566 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29567
29568         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
29569
29570 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29571
29572         * ToolTip.cs: If SetToolTip is called from a control and the mouse
29573           is currently over that control, make sure that tooltip_window.Text
29574           gets updated
29575
29576 2006-01-13  Mike Kestner  <mkestner@novell.com>
29577
29578         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
29579
29580 2006-01-13  Jackson Harper  <jackson@ximian.com>
29581
29582         * TreeView.cs: On MS GetNodeAt never actually factors in the X
29583         value passed.  Also redraw the selected node when we recieve
29584         focus, so tabbing between trees works correctly.
29585
29586 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29587
29588         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
29589           ~/.gconf/%gconf-tree.xml, so use
29590           .gconf/desktop/gnome/interface/%gconf.xml
29591
29592 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
29593
29594         * TextControl.cs: Draw text in gray if control is disabled
29595
29596 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
29597
29598         * TreeView.cs: Draw the focus rectangle outside the highlight, to
29599           make sure it's always visible. Fixes #76680.
29600
29601 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
29602
29603         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
29604
29605 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
29606
29607         * PageSetupDialog.cs: Added.
29608         * PrintDialog.cs: Attributes.
29609         * PrintPreviewControl.cs: Updates.
29610         * PrintPreviewDialog.cs: Updates.
29611         
29612 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29613
29614         * Control.cs: Undid my selection check fix, since it's not needed
29615         * TextBoxBase.cs:
29616           - Now considering the presence of hscroll/vscroll when sizing
29617             vscroll/hscroll respectively. Fixed bug #77077
29618           - Added Left/Up/Down/Right to IsInputKey list to prevent
29619             ContainerControl from stealing them. This fixes what I broke
29620             with my last checkin.
29621
29622 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
29623
29624         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
29625           I finally understand how the property can be set without a setter :-)
29626
29627 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29628
29629         * Application.cs:
29630           - Switched RunLoop to use static Message.Create to create a 
29631             Message object
29632           - Added PreProcessMessage call in runloop for keyboard events; this
29633             is part of the fix for #77219, I overlooked this originally in the
29634             MSDN doc for PreProcessMessage
29635         * Control.cs:
29636           - Removed call to PreProcessMessage from handling of keyboard 
29637             messages; it's supposed to be done in the message pump
29638           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
29639             per MSDN documentation.
29640           - IsInputChar: All chars are input chars by default; removed the 
29641             parent calling chain, MS does not document that
29642           - PreProcessMessage: If IsInputChar is true, we want to return false
29643             to allow dispatching of the message
29644           - When selecting the next control, now also check that we're not
29645             selecting ourselves again and therefore return a false positive.
29646         * TextBoxBase.cs:
29647           - Tried to match return values for IsInputKey and ProcessDialogKey
29648             to what MS returns; moved processing of our special keys outside
29649             ProcessDialogKey since MS does not seem to return true on those.
29650           - Moved code that previously was in ProcessDialogKey into new private
29651             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
29652           - Reworked handling of WM_CHAR to not have to duplicate code from
29653             Control.cs anymore, instead we simply call down to base.
29654            
29655 2006-01-12  Jackson Harper  <jackson@ximian.com>
29656
29657         * ComboBox.cs: We always need to refresh the text area when
29658         EndUpdate is called. Fixes the combobox in the file dialog.
29659         * Control.cs: Don't create the creator_thread until the controls
29660         handle is created.  Also in InvokeRequired we check if the
29661         creator_thread is null. This gives the effect of InvokeRequired
29662         returning true if the controls handle is not created yet, and
29663         matches MS.
29664
29665 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29666
29667         * XplatUI.cs:
29668           - Added StartLoop() driver method. This is used to allow drivers to
29669             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
29670             loop for a particular thread
29671           - Added EndLoop() driver method. This is called once the message
29672             pump for the thread is shut down
29673           - Added SupportsTransparency method to allow the driver to indicate
29674             opacity support for windows
29675         * Form.cs:
29676           - Removed TODO attribute, completed AllowTransparency property
29677           - Added documented logic to Opacity
29678         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
29679           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
29680           versions of CompatibleTextRendering
29681         * X11Structs.cs: Added opacity atom to our atom enumeration
29682         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
29683           of a form might be set before it's reparented by the WM, and we need
29684           the opacity value without calling up to Form)
29685         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
29686           SupportsTransparency() driver methods
29687         * Application.cs: Now calling StartLoop and EndLoop driver methods
29688         * XplatUIX11.cs:
29689           - Added opacity atom registration
29690           - Added StartLoop()/EndLoop() methods. They're empty right now but
29691             will need to get implemented when we switch to a per-thread queue
29692           - Implemented SupportsTransparency() method
29693           - Implemented SetWindowTransparency() method
29694           - Added support for setting the opacity value when a window is
29695             reparented (since the opacity needs to be set on the WM frame)
29696         * XplatUIOSX.cs, XplatUIWin32.cs:
29697           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
29698
29699 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
29700
29701         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
29702
29703 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
29704
29705         * FileDialog.cs: Added ToolTip for MWFFileView
29706         * MimeIcon.cs: Rewrote GnomeHandler.
29707           - Get currently used gnome icon theme from
29708             ($HOME)/.gconf/%gconf-tree.xml
29709           - Make use of inherited icon themes
29710           - Support SVG icon themes like Tango via librsvg
29711
29712 2006-01-12  Miguel de Icaza  <miguel@novell.com>
29713
29714         Revert's Jackson's revert which broke 2.0 builds.   Fix both
29715         builds. 
29716         
29717         * Application.cs: Move the use_compatible_text_rendering outside
29718         the NET_2_0 define.  If we ever need to use the
29719         use_compatible_text_rendering on the individual controls they will
29720         access the variable from the common shared code paths.
29721
29722 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29723
29724         * XplatUI.cs:
29725           - Added more granular debug options
29726           - Added method to print both window text and id
29727           - Switched debug output to use new Window() debug method
29728           - Added IsEnabled() driver method
29729           - Added EnableWindow() driver method
29730         * Form.cs:
29731           - Removed end_modal; no longer needed, new loop handles termination
29732             via 'closing' variable
29733           - If form is modal, setting DialogResult will now initiate loop
29734             termination via 'closing' variable
29735           - Added support for is_enabled/WS_DISABLED to CreateParams
29736           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
29737             does all the work
29738           - Removed code that's now in RunLoop from ShowDialog()
29739           - Added various documented sanity checks to ShowDialog()
29740           - Added handling of WM_DESTROY message; we set 'closing' on getting
29741             the message to indicate the message pump to terminate
29742           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
29743             send by the Application.ExitThread method. (We send the message
29744             to destroy the window after all other events have been
29745             processed through the queue, instead of destroying the handle 
29746             directly)
29747           - Moved code from Close() method to WM_CLOSE handler; added logic
29748             to only send close-related events if the form is not displayed
29749             modal
29750         * Splitter.cs (..ctor): Fixed typo in resource name
29751         * Control.cs:
29752           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
29753             brush now
29754           - set_Cursor: Now only setting calling into XplatUI if the handle for
29755             the control is already created; this avoids implict handle creation
29756             or crashes if it's not created
29757           - set_Enabled: Now setting the enabled state via the new driver method
29758             instead of just tracking it
29759           - CreateParams: Added logic to set WS_DISABLED based on enabled state
29760           - CreateControl: Reordered event firing and method calls to more
29761             closely fire events in the order MS does. Now setting the
29762             enabled state in the driver when creating the control.
29763           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
29764             match MS order
29765         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
29766           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
29767         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
29768         * Hwnd.cs:
29769           - Added tracking of window enabled state (get_Enabled/set_Enabled)
29770           - Added EnabledHwnd property to easily allow a driver to find the
29771             handle of the first enabled window in the parent chain (this is
29772             used by drivers to pass up input events of disabled windows)
29773         * XplatUIDriver.cs: Added IsEnabled() method
29774         * Application.cs:
29775           - Removed crude and obsolete exiting tracking variable
29776           - Removed internal ModalRun(); replaced by RunLoop()
29777           - Implemented private CloseForms() method to allow closing all 
29778             windows owned by a particular (or all) threads
29779           - Exit() now properly closes all windows without forcing the message
29780             pump to quit
29781           - Removed obsolete InternalExit() method
29782           - Changed Run() methods to use new RunLoop() message pump
29783           - Implemented new RunLoop() method for both modal and non-modal forms
29784         * CommonDialog.cs:
29785           - get_CreateParams: Added setting of WS_DISABLED
29786           - Simplified ShowDialog(); now all the work is done in RunLoop(),
29787             invoked via Form.ShowDialog()
29788         * NativeWindow.cs: We don't remove the window from the collection when
29789           the handle is destroyed; there might still be messages for it in the
29790           queue (mainly the resulting WM_DESTROY); instead it will be removed
29791           when Control calls InvalidateHandle in the WM_DESTROY handler
29792         * XplatUIX11.cs:
29793           - CreateWindow: Added logic to handle the WS_DISABLED window style
29794           - EnableWindow: Implemented based on Hwnd.Enabled
29795           - GetMessage: Reset PostQuitState so the method can be called again
29796           - Implemented support for disabled windows (passing messages to the
29797             first enabled parent) in handling all input messages
29798           - Added optimizations for handling Expose events
29799           - Implemeted new driver method IsEnabled()
29800           - Now always resetting paint pending tracking vars when we start paint
29801           - Re-implemented UpdateWindow via just sending a WM_PAINT message
29802         * XplatUIOSX.cs: Added IsEnabled method stub
29803         * XplatUIWin32.cs: Implemented new IsEnabled() method
29804
29805 2006-01-11  Jackson Harper  <jackson@ximian.com>
29806
29807         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29808         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
29809         variables a little.
29810         * ColorDialog.cs: Clear out the old form before adding the new
29811         panel.  
29812
29813 2006-01-11  Jackson Harper  <jackson@ximian.com>
29814
29815         * X11Dnd.cs: Make sure to add all the text formats when adding
29816         strings to the data object.
29817         * TreeNodeCollection.cs: When adding to a sorted tree we need to
29818         do some redrawing too.  Also change the UpdateNode to an
29819         UpdateBelow so the newly added node gets painted.
29820         
29821 2006-01-11  Miguel de Icaza  <miguel@novell.com>
29822
29823         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29824         LinkLabel.cs, PropertyGrid.cs: Implement the
29825         UseCompatibleTextRendering property for 2.x
29826
29827         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
29828
29829 2006-01-11  Jackson Harper  <jackson@ximian.com>
29830
29831         * TreeView.cs: Use the property for setting the selected node so
29832         the correct events get raised.
29833         * TreeNode.cs: Update the tree when the fore/back colours of a
29834         node are set.
29835
29836 2006-01-10  Jackson Harper  <jackson@ximian.com>
29837
29838         * TreeView.cs: Allow setting SelectedNode to null.
29839
29840 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29841
29842         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
29843
29844 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29845
29846         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
29847
29848 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29849
29850         * PrintDialog.cs: Added attributes and set default property values.
29851
29852 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29853
29854         * PrintControllerWithStatusDialog.cs: 
29855         Added PrintControllerWithStatusDialog.
29856
29857 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29858
29859         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
29860         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
29861
29862 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29863
29864         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
29865
29866 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
29867
29868         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
29869         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
29870
29871 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
29872
29873         * MimeIcon.cs: Added internal class SVGUtil.
29874
29875 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
29876
29877         * FileDialog.cs: Don't crash if there are two files with the
29878           same name but different locations.
29879
29880 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
29881
29882         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
29883         dates across multiple month grids. Used to not highlight entire 
29884         month, but does now.
29885         
29886 2006-01-06  Jackson Harper  <jackson@ximian.com>
29887
29888         * MonthCalendar.cs: Removed DoEvents call to prevent a running
29889         message loop. Change timer intervals to numbers that seem more
29890         natural.
29891
29892 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
29893
29894         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
29895           object for location info since screen object is now implemented.
29896
29897 2006-01-05  Jackson Harper  <jackson@ximian.com>
29898
29899         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
29900         * AsyncMethodResult.cs: We no longer use a WeakReference for the
29901         AsyncMethodResult, this is because we ALWAYS want the
29902         ManualResetEvent to get set.
29903         * Control.cs: When disposing use an async invoke to call shutdown
29904         code, so that thigns don't block on the finalizer thread.  Also
29905         check if we even have a message loop before trying to send
29906         messages, if we don't then don't bother sending messages.
29907         - No more weak references for async methods
29908         * XplatUIDriver.cs: No more weak references for async methods.
29909
29910 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29911
29912         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
29913           returns two FontFamily with the same name
29914
29915 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
29916
29917         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
29918           drawing disabled text. Instead using the ColorGrayText color
29919
29920 2006-01-04  Jackson Harper  <jackson@ximian.com>
29921
29922         * TreeNode.cs: redraw the node when its image index is changed.
29923
29924 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
29925
29926         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
29927           time I checked there are no others like it.
29928
29929 2006-01-04  Jackson Harper  <jackson@ximian.com>
29930
29931         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
29932         this gives the behavoir I was looking for.
29933         * Control.cs: Special case Invoking EventHandlers, this matches MS
29934         and fixes part of bug #76326.
29935
29936 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29937
29938         * ThemeClearlooks.cs, FileDialog.cs:
29939           - Reflect the latest Theme class changes
29940           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
29941             with DateTime
29942             
29943 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29944
29945         * Theme.cs: Cache UI resource images and resize them if needed
29946
29947 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
29948
29949         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
29950           is called. This fixes the crash in Nexxia when setting the font
29951           attributes in the chat. [However, RTF needs a look-over to make sure
29952           that all SelectionXXX methods handle the special case that selection
29953           is empty and therefore the change must be applied to all text starting
29954           at the cursor/selection start]
29955
29956 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
29957
29958         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29959           XplatUIOSX.cs: Added SendMessage and PostMessage methods
29960         * X11Keyboard.cs: Switched to new way of calling PostMessage
29961
29962 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
29963
29964         * Theme.cs: Added theme interface for images to allow the theme to
29965           control what images are used for things like FileDialog, MessageBox
29966           icons, etc.
29967         * MessageBox.cs: Now uses the new Theme icon/image interfaces
29968
29969 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
29970
29971         * FileDialog.cs:
29972           - Removed some dead code
29973           - Opening a recently used file does work now
29974           - Small UI enhancements
29975           - Refactoring
29976
29977 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
29978
29979         * FileDialog.cs: Forgot too add __MonoCS__
29980
29981 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
29982
29983         * FileDialog.cs: We are able to read recently used files now let's
29984           go on and write them.
29985
29986 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
29987
29988         * FileDialog.cs: Breathe some life into "last open"/"recently used"
29989           button
29990         * MimeIcon.cs: Do a check for the top level media type also
29991
29992 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
29993
29994         * ThemeClearlooks.cs:
29995           - Added CPDrawStringDisabled
29996           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
29997             some chars if the text doesn't fit into text_rect
29998           - DrawListViewItem: If View = View.LargeIcon center the image;
29999             rewrote the drawing of ListViewItem.Text if View = 
30000             View.LargeIcon
30001
30002 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
30003
30004         * MimeIcon.cs: Use default KDE icon theme if there is no
30005           "48x48" directory for the current icon theme, fixes #77114
30006         * Mime.cs: Disable not working and actually not used code. 
30007         * ThemeWin32Classic.cs:
30008           - Replace "new SolidBrush" in GetControlBackBrush and
30009             GetControlForeBrush with ResPool.GetSolidBrush
30010           - Changed DrawListViewItem from private to protected virtual
30011         * FileDialog.cs:
30012           - Added form.MaximizeBox = true
30013           - Don't throw an exception if there is a broken symbolic link
30014
30015 2005-12-23  Jackson Harper  <jackson@ximian.com>
30016
30017         * TabControl.cs: Give the panels focus, keyboard navigation is
30018         fixed so this works correctly now.
30019         - We need these key events also.
30020         * ToolBar.cs: Remove some of the poor mans double buffering.
30021         
30022 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
30023
30024         * ComboBox.cs: The internal TextBox now returns the focus.
30025
30026 2005-12-23  Jackson Harper  <jackson@ximian.com>
30027
30028         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
30029
30030 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
30031
30032         * Control.cs: Removed debug code
30033         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
30034           implicit children
30035
30036 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
30037
30038         * Control.cs: When creating the control, update the Z-order after
30039           all it's children are created, too. (Fixes nexxia not showing
30040           picturebox bug)
30041
30042 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
30043
30044         * Control.cs: Do not update the anchoring distances if layout is
30045           suspended, instead do it once layout is resumed
30046
30047 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
30048
30049         * Control.cs: 
30050           - After many hours of debugging, for both Jackson and
30051             myself, it turns out that it helps to set the parent of a control
30052             if you want to actually see it onscreen. In the spirit of that
30053             discovery, we're now setting the parent of the control and
30054             it's children when the control's handle is created. This fix
30055             will make Lutz Roeder's Reflector run happily. 
30056           - now just creating the handle instead of the whole control when
30057             getting a graphics context for the control.
30058
30059 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
30060
30061         * ScrollableControl.cs: When calculating the canvas, don't consider
30062           the scrollbar widths. Instead, predict if horizontal scrollbar
30063           will affect canvas when deciding on vertical display and vice versa.
30064
30065 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
30066
30067         * RichTextBox.cs: Set default RTF font for documents that don't
30068           have a font table (Fixes #77076)
30069
30070 2005-12-22  Jackson Harper  <jackson@ximian.com>
30071
30072         * TextBoxBase.cs: It's difficult to do, but you can have an empty
30073         clipboard. This prevents a NullRef in that case.
30074         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
30075         clipboard. PRIMARY is for the currently selected text only. (We
30076         should implement PRIMARY at some point.
30077
30078 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30079
30080         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
30081           a Unicode function with a structure that was defined in Ansi way.
30082           This fixes #76942.
30083
30084 2005-12-21  Jackson Harper  <jackson@ximian.com>
30085
30086         * StatusBar.cs: Statusbar handles its fore/back colours on it's
30087         on. Because thats how it rolls. (and this avoids it using ambient
30088         colours).
30089         * ThemeWin32Classic.cs: Use the proper back color for filling.
30090         * Menu.cs: Use the system menu bar color for drawing menu
30091         bars. Using the window back color will bring ambient colours into
30092         the picture.
30093
30094 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
30095
30096         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
30097           Bitmaps were created and not disposed.
30098
30099 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30100
30101         * Control.cs (CreateControl): Don't do anything if the control is
30102           already created, otherwise we'd fire the OnCreated event more than
30103           once
30104
30105 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
30106
30107         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
30108           will always match. Instead return -1. Fixes #76464.
30109
30110 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30111
30112         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
30113           neither the beginning nor the end of the line (Fixes bug #76479)
30114
30115 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
30116
30117         * Control.cs:
30118           - ControlNativeWindow.ControlFromHandle(): Now handling situation
30119             where handle is invalid
30120           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
30121             instead of slower linear search
30122         * NativeWindow.cs: Don't remove the window from the hashtable until
30123           after the driver has destroyed it (since the driver might use
30124           Control.FromHandle to lookup the control object
30125         * Hwnd.cs: Added DestroyPending property to track if a window is 
30126           already destroyed as far as the driver is concerned and only hasn't
30127           yet notified the control
30128         * XplatUIX11.cs:
30129           - Activate(): Check if the window is still valid before using the 
30130             handle
30131           - Implemented DestroyChildWindow() method to mark child windows as
30132             destroyed when a window is destroyed. This prevents situations 
30133             where we might call an X method based on queued events for a
30134             window that already has been destroyed but we haven't yet pulled
30135             the destroy method from the queue.
30136           - Added a call to the new DestroyChildWindow() method to the drivers
30137             DestroyWindow code. Also now marking the destroyed window itself
30138             as pending
30139
30140 2005-12-20  Jackson Harper  <jackson@ximian.com>
30141
30142         * StatusBar.cs:
30143         * StatusBarPanel.cs: Don't calculate panel sizes on draw
30144         anymore. Just do them when needed, also track the rects of panels
30145         so that we can optimize refreshing more in the future.
30146
30147 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
30148
30149         * ColorDialog.cs: Fixed focus drawing in small color controls
30150
30151 2005-12-19  Jackson Harper  <jackson@ximian.com>
30152
30153         * InternalWindowManager.cs:
30154         * MdiWindowManager.cs: Cleanup some coordinate system changes so
30155         moving windows works properly.
30156
30157 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
30158
30159         * Control.cs: 
30160           - Removed call to InitLayout() from SetBoundsCore(); doc says
30161             it's only called when a control is added to a container
30162           - Split InitLayout logic, moved to separate UpdateDistances() method
30163             since we need to perform those calculations more often than just
30164             when adding the control to a container. (Needed to fix #77022)
30165           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
30166           - Reduced the OnBindingContextChanged events count, don't send them
30167             unless the control is created, we still aren't totally matching
30168             MS, but I can't quite figure out some of their rules
30169
30170 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30171
30172         * ThemeClearlooks.cs: Corrected distance between ProgressBar
30173           stripes
30174
30175 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30176
30177         * ThemeClearlooks.cs:
30178           - Updated ProgressBar drawing
30179           - Corrected drawing of ScrollBars and scroll buttons
30180           - Some temporary fixes for minor pixel artefacts
30181
30182 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
30183
30184         * Control.cs:
30185           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
30186             cause events to be sent in the same order as MS does.
30187           - Added ChangeParent() method to trigger various OnXXXChanged events
30188             that need to be fired when a parent changes (This is a reworking
30189             of the patch from r54254, with the X11 errors fixed)
30190           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
30191             since on MS we get OnLayoutChanged events when calling Clear()
30192           - Changed Enabled property to consider parent state as well, if a
30193             parent is not enabled, the control will not be either
30194           - Changed Parent property to simply call Controls.Add() since that
30195             now does all the work required, this way we avoid code duplication
30196           - Threw in a few OnBindingsContextChanged calls to try and match
30197             when MS sends them. We seem to send a few too many, though.
30198           - Added call to CreateControl when adding the control to a parent.
30199             We were never calling CreateControl. Still needs some work, in
30200             some places we treat HandleCreated and ControlCreated as equal, 
30201             which is wrong
30202           - Removed obsolete commented out code from UpdateZOrder()
30203
30204 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30205
30206         * ThemeClearlooks.cs: Updated TrackBar drawing.
30207
30208 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
30209
30210         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
30211
30212 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
30213
30214         * FileDialog.cs: Add the Help button and the open readonly
30215           checkbox only if needed
30216
30217 2005-12-16  Jackson Harper  <jackson@ximian.com>
30218
30219         * Control.cs: Make sure we have an active menu before trying to
30220         process commands on it. Prevents menu-less forms from crashing
30221         when Alt is pressed.
30222         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
30223         Dieter Bremes.
30224         * RichTextBox.cs: Expand statement to help out gmcs and fix the
30225         2.0 build.
30226
30227 2005-12-16  Jackson Harper  <jackson@ximian.com>
30228
30229         * InternalWindowManager.cs: Don't translate tool windows screen
30230         coordinates. This fixes windows 'bouncing' around when being moved.
30231
30232 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
30233
30234         * TextBoxBase.cs:
30235           - MaxLength now treats 2^31-1 equal to unlimited length (this is
30236             not quite MS compatible, MS uses that number only for single line
30237             and 2^32-1 for multi-line, but I figure it won't hurt keeping
30238             the limit at 2GB)
30239           - Now enforcing the MaxLength limit when entering characters
30240           - Added argument to internal Paste() method to track if it's called
30241             from programatically or via keyboard, since keyboard driven pastes
30242             need to enforce max-length
30243           - Added logic to Paste to only paste as many chars as MaxLength 
30244             allows
30245         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
30246         * TextControl.cs:
30247           - Added Length property to return number of characters in document
30248           - Added private CharCount property which only tracks actual chars
30249             in the document (no linefeeds) and fires event when CharCount
30250             changes
30251           - Added tracking of character count to all methods that alter it
30252           - Added LengthChanged event to allow applications to subscribe
30253             to any changes to the document
30254
30255 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
30256
30257         * TextBox.cs: 
30258           - Removed local password_char field (moved to TextBoxBase)
30259           - Now setting the document's password var when password is
30260             set
30261         * TextBoxBase.cs:
30262           - Added password_char field (needed here so MultiLine can
30263             access it)
30264           - Added logic to MultiLine property setter to set the document's
30265             variable when password display is allowed
30266           - Removed debug code and made some debug code conditional
30267         * TextControl.cs:
30268           - Added RecalculatePasswordLine() method to handle special password
30269             char only lines
30270           - Added PasswordChar property, also added related tracking vars
30271           - Draw() method now uses local text var for grabbing text to draw,
30272             this var is set to line.text unless we're doing password display,
30273             then it is set to the pre-generated all-password-chars line
30274           - Added calling RecalculatePasswordLine() method for password lines
30275
30276 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
30277
30278         * Hwnd.cs: 
30279           - Added Reparented property to allow tracking of Window Manager
30280             reparenting actions (which affect X/Y calculations of toplevel 
30281             windows)
30282           - Made ToString() print window handles in hex
30283         * XplatUIX11.cs:
30284           - AddConfigureNotify(): Now uses reparented state off Hwnd to
30285             determine if X/Y needs offsetting
30286           - AddConfigureNotify(): Fixed offset calculations
30287           - Now adds ReparentNotify messages into the queue
30288           - Now processes ReparentNotify messages and causes a 
30289             WM_WINDOWPOSCHANGED message to be sent upstream if a window
30290             is reparented (as most likely it's X/Y coordinates are changed
30291             due to that)
30292
30293 2005-12-14  Jackson Harper  <jackson@ximian.com>
30294
30295         * XplatUIX11.cs: Tool windows still need to respek focus.
30296
30297 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
30298
30299         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
30300           have a working release
30301
30302 2005-12-13  Jackson Harper  <jackson@ximian.com>
30303
30304         * Form.cs: Update styles after setting the border style regardless
30305         of whether or not the window is using a window manager.
30306
30307 2005-12-13  Jackson Harper  <jackson@ximian.com>
30308
30309         * Form.cs: We now hook into an internal window manager instead of just an
30310         MDI subsystem, this is so we can have properly behaving tool windows.
30311         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
30312         * InternalWindowManager.cs: New internal class that acts as a
30313         window manager for tool windows and as a base for mdi windows.
30314         * MdiWindowManager.cs: New class that acts as a window manager for
30315         mdi windows.
30316
30317 2005-12-12  Jackson Harper  <jackson@ximian.com>
30318
30319         * Control.cs: Updates so we match behavoir for for implicit
30320         controls. Fixes explosions in MDI.
30321
30322 2005-12-12  Jackson Harper  <jackson@ximian.com>
30323
30324         * Control.cs: Implement Invalidate (Region).
30325
30326 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
30327
30328         * Control.cs: 
30329           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
30330             the same events as MS does. MS fires events for each property 
30331             except, for unknown reasons, Cursor, when the control is reparented. 
30332             I can't seem to totally match add/remove since MS also fires some 
30333             VisibleChanged events, which makes no sense. Consolidated the
30334             parenting code into a separate method so it can be called from
30335             both Add and Remove. set_Parent no longer needs any special logic
30336             as it calls the parent's add method which implicitly fires
30337             all events
30338           - Removed some obsolete code and debug output
30339           - Enabled state is inherited from parents, if this is enabled
30340
30341 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
30342
30343         * Form.cs: Removed commented out code
30344
30345 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
30346
30347         * Control.cs:
30348           - Added internal version of Invoke, with additional argument 
30349             indicating if we're calling it from a Dispose() handler. That
30350             way we can avoid BeginInvoke throwing an exception if we're
30351             calling for an already destroyed window.
30352           - Added a dispose argument to BeginInvokeInternal, and made the
30353             check if a valid window handle chain exists conditional on
30354             it not being a dispose call
30355           - Removed code in DestroyHandle to destroy our children. Since we
30356             now handle the WM_DESTROY message we will catch all our children
30357             being destroyed.
30358           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
30359         * Form.cs:
30360           - Added a field to track the application context of the form.
30361           - No need to set closing variable as response to WM_CLOSE, instead
30362             we destroy the window. We also call PostQuitMessage if the form
30363             has an application context (which makes it the main app form,
30364             which, when closed terminates the app)
30365         * XplatUI.cs:
30366           - Dropped Exit() method, it's naming was confusing
30367           - Added PostQuitMessage() which causes GetMessage to return false
30368             once the message queue is empty
30369         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
30370           PostQuitMessage()
30371         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
30372           no longer a valid XplatUI method, but left it in since it's used
30373           internally. Added empty PostQuitMessage() method.
30374         * MenuAPI.cs: Replaced call to Exit() with call to
30375           PostQuitMessage, even though this is probably no longer needed.
30376         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
30377         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
30378         * Application.cs:
30379           - Replaced call to XplatUI.Exit() with PostQuitMessage()
30380           - Removed old debug code that would call XplatUI for exception
30381             display, enabled standard exception handling (Still not enabled
30382             though, until NativeWindow's ExternalExceptionHandler define
30383             is removed
30384         * NativeWindow.cs:
30385           - Added internal method to allow control to update NativeWindow
30386             after a window has been destroyed
30387           - Added handling of already destroyed windows when calling i
30388             DestroyWindow
30389           - Added removal of handle from list on ReleaseHandle
30390         * XplatUIX11.cs:
30391           - Dropped GetMessageResult var and related code
30392           - Added PostQuitState to field to track if PostQuitMessage has been
30393             called
30394           - Dropped Exit() method
30395           - Added PostQuitMessage() method
30396           - GetMessage now will return false if PostQuitState is set and no
30397             more messages are in the queue.
30398           - Expose handler will no longer generate WM_PAINT messages if we are
30399             in PostQuitState since it's very likely any windows have already
30400             been destroyed, and since Hwnd won't get updated until we have
30401             processed the DestroyNotify we'd be causing X errors.
30402         
30403 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30404
30405         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
30406           Thanks to Mike for pointing out the err of my ways.
30407
30408 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30409
30410         * Control.cs(PreProcessMessage): Moved menu handling back, but
30411           after all other key handling, to match MS (who handles Menu in
30412           DefWndProc)
30413         * Menu.cs (WndProc): Removed my brainfart
30414
30415 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30416
30417         * Control.cs(PreProcessMessage): Removed special menu handling 
30418         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
30419
30420 2005-12-07  Mike Kestner  <mkestner@novell.com>
30421
30422         * Control.cs : special case SYSKEYUP so that we can adjust keynav
30423         state according in tracker.
30424         * Menu.cs : promote tracker field to base class and provide a tracker
30425         lookup capability.  Add/Remove shortcuts dynamically if the top menu
30426         has a tracker. Unparent items that are removed from the collection.
30427         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
30428         * Theme*.cs: add always_show_hotkeys field to support configurability
30429         of mnemonic display.  win32 doesn't show mnemonics until Alt is
30430         pressed.
30431
30432 2005-12-07  Jackson Harper  <jackson@ximian.com>
30433
30434         * MdiChildContext.cs: Use Control.ResetCursor.
30435         * Control.cs: ResetCursor needs to set the property so that the
30436         correct XplatUI call gets made.
30437
30438 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30439
30440         * Control.cs: More fixes to make our key events match MS. We
30441           were not setting the modifier state on KeyData, and we were
30442           not generating any events when Alt was pressed with a key
30443           since handling of WM_SYSxxx was missing for the OnKey methods.
30444
30445 2005-12-07  Jackson Harper  <jackson@ximian.com>
30446
30447         * MdiChildContext.cs: reenable the sizing code.
30448         - When the mouse leaves a window reset its cursor.
30449
30450 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
30451
30452         * ThemeClearlooks.cs: Reflect latest Hwnd changes
30453
30454 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30455
30456         * Hwnd.cs: Now using the theme 3d bordersize to calculate
30457           widths of Fixed3D borders
30458
30459 2005-12-07  Jackson Harper  <jackson@ximian.com>
30460
30461         * MdiClient.cs: Fix warnings. Earn Mike's love.
30462
30463 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
30464
30465         * ThemeClearlooks.cs:
30466           - Adjusted mouse over button color
30467           - Added first parts of CheckBox drawing
30468           - Added correct color for selected text background
30469           - Fixed ComboBox drawing
30470           - Added CPDrawBorder3D and CPDrawBorder
30471
30472 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
30473
30474         * XplatUIX11.cs: Added call to XBell for AudibleAlert
30475
30476 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
30477
30478         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
30479           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
30480           alert users via sound. We could add an enum arg with different
30481           types of alerts in the future
30482
30483 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
30484
30485         * Control.cs: Fix behaviour problems pointed out by Mike
30486
30487 2005-12-05  Mike Kestner  <mkestner@novell.com>
30488
30489         * StatusBarPanel.cs: add Invalidate method and hook it into all the
30490         prop setters.  Calls parent.Refresh for now, but could be maybe be
30491         optimized with an internal method on StatusBar at some point.
30492         [Fixes #76513]
30493
30494 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
30495
30496         * RichTextBox.cs: Implemented get_SelectionColor
30497
30498 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
30499
30500         * ThemeClearlooks.cs:
30501           - Removed dead code
30502           - Draw black button border only if button is Form.AcceptButton
30503           - Draw correct button color for pressed RadioButton if the mouse 
30504             has entered the button
30505           - Updated ProgressBar drawing!
30506           - Updated CPDrawSizeGrip drawing
30507           - Updated StatusBarPanel drawing
30508
30509 2005-12-05  Mike Kestner  <mkestner@novell.com>
30510
30511         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
30512         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
30513
30514 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
30515
30516         * ThemeClearlooks.cs: Initial check-in, activate with
30517           export MONO_THEME=clearlooks
30518         * ThemeEngine.cs: Added ThemeClearlooks
30519
30520 2005-12-03  Mike Kestner  <mkestner@novell.com>
30521
30522         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
30523         [Fixes #76897]
30524
30525 2005-12-02  Jackson Harper  <jackson@ximian.com>
30526
30527         * Form.cs: If the child form has no menu the default main menu is
30528         used as the active menu.
30529
30530 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
30531
30532         * ListBox.cs: Check if any items exist before trying to resolve 
30533           coordinates into items
30534
30535 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
30536
30537         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
30538           as the second color for the background hatch
30539
30540 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
30541
30542         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
30543         * RichTextBox.cs: FormatText position arguments are 1-based, now making
30544           sure that what we pass to FormatText is always 1-based. Fixes #76885
30545
30546 2005-11-29  Miguel de Icaza  <miguel@novell.com>
30547
30548         * NumericUpDown.cs (EndInit): When we are done initializing,
30549         reflect any updates on the UI.
30550
30551 2005-12-02  Jackson Harper  <jackson@ximian.com>
30552
30553         * ImplicitHScrollBar.cs:
30554         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
30555         their container controls.
30556         * TreeView.cs: Use the new implicit scrollbars.
30557
30558 2005-12-02  Jackson Harper  <jackson@ximian.com>
30559
30560         * TreeView.cs: Make top_node internal so the TreeNodeCollections
30561         can play with it.
30562         * TreeNodeCollection.cs: If we remove the topnode we need to
30563         update topnode to the next node in line.
30564         - When clearing nodes go through the same process as removing
30565         them, so they get depareneted and checked if they are top node.
30566
30567 2005-12-01  Jackson Harper  <jackson@ximian.com>
30568
30569         * TreeView.cs: When imagelists are used the image area is
30570         selectable as well as the text.
30571         - If there are no selected nodes select the first one.
30572         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
30573         so don't do it more then we need to.
30574
30575 2005-12-01  Jackson Harper  <jackson@ximian.com>
30576
30577         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
30578         that arrows can be scaled.
30579
30580 2005-12-01  Jackson Harper  <jackson@ximian.com>
30581
30582         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
30583         fail. Patch by Dieter Bremes
30584
30585 2005-11-30  Jackson Harper  <jackson@ximian.com>
30586
30587         * Form.cs: Property is 2.0 only
30588         * PrintDialog.cs: Signature fix.
30589
30590 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
30591
30592         * TextControl.cs: 
30593           - No longer artificially moves text 2 pixels down (now that we have
30594             borders this is no longer needed)
30595           - Added calcs for left, hanging and right indent
30596
30597 2005-11-23  Mike Kestner  <mkestner@novell.com>
30598
30599         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
30600
30601 2005-11-30  Jackson Harper  <jackson@ximian.com>
30602
30603         * MdiChildContext.cs: Set the cloned menus forms, as these don't
30604         get cloned as part of CloneMenu ().
30605         * Menu.cs: Make sure the parent of the items get set correctly
30606         when they are added.  And the owners are notified of the changes.
30607         * Form.cs: Create an ActiveMenu property, so that when MDI is used
30608         we can change the menu being displayed/handled by the form without
30609         changing the menu assosciated with the form.
30610         - Don't let Mdi children draw/handle menus.
30611         
30612 2005-11-30  Jackson Harper  <jackson@ximian.com>
30613
30614         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
30615         a MenuChanged event. Just to make the API a little more
30616         consistent.
30617         * MainMenu.cs:
30618         * MenuItem.cs: Use the new OnMenuChanged
30619         * MdiChildContext.cs: Handle menu merging.
30620         * Form.cs: Implement MergedMenu.
30621         
30622 2005-11-30  Jackson Harper  <jackson@ximian.com>
30623
30624         * Menu.cs: We were misusing Add. Add goes behind the specified
30625         index according to the docs, and does not replace the specified
30626         index. So I added an Insert method.
30627
30628 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
30629
30630         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
30631           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
30632           is for Jackson
30633         * RichTextBox.cs: Added calls to base for DnD events
30634
30635 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
30636
30637         * TextControl.cs:
30638           - Fixed drag-selection related crash; style fixes
30639           - Implemented undo class
30640             o Implemented method to capture document state for specified
30641               range in document tree
30642             o Implemented method to restore captured document state
30643             o Implemented cursor tracking
30644             o Implemented basic undo stack
30645           - Added undo cursor tracking to methods altering cursor location
30646           - Added undo tracking to selection deletion (still missing
30647             other text-altering hookups)
30648         * RichTextBox.cs:
30649           - Added SelectionLength property
30650           - Implemented CanPaste()
30651           - Implemented Paste()
30652           - Added missing protected methods
30653           - Fixed RTF->Document conversion; now uses font index 0 and color 
30654             index 0 as the default font for the parsed text
30655           - Fixed RTF<->Document font size translation
30656           - Fixed RTF generation, now properly handles cross-tag boundaries
30657             for single line selection
30658           - No longer always appends blank line to generated RTF
30659           - Removed TODOs
30660           - Added missing attributes
30661           - Hooked up undo-related methods
30662         * TextBoxBase.cs:
30663           - Implemented Copy()
30664           - Implemented Paste()
30665           - Implemented Cut()
30666           - Fixed caret mis-behaviour on backspace across line-boundaries
30667
30668 2005-11-29  Jackson Harper  <jackson@ximian.com>
30669
30670         * MdiClient.cs: Add a method for activating mdi children. Very
30671         basic right now. I imagine someday it might need more girth.
30672         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
30673         children windows names are added to the menu item.
30674         * ThemeWin32Classic.cs: Draw the arrow if the item is an
30675         mdilist. This happens regardless of whether or not there are any
30676         mdi windows to see in the list, and according to my tests happens
30677         before the items are even added. Also happens if there isn't even
30678         an mdi client to get windows from.
30679
30680 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
30681
30682         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
30683         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
30684
30685 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
30686
30687         * DataGridTableStyle.cs:
30688           - Create always the styles for the missing columns even if they are
30689             provided by the user (not default table style)
30690         * DataGrid.cs:
30691           - Fixes bug 76770
30692           - Fixes SetDataBinding (always re-attach source)
30693           - Fixes SetNewDataSource (only clear styles if they are not for 
30694             this source)
30695          -  Expands OnTableStylesCollectionChanged to handle style refresh 
30696             and remove properly
30697
30698 2005-11-29  Jackson Harper  <jackson@ximian.com>
30699
30700         * FileDialog.cs: Implement missing bits, remove some dead
30701         code.
30702         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
30703         creation of the panel so that the options set on the dialog are
30704         seen when the panel is created.
30705         * TreeView.cs: raise a click when items are clicked.
30706         
30707 2005-11-29  Jackson Harper  <jackson@ximian.com>
30708
30709         * MdiClient.cs: Pass some signature methods through to base.
30710
30711 2005-11-28  Jackson Harper  <jackson@ximian.com>
30712
30713         * ListView.cs: Raise the click event when items are clicked.
30714
30715 2005-11-28  Jackson Harper  <jackson@ximian.com>
30716
30717         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
30718         a nullref.
30719
30720 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
30721
30722         * ThemeNice.cs: - Removed 1 pixel bitmaps
30723           - Use SmoothingMode.AntiAlias where it makes sense
30724             (ScrollButton arrow for example)
30725           - Enhanced Button focus drawing
30726           - Fixed ComboBox drawing (no artefacts anymore, focus
30727             rectangle is back again, reduced size of ComboButton, etc.)
30728           - Fixed RadioButton focus drawing for Appearence.Button
30729           - Slight ScrollButton redesign
30730           - Some LinearGradientBrush size fixes
30731           - GroupBoxes have now rounded edges
30732           - Fixed StatusBar drawing
30733
30734 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
30735
30736         * ThemeNice.cs: - Remove dead code
30737           - use correct background colors for menus, etc.
30738           - Fake pixel drawing with 1 pixel bitmaps
30739
30740 2005-11-24  Jackson Harper  <jackson@ximian.com>
30741
30742         * MdiClient.cs: Size the scrollbars when resizing the window.
30743         - Resize the maximized windows when the client is resized
30744         * Form.cs: Make the child context available
30745         
30746 2005-11-23  Jackson Harper  <jackson@ximian.com>
30747
30748         * MdiChildContext.cs: Don't size windows if they are maximized.
30749
30750 2005-11-23  Mike Kestner  <mkestner@novell.com>
30751
30752         * ContextMenu.cs: use MenuTracker.
30753         * Control.cs: remove menu handle usage.
30754         * Form.cs: remove menu handle usage.
30755         * Hwnd.cs: remove menu handle usage.
30756         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
30757         motion and clicks to the new Tracker handlers.
30758         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
30759         and handle usage.
30760         * MenuAPI.cs: refactored to combine popup and menubar event handling.
30761         Killed the MENU and MENUITEM data types and associated collections
30762         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
30763         MenuTracker class that exposes the leftovers from the old MenuAPI
30764         static methods. Restructured Capture handling so that only one grab is
30765         done for the entire menu hierarchy instead of handing off grabs to
30766         submenus. Tracker now has an invisible control to Capture when active.
30767         * MenuItem.cs: add sizing accessors, kill Create
30768         and handle usage.
30769         * Theme.cs: remove menu handle and MENU(ITEM) usage.
30770         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
30771         MENU(ITEM). remove menu handle usage, use Menu directly.
30772         * XplatUIDriver.cs: remove menu handle usage.
30773         * XplatUIOSX.cs: remove menu handle usage.
30774         * XplatUIWin32.cs: remove menu handle usage.
30775         * XplatUIX11.cs: remove menu handle usage.
30776
30777 2005-11-22  Jackson Harper  <jackson@ximian.com>
30778
30779         * Hwnd.cs: Don't compute the menu size for
30780         DefaultClientRectangle.
30781         - Reenable menu sizes being computed for GetClienRectangle.
30782         * Form.cs: Remove comment of trechery
30783         
30784 2005-11-22  Jackson Harper  <jackson@ximian.com>
30785
30786         * Hwnd.cs: The adjustments for the menu bar are made when it is
30787         attached to the form.
30788
30789 2005-11-19  Jackson Harper  <jackson@ximian.com>
30790
30791         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
30792         (just like on windows).
30793
30794 2005-11-19  Jackson Harper  <jackson@ximian.com>
30795
30796         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
30797         use real buttons anymore because they are in non client area. The
30798         one TODO here is that I need to somehow invalidate a section of
30799         the non client area.
30800
30801 2005-11-18  Jackson Harper  <jackson@ximian.com>
30802
30803         * Control.cs: Put the enum check back in now that MDI doesnt have
30804         to use this to set border styles.
30805         * Form.cs: Only set mdi child windows borders if the handle has
30806         been created.
30807         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
30808         this directly on to the driver.
30809         - Get the move start position before adjusting for the titlebar
30810         height, this fixes the windows "skipping" when they are first
30811         moved.
30812
30813 2005-11-18  Jackson Harper  <jackson@ximian.com>
30814
30815         * XplatUIX11.cs: Just compute the mdi borders separately as they
30816         don't totally match up with normal form borders.
30817
30818 2005-11-18  Jackson Harper  <jackson@ximian.com>
30819
30820         * Control.cs: Set WS_ styles for borders, so that the driver does
30821         not have to retrieve the control instance to figure out what kind
30822         of borders it should have.
30823         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
30824         driver can know its an mdi child easily.
30825         * XplatUIX11.cs: Get the border styles and whether the window is
30826         MDI from the Styles and ExStyles params instead of having to get a
30827         control. This prevents a chicken and egg problem.       
30828
30829 2005-11-18  Jackson Harper  <jackson@ximian.com>
30830
30831         * MdiClient.cs: Fix typo so scrollbars show up correctly.
30832
30833 2005-11-18  Jackson Harper  <jackson@ximian.com>
30834
30835         * MdiClient.cs: Calculate when to add and remove scrollbars
30836         correctly.
30837         * MdiChildContext.cs: Adjust the y position to take the titlebar
30838         into account.
30839         - No height for FormBorderStyle.None
30840
30841 2005-11-18  Jackson Harper  <jackson@ximian.com>
30842
30843         * Control.cs: Allow non enum values to be used for
30844         InternalBorderStyle.  MDI does this to set a special border style.
30845         - New utility methods for converting points to/from client coords
30846         - Add the newly created control to the Controls collection before
30847         updating its style. This way UpdateStyle can walk the control
30848         heirarchy to find the control if needed.
30849         so I don't need to create a new Point object all the time.
30850         * Form.cs: Let MDI windows handle their border styles.
30851         - Set styles on MDI windows so the correct title style is derived.
30852         * MdiChildContext.cs: Move all the painting and window handling
30853         into the non client area.
30854         - Use correct sizing and put correct buttons on frames based on
30855         the FormBorderStyle.
30856         - Notify the mdi client about scrolling
30857         - Need to handle the buttons ourselves now, because they are all
30858         in non client areas and we can't add controls there.
30859         * MdiClient.cs: Halfway to scrolling, this implementation is
30860         somewhat broken though, we need to check to make sure other
30861         windows aren't causing scrolling before removing the bars. Also
30862         the bars need to be drawn on top, maybe I can switch implicit
30863         controls to be on top.
30864         * Hwnd.cs: caption_height and tool_caption_height are now
30865         properties of an hwnd, this way they can be set by the driver
30866         based on the type of window they are.  In X11 the window manager
30867         handles the decorations so caption_height is zero unless its an
30868         MDI window.
30869         - Add 3 pixel borders for MDI windows (0xFFFF).
30870         - Get rid of some code duplication, have DefaultClientRectanle
30871         just call GetClientRectangle.
30872         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
30873         Hwnd now.
30874         - Set border styles differently for mdi windows.
30875         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
30876         Hwnd now.
30877         
30878 2005-11-15  Mike Kestner  <mkestner@novell.com>
30879
30880         * Menu.cs: when adding an item to the collection, if item is already 
30881         parented, remove it from the parent.
30882
30883 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
30884
30885         * X11DesktopColors.cs: Added KDE support
30886
30887 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
30888
30889         * XplatUIWin32.cs: 
30890           - Clipboard methods now can translate Rtf format
30891           - No longer removes clipboard contents whenever a new format is added
30892             to allow placing multiple formats on the clipboard
30893         * Clipboard.cs: Clipboard now supports getting a IDataObject and
30894           will place all formats contained in it onto the clipboard. Also
30895           now cleans the clipboard before placing a new object onto it
30896         * RichTextBox.cs:
30897           - Implemented set_Rtf
30898           - Implemented set_SelectedRtf
30899           - Created InsertRTFFromStream() method to allow single code base
30900             for all properties and methods that insert RTF into document
30901           - Removed debug output
30902         * TextControl.cs:
30903           - Fixed Delete(int) to fix up line numbers
30904           - Fixed ReplaceSelection to combine start and end line
30905           - Fixed serious DeleteChars bug that would leave the document tree
30906             broken
30907           - Improved DumpTree with several logic checks to detect broken
30908             document trees
30909           - Removed debug lines
30910           - Fixed Caret.WordForward/WordBack moving code, now always also 
30911             updates caret.tag (fixes crash when word-selecting across tag
30912             boundaries via keyboard)
30913           - Added Insert() method for inserting multiline text into documents
30914           - Fixed DeleteChars() calculation errors that would cause a broken
30915             tag chain with multiple tag lines
30916           - DeleteChars() no longer crashes on multi-tag lines if not all tags
30917           - Split() no longer moves caret if split is at caret location
30918           - ReplaceSelection() now updates the cursor and re-displays it
30919           - ReplaceSelection() now uses new Insert() method to avoid code
30920             duplication
30921           - FormatText() can now handle formatting partial lines
30922         * TextBoxBase.cs:
30923           - Append now uses new TextControl.Insert() method (this avoids 
30924             duplicate code)
30925           - Implemented Ctrl-X (Cut) (
30926           - Implemented Ctrl-C (Copy)
30927           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
30928             regeneration when pasting text; roundtripping Copy&Paste within
30929             edit control still fails due to some calculation bugs in GenerateRTF)
30930           - The Delete key will now remove the current selection if it is visible
30931         * TextBox.cs: Removed debug lines
30932         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
30933           driver to be initialized and can't therefore be done via a static ctor)
30934
30935 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
30936
30937         * TextControl.cs: Added backend code for finding char arrays and strings
30938         * TextBoxBase.cs:
30939           - Added mouse wheel scroll support
30940           - Added support for VScroll and HScroll events
30941         * RichTextBox.cs:
30942           - Implemented all seven Find() variants
30943           - Implemented GetCharFromPosition()
30944           - Implemented GetCharIndexFromPosition()
30945           - Implemented GetLineFromIndex()
30946           - Implemented GetPositionFromCharIndex();
30947           - Implemented SaveFile for PlainText and UnicodeText
30948           - Fixed set_Font, now setting a new font applies that font to
30949             the whole document
30950           - Implemented generic Document to RTF converter
30951           - Implemented SaveFile for RichText format (still missing unicode
30952             conversion for non-ansi chars)
30953           - Implemented get_Rtf
30954           - Implemented get_SelectedRtf
30955
30956 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
30957
30958         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
30959           to allow any captures to be released before triggering OnClick. This
30960           way a click handler may capture the mouse without interference.
30961         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
30962           This way we send them even though X may not allow a grab (if the window
30963           isn't visible, for example)
30964
30965 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
30966
30967         * DataGridViewRowEventArgs.cs: DataGridView implementation
30968         * DataGridViewElement.cs: DataGridView implementation
30969         * DataGridViewComboBoxCell.cs: DataGridView implementation
30970         * DataGridViewDataErrorContexts.cs: DataGridView implementation
30971         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
30972         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
30973         * ImageLayout.cs: DataGridView implementation
30974         * DataGridViewComboBoxColumn.cs: DataGridView implementation
30975         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
30976         * DataGridViewSelectionMode.cs: DataGridView implementation
30977         * IDataGridViewEditingControl.cs: DataGridView implementation
30978         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
30979         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
30980         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
30981         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
30982         * DataGridViewColumnSortMode.cs: DataGridView implementation
30983         * DataGridView.cs: DataGridView implementation
30984         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
30985         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
30986         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
30987         * Padding.cs: DataGridView implementation
30988         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
30989         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
30990         * DataGridViewRowEventHandler.cs: DataGridView implementation
30991         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
30992         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
30993         * DataGridViewButtonCell.cs: DataGridView implementation
30994         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
30995         * DataGridViewEditMode.cs: DataGridView implementation
30996         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
30997         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
30998         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
30999         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
31000         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
31001         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
31002         * DataGridViewCellEventHandler.cs: DataGridView implementation
31003         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
31004         * DataGridViewCellStyleConverter.cs: DataGridView implementation
31005         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
31006         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
31007         * DataGridViewColumnEventArgs.cs: DataGridView implementation
31008         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
31009         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
31010         * QuestionEventArgs.cs: DataGridView implementation
31011         * IDataGridViewEditingCell.cs: DataGridView implementation
31012         * DataGridViewTriState.cs: DataGridView implementation
31013         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
31014         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
31015         * DataGridViewColumnCollection.cs: DataGridView implementation
31016         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
31017         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
31018         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
31019         * DataGridViewColumn.cs: DataGridView implementation
31020         * DataGridViewCellBorderStyle.cs: DataGridView implementation
31021         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
31022         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
31023         * DataGridViewRow.cs: DataGridView implementation
31024         * DataGridViewImageCellLayout.cs: DataGridView implementation
31025         * DataGridViewImageCell.cs: DataGridView implementation
31026         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
31027         * DataGridViewCheckBoxCell.cs: DataGridView implementation
31028         * DataGridViewHeaderCell.cs: DataGridView implementation
31029         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
31030         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
31031         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
31032         * DataGridViewTextBoxColumn.cs: DataGridView implementation
31033         * QuestionEventHandler.cs: DataGridView implementation
31034         * DataGridViewCellStyleScopes.cs: DataGridView implementation
31035         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
31036         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
31037         * DataGridViewCell.cs: DataGridView implementation
31038         * DataGridViewCellEventArgs.cs: DataGridView implementation
31039         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
31040         * DataGridViewCellStyle.cs: DataGridView implementation
31041         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
31042         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
31043         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
31044         * TextFormatFlags.cs: DataGridView implementation
31045         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
31046         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
31047         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
31048         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
31049         * DataGridViewButtonColumn.cs: DataGridView implementation
31050         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
31051         * HandledMouseEventArgs.cs: DataGridView implementation
31052         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
31053         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
31054         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
31055         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
31056         * DataGridViewRowCollection.cs: DataGridView implementation
31057         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
31058         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
31059         * DataGridViewHitTestType.cs: DataGridView implementation
31060         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
31061         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
31062         * DataGridViewColumnEventHandler.cs: DataGridView implementation
31063         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
31064         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
31065         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
31066         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
31067         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
31068         * DataGridViewContentAlignment.cs: DataGridView implementation
31069         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
31070         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
31071         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
31072         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
31073         * DataGridViewPaintParts.cs: DataGridView implementation
31074         * DataGridViewCellCollection.cs: DataGridView implementation
31075         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
31076         * DataGridViewImageColumn.cs: DataGridView implementation
31077         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
31078         * DataGridViewElementStates.cs: DataGridView implementation
31079         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
31080         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
31081         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
31082         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
31083         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
31084         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
31085         * DataGridViewRowHeaderCell.cs: DataGridView implementation
31086         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
31087         * DataGridViewTextBoxCell.cs: DataGridView implementation
31088         * DataGridViewBand.cs: DataGridView implementation
31089         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
31090         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
31091         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
31092         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
31093         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
31094         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
31095         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
31096         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
31097         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
31098         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
31099         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
31100
31101 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
31102
31103         * ThemeWin32Classic.cs: 
31104           - Draw the outside focus rectangle around buttons
31105           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
31106             doesn't use end caps for every dash of a line anymore. This
31107             workaround ignores the forecolor.
31108
31109 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
31110
31111         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
31112           endian safe.
31113
31114 2005-11-07  Jackson Harper  <jackson@ximian.com>
31115
31116         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
31117
31118 2005-11-07  Jackson Harper  <jackson@ximian.com>
31119
31120         * ScrollableControl.cs: Calculate the maximum and change vars
31121         (more) correctly so that scrollbars appear as a sensible size.
31122
31123 2005-11-04  Jackson Harper  <jackson@ximian.com>
31124
31125         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
31126         collection.
31127         * TreeView.cs: When the tree is sorted null out the top_node so
31128         that it is recalculated.
31129         - Use dotted lines instead of dashed lines to match MS better.
31130
31131 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
31132
31133         * ListView.cs: 
31134           - Implements key search for items. Useful when browsing files with FileDialog
31135           - When changing view mode or when clear the items reset scrollbar positions
31136
31137 2005-11-04  Jackson Harper  <jackson@ximian.com>
31138
31139         * CurrencyManager.cs: Implement the MetaDataChanged event, the
31140         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
31141         as to what the method may do as there is no real way of creating a
31142         derived CurrencyManager and calling the method. 
31143
31144 2005-11-03  Jackson Harper  <jackson@ximian.com>
31145
31146         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
31147         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
31148         method which seems to just be used internally to refresh the tabs.
31149
31150 2005-11-03  Jackson Harper  <jackson@ximian.com>
31151
31152         * TabControl.cs: Implement the remove method. Fix some broken
31153         comments.
31154
31155 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31156
31157         * DateTimePicker.cs:
31158           - Added missing DateTimePickerAccessibleObject class
31159           - Added missing events
31160           - Added OnFontChanged method
31161         * Form.cs: Added missing attributes
31162         * TreeView.cs: Added missing attributes
31163
31164 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
31165
31166         * GridItemCollection.cs: Fix signatures
31167
31168 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31169
31170         * XplatUI.cs: Updated build rev/date
31171         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
31172           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
31173         * Application.cs: Trigger context-specific ExitThread events
31174
31175 2005-11-03  Jackson Harper  <jackson@ximian.com>
31176
31177         * Menu.cs:
31178         * MainMenu.cs:
31179         * GridTableStylesCollection.cs:
31180         * Timer.cs:
31181         * TabPage.cs:
31182         * HelpProvider.cs:
31183         * StatusBar.cs:
31184         * MonthCalendar.cs: Signature fixes
31185
31186 2005-11-03  Jackson Harper  <jackson@ximian.com>
31187
31188         * TreeNodeCollection.cs: Remove should not be virtual.
31189         * TreeView.cs: Implement the last of the missing methods.
31190
31191 2005-11-03  Jackson Harper  <jackson@ximian.com>
31192
31193         * TreeNodeConverter.cs: Implement to get off my class-status back.
31194
31195 2005-11-03  Jackson Harper  <jackson@ximian.com>
31196
31197         * TreeView.cs: Hookup the bits for drag and drop.
31198         * TreeNode.cs: Don't cache the tree_view or index anymore, now
31199         that nodes can be moved from tree to tree easily this just causes
31200         all sorts of problems.
31201         * TreeNodeCollection: Don't need to give treenodes an index and
31202         treeview anymore when they are added, these are computed on the
31203         fly. Also make sure to remove a node before its added.
31204
31205 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31206
31207         * TextControl.cs:
31208           - Added CaretSelection enum
31209           - Added comparison methods to Marker struct, makes selection code
31210             more readable
31211           - Added SelectionStart and SelectionEnd as 'moveable' location for
31212             the CaretDirection enum and handler
31213           - Added selection_prev variable to track optimized invalidation for
31214             word and line selection
31215           - Added SelectionVisible property (returns true if there is a valid 
31216             selection)
31217           - Switched CaretHasFocus to only display the caret if there is no
31218             visible selection
31219           - Avoiding StringBuilder.ToString to retrieve a single char, instead
31220             using the direct character index; should be much faster
31221           - Added various conditional debug statements
31222           - Fixed invalidation calculation for selection ranges
31223           - Added ExpandSelection() method to support word and line selection
31224           - Switched SetSelectionToCaret to use new Marker compare overloads
31225           - Added central IsWordSeparator() method to determine word 
31226             separators/whitespace and FindWordSeparator() to streamline common
31227             usage of IsWordSeparator()
31228         * TextBoxBase.cs:
31229           - Removed unneeded grabbed variable, it was just mirroring
31230             Control.Capture
31231           - No longer firing OnTextChanged event when Text setter is called,
31232             since the base will fire the event for us
31233           - Added handling of Ctrl-Up/Down selection
31234           - Added handling of Shift-Cursorkey selection
31235           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
31236             words
31237           - Added handling of Shift and Ctrl-Shift-Home/End selection
31238           - Removed some debug output
31239           - Added handling for single/double/tripple-click to place caret/
31240             select word/select line respectively (Fixes bug #76031)
31241           - Added support for drag expansion of word/line selection
31242         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
31243           current selection
31244
31245 2005-11-02  Jackson Harper  <jackson@ximian.com>
31246
31247         * X11Dnd.cs: If the drag is going to and from a MWF window just
31248         copy the data instead of sending it out through the X Selection
31249         mechanism.
31250
31251 2005-11-02  Jackson Harper  <jackson@ximian.com>
31252
31253         * X11Dnd.cs:
31254         * XplatUIX11.cs: When in a drag we don't want motion notify
31255         messages to get passed on to the other controls. This prevents
31256         mouse move messages from showing up in the drag source.
31257
31258 2005-11-02  Jackson Harper  <jackson@ximian.com>
31259
31260         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
31261         the correct button is release to end a drag.
31262         * XplatUIX11.cs: Make the button state internal so the drag system
31263         can access it.  Dragging needs to know about all button releases,
31264         not just left button.
31265
31266 2005-11-02  Miguel de Icaza  <miguel@novell.com>
31267
31268         * Form.cs (Icon): If the icon is null, reset the icon to the
31269         default value. 
31270
31271         * Cursor.cs: When writing the AND-mask bitmap do not include the
31272         number of colors, but hardcode those to two (black and white),
31273         fixes the loading of color cursors (Paint Dot Net).
31274
31275         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
31276         turn off autoscaling.
31277
31278         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
31279
31280 2005-11-02  Jackson Harper  <jackson@ximian.com>
31281
31282         * X11Dnd.cs: Make sure to send a status message if the pointer
31283         enters a control that can not accept a drop, otherwise the cursor
31284         isn't updated correctly. Also tried to compress the lines of code
31285         a bit.
31286
31287 2005-11-02  Jackson Harper  <jackson@ximian.com>
31288
31289         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
31290         set actions correctly.  This isn't perfect as XDND and win32 have
31291         some differences on how you allow actions. I'll clear this up by
31292         adding a path for drag from MWF to MWF windows.
31293         * XplatUIX11.cs: Hook into the dnd system.
31294
31295 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
31296
31297         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
31298         previously shown but they are no longer need it. Very obvious when 
31299         browsing files with FileDialog.
31300
31301 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
31302
31303         * Control.cs: We always need to call OnPaintBackground. We pretty much
31304           ignore AllPaintingInWmPaint and always do the painting there, whether 
31305           it's set or not, since we always ignore the WM_ERASEBKGND message 
31306           (which we don't generate on X11). This fixes #76616.
31307         * Panel.cs: Removed unneeded background painting. This happens properly
31308           in Control.cs already
31309
31310 2005-10-31  Mike Kestner  <mkestner@novell.com>
31311
31312         * Menu.cs: Add items to collection before setting their index.
31313         * MenuItem.cs : add range checking with ArgumentException like MS.
31314         [Fixes #76510]
31315
31316 2005-10-31  Jackson Harper  <jackson@ximian.com>
31317
31318         * ListBox.cs: Invalidate if the area is visible at all not just
31319         contained in the visible rect. Fixes unselection of semi visible
31320         items.
31321
31322 2005-10-31  Jackson Harper  <jackson@ximian.com>
31323
31324         * Control.cs: Consistently name the dnd methods. Make them
31325         internal so we can override them to match some MS behavoir
31326         internally.
31327         * Win32DnD.cs: Use the new consistent names.
31328
31329 2005-10-31  Jackson Harper  <jackson@ximian.com>
31330
31331         * TreeView.cs: Don't draw the selected node when we lose focus.
31332
31333 2005-10-31  Jackson Harper  <jackson@ximian.com>
31334
31335         * X11Dnd.cs: We still need to reset the state even though a full
31336         reset isn't being done, otherwise status's still get sent all over
31337         the place.
31338
31339 2005-10-31  Jackson Harper  <jackson@ximian.com>
31340
31341         * Control.cs: Make the dnd_aware flag internal so the dnd
31342         subsystem can check it. Catch exceptions thrown in dnd handlers to
31343         match MS behavoir.
31344         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
31345         * X11Dnd.cs: Handle null data in the converters. Set the XDND
31346         version when sending a XdndEnter. Use the control/hwnd dnd_aware
31347         flags to reduce the number of dnd enters/status's sent.
31348
31349 2005-10-31  Jackson Harper  <jackson@ximian.com>
31350
31351         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
31352
31353 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
31354
31355         * PictureBox.cs: Fixes 76512
31356
31357 2005-10-28  Jackson Harper  <jackson@ximian.com>
31358
31359         * X11Dnd.cs: Early implementation to support winforms being a drag
31360         source for data on X11. Also restructured the converters so they
31361         can go both ways now.
31362         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
31363         
31364 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
31365
31366         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
31367           clipboard requests
31368
31369 2005-10-27  Jackson Harper  <jackson@ximian.com>
31370
31371         * TreeNode.cs: Implement serialization so my DnD examples will work.
31372
31373 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
31374
31375         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
31376           TreeView.cs: Don't dispose objects that are not owned.
31377           
31378 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
31379
31380         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
31381           should retrieve the current cursor and report that, but XplatUI
31382           doesn't (yet) have an interface for that (and I'm not sure I even
31383           can, on X11)
31384         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
31385           until any message loop processing is done (and the WM_SETCURSOR
31386           replaces the cursor to the proper one)
31387         * XplatUIX11.cs: 
31388           - Fixed override behaviour, we can't set the cursor globally on X11, 
31389             just for our windows.
31390           - Invalidating the System.Drawing X11 display handle when we are
31391             shutting down
31392         * Control.cs: Fix to make csc happy
31393
31394 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
31395
31396         * TextBoxBase.cs: 
31397           - get_Text: Add last line (without trailing newline) to returned
31398             value (Fixes 76212)
31399           - get_TextLength: Count last line in returned length
31400           - ToString: Call Text property instead of duplicating code
31401
31402 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
31403
31404         * ImageList.cs: Dispose ImageAttributes objects.
31405
31406 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
31407
31408         * ImageList.cs: Use attribute constructors with less arguments where
31409           possible.
31410
31411 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
31412
31413         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
31414           Use typeof instead of strings when assembly is referenced. Added
31415           some more comments.
31416
31417 2005-10-21  Jackson Harper  <jackson@ximian.com>
31418
31419         * ListView.cs: Raise a double click event. Also tried to somewhat
31420         fix when the selectedindexchanged event is raised. Its still
31421         broken though.
31422
31423 2005-10-21  Jackson Harper  <jackson@ximian.com>
31424
31425         * TreeView.cs: New method to invalidate the plus minus area of a
31426         node without invalidating the whole node (maybe this can be used
31427         in some more places).
31428         * TreeNodeCollection.cs: When adding to an empty node we need to
31429         invalidate its plus minus area so the little block shows up.
31430         
31431 2005-10-21  Jackson Harper  <jackson@ximian.com>
31432
31433         * TreeView.cs: Make sure that when we invalidate a node the bounds
31434         are big enough to cover the selected box and the focus
31435         rectangle. Use a different colour for the lines connecting nodes
31436         so they show up with all themes.
31437
31438 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
31439
31440         * NativeWindow.cs: Don't call anything that could call into the driver,
31441           we might be on a different thread.
31442
31443 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
31444
31445         * Control.cs(Dispose): Since Dispose might run on a different thread,
31446           make sure that we call methods that could call into the driver via
31447           invoke, to avoid thread issues
31448
31449 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
31450
31451         * XplatUI.cs: Removed finalizer
31452         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
31453           not allowing to be called on the finalizer thread.
31454
31455 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
31456
31457         * ImageList.cs:
31458           - Reverted r51889 and r51891.
31459           - Added ImageListItem class that stores unmodified image items and image
31460             properties required to create list images until handle is created.
31461           - Added AddItem and moved image creation logic to AddItemInternal.
31462           - Added CreateHandle method that creates images based on unmodified items.
31463           - Added DestroyHandle that changes state to store unmodified items.
31464           - Add and AddStrip methods no more create handle.
31465           - ReduceColorDepth has no return value.
31466           - Dispose destroys handle.
31467           - Modified other methods to reflect the above changes.
31468           - Implemented key support.
31469           - Added profile 2.0 members and attributes.
31470           - Added private Reset and ShouldSerialize methods that provide the same
31471             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
31472             them as they are private.
31473           - Added some more comments about implementation details.
31474
31475 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31476
31477         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
31478
31479 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31480
31481         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
31482
31483 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31484
31485         * DataGridDrawingLogic.cs: Fixes column hit calcultation
31486         * DataGridColumnStyle.cs: Remove debug message
31487
31488 2005-10-20  Jackson Harper  <jackson@ximian.com>
31489
31490         * TreeView.cs: We can always get input keys regardless of whether
31491         or not editing is enabled. They are used for navigation.
31492
31493 2005-10-20  Jackson Harper  <jackson@ximian.com>
31494
31495         * TreeNode.cs: Use the viewport rect for determining if a node
31496         needs to be moved for visibility. Don't use Begin/End edit. This
31497         calls a full refresh when its done.
31498         * TreeView.cs: New SetBottom works correctly.  Make the viewport
31499         rect property internal so the treenodes can see it. When clicking
31500         on a node we need to ensure that its visible because it might just
31501         be partly visible when clicked.
31502
31503 2005-10-20  Jackson Harper  <jackson@ximian.com>
31504
31505         * TreeNodeCollection.cs: Remove debug code.
31506
31507 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
31508
31509         * Datagrid.cs: Implements column sorting in Datagrid
31510         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
31511
31512 2005-10-20  Jackson Harper  <jackson@ximian.com>
31513
31514         * TreeNodeCollection.cs: Remove items properly. Update the correct
31515         area after removing them.
31516
31517 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
31518
31519         * Datagrid.cs: Should not call base.OnPaintBackground
31520
31521 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
31522
31523         * XplatUIX11.cs (GetMessage):
31524           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
31525             window instead of client window
31526           - Now properly calculates NC_xBUTTONUP message coordinates
31527           - ScreenToMenu now properly calculates it's coordinates of whole 
31528             window, since menus are in the whole window, not in the client
31529             window
31530           - Added WholeToScreen coordinate translation method
31531
31532 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
31533
31534         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
31535           want to return a message, loop back to the beginning of the function
31536           and grab the next real message to process instead.
31537
31538 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
31539
31540         * Splitter.cs: Properly set limits if no filler control is used
31541
31542 2005-10-19  Jackson Harper  <jackson@ximian.com>
31543
31544         * ColorDialog.cs: Don't show the help button if it is not enabled
31545         instead of disabling it (this is what MS does). Don't create the
31546         panel until the dialog is run, otherwise the vars (such as
31547         ShowHelp) are not set yet.
31548
31549 2005-10-19  Jackson Harper  <jackson@ximian.com>
31550
31551         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
31552         are reduced when adding nodes.
31553         * TreeNode.cs:
31554         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
31555         tree.
31556         
31557 2005-10-19  Jackson Harper  <jackson@ximian.com>
31558
31559         * FolderBrowserDialog.cs: End editing our treeview so the window
31560         actually gets refreshed.
31561
31562 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
31563
31564         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
31565           Obsoleted handling of WM_ERASEBKGND, now always draws our background
31566           inside of WM_PAINT
31567
31568 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31569
31570         * MenuAPI.cs: Returns after Hidding window
31571         * XplatUIX11.cs: Added TODO found while debugging menu issues
31572
31573 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
31574
31575         * XplatUIX11.cs: Do not re-map the whole window when it's size
31576           becomes non-zero unless it's supposed to be actually visible
31577
31578 2005-10-18  Jackson Harper  <jackson@ximian.com>
31579
31580         * TreeView.cs: We don't need to keep a count anymore.
31581         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
31582         use the Grow method.
31583
31584 2005-10-18  Jackson Harper  <jackson@ximian.com>
31585
31586         * TreeNodeCollection.cs: Insert is not supported on arrays, so
31587         implement it manually here.
31588
31589 2005-10-18  Jackson Harper  <jackson@ximian.com>
31590
31591         * ImageList.cs: Dont kill the list when the colour depth is
31592         changed, just change the colour depth of all the images.
31593         - Same goes for setting the image size. Just resize them all
31594         instead of killing the list softly.
31595
31596 2005-10-18  Jackson Harper  <jackson@ximian.com>
31597
31598         * Control.cs: Don't invalidate empty rectangles.
31599
31600 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31601
31602         * ListViewItem.cs:
31603           - Adds checked item to the Checked/Item lists (where empty before)
31604           - Do not add items to the Selected lists if they are already present
31605         * ListView.cs:
31606           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
31607           - When deleting items make sure that we delete them for the Selected
31608           and Checked list also.
31609
31610 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31611
31612         * Label.cs: Dispose objects no longer used
31613         * ThemeWin32Classic.cs: Dispose objects no longer used
31614
31615 2005-10-18  Jackson Harper  <jackson@ximian.com>
31616
31617         * TabControl.cs: Don't refresh the whole control when the tabs are
31618         scrolled, we just need to refresh the tab area.
31619
31620 2005-10-17  Jackson Harper  <jackson@ximian.com>
31621
31622         * XplatUIX11.cs: Compress code a little bit. Only calculate the
31623         after handle when we need it.
31624
31625 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
31626
31627         * Control.cs: When the parent size changes, recalculate anchor 
31628           positions. Partial fix for #76462
31629
31630 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
31631
31632         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
31633           drawn. Fixes #76462
31634
31635 2005-10-17  Jackson Harper  <jackson@ximian.com>
31636
31637         * MonthCalendar.cs: Don't create the numeric up down until our
31638         handle is created. Otherwise our handle is created in the
31639         constructor and we don't know if we are a WS_CHILD or WS_POPUP
31640         yet.
31641
31642 2005-10-17  Jackson Harper  <jackson@ximian.com>
31643
31644         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
31645         correctly.
31646
31647 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
31648         * TreeNode.cs : small logical fix (was using local var instead of field)
31649         
31650 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
31651
31652         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
31653
31654 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
31655
31656         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
31657
31658 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
31659
31660         * Control.cs: 
31661           - Re-implemented anchoring code. My first version was really broken.
31662             This fixes bug #76033. Unlike the previous implementation we will
31663             no longer have round errors since all numbers are calculated from
31664             scratch every time. Removed various anchor-related obsolete vars.
31665           - InitLayout no longer causes layout event firing and layout to be 
31666             performed
31667
31668 2005-10-16  Jackson Harper  <jackson@ximian.com>
31669
31670         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
31671         which was broken).
31672
31673 2005-10-16  Jackson Harper  <jackson@ximian.com>
31674
31675         * TabControl.cs: Remove debug code.
31676
31677 2005-10-16  Jackson Harper  <jackson@ximian.com>
31678
31679         * XEventQueue.cs: Increase the default queue size (very simple
31680         apps needed to grow the queue).
31681         * Hwnd.cs: No finalizer so we don't need to suppress
31682         finalization. Compute the invalid area manually so a new rectangle
31683         does not newto be created.
31684         * ScrollableControl.cs: Don't set any params (otherwise visibility
31685         isn't set correctly).
31686         * MdiChildContext.cs: New constructor takes the mdi parent so it
31687         doesn't have to be computed and avoids a crash on windows. Draw
31688         the window icon properly, and allow the text to be seen.
31689         * Form.cs: Use new MdiChildContext constructor. Make sure the
31690         child context isn't null in wndproc.
31691         * TabControl.cs: Don't set focus, this is muddling keyboard
31692         behavoir. Expand the tab rows when a window size increase will
31693         allow extra tabs to be seen. Don't allow tabs smaller than the
31694         width of a window to be scrolled out of view.
31695         * TreeNode.cs:
31696         * TreeView.cs: Use measure string to calculate a nodes width, the
31697         width is cached and only updated when the text or the font is
31698         changed. Don't check for expand/collapse clicks on the first level
31699         nodes if root lines are disabled.
31700         
31701 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
31702
31703         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
31704
31705 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
31706
31707         * DataGridBoolColumn.cs: fixes warning
31708
31709 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
31710
31711         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
31712         to match more to match more precisely the MS Net behavior
31713
31714 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
31715
31716         * Hwnd.cs: Added field to track if window is mapped
31717         * XplatUIX11.cs: 
31718           - Unmap windows if they become 0-size, re-map when 
31719             they are >0 again; fixes #76035
31720           - Re-set our error handler after initializing X11Desktop
31721             to override any error handlers Gtk or whatever was called
31722             may have set.
31723
31724 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
31725
31726         * CheckedListBox.cs: Removed unused vars
31727         * ListView.cs: Fixed signatures
31728         * RichTextBox.cs: Removed unused vars
31729         * TextBoxBase.cs: Removed unused vars
31730         * XplatUIWin32.cs: Removed unused vars
31731         * XplatUIX11.cs: Removed unused vars
31732         * XplatUI.cs: Updated version and date to latest published
31733
31734 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
31735
31736         * Cursor.cs: Added private .ctor to work around a bug in
31737           resourceset (Thanks to Geoff Norton for the help on this)
31738         * SplitterEventArgs.cs: Made fields accessible so we don't
31739           waste boatloads of objects and can reuse the same one
31740           in Splitter
31741         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
31742           any captions and borders when generating screen coordinates
31743         * Splitter.cs: Reimplemented control, now fully complete, uses
31744           rubberband drawing, supports and obeys all properties, has
31745           proper cursors
31746
31747 2005-10-13  Miguel de Icaza  <miguel@novell.com>
31748
31749         * Form.cs (Form): Setup default values for autoscale and
31750         autoscale_base_size;  Make these instance variables, not static
31751         variables. 
31752
31753         (OnLoad): on the first load, adjust the size of the form.
31754
31755 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
31756
31757         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
31758           width argument to DrawReversibleRectangle()
31759         * XplatUIWin32.cs, XplatUIX11.cs: 
31760           - Implemented width for DrawReversibleRectangle()
31761           - Added logic to DrawReversibleRectangle that recognizes a zero
31762             width or height and only draws a line in that situation
31763         
31764 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
31765
31766         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
31767         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
31768         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
31769           method (it uses our FosterParent window to get a graphics context)
31770
31771 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
31772
31773         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
31774           and SetWindowBackground methods
31775         * Control.cs:
31776           - Setting proper ControlStyles
31777           - We no longer call XplatUI.SetWindowBackground and XplatUI.
31778             EraseWindowBackground, instead we draw the window background
31779             ourselves in PaintControlBackground. This behaviour is
31780             required to match MS, where, when OnPaintBackground is not
31781             called, the background is not drawn.
31782           - Removed unneeded Refresh() in set_Text
31783         * Hwnd.cs: Dropped the ErasePending support. No longer needed
31784         * XplatUIX11.cs:
31785           - Created DeriveStyles method to translate from CreateParams to
31786             FormBorderStyle and TitleStyle, also handles BorderStyle (which
31787             matches FormBorderStyle enum values)
31788           - Consolidated SetHwndStyles and CalculateWindowRect border/title
31789             style calculations into single DeriveStyles method
31790           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
31791             from redrawing the whole window on any resize or expose.
31792           - Fixed CreateWindow usage of SetWindowValuemask. Before not
31793             all styles were applied to our whole/client window appropriately
31794           - Removed EraseWindowBackground() and SetWindowBackground() methods
31795           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
31796             no longer clear/redraw the background through X
31797           - Removed handling of erase_pending bit, we have no use for it (or
31798             so it seems)
31799         * XplatUIOSX.cs:
31800           - Removed generation and handling of WM_ERASEBKGND message
31801           - Removed EraseWindowBackground() and SetWindowBackground() methods
31802           - Removed handling of hwnd.ErasePending flag
31803         * XplatUIWin32.cs:
31804           - Removed EraseWindowBackground() and SetWindowBackground() methods
31805           - We no longer call EraseWindowBackground on PaintEventStart, we 
31806             ignore the fErase flag, erasing is handled in Control in the
31807             background handler
31808         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
31809           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
31810           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
31811           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
31812           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
31813           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
31814           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
31815
31816 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
31817
31818         * PropertyGrids.cs: Get sub properties
31819         * PropertyGridView.cs: Fix drawing code
31820
31821 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31822
31823         * ListBox.cs: Fixes 76383
31824
31825 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31826
31827         * DataGridTextBoxColumn.cs: Sets location and size before attachment
31828         * ThemeWin32Classic.cs: Fixes border drawing and calculations
31829         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
31830
31831
31832 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31833
31834         * ComboBox.cs: Fixes border drawing
31835
31836 2005-10-10  Miguel de Icaza  <miguel@novell.com>
31837
31838         * MimeIcon.cs: Ignore errors if the file can not be read.
31839
31840 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31841
31842         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
31843          - Fixed border calculations
31844          - Fixed horizontal scrolling in single column listboxes
31845          - Fixed drawing issues
31846
31847 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
31848
31849         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
31850           FormBorderStyle enum
31851         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
31852           code to determine FormBorderStyles from CreateParams
31853         * Form.cs:
31854           - Fixed bug where we'd set the wrong window styles if we were
31855             not creating an MDI window
31856           - Added call to XplatUI.SetBorderStyle when form borders are set
31857         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
31858         * Hwnd.cs:
31859           - Removed obsolete edge style
31860           - Switched from BorderStyle to FormBorderStyle
31861         
31862 2005-10-10  Jackson Harper  <jackson@ximian.com>
31863
31864         * Form.cs: Use the property to get the window handle instead of
31865         accessing it directly. Prevents a null reference exception.
31866
31867 2005-10-10  Jackson Harper  <jackson@ximian.com>
31868
31869         * TreeView.cs: Don't adjust the rect given to DrawString now that
31870         our libgdiplus draws correctly.
31871
31872 2005-10-08  Jackson Harper  <jackson@ximian.com>
31873
31874         * TreeView.cs: Don't try to find the clicked on node if there are
31875         no nodes in the tree.
31876
31877 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
31878
31879         * RichTextBox.cs:
31880
31881           restore
31882
31883 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
31884
31885         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
31886           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
31887           ErrorProvider.cs:
31888           Use ResPool for brushes and dispose System.Drawing objects that
31889           are not used anymore.
31890
31891 2005-10-07  Jackson Harper  <jackson@ximian.com>
31892
31893         * MdiChildContext.cs: Use the new borders instead of drawing them
31894         ourselves.
31895
31896 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
31897
31898         * Calling UpdateBounds after changing the window's BorderStyle 
31899         since the style can change the ClientSize
31900
31901 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31902
31903         * Control.cs: Made PaintControlBackground virtual
31904         * Panel.cs: Overriding PaintControlBackground instead of using paint
31905           event; paint event method was interfering with 'real' users of the
31906           event.
31907
31908 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
31909
31910         * ThemeWin32Classic.cs: remove border drawing since it is handled
31911         by the base control class now and was causing double border drawing.
31912
31913 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31914
31915         * Panel.cs: Redraw our background on paint. Not a pretty solution,
31916           but it does seem to match MS behaviour. This fixes bug #75324
31917
31918 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31919
31920         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
31921           somewhat hackish looking
31922
31923 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31924
31925         * TextBoxBase.cs:
31926           - We now accept Enter even if AcceptEnter is false, if the containing
31927             form does not have an AcceptButton configured (fixes bug #76355)
31928           - Calculations are now fixed to no longer use Width/Height, but
31929             ClientSize.Width/Height, since we now support borders (this was
31930             a result of fixing borders and therefore bug #76166)
31931           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
31932             true (fixes bug #76354)
31933         
31934 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31935
31936         * Control.cs: 
31937           - Defaulting BorderStyle and setting it in XplatUI when our window 
31938             is created
31939           - Added enum check to InternalBorderStyle setter
31940         * XplatUIX11.cs: 
31941           - Added drawing of window borders
31942           - Now properly calculates WM decorations offset for toplevel 
31943             windows (fixes bug #74763)
31944         * XplatUIWin32.cs: 
31945           - Implemented BorderStyles for windows (we're letting win32 draw 
31946             the border for us)
31947           - Fixed the signature for SetWindowLong
31948         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
31949           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
31950           setting borders
31951         * UpDownBase.cs: Remove drawing of borders, this is handled by
31952           the driver, outside the client area
31953         * ListView.cs: Removed bogus border calculations. The control should
31954           be oblivious to borders, since those are not part of the client
31955           area. 
31956         * X11DesktopColors.cs: Commented out (currently) unneeded variables
31957         * ThemeWin32Classic.cs: Removed border calculations from ListView 
31958           drawing code
31959
31960 2005-10-06  Jackson Harper  <jackson@ximian.com>
31961
31962         * MdiChildContext.cs: Clear out the old virtual position remove
31963         all the unneeded calls to CreateGraphics.
31964
31965 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31966
31967         * TextControl.cs: Use proper color for highlighted text; fixes #76350
31968
31969 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31970
31971         * Form.cs: 
31972           - Added loading and setting of our new default icon
31973           - Only set icon if window is already created
31974
31975 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31976
31977         * Label.cs:
31978           - Do not explicitly set the foreground and background colors, to
31979             allow inheriting from parents (fixes #76302)
31980           - Use Control's InternalBorderStyle property to deal with borders
31981
31982 2005-10-06  Jackson Harper  <jackson@ximian.com>
31983
31984         * MdiChildContext.cs: Use the new xplatui function to draw a
31985         reversible rect.
31986
31987 2005-10-06  Jackson Harper  <jackson@ximian.com>
31988
31989         * Form.cs: Add the parent before creating the child context cause
31990         we need the parent when setting up the child.
31991
31992 2005-10-06  Jackson Harper  <jackson@ximian.com>
31993
31994         * FolderBrowserDialog.cs: redo the tree population code so a
31995         second thread isn't used. Should be a lot faster and more stable
31996         now.
31997
31998 2005-10-05  Jackson Harper  <jackson@ximian.com>
31999
32000         * TreeView.cs: There are no expand/collapse boxes if the node has
32001         no children.
32002
32003 2005-10-05  Jackson Harper  <jackson@ximian.com>
32004
32005         * X11DesktopColors.cs: Get menu colours for the gtk theme.
32006
32007 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
32008
32009         * FileDialog.cs: Fix InitialDirectory
32010
32011 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
32012
32013         * ComboBox.cs:
32014                 - Fixes changing between styles
32015                 - Fixes simple mode
32016                 - Fixes last item crashing when navigating with keyboard
32017
32018 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
32019
32020         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
32021
32022 2005-10-05  Jackson Harper  <jackson@ximian.com>
32023
32024         * TreeView.cs: If updating the root node do a full refresh.
32025         * TreeNode.cs: The root node should be expanded by default. Also
32026         added a utility prop to tell if we are the root node.
32027         * TreeNodeCollection.cs: Only refresh if the node we are being
32028         added to is expanded. Also added a comment on a potential
32029         optimization.
32030         
32031 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
32032
32033         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
32034           in dispose method. Fixes #76330
32035
32036 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
32037
32038         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
32039
32040                 - Implements vertical and horizontal scrolling using XplatUI
32041                 - Fixes keyboard navagation
32042                 - Fixes EnsureVisible
32043                 - Drawing fixes
32044                 - Handles and draws focus properly
32045
32046
32047 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
32048
32049         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
32050           Create handle. NET_2_0: Destroy handle when value is null.
32051
32052 2005-10-03  Jackson Harper  <jackson@ximian.com>
32053
32054         * ScrollBar.cs: My last scrollbar patch was broken. This is a
32055         revert and a new patch to prevent the thumb from refreshing so
32056         much.
32057
32058 2005-10-02  Jackson Harper  <jackson@ximian.com>
32059
32060         * ScrollBar.cs: Don't update position if it hasn't actually
32061         changed. This occurs when you hold down the increment/decrement
32062         buttons and the thumb gets to the max/min.
32063
32064 2005-10-01  Jackson Harper  <jackson@ximian.com>
32065
32066         * Form.cs:
32067         * MdiChildContext.cs:
32068         * MdiClient.cs: Implement ActiveMdiChild in Form.
32069
32070 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
32071
32072         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
32073
32074 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
32075
32076         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
32077           be found
32078
32079 2005-09-30  Jackson Harper  <jackson@ximian.com>
32080
32081         * ListBox.cs: Don't do a full refresh unless some data has
32082         actually changed.
32083
32084 2005-09-30  Jackson Harper  <jackson@ximian.com>
32085
32086         * TreeView.cs: Make sure that the checkboxes size is factored in
32087         even when not visible.
32088
32089 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
32090
32091         * FileDialog.cs: Fix Jordi's build break
32092
32093 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
32094
32095         * FileDialog.cs: 
32096                 - Use standard the Windows colours for the combobox as espected
32097                 - Dispose objects that use resouces when no longer need them
32098
32099 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
32100
32101         * X11DesktopColors.cs: Initial incomplete implementation
32102         * XplatUIX11.cs: Added call to initialize X11DesktopColors
32103
32104 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
32105
32106         * Theme.cs: 
32107           - Switched Theme color names to match the names defined in 
32108             System.Drawing.KnownColors. Life's hard enough, no need to make 
32109             it harder.
32110           - Added setters to all theme color properties so themes can set
32111             their color schemes. The setters also propagate the color changes
32112             to System.Drawing.KnownColors via reflection
32113         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
32114           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
32115           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
32116           use the new, more logical theme color names
32117         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
32118           post-NT colors
32119         * ThemeWin32Classic.cs:
32120           - Removed code to set the old classic Windows colors. Instead it
32121             now relies on the colors returned by System.Drawing.KnownColors
32122             which will be either modern static colors (Unix) or colors
32123             read from the user's configuration (Win32)
32124           - Updated to use the new, more logical theme color names
32125           - Switched DataGrid drawing code to use only Theme colors instead of
32126             a mix of System.Drawing.KnownColors and Theme colors
32127           - DrawFrameControl(): Removed code that fills the button area, the
32128             fill would overwrite any previous fill done by a control. This
32129             fixes bug #75338 
32130           - Added DrawReversibleRectangle() stub
32131         * ScrollableControl.cs: Set visible state to false when scrollbars
32132           are removed (pdn fix)
32133         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
32134           DrawReversibleRectangle() method to allow drawing primitive 
32135           'rubber bands'
32136         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
32137
32138 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32139
32140         * ImageList.cs: Add(Icon): Create handle.
32141
32142 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
32143
32144         * ListView.cs:
32145         * ThemeWin32Classic.cs:
32146                 - Fixes detail mode
32147                 - Sets clippings
32148                 - Issues with drawing
32149
32150 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32151
32152         * ImageList.cs: Moved RecreateHandle back to ImageList as event
32153           source has to be the ImageList.
32154
32155 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32156
32157         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
32158
32159 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32160
32161         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
32162
32163 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32164
32165         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
32166
32167 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
32168         * GridItem.cs: Fixed TODOs
32169         * GridItemCollection.cs: Added ICollection interface
32170
32171 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32172
32173         * ImageList.cs: Resize icons when needed.
32174
32175 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
32176
32177         * ListViewItem.cs
32178                 - Fixes GetBounds and returns on screen rects
32179         * ListView.cs:
32180                 - Fixes vertical and horzintal scrolling of items
32181         * ThemeWin32Classic.cs:
32182                 - Fixes drawing
32183                 
32184 2005-09-29  Raja R Harinath  <harinath@gmail.com>
32185
32186         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
32187
32188 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
32189
32190         * ImageList.cs: Added comments about handle creation. Moved Handle,
32191           HandleCreated and OnRecreateHandle implementations to ImageCollection.
32192           Handle is created in Add methods.
32193
32194 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
32195          
32196         * DataGridDrawingLogic.cs: 
32197                 - Takes rows into account on Colum calculations
32198                 - Returns the column when clickig
32199         * DataGrid.cs:
32200                 - Fixes default HitTestInfo values
32201                 - Fixes HitTestInfo.ToString
32202                 - Fixes ResetBackColor          
32203         
32204 2005-09-28  Jackson Harper  <jackson@ximian.com>
32205
32206         * MdiChildContext.cs: Obey rules for fixed sized windows (no
32207         sizing or cursor changes). Also added some temp code to draw the
32208         titlebars text (Makes dev a little easier).
32209
32210 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
32211
32212         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
32213
32214 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
32215          
32216         * ListBox.cs: Fixes bug 76253
32217
32218 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
32219
32220         * ImageList.cs: Added comments about the current implementation. Added
32221           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
32222           Format32bppArgb to preserve transparency and can use Graphics.FromImage
32223           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
32224           with Bitmap.LockBits for better performance. Revised the whole file to
32225           match MS.NET behaviour and provide better performance. Non-public
32226           interface members are calling public members even when they throw
32227           NotSupportedException for better maintainability. Moved ColorDepth,
32228           ImageSize, ImageStream and TransparentColor implementations to
32229           ImageCollection for better performance as these properties are not used
32230           by ImageList.
32231         * ImageListStreamer.cs: Added a new internal constructor that takes an
32232           ImageList.ImageCollection and serializes Images based on
32233           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
32234           match ImageList property name.
32235
32236 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
32237
32238         * ListBox.cs: Fixes IndexFromPoint for last item
32239
32240 2005-09-27  Jackson Harper  <jackson@ximian.com>
32241
32242         * Form.cs: Set the position of new mdi children correctly.
32243
32244 2005-09-27  Jackson Harper  <jackson@ximian.com>
32245
32246         * MdiClient.cs: New mdi children need to be added to the back of
32247         the controls collection so the zorder is set correctly. Also add a
32248         count of all the child windows that have been created.
32249
32250 2005-09-27  Jackson Harper  <jackson@ximian.com>
32251
32252         * Form.cs (CreateParams): Setup MDI forms correctly.
32253
32254 2005-09-27  Jackson Harper  <jackson@ximian.com>
32255
32256         * MdiChildContext.cs:
32257         * MonthCalendar.cs:
32258         * UpDownBase.cs:
32259         * ListBox.cs:
32260         * ListView.cs:
32261         * TextBoxBase.cs:
32262         * TreeView.cs:
32263         * ScrollableControl.cs:
32264         * ComboBox.cs: Add implicit controls using the new implict control
32265         functionality in ControlCollection. Also try to block multiple
32266         control add in a suspend/resume layout to save some cycles.
32267         
32268 2005-09-27  Jackson Harper  <jackson@ximian.com>
32269
32270         * Control.cs: Add functionality to the controls collection to add
32271         'implicit controls' these are controls that are created by the
32272         containing control but should not be exposed to the user. Such as
32273         scrollbars in the treeview.
32274         * Form.cs: The list var of the ControlsCollection is no longer
32275         available because of the potential of implicit controls getting
32276         ignored by someone accessing the list directly.
32277
32278 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
32279
32280         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
32281           loose it's parent. (Fixed bug introduced in r49103 when we added
32282           setting the child parent to null on Remove)
32283
32284 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
32285
32286         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
32287         * Splitter.cs: Added missing attributes for BorderStyle property.
32288         * TextBoxBase.cs: Marked Calculate* methods internal.
32289         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
32290         MS.NET.
32291
32292 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
32293          
32294         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
32295
32296 2005-09-25  Jackson Harper  <jackson@ximian.com>
32297
32298         * TreeView.cs: Update the node bounds correctly regardless of
32299         whether the node is visible.
32300
32301 2005-09-25  Jackson Harper  <jackson@ximian.com>
32302
32303         * ImageList.cs: Don't dispose the image after it is added to the
32304         image list. Only reformat images that need to be resized.
32305
32306 2005-09-25  Jackson Harper  <jackson@ximian.com>
32307
32308         * ImageList.cs: Don't set the format when changing the image.
32309
32310 2005-09-25  Jackson Harper  <jackson@ximian.com>
32311
32312         * TreeView.cs: We can't just assume the node has a font. Use the
32313         treeviews font if no node font is available.
32314
32315 2005-09-25  Jackson Harper  <jackson@ximian.com>
32316
32317         * TreeView.cs: Allow the scrollbars to be reset with negative
32318         values.
32319         - Don't add scrollbars to negative sized windows.
32320
32321 2005-09-23  Jackson Harper  <jackson@ximian.com>
32322
32323         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
32324         old Mono.Posix. Also remove some stray code that shouldn't have
32325         been committed.
32326
32327 2005-09-23  Jackson Harper  <jackson@ximian.com>
32328
32329         * TreeView.cs: Attempt at proper sizing of the horizontal
32330         scrollbar. Also don't resize the scrollbars unless they are
32331         visible.
32332
32333 2005-09-23  Jackson Harper  <jackson@ximian.com>
32334
32335         * TreeView.cs: We don't need to expand the invalid area when the
32336         selection changes, as this is all drawn in the node's bounding
32337         box. The area needs to be expanded (previous typo was contracting
32338         it) when the focus rect moves.
32339
32340 2005-09-23  Jackson Harper  <jackson@ximian.com>
32341
32342         * TreeView.cs: Display the selection box under the correct
32343         circumstances. We were rendering white text with no selection box
32344         before.
32345
32346 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
32347
32348         * TextControl.cs(Split): Now updates selection start/end if it points 
32349           into a line that's being split. Fixes a FIXME and bug #75258
32350
32351 2005-09-23  Jackson Harper  <jackson@ximian.com>
32352
32353         * Binding.cs:
32354         * ListControl.cs: Don't use the path when retrieving binding
32355         managers from the binding context. My bat sense tells me that the
32356         path is only used on insertion.
32357
32358 2005-09-22  Jackson Harper  <jackson@ximian.com>
32359
32360         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
32361
32362 2005-09-22  Jackson Harper  <jackson@ximian.com>
32363
32364         * Splitter.cs: There are special cursors used for splitting.
32365         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
32366
32367 2005-09-22  Jackson Harper  <jackson@ximian.com>
32368
32369         * Splitter.cs: Change the cursor appropriately when the splitter
32370         is moused over, so the user actually knows there is a splitter
32371         there.
32372
32373 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
32374
32375        * Label.cs : Fix ToString method to give same output as MS.NET
32376
32377 2005-09-22  Jackson Harper  <jackson@ximian.com>
32378
32379         * TreeView.cs: Create the scrollbars when the handle is created
32380         and add them right away, just make them invisble. Also account for
32381         the window being shrunk vertically to the point that the vert
32382         scrollbar needs to be added.
32383         - Remove some 0.5 adjustments to get around anti aliasing issues.
32384         
32385 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
32386          
32387         * MainMenu.cs: Fixes default value
32388         * MenuItem.cs: Fixes default value
32389
32390 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
32391
32392         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
32393
32394 2005-09-21  Jackson Harper  <jackson@ximian.com>
32395
32396         * Control.cs: Don't try to set the border style on the window if
32397         it hasn't been created. When the window is created the border
32398         style will be used.
32399
32400 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
32401
32402         * Control.cs (Update): Don't call XplatUI if we don't have a
32403           window handle yet
32404
32405 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
32406
32407         * ContainerControl.cs: Instead of throwing an exception, print
32408           a one-time warning about Validate not being implemented
32409         * XplatUIWin32.cs: Removed debug output
32410
32411 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
32412
32413         * Control.cs: Only set XplatUI background if we expect the windowing
32414           system to handle the background. This stops controls that draw their
32415           own background from flickering
32416
32417         * XplatUIX11.cs: Support custom visuals and colormaps for window 
32418           creation. This allows, amongst other things, using MWF X11 windows 
32419           with OpenGL.
32420
32421 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
32422
32423         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
32424           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
32425           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
32426           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
32427           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
32428           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
32429           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
32430           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
32431           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
32432           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
32433           GridColumnStylesCollection.cs, 
32434           IDataGridColumnStyleEditingNotificationService.cs,
32435           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
32436           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
32437           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
32438           TreeNodeCollection.cs, AmbientProperties.cs, 
32439           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32440           DataObject.cs, ErrorProvider.cs, Splitter.cs,
32441           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
32442           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
32443           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
32444           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
32445           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
32446           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
32447           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
32448           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
32449           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
32450           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
32451           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
32452           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
32453           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
32454           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
32455           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
32456           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
32457           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
32458           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
32459           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
32460           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
32461           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
32462           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
32463           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
32464           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
32465           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
32466           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
32467           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
32468           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
32469           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
32470           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
32471           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
32472           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
32473           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
32474           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
32475           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
32476
32477 2005-09-21  Jackson Harper  <jackson@ximian.com>
32478
32479         * TreeNode.cs: Call Before/After Expand not Collapse when
32480         expanding.
32481
32482 2005-09-20  Jackson Harper  <jackson@ximian.com>
32483         
32484         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
32485
32486 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
32487          
32488         * ListViewItem.cs:
32489                 - Fixes bug 76120
32490                 - Fixes proper storing of subitems
32491                 - Fixes not updated items
32492
32493 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
32494
32495         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
32496           things if our window handle isn't created yet. Also disabled 
32497           debug for TextBoxBase
32498
32499 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
32500
32501         * MenuAPI.cs: Remove filtering of events to allow menu usage
32502
32503 2005-09-20  Miguel de Icaza  <miguel@novell.com>
32504
32505         * Cursor.cs: Allow null to be passed to Cursor.Current.
32506
32507 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
32508
32509         * ThemeWin32Classic.cs:
32510           - Change some private methods/fields to protected virtual so that 
32511             they can be accessed and overriden in derived classes
32512           - First refactoring of some methods. Derived themes now don't 
32513             need to duplicate the complete code from ThemeWin32Classic
32514         * ThemeNice.cs:
32515           - Added nice StatusBar
32516           - Derive from ThemeWin32Classic and not Theme
32517           - Removed duplicate ThemeWin32Classic code
32518
32519 2005-09-20  Miguel de Icaza  <miguel@novell.com>
32520
32521         * Control.cs (ControlCollection.Add): If the value null is passed
32522         the control is ignored. 
32523
32524         Optimize this loop.
32525
32526 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
32527
32528         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
32529           PostQuitMessage state.
32530         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
32531
32532 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
32533
32534         * Application.cs: Our constructor will never get called, move 
32535           initialization to fields; fixes bug #75933
32536
32537 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
32538
32539         * FileDialog.cs :
32540                 - Allow files to be selected properly using file name
32541                 combo box.
32542                 - Add ability to change diretory (absolute / relative)
32543                 using file name combo box.
32544
32545 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
32546          
32547         * ListBox.cs: 
32548                 - Fixes Multicolumn listboxes item wrong calculations
32549                 - Allows to click when only one item is in the listbox
32550                 - Fixes crash when no items using keyboard navigation
32551
32552 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
32553
32554         * ComboBox.cs: Reverted almost everything from the latest patch which
32555           broke ComboBox
32556
32557 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
32558         
32559         * ToolTip.cs:
32560                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
32561         * ComboBox.cs:
32562                 - When DropDownStyle is Simple, it does not show scrollbar 
32563                 to the last item of the list.
32564                 - When DropDownStyle is Simple, it crashed when the list was 
32565                 scrolled down with the down cursor key.
32566                 - Fixed a bug that when DropDownStyle is DropDownList, the 
32567                 selected item was not shown.
32568                 - The position of the selected item was not preserved when 
32569                 the next dropdown happened.
32570         * ThemeWin32Classic.cs:
32571                 - Items were wrapped at the right end.
32572         * CheckedListBox.cs:
32573                 - Fixed Add method
32574         * ListBox.cs:
32575                 - Items should be fully shown.
32576                 - When resizing and vertical scrollbar disappeared, the item 
32577                 of index 0 should be on the top of the list.
32578                 - GetItemRectangle should consider the size of ver. scrollbar
32579         * StatusBar.cs:
32580                 - SizingGrip area should not be allocated when it is not 
32581                 displayed.
32582                 - Now it reflects MinWidth of the containing panel and 
32583                 fixed a crash that happens when its width becomes so small.
32584
32585 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
32586
32587         * CheckedListBox.cs: Fixes bug 76028
32588         * ListBox.cs: Fixes bug 76028
32589
32590 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
32591
32592         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
32593         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
32594
32595 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
32596
32597         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
32598
32599 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
32600
32601         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
32602
32603 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
32604
32605         * IRootGridEntry.cs: Added
32606         * PropertyGridCommands.cs: Added
32607         * PropertiesTab.cs: Added missing methods and property
32608         * PropertyGridView.cs: Made class internal
32609         * PropertyGridTextBox.cs: Made class internal
32610
32611 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32612
32613         * MimeIcon.cs: Try to check some other environment variables
32614           if "DESKTOP_SESSION" returns "default"
32615
32616 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32617
32618         * ThemeNice.cs: Corrected background colors (e.g. menus)
32619         * ColorDialog.cs: Use correct background colors for controls
32620
32621 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32622
32623         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
32624
32625 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
32626
32627         * RichTextBox.cs: Added initial implementation
32628         * lang.cs: Removed. Was accidentally checked in long time ago
32629         * TODO: Removed. Contents were obsolete
32630
32631 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
32632                                                                                 
32633         * PropertiesTab.cs : Added
32634
32635 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
32636                                                                                 
32637         * PropertyGrid.cs : Update
32638         * PropertyGridView.cs : Update
32639         * System.Windows.Forms.resx : Added images and strings
32640
32641 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
32642
32643         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
32644  
32645 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
32646
32647         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
32648           a busy loop right after the Ungrab the X11 display is otherwise 
32649           blocked
32650
32651 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
32652
32653         * ThemeWin32Classic.cs: Optimise the use of clipping
32654
32655 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
32656
32657         * DataGrid.cs: fixes recursion bug
32658
32659 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
32660
32661         * ThemeNice.cs: 
32662           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
32663           - Cleanup
32664
32665 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
32666
32667         * ThemeNice.cs: Draw nice ProgressBars
32668
32669 2005-09-01  Miguel de Icaza  <miguel@novell.com>
32670
32671         * VScrollBar.cs: Another buglet found by Aaron's tool. 
32672
32673         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
32674         bug finder.
32675
32676 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
32677
32678         * ThemeNice.cs:
32679           - Added nicer menu drawing
32680           - Updated DrawTab
32681           - some refactoring
32682
32683 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
32684
32685         * CreateParams.cs (ToString): Made output match MS
32686         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
32687             handle is already created (to avoid forcing window creation)
32688         * XplatUIX11.cs: Set window text to caption after creating window,
32689           in case Text was set before window was created
32690         * Form.cs: Use this.Text instead of a static string as caption
32691
32692 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
32693
32694         * NotifyIcon.cs: Don't set the window to visible; this screws
32695           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
32696           OnPaint without a bitmap)
32697         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
32698           happen very often anyway; we could add the check to the WM_PAINT 
32699           event generation code
32700
32701 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
32702
32703         * NotifyIcon.cs: Fill the icon area with a background color, to 
32704           avoid 'residue' when transparent icons are drawn
32705         * XplatUIX11.cs:
32706           - Handle whole_window == client_window when destroying windows
32707           - SystrayAdd(): Set client_window to whole_window value to
32708             get mouse and other events passed to NotifyIcon
32709
32710 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
32711
32712         * Form.cs: Set proper default for Opacity property
32713         * NotifyIcon.cs:
32714           - ShowSystray(): Don't bother creating telling the OS
32715             about the systray item if no icon is provided
32716           - Now handles WM_NCPAINT message to deal with whole/client window
32717             split
32718           - Create window as visible to not get caught by Expose optimization
32719         * Hwnd.cs: Removed debug message
32720         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
32721           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
32722             PaintEventStart/End to use new client argument
32723         * TextBoxBase.cs:
32724           - Commented out debug messages
32725           - Switched PaintEventStart/End to use new client argument
32726         * XplatUI.cs: Added client window bool to PaintEventStart()/
32727           PaintEventEnd() calls, to support drawing in non-client areas
32728         * XplatUIDriver.cs: 
32729           - Added client window bool to PaintEventStart()/PaintEventEnd() 
32730             calls, to support drawing in non-client areas
32731           - Added conditional compile to allow using MWF BeginInvoke 
32732             on MS runtime
32733         * XplatUIX11.cs:
32734           - Added some conditional debug output
32735           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
32736             whole/client window split
32737           - Implemented handling of client argument to PaintEventStart()/End()
32738         * Control.cs:
32739           - Throw exception if BeginInvoke() is called and the window handle
32740             or one of the window's parent handles is not created
32741           - Added conditional compile to allow using MWF BeginInvoke on
32742             MS runtime
32743           - get_Parent(): Only sets parent if handle is created. This avoids
32744             forcing window handle creation when parent is set.
32745           - Now fires Layout and Parent changed events in proper order
32746           - Switched to use Handle instead of window.Handle for Z-Order setting,
32747             the get_Parent() patch above causes us to possibly get null for 'window'
32748           - Implemented handling of client argument to PaintEventStart()/End()
32749           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
32750             default handling)
32751           - Now sends a Refresh() to all child windows when Refresh() is called
32752
32753 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
32754
32755         * Form.cs: Added (non-functional) Opacity property
32756         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
32757
32758 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
32759         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
32760           use export MONO_THEME=nice to activate it.
32761           Currently supported controls:
32762           - Button
32763           - ComboBox
32764           - ScrollBar
32765           - TabControl (TabAlignment.Top only, other will follow)
32766         * ThemeEngine.cs: Add theme nice
32767         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
32768           if enabled
32769
32770 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
32771
32772         * Splitter.cs: Resize docked control and its neighbor.
32773
32774 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32775         -- Making Windows with Menus layout correctly --
32776         * Form.cs : The first leg of the fix
32777                 Menu setter - adjust Client Size as needed to make space for the menu
32778                 SetClientSizeCore - doesn't call base version to be able to pass the 
32779                         menu handle to XplatUI.CalculateWindowRect
32780         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
32781         * XplatUIX11.cs: The critical second leg of the fix
32782                 GetWindowPos needs to use a recalculated client_rect
32783                 so that resizing the window doesn't break layout of child controls. 
32784                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
32785                 Lots of \t\n killed
32786
32787 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
32788
32789         * Label.cs: Now properly recalculates width and height on Font and Text
32790           changes if AutoSize is set
32791
32792 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32793         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
32794
32795 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
32796
32797         * ImageList.cs: Makes ToString method compatible with MS
32798
32799 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
32800
32801         * MenuAPI.cs: fixes bug 75716
32802
32803 2005-08-11 Umadevi S <sumadevi@novell.com>
32804         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
32805
32806 2005-08-11 Umadevi S <sumadevi@novell.com>
32807         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
32808
32809 2005-08-10  Umadevi S <sumadevi@novell.com>
32810         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
32811
32812 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
32813
32814         * Menu.cs: fixes bug 75700
32815         * MenuAPI.cs: fixes navigation issues
32816
32817 2005-08-09  Umadevi S <sumadevi@novell.com>
32818         * CheckedListBox.cs - simple fix for GetItemChecked.
32819
32820 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
32821
32822         * ComboBox.cs: Serveral fixes
32823         * ListBox.cs: Serveral fixes
32824
32825 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32826
32827         * ComboBox.cs: Fixes FindString methods and GetItemHeight
32828         * ListBox.cs: Fixes FindString methods
32829
32830 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32831
32832         * DataGrid.cs: fixes bugs exposed by new tests
32833
32834 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
32835
32836         * Mime.cs: Compile Mono assembly references only if compiling
32837           with Mono (Allows to build with VS.Net again)
32838
32839 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
32840
32841         * Control.cs (PaintControlBackground): Draw background image
32842         corrrectly.
32843         (CheckForIllegalCrossThreadCalls): Stubbed.
32844         
32845         * Form.cs (OnCreateControl): Center when should be centered.
32846         
32847         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
32848
32849 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
32850
32851         * Binding.cs: Binding to properties should be case unsensitive
32852
32853 2005-07-18 vlindos@nucleusys.com
32854
32855         * DataGrid.cs: fixes setmember order
32856
32857 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
32858
32859         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
32860         * FileDialog.cs: FileDialog is now resizable and uses the new
32861           MimeIconEngine
32862
32863 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
32864
32865         * DataGridTextBoxColumn.cs: default value
32866         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
32867         * GridTableStylesCollection.cs: fixes checking MappingName
32868         * DataGridDrawingLogic.cs: fixes drawing logic issues
32869         * DataSourceHelper.cs: rewritten to make compatible with more data sources
32870         * DataGrid.cs: fixes    
32871
32872 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
32873
32874         * MimeGenerated.cs: Use case sensitive comparer for
32875           NameValueCollections
32876
32877 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
32878
32879         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
32880         * ThemeWin32Classic.cs: bug fixes, code refactoring
32881         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
32882         * DataGrid.cs: bug fixes, code refactoring
32883         * DataGridTextBox.cs: bug fixes, code refactoring
32884         * DataGridColumnStyle.cs:  bug fixes, code refactoring
32885         * Theme.cs:  bug fixes, code refactoring
32886
32887 2005-07-01  Peter Bartok  <pbartok@novell.com> 
32888
32889         * TextControl.cs: Quick fix for the reported crash on ColorDialog
32890           and other text box usage
32891
32892 2005-07-01  Jackson Harper  <jackson@ximian.com>
32893
32894         * TabControl.cs: Make sure the bottom of the tab covers the pages
32895         border.
32896
32897 2005-06-30  Peter Bartok  <pbartok@novell.com> 
32898
32899         * Form.cs (ShowDialog): Assign owner of the dialog
32900         * TextBoxBase.cs: Always refresh caret size when deleting, caret
32901           might have been moved to a tag with different height
32902
32903 2005-06-30  Jackson Harper  <jackson@ximian.com>
32904
32905         * Form.cs: Don't create an infinite loop when setting focus
32906         * MenuItem.cs: Don't dirty the parents if we don't have any
32907
32908 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
32909
32910         * LibSupport.cs: Rename
32911
32912 2005-06-29  Peter Bartok  <pbartok@novell.com>
32913
32914         * TextBoxBase.cs: Re-align caret after deleting a character
32915         * TextControl.cs:
32916           - DeleteChars(): Ensure that tag covers the provided position
32917           - StreamLine(): Drop reference for dropped tag
32918
32919 2005-06-29  Peter Bartok  <pbartok@novell.com> 
32920
32921         * TextControl.cs: 
32922           - Selections now work properly, anchoring at the initial location
32923             and properly extending in either direction (SetSelectionToCaret(),
32924             SetSelectionStart() and SetSelectionEnd())
32925           - No longer redraws the whole control on selection change, now
32926             calculates delta between previous and new selection and only
32927             invalidates/redraws that area
32928           - Fixed FindPos() math off-by-one errors
32929           - Changed DeleteChars() to verify the provided tag covers the
32930             provided position, selections may have a tag that doesn't cover
32931             the position if the selection is at a tag border
32932           - Fixed off-by-one errors in DeleteChars()
32933           - Added missing streamlining check in DeleteChars() to remove
32934             zero-length tags
32935           - Implemented Invalidate() method, now properly calculates exposures
32936             between two given lines/positions
32937           - Implemented SetSelection()
32938           - Obsoleted and removed FixupSelection()
32939           - Improved RecalculateDocument() logic, removing code duplication
32940
32941 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32942
32943         * LibSupport.cs: changes to match different input/output arguments.
32944
32945 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32946
32947         * LibSupport.cs: added libsupport.so init routine.
32948
32949 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
32950         
32951         * ControlBindingsCollection.cs
32952                 - Throws an exception on null datasource when adding
32953                 - Checks for duplicated bindings when adding
32954
32955 2005-06-28  Jackson Harper  <jackson@ximian.com>
32956
32957         * TreeView.cs (OnKeyDown): Support left and right properly
32958         (navigates as well as expanding and collapsing.
32959         - Add support for Multiply, this expands all the selected nodes
32960         children.
32961         - Fix some tabbing.
32962
32963 2005-06-28  Jackson Harper  <jackson@ximian.com>
32964
32965         * TreeView.cs: Implement keyboard navigation, currently supports,
32966         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
32967         support for toggling checkboxes with the space bar.
32968
32969 2005-06-28  Jackson Harper  <jackson@ximian.com>
32970
32971         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
32972         tree.
32973
32974 2005-06-28  Jackson Harper  <jackson@ximian.com>
32975
32976         * TreeView.cs: Add missing event.
32977
32978 2005-06-27  Peter Bartok  <pbartok@novell.com> 
32979
32980         * TextControl.cs:
32981           - Made line ending size configurable (now allows for counting 
32982             lineendings as \n or \r\n)
32983           - Added margin to viewport to keep caret visible on right side
32984           - Fixed translation routines for line/pos to documentpos to consider
32985             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
32986           - Fixed some line-endings to be unix style
32987           - Fixed Document.FormatText to perform it's calculations 1-based
32988           - Added descriptions for a few methods that might otherwise get 
32989             used wrong
32990           - Added NOTE section with some basic conventions to remember at 
32991             the top of the file
32992           - Major fixup for RichTextBox selection drawing:
32993             * Fixed crashes when multiple tags on a single line were selected
32994             * fixed selection box drawing not overlaying text
32995             * fixed bogus offset calculation for tags not starting at index 1
32996             * Switched behaviour from using multiple Substrings of a 
32997               StringBuilder.ToString() to using multiple 
32998               StringBuilder.ToString(start, length) statements, hoping this is
32999               faster (kept original version commented out in the code, in case
33000               original version was faster)
33001         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
33002           alignment != Left
33003         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
33004           call it as well
33005
33006 2005-06-27  Jackson Harper  <jackson@ximian.com>
33007
33008         * TabControl.cs: Move to the left and right with the arrow
33009         keys. These keys don't cycle beyond first and last like
33010         tab. Refresh all the tabs when scrolling them to the left or
33011         right.
33012
33013 2005-06-27  Jackson Harper  <jackson@ximian.com>
33014
33015         * TabControl.cs:
33016           - ToString: Added method
33017           - CreateParams: Remove TODO and comment
33018           - OnKeyDown: Cycle through bounds properly.
33019           - SelectedIndex: Scroll to the right or left if we need to
33020           display the newly selected tab.
33021
33022 2005-06-23  Jackson Harper  <jackson@ximian.com>
33023
33024         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
33025         set.
33026
33027 2005-06-23  Jackson Harper  <jackson@ximian.com>
33028
33029         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
33030         CTRL-SHIFT-TAB, and HOME, END are there any others?
33031
33032 2005-06-23  Jackson Harper  <jackson@ximian.com>
33033
33034         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
33035
33036 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
33037         
33038         * DataGridTextBoxColumn.cs: fixes and enhancements
33039         * ThemeWin32Classic.cs: fixes and enhancements
33040         * DataGridBoolColumn.cs:  fixes and enhancements
33041         * DataGridDrawingLogic.cs:  fixes and enhancements
33042         * CurrencyManager.cs: fixes and enhancements
33043         * DataGrid.cs: fixes and enhancements
33044         * DataGridColumnStyle.cs:  fixes and enhancements
33045
33046 2005-06-22  Jackson Harper  <jackson@ximian.com>
33047
33048         * TabControl.cs: Add some missing methods that just call into the
33049         base. Make the TabPageCollection's IList interface behave in the
33050         same manner as the MS implementation.
33051
33052 2005-06-22  Peter Bartok  <pbartok@novell.com> 
33053
33054         * TextControl.cs: Added sanity check
33055         * TextBoxBase.cs: 
33056           - Fixed wrapping behaviour, don't set wrap on single line controls
33057             (this fixes the breakage of colordialog introduced in an earlier
33058              checkin)
33059           - Added rudimentary support for autoscrolling right-aligned controls
33060             (still needs fixing, also, center alignment scroll is missing)
33061
33062 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
33063         
33064         * ScrollBar.cs: Fixes thumbpos on Maximum values
33065
33066 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
33067         
33068         * PropertyGridView.cs: Pass context information to UITypeEditors 
33069
33070 2005-06-21  Peter Bartok  <pbartok@novell.com> 
33071
33072         * TextBoxBase.cs:
33073           - Now calling PositionCaret with absolute space coordinates
33074           - Enabled vertical scrolling
33075           - Better tracking of scrollbar changes, tied into WidthChange
33076             event
33077           - Improved cursor tracking
33078           - Removed debug output
33079         * TextControl.cs:
33080           - PositionCaret coordinates are now works in absolute space, not 
33081             the canvas
33082           - Improved tracking of document size
33083           - Added events for width and height changes
33084
33085 2005-06-21  Peter Bartok  <pbartok@novell.com>
33086
33087         * Form.cs: Set focus to active control when form is activated
33088         * TextControl.cs: 
33089           - Added word-wrap functionality to RecalculateLine() 
33090           - Added some short function descriptions for VS.Net to aid in
33091             writing dependent controls
33092           - Added Caret property, returning the current coords of the caret
33093           - Added ViewPortWidth and ViewPortHeight properties
33094           - Added Wrap property
33095           - Added CaretMoved event
33096           - Removed some old debug code
33097           - Split() can now create soft splits
33098           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
33099           - Added method to format existing text
33100           - Fixed size/alignment calculations to use viewport
33101           - RecalculateDocument now can handle changing line-numbers while
33102             calculating lines
33103
33104         * TextBox.cs:
33105           - Added some wrap logic, we don't wrap if alignment is not left
33106           - Added casts for scrollbar var, base class switched types to
33107             also support RichTextBoxA
33108           - Implemented handling of scrollbar visibility flags
33109
33110         * TextBoxBase.cs:
33111           - Switched scrollbars type to RichTextBoxScrollBars to support
33112             RichTextBox
33113           - Added tracking of canvas width/height
33114           - Switched scrollbars to be not selectable (to keep focus on text)
33115           - Added central CalculateDocument() method to handle all redraw
33116             requirements
33117           - Added ReadOnly support
33118           - Added WordWrap support
33119           - Fixed handling of Enter key (we now treat it as a DialogKey)
33120           - Fixed caret positioning when h or v scroll is not zero
33121           - Fixed placing/generation of vertical scrollbar
33122           - Added CalculateScrollBars() method to allow updating scrollbar
33123             limits and visibility
33124           - Fixed handling of horizontal scroll
33125           - Added handling of vertical scroll
33126           - Implemented auto-'jump' when caret moves to close to a left or
33127             right border and there is text to be scrolled into view (currently
33128             there's the potential for a stack overflow, until a bug in
33129             scrollbar is fixed)
33130
33131 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
33132         
33133         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
33134
33135 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
33136
33137         * Mime.cs:
33138         - added inodes.
33139         - return application/x-zerosize for files with size zero
33140           (if no extension pattern matches).
33141         - check matches collection for strings too.
33142         - return only the first mime type if the name value
33143           collection has more than one mime type.
33144
33145 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
33146         
33147         * PropertyGrid.cs: Cleaned up some TODOs
33148         * PropertyGridView.cs: Added support for UITypeEditors
33149
33150 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
33151         
33152         * DataGrid.cs: clears cached value
33153
33154 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
33155
33156         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
33157         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
33158         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
33159         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
33160         
33161 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
33162
33163         * ThemeWin32Classic.cs: fixes colour
33164
33165 2005-06-15  Peter Bartok  <pbartok@novell.com>
33166
33167         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
33168         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
33169         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
33170         * Control.cs: Added some MWFCategory and MWFDescription attributes
33171         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
33172
33173 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
33174
33175         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
33176         usage
33177
33178 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
33179
33180         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
33181         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
33182         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
33183         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
33184         * DataGrid.cs: default datagrid settings for Default Styles, fixes
33185         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
33186
33187 2005-06-13  Jackson Harper  <jackson@ximian.com>
33188
33189         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
33190         isn't printed when the user enables dropping. (X11 does accept
33191         drops).
33192         
33193 2005-06-13  Jackson Harper  <jackson@ximian.com>
33194
33195         * TreeView.cs: Remove some TODOS.
33196
33197 2005-06-13  Jackson Harper  <jackson@ximian.com>
33198
33199         * Form.cs: Hook into the mdi framework.
33200         * MdiClient.cs: Use the base control collections add method so
33201         parents get setup correctly. Set the default back colour and dock
33202         style.
33203         * MdiChildContext.cs: New class, this bad actor handles an
33204         instance of an MDI window. Right now there is only basic
33205         support. You can drag, close, and resize windows. Minimize and
33206         Maximize are partially implemented.
33207
33208 2005-06-13  Jackson Harper  <jackson@ximian.com>
33209
33210         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
33211         freaky when both vals are negative. NOTE: There are probably other
33212         places in XplatUIX11 that this needs to be done.
33213
33214 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
33215
33216         * DataGrid.cs: implement missing methods, move KeyboardNavigation
33217         * DataGridColumnStyle.cs: fixes signature
33218
33219 2005-06-12  Jackson Harper  <jackson@ximian.com>
33220
33221         * XplatUIX11.cs: Use sizing cursors similar to the ones on
33222         windows.
33223
33224 2005-06-11  Jackson Harper  <jackson@ximian.com>
33225
33226         * StatusBarPanel.cs: Signature cleanups. Implement
33227         BeginInit/EndInit.
33228
33229 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
33230
33231         * DataGridTextBoxColumn.cs: Honors aligment
33232         * GridColumnStylesCollection.cs: Contains is case unsensitive
33233         * GridTableStylesCollection.cs: several fixes
33234         * DataGridTableStyle.cs: default column creation
33235         * DataGridDrawingLogic.cs: fixes
33236         * CurrencyManager.cs: ListName property
33237         * DataGrid.cs: multiple styles support
33238         * DataGridColumnStyle.cs: fixes
33239         
33240
33241 2005-06-10  Peter Bartok  <pbartok@novell.com>
33242
33243         * Control.cs(Select): Moved SetFocus call to avoid potential
33244           loops if controls change the active control when getting focus
33245         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
33246           the up/down buttons
33247
33248 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
33249
33250         * ImageListConverter.cs: Implemented
33251
33252 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
33253
33254         * MonthCalendar.cs: Wired in NumericUpDown control for year
33255
33256 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
33257
33258         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
33259           DoubleClick events, since they are not meant to be fired.
33260
33261 2005-06-09  Peter Bartok  <pbartok@novell.com>
33262
33263         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
33264           Jonathan's standalone controls into MWF, implemented missing
33265           events, attributes and methods; added xxxAccessible classes
33266         * AccessibleObject.cs: Made fields internal so other classes
33267           can change them if needed
33268
33269 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
33270
33271         * UpDownBase.cs: Complete implementation
33272         * NumericUpDown.cs: Complete implementation
33273         * DomainUpDown.cs: Complete implementation
33274
33275 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
33276
33277         * DataGridTextBoxColumn.cs: drawing fixes
33278         * DataGridCell.cs: fixes ToString method to match MSNet
33279         * DataGridTableStyle.cs: fixes
33280         * DataGridBoolColumn.cs: fixes, drawing
33281         * DataGridDrawingLogic.cs: fixes, new methods
33282         * DataGridTextBox.cs: Keyboard and fixes
33283         * DataGrid.cs:
33284                 - Keyboard navigation
33285                 - Scrolling fixes
33286                 - Row selection (single, multiple, deletion, etc)
33287                 - Lots of fixes
33288         
33289 2005-06-07  Jackson Harper  <jackson@ximian.com>
33290
33291         * ThemeWin32Classic.cs: Clear the background area when drawing
33292         buttons.
33293
33294 2005-06-06  Peter Bartok  <pbartok@novell.com>
33295
33296         * ImageListStreamer.cs: Fixed signature for GetData
33297         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
33298         * ComboBox.cs:
33299           - Added missing ChildAccessibleObject class
33300           - Added missing OnXXXFocus overrides, switched to using those
33301             instead of the event handler
33302         * Control.cs:
33303           - Added Parent property for ControlAccessibleObject
33304           - Fixed signatures
33305           - Fixed attributes
33306           - Added ResetBindings()
33307         * ListBindingConverter.cs: Implemented some methods
33308         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
33309         * ImageList.cs: Implemented basic handle scheme, removed TODOs
33310         * ContainerControl.cs: Fixed signature, now subscribing to the
33311           ControlRemoved event instead of overriding the handler, LAMESPEC
33312         * CurrencyManager.cs: Added missing attribute
33313         * MonthCalendar.cs: Added missing properties
33314
33315 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
33316
33317         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
33318         
33319 2005-06-06  Gaurav Vaish and Ankit Jain
33320
33321         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
33322         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
33323         
33324 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
33325
33326         * Control.cs: fixes CreateParams Width / Height.
33327
33328 2005-06-05  Peter Bartok  <pbartok@novell.com>
33329
33330         * Win32DnD.cs: Removed compilation warnings
33331
33332 2005-06-05  Peter Bartok  <pbartok@novell.com>
33333
33334         * Control.cs (CreateParams): Since we don't know if one of the
33335           properties we use is overridden, lets make sure if we fail accessing
33336           we continue with a backup plan
33337
33338 2005-06-05  Peter Bartok  <pbartok@novell.com>
33339
33340         * Win32DnD.cs:
33341           - Removed debug output
33342           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
33343             struct
33344           - Plugged resource leak
33345         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
33346           MS size
33347
33348 2005-06-05  Peter Bartok  <pbartok@novell.com>
33349
33350         * XplatUIWin32.cs: Removed DnD code
33351         * Win32DnD.cs: Implemented drop source and drop target functionality
33352
33353 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33354
33355         * UpDownBase.cs: remove duplicate addition of event, enable some code
33356         that was commented out.
33357         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
33358         Validate input when a key is pressed. It works fine now for every
33359         combination of Hexadecimal. Only missing some drawing love when sharing
33360         space with other controls.
33361
33362 2005-06-04  Peter Bartok  <pbartok@novell.com>
33363
33364         * Control.cs:
33365           - We need to pass a window for DragDrop, so enable callback events
33366           - Added DnD callback events when being a DragSource
33367         * XplatUI.cs (StartDrag): Added window handle argument
33368         * XplatUIDriver.cs (StartDrag): Added window handle argument
33369         * QueryContinueDragEventArgs: Made fields internally accessible so
33370           drivers can set them
33371         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
33372           can set them
33373
33374 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
33375
33376         * DataGridTextBoxColumn.cs: column text editing
33377         * DataGridTableStyle.cs: Respect columns styles created by the user
33378         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
33379         * DataGridBoolColumn.cs: bool column editing
33380         * DataGrid.cs: fixes to scrolling, properties, etc
33381         * DataGridTextBox.cs: handle keyboard
33382         * DataGridColumnStyle.cs: fixes
33383
33384 2005-06-02  Jackson Harper  <jackson@ximian.com>
33385
33386         * ImageListStreamer.cs: Somewhat broken implementation of
33387         GetObjectData. The RLE needs some work to match MS properly.
33388
33389 2005-06-02  Jackson Harper  <jackson@ximian.com>
33390
33391         * X11Dnd.cs: Attempting to keep at least one file in MWF
33392         monostyled.
33393
33394 2005-06-02  Peter Bartok  <pbartok@novell.com>
33395
33396         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
33397           that way
33398
33399 2005-06-02  Peter Bartok  <pbartok@novell.com>
33400
33401         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
33402         * XplatUI.cs: Added DoDragDrop() method
33403         * XplatUIDriver.cs: Added DoDragDrop() method
33404
33405 2005-06-02  Jackson Harper  <jackson@ximian.com>
33406
33407         * Splitter.cs: Implement BorderStyle.
33408
33409 2005-06-02  Jackson Harper  <jackson@ximian.com>
33410
33411         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
33412         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
33413         X11 using XDND.
33414
33415 2005-06-02  Peter Bartok  <pbartok@novell.com>
33416
33417         * DataObject.cs:
33418           - Added Data setter
33419           - Fixed broken insertion code for SetData, now also
33420             overwrites any existing entry of the same format name
33421         * Hwnd.cs: Added list of pointers that automatically gets
33422           freed when the window is disposed
33423         * XplatUI.cs: Call driver initialization method when loading
33424           a driver
33425         * Control.cs:
33426           - OnDragLeave takes EventArgs, not DragEventArgs
33427           - Added setting of WS_EX_ACCEPTFILES style when dropping is
33428             supported
33429           - Forces style update when drop state changes
33430         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
33431           not perfect since we cannot (yet) call the IDataObject.GetData()
33432           method, we keep getting 0x80004005 error, dunno why)
33433
33434 2005-06-02  Peter Bartok  <pbartok@novell.com>
33435
33436         * DragEventArgs.cs: Make fields internal so we can cache the
33437           object and re-set the fields from XplatUI
33438
33439 2005-06-02  Jackson Harper  <jackson@ximian.com>
33440
33441         * Control.cs: Add some internal methods so the DnD subsystem can
33442         raise DnD events. Also call into the driver when AllowDrop is set.
33443         * XplatUI.cs:
33444         * XplatUIDriver.cs: New method for setting whether or not a window
33445         is allowed to accept drag and drop messages.
33446                 
33447 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
33448         
33449         * ScrollBar.cs: Make sure that values sent in Scroll events
33450         are always between Maximum and Minimum.
33451
33452 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
33453
33454         * Menu.cs: Call MenuChanged when menuitem visibility has been
33455         changed.
33456         * MenuItem.cs: Rebuild menu when item is (not) visible.
33457         * MainMenu.cs: MainMenu has special MenuChanged.
33458         * Theme.cs: Caption and FrameBorderSize are not fixed.
33459         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
33460         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
33461         * XplatUIX11.cs,
33462         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
33463         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
33464
33465 2005-05-30  Jackson Harper  <jackson@ximian.com>
33466
33467         * DataFormat.cs: We can't statically initialize this stuff because
33468         it calls into the xplatui and could create a loop. So we lazy init
33469         it.
33470
33471 2005-05-28  Jackson Harper  <jackson@ximian.com>
33472
33473         * Control.cs: Proper implementation of Product(Name/Version).
33474
33475 2005-05-27  Jackson Harper  <jackson@ximian.com>
33476
33477         * DataObject.cs: Dont crash if no data is found.
33478
33479 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
33480         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
33481                 as per status page, guessing it should be set to true
33482
33483 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
33484
33485         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
33486         * DataGridTableStyle.cs: set proper formatting text, def header text
33487         * ThemeWin32Classic.cs: new themable paramaters
33488         * DataGridBoolColumn.cs: paint check box, get data, fixes
33489         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
33490         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
33491         * DataGridColumnStyle.cs: fixes
33492         * Theme.cs: new themable paramaters
33493                 
33494 2005-05-26  Peter Bartok  <pbartok@novell.com>
33495
33496         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
33497
33498 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33499         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
33500
33501 2005-05-24  Peter Bartok  <pbartok@novell.com>
33502
33503         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
33504           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
33505           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
33506           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
33507           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
33508           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
33509           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
33510           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
33511           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
33512           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
33513           missing attributes, etc
33514         * DataGridPreferredColumnWidthTypeConverter.cs: Added
33515
33516 2005-05-24  Peter Bartok  <pbartok@novell.com>
33517
33518         * Help.cs: Added, implemented trivial functions, throws up MessageBox
33519           when user tries to get help
33520         * DataObject.cs, DataFormats.cs, LinkArea.cs,
33521           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
33522           to suppress warnings
33523         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
33524           avoid unreachable code warning
33525
33526 2005-05-20  Peter Bartok  <pbartok@novell.com>
33527
33528         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
33529
33530 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33531
33532         * DataGridTextBoxColumn.cs: Basic painting methods
33533         * DataGridTableStyle.cs: Set table style in the column
33534         * ThemeWin32Classic.cs: Use Theme for colors
33535         * DataGridDrawingLogic.cs: Implement more drawing
33536         * DataGrid.cs: drawing, theming, enhacements, fixes
33537         * DataGridColumnStyle.cs: fixes, drawing
33538         * Theme.cs: theming for Datagrid
33539
33540 2005-05-20  Peter Bartok  <pbartok@novell.com>
33541
33542         * Cursor.cs: Implemented GetObjectData() method
33543
33544 2005-05-20  Peter Bartok  <pbartok@novell.com>
33545
33546         * Cursors.cs: Added setting of cursor name
33547         * Cursor.cs:
33548           - Implemented constructors
33549           - Implemented Draw and DrawStretched
33550           - Implemented Current property
33551           - Implemented == and != operators
33552           - Implemented Dispose()
33553           - Implemented ToString
33554           - Added missing attributes
33555         * XplatUIX11.cs:
33556           - Added missing reset for OverrideCursor when DoEvents is called
33557           - Fixed creation of cursor, logic was wrong
33558         * XplatUIWin32.cs:
33559           - Added missing reset for OverrideCursor when DoEvents is called
33560           - Fixed creation of cursor, bit arrays were swapped
33561         * Clipboard.cs: Removed obsolete MonoTODO attribute
33562
33563 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33564
33565         * ComboBox.cs: fixes OnSelectedItemChanged
33566         * ControlBindingsCollection.cs: fixes item range check
33567
33568 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33569
33570         * UpDownBase.cs:
33571                 - Calc preferred height properly
33572                 - Implement missing properties
33573                 
33574         * NumericUpDown.cs: Implement missing events
33575
33576 2005-05-19  Jackson Harper  <jackson@ximian.com>
33577
33578         * TabControl.cs: New method that resizes the tab pages before
33579         redrawing them. This as needed as the control is double buffered
33580         and sizing will not be recalculated unless ResizeTabPages is
33581         called.
33582         * TabPage.cs: Set base.Text instead of Text in the constructor so
33583         that UpdateOwner does not get called. Use the new Redraw method of
33584         TabControl instead of Refresh so the sizing is recalculated.
33585         * ThemeWin32Classic.cs: Draw the text for button tabs.
33586
33587 2005-05-19  Jackson Harper  <jackson@ximian.com>
33588
33589         * Control.cs: Paint control background images. Fix typo where
33590         PaintControlBackground was not getting called correctly.
33591
33592 2005-05-19  Peter Bartok  <pbartok@novell.com>
33593
33594         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
33595           I can investigate, apparently I broke FileDialog
33596
33597 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
33598
33599         * AxHost.cs: Some simple properties.
33600         * Control.cs: window must be accessible after ctor.
33601         * Form.cs: Added TransparencyKey property.
33602         * TextBoxBase.cs: Implemented Clear. Text property can be null.
33603         * XplatUIWin32.cs: SetBorderStyle implemented.
33604
33605 2005-05-18  Peter Bartok  <pbartok@novell.com>
33606
33607         * DataObject.cs: Entries are not global but particular to the
33608           DataObject, now it behaves that way
33609         * XplatUIWin32.cs: Implemented Clipboard methods
33610         * Clipboard.cs: Implemented
33611         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
33612         * XplatUIOSX.cs: Updated to final clipboard prototypes
33613         * XplatUIX11.cs: Implemented Clipboard methods
33614         * XplatUIDriver.cs: Updated to final clipboard prototypes
33615         * XplatUIStructs.cs:
33616           - Added BITMAPINFOHEADER struct
33617           - Added ClipboardFormats enum
33618         * X11Structs.cs:
33619           - Added ClipboardStruct
33620           - Added Atom enum items for clipboard types
33621           - Fixed atom types for Selection event structures
33622         * DataFormats.cs:
33623           - Added internal properties and methods for drivers to enumerate
33624             all known formats
33625           - Switched initialization method to allow drivers to assign their
33626             own IDs even for the MS predefined clipboard IDs
33627         * XplatUI.cs: Updated to final clipboard interface
33628
33629 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33630         * PropertyGridView.cs: Fixed compiler warnings.
33631
33632 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33633         * PropertyGrid.cs: Added some event calls
33634         * PropertyGridView.cs: Change drawing code to use double buffering
33635         * PropertyGridTextBox.cs: Changed Text property name
33636         * GridItem.cs: Added Bounds property.
33637         * GridEntry.cs: Added Bounds property.
33638
33639 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
33640
33641         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
33642         since GetType() may not return the correct type if the object is
33643         a remoting proxy.
33644
33645 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
33646
33647         * TreeNodeCollection.cs: fixes get/set item ranges
33648         
33649 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
33650
33651         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
33652                 
33653 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
33654
33655         * ComboBox.cs: Fix item range comparation
33656         * ListView.cs: Fix item range comparation
33657
33658 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
33659
33660         * FontDialog.cs:
33661           - Clear example panel when OnPaint is called
33662           - Better solution for displaying the example panel text
33663           - Select default indexes in the ListBoxes
33664
33665 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
33666
33667         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
33668
33669 2005-05-11  Peter Bartok  <pbartok@novell.com>
33670
33671         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
33672         * SelectionRangeConverter.cs: Implemented
33673         * PropertyGrid.cs: Fixed attribute value
33674         * Control.cs:
33675           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
33676           - Added Sebastien Pouliot's CAS Stack Propagation fixes
33677         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
33678           that's common to all drivers. First methods to go there are
33679           Sebastien Pouliot's CAS Stack Propagation helper methods
33680         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
33681           Sebastien Pouliot for CAS Stack Propagation
33682
33683 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
33684
33685         * OSXStructs.cs:
33686           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
33687
33688 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
33689
33690         * DataGridTextBoxColumn.cs: fixed some members
33691         * GridColumnStylesCollection.cs: indexed column is case insensitive
33692         * DataGridTableStyle.cs: fixes
33693         * ThemeWin32Classic.cs: add new theme parameter
33694         * Theme.cs: add new theme parameter
33695         * DataGridDrawingLogic.cs: Datagrid's drawing logic
33696         * DataGrid.cs: fixes, new internal properties, etc.
33697         * DataGridColumnStyle.cs: allows to set grid value
33698         *
33699
33700 2005-05-10  Peter Bartok  <pbartok@novell.com>
33701
33702         * AccessibleObject.cs:
33703           - Removed MonoTODO attribute on help, method is correct
33704           - Fixed Bounds property
33705         * AxHost.cs: Moved MonoTODO
33706         * ButtonBase.cs: Now setting AccessibleObject properties
33707         * RadioButton.cs: Setting proper AccessibleObject role
33708         * CheckBox.cs: Setting proper AccessibleObject role
33709         * ControlBindingsCollection.cs: Added properties, methods and attributes
33710         * DataFormats.cs: Fixed awkward internal API, and changed to enable
33711           userdefined DataFormats.Format items as well
33712         * ListControl.cs: Removed data_member from the public eye
33713         * OpenFileDialog.cs:
33714           - Made class sealed
33715           - Added missing attributes
33716         * SaveFileDialog.cs: Added missing attributes
33717         * ImageListStreamer.cs: Fixed code that caused warnings
33718         * LinkLabel.cs: Removed unreachable code
33719         * TreeView.cs: Fixed code that caused warnings
33720         * PropertyGridView.cs: Fixed code that caused warnings
33721         * GridColumnStylesCollection.cs: Added missing attributes
33722         * GridTableStylesCollection: Added missing attribute
33723         * PropertyManager: Added .ctor
33724         * SecurityIDType: Added
33725         * DataObject.cs: Implemented class
33726         * LinkArea.cs: Added missing attribute
33727
33728 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
33729
33730         * RadioButton.cs: call base method to allow to fire OnClick event
33731         * UpDownBase.cs: OnMouseUp call base method
33732         * CheckedListBox.cs: call base method before returning
33733         * TrackBar.cs: call base method before returning
33734         
33735
33736 2005-05-10  Peter Bartok  <pbartok@novell.com>
33737
33738         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
33739           for messages
33740
33741 2005-05-10  Peter Bartok  <pbartok@novell.com>
33742
33743         * DataFormats.cs: Implemented
33744         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
33745           XplatUIX11.cs: Added Clipboard APIs
33746         * XplatUIWin32.cs: Implemented Clipboard APIs
33747         * FolderBrowserDialog.cs: Added missing event, attributes
33748
33749 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
33750
33751         * CheckBox.cs: call base method to allow to fire OnClick event
33752
33753 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
33754
33755         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
33756
33757 2005-05-06  Peter Bartok  <pbartok@novell.com>
33758
33759         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
33760         * Screen.cs: Implemented
33761         * HelpNavigator.cs: Added
33762         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
33763           property
33764         * HelpProvider.cs: Implemented all we can do until we have a CHM
33765           help library (which means that "What's This" does work now)
33766
33767 2005-05-06  Jackson Harper  <jackson@ximian.com>
33768
33769         * XplatUIX11.cs: Fix waking up the main loop.
33770                 
33771 2005-05-05  Peter Bartok  <pbartok@novell.com>
33772
33773         * XplatUI.cs: Updated revision
33774         * Form.cs: Removed enless loop
33775         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
33776         * Label.cs (OnPaint): Added call to base.OnPaint()
33777         * ToolTip.cs: Made ToolTipWindow reusable for other controls
33778         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
33779         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
33780         * AxHost.cs: Added
33781         * ButtonBase.cs: Moved base.OnPaint() call to end of method
33782         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
33783           to ToolTip.ToolTipWindow for drawing and size methods; this allows
33784           reuse of ToolTipWindow by other controls
33785         * SizeGrip.cs: Moved base.OnPaint() call to end of method
33786         * XplatUIX11.cs: Now clipping drawing area (experimental)
33787         * PictureBox.cs: Moved base.OnPaint() call to end of method
33788         * Theme.cs: Fixed ToolTip abstracts to match new format
33789         * ErrorProvider.cs: Implemented
33790
33791 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
33792
33793         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
33794         * LinkLabel.cs:
33795                 - Adds cursors
33796                 - Handles focus
33797                 - Implements LinkBehavior
33798                 - Fixes many issues
33799
33800 2005-05-03  Jackson Harper  <jackson@ximian.com>
33801
33802         * ListView.cs: Calculate the scrollbar positioning on resize and
33803         paint, so they get put in the correct place.
33804
33805 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
33806
33807         * ColorDialogs.cs: The small color panels are now handled by
33808           SmallColorControl. This fixes drawing of the focus rectangle
33809           and adds a 3D border.
33810
33811 2005-05-03  Peter Bartok  <pbartok@novell.com>
33812
33813         * Control.cs: Modified version of Jonathan Chamber's fix for
33814           double-buffering
33815
33816 2005-05-03  Jackson Harper  <jackson@ximian.com>
33817
33818         * ListView.cs: Remove redraw variable. Control now handles whether
33819         or not a redraw needs to be done, and will only raise the paint
33820         event if redrawing is needed.
33821
33822 2005-05-03  Jackson Harper  <jackson@ximian.com>
33823
33824         * Splitter.cs: No decorations for the splitter form. Cache the
33825         hatch brush.
33826
33827 2005-05-03  Jackson Harper  <jackson@ximian.com>
33828
33829         * TreeView.cs: Use dashed lines to connect nodes. Use the
33830         ControlPaint method for drawing the focus rect instead of doing
33831         that in treeview.
33832
33833 2005-05-02  Peter Bartok  <pbartok@novell.com>
33834
33835         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
33836
33837 2005-04-29  Jackson Harper  <jackson@ximian.com>
33838
33839         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
33840         entire image buffer. Just clear the clipping rectangle.
33841
33842 2005-04-29  Jackson Harper  <jackson@ximian.com>
33843
33844         * ThemeWin32Classic.cs: Don't draw list view items that are
33845         outside the clipping rectangle.
33846
33847 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
33848
33849         * ListBox.cs: added horizontal item scroll
33850
33851 2005-04-29  Jackson Harper  <jackson@ximian.com>
33852
33853         * ThemeWin32Classic.cs: Remove some old debug code that was
33854         causing flicker with the new double buffering code.
33855
33856 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
33857
33858         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
33859         behave like combobox and comboboxlist (still not sure if this is
33860         correct though).
33861
33862 2005-04-28  Jackson Harper  <jackson@ximian.com>
33863
33864         * ThemeWin32Classic.cs: Don't fill the middle of progress
33865         bars. This fills areas outside of the clip bounds that don't need
33866         to be filled.
33867
33868 2005-04-28  Jackson Harper  <jackson@ximian.com>
33869
33870         * Control.cs: Don't expose functionality to touch the image buffers.
33871         * ProgressBar.cs:
33872         * ListView.cs: We do not need to (and no longer can) manipulate
33873         the image buffers directly. All of this is handled by Control.
33874
33875 2005-04-28  Peter Bartok  <pbartok@novell.com>
33876
33877         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
33878           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
33879           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
33880
33881 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
33882
33883         * Combobox:
33884                 - Adjust control's height for non-simple comboboxes (bug fix)
33885                 - Remove dead code
33886         * MenuAPI.cs: remove unused var
33887         * ScrollBar.cs: remove unsed var
33888                  
33889         * ListBox.cs: unselect items when clearing
33890
33891 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
33892
33893         * ListControl.cs: honors OnPositionChanged and default Selected Item
33894         * ListBox.cs: unselect items when clearing
33895
33896 2005-04-27  Jackson Harper  <jackson@ximian.com>
33897
33898         * X11Keyboard.cs: Initialize a default keyboard and give a warning
33899         if a "correct" keyboard is not found. This will make us not crash,
33900         but might give some users bad keyboard layouts...seems to be the
33901         same thing rewind does.
33902
33903 2005-04-27  Jackson Harper  <jackson@ximian.com>
33904
33905         * BindingManagerBase.cs: Attach the current/position changed
33906         handlers to their respective events.
33907
33908 2005-04-27  Jackson Harper  <jackson@ximian.com>
33909
33910         * Control.cs: Make sure that the first WM_PAINT does a full draw,
33911         not just a blit.
33912         * ThemeWin32Classic.cs: Don't fill the background for picture
33913         boxes. This could overright user drawing.
33914         * ComboBox.cs: Just fill the clipping rect not the entire client
33915         rect when drawing the background. This prevents pieces of the
33916         image buffer from getting overwritten and is theoretically faster.
33917
33918 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
33919
33920         * ComboBox.cs: Databinding support fixes, fire missing events
33921         * ListControl.cs: implement missing methods and properties, fixes
33922         * ThemeWin32Classic.cs: Databiding support on Drawing
33923         * CheckedListBox.cs: Databinding support fixes, fire missing events
33924         * ListBox.cs: Databinding support fixes, fire missing events
33925         
33926 2005-04-25  Peter Bartok  <pbartok@novell.com>
33927
33928         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
33929
33930 2005-04-25  Jackson Harper  <jackson@ximian.com>
33931
33932         * TreeView.cs: Use the horizontal scrollbars height not width when
33933         determining how much of the client area is available.
33934
33935 2005-04-25  Jackson Harper  <jackson@ximian.com>
33936
33937         * Control.cs: Double buffering is handled differently now. As per
33938         the spec, the extra buffer is created in the WM_PAINT message and
33939         passed down to the control's drawing code.
33940         * GroupBox.cs:
33941         * Label.cs:
33942         * CheckBox.cs:
33943         * ProgressBar.cs:
33944         * RadioButton.cs:
33945         * ColorDialog.cs:
33946         * ComboBox.cs:
33947         * PropertyGridView.cs:
33948         * UpDownBase.cs:
33949         * MessageBox.cs:
33950         * MenuAPI.cs:
33951         * ListView.cs:
33952         * ButtonBase.cs:
33953         * SizeGrip.cs:
33954         * ScrollBar.cs:
33955         * ListBox.cs:
33956         * TrackBar.cs:
33957         * ToolBar.cs:
33958         * PictureBox.cs:
33959         * DateTimePicker.cs:
33960         * StatusBar.cs:
33961         * TreeView.cs: Update to new double buffering system.
33962         * MonthCalendar.cs: Uncomment block, as Capture is now
33963         working. Update to new double buffering
33964         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
33965         * PaintEventArgs.cs: New internal method allows us to set the
33966         graphics object. This is used for double buffering.
33967         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
33968         rectangle. The internal paint_area var has been removed from
33969         StatusBar. The clipping rect should be used instead.
33970         * Theme.cs: Give the PictureBox drawing method a clipping rect.
33971         * TabPage.cs: The RefreshTabs method was removed, so just call the
33972         tab controls Refresh method now.
33973         * TabControl.cs: Update to new double buffering. Make sure the
33974         handle is created before sizing the tab pages, otherwise we will
33975         get stuck in a loop.
33976
33977 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
33978
33979         * LinkLabel.cs: Fix typo, bug #74719; patch
33980           from Borja Sanchez Zamorano
33981
33982 2005-04-22  Jackson Harper  <jackson@ximian.com>
33983
33984         * TreeNode.cs: Implement Handle stuff.
33985         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
33986
33987 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
33988
33989         * DataGridTextBoxColumn.cs: call base constructors, fixes
33990         * GridColumnStylesCollection.cs: missing events, methods, and functionality
33991         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
33992         * DataGridTableStyle.cs: implements create default column styles
33993         * DataGridBoolColumn.cs: which types can handle
33994         * DataGrid.cs: missing methods, fixes, new functionality
33995         * DataGridColumnStyle.cs: fixes
33996
33997 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
33998         * FolderBrowserDialog.cs:
33999         - Use a thread to fill the TreeView
34000         - Adjusted some sizes
34001
34002 2005-04-19  Peter Bartok  <pbartok@novell.com>
34003
34004         * LinkLabel.cs: (Re-)create the pieces when setting the Text
34005           property. Fixes #74360.
34006
34007 2005-04-19  Jackson Harper  <jackson@ximian.com>
34008
34009         * XEventQueue.cs: Lock when getting the lockqueue size.
34010         * PictureBox.cs: Call base OnPaint
34011         
34012 2005-04-19  Peter Bartok  <pbartok@novell.com>
34013
34014         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
34015           messages were no longer being processed (this broke BeginInvoke)
34016
34017           
34018 2005-04-18  Jackson Harper  <jackson@ximian.com>
34019
34020         * TreeView.cs: buglet that caused node images to get drawn
34021         regardless of whether or not they were in the clipping rectangle.
34022
34023 2005-04-18  Jackson Harper  <jackson@ximian.com>
34024
34025         * CurrencyManager.cs: There are four rules for GetItemProperties:
34026         - If the type is an array use the element type of the array
34027         - If the type is a typed list, use the type
34028         - If the list contains an Item property that is not an object, use
34029         that property
34030         - use the first element of the list if there are any elements in
34031         the list.
34032         
34033 2005-04-17  Jackson Harper  <jackson@ximian.oom>
34034
34035         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
34036         click. This handles offsets for scrolling properly and reduces
34037         memory. Also fixed GetNode to not offset now that TopNode works
34038         properly.
34039         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
34040         
34041 2005-04-17  Jackson Harper  <jackson@ximian.com>
34042
34043         * CursorConverter.cs: Initial implementation.
34044
34045 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
34046
34047         * ListControl.cs: work towards complex data binding support on ListControl
34048         * CurrencyManager.cs: work towards complex data binding support on ListControl
34049         * ListBox.cs: work towards complex data binding support on ListControl
34050
34051
34052 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
34053
34054         * GridTableStylesCollection.cs: fixes name and constructor
34055         * DataGridTableStyle.cs: fixes
34056         * DataGridBoolColumn.cs: fixes names and constructors
34057         * DataGrid.cs: define methods and properties. Some init implementations
34058         * DataGridCell.cs: define methods and properties. Some init implementations
34059         * GridTablesFactory.cs: Define methods and properties
34060
34061 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
34062
34063         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
34064         graphics port changes.  We still want the coordinates in global screen
34065         coordinates.
34066
34067 2005-04-14  Jackson Harper  <jackson@ximian.com>
34068
34069         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
34070         check plus minus or checkbox clicks unless those features are enabled.
34071
34072 2005-04-14  Jackson Harper  <jackson@ximian.com>
34073
34074         * TreeView.cs: Add methods for setting the top and bottom visible
34075         nodes. TreeNode::EnsureVisible uses these methods.
34076         * TreeNode.cs: Implement EnsureVisible
34077
34078 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
34079
34080         * Form.cs: Pospone menu assignation if the window has not been created yet
34081         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
34082         size and position
34083
34084 2005-04-12  Jackson Harper  <jackson@ximian.com>
34085
34086         * TreeView.cs: Set the TopNode properly when scrolling
34087         occurs. This has the added benifit of reducing the amount of
34088         walking that needs to be done when drawing. Also removed an old
34089         misleading TODO.
34090         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
34091         
34092 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
34093
34094         * Timer.cs: fixes interval setting when the timer is already enabled
34095         
34096 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
34097
34098         * FolderBrowserDialog.cs: First approach
34099
34100 2005-04-09  Peter Bartok  <pbartok@novell.com>
34101
34102         * FolderBrowserDialog: Added
34103
34104 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
34105
34106         * LinkLabel.cs: move drawing code into the theme
34107         * ThemeWin32Classic.cs: drawing code and painting background bugfix
34108         * Theme.cs: define DrawLinkLabel method
34109
34110 2005-04-05  Jackson Harper  <jackson@ximian.com>
34111
34112         * BindingContext.cs: Use weak references so these bad actors don't
34113         stay alive longer then they need to.
34114
34115 2005-04-05  Jackson Harper  <jackson@ximian.com>
34116
34117         * ListControl.cs: Basic implementation of complex databinding.
34118         * ComboBox.cs:
34119         * ListBox.cs: Add calls to ListControl databinding methods.
34120
34121 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
34122
34123         * FileDialog.cs:
34124           - Don't change PopupButtonState to Normal when the
34125             PopupButton gets pressed several times.
34126           - Renamed ButtonPanel to PopupButtonPanel
34127
34128 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
34129
34130         * ColorDialog.cs: Use cached objects instead of creating them
34131         * LinkLabel.cs: Use cached objects instead of creating them
34132         * Splitter.cs: Use cached objects instead of creating them
34133         * FontDialog.cs: Use cached objects instead of creating them
34134         * PropertyGridView.cs: Use cached objects instead of creating them
34135         * MessageBox.cs: Use cached objects instead of creating them
34136         * FileDialog.cs: Use cached objects instead of creating them
34137         * ThemeWin32Classic.cs: Use cached objects instead of creating them
34138         * TreeView.cs: Use cached objects instead of creating them
34139         
34140 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
34141
34142         * Control.cs: use Equals to compare the font since no == op
34143         * ScrollBar.cs: use Equals to compare the font since no == op
34144
34145 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
34146
34147         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
34148
34149 2005-04-01  Jackson Harper  <jackson@ximian.com>
34150
34151         * Binding.cs: Implement IsBinding.
34152         * BindingManagerBase.cs:
34153         * PropertyManager.cs:
34154         * CurrencyManager.cs: Add IsSuspended property.
34155
34156 2005-04-01  Jackson Harper  <jackson@ximian.com>
34157
34158         * Binding.cs: Had some IsAssignableFrom calls backwards.
34159
34160 2005-04-01  Jackson Harper  <jackson@ximian.com>
34161
34162         * Binding.cs: Handle null data members when pulling data.
34163         * PropertyManager.cs: Handle the data member being a property that
34164         does not exist.
34165
34166 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
34167
34168         * DataGridTextBoxColumn.cs: fixes signature
34169         * DataGrid.cs: calls right constructor
34170
34171 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
34172
34173         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
34174         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
34175         * GridTableStylesCollection.cs: implements GridTableStylesCollection
34176         * DataGridTableStyle.cs: implements DataGridTableStyle
34177         * DataGridBoolColumn.cs: implements DataGridBoolColumn
34178         * DataGridTextBox.cs: implements DataGridTextBox
34179         * DataGridColumnStyle.cs: implements DataGridColumnStyle
34180
34181 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
34182
34183         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
34184
34185 2005-03-29  Peter Bartok  <pbartok@novell.com>
34186
34187         * Application.cs:
34188           - Properly implemented CompanyName property
34189           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
34190             returns a path that includes CompanyName, ProductName and
34191             Version (fixes bug #70330)
34192
34193 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
34194
34195         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
34196           fixes bug #72588.
34197
34198 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
34199
34200         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
34201         
34202           - Added ReadOnly CheckBox
34203           - Further refactoring: moved some code from Open-/SaveFileDialog
34204             to FileDialog
34205
34206 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
34207
34208         * OpenFileDialog.cs: Fixed CheckFileExists
34209         * FileDialog.cs:
34210           Moved FileView and DirComboBox outside FileDialog class.
34211           They can now be used outside FileDialog
34212
34213 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
34214
34215         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
34216         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
34217
34218 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
34219
34220         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34221           - Added missing CreatePrompt property in SaveDialog
34222           - Overall SaveDialog handling should be better now
34223           - Added non standard ShowHiddenFiles property
34224           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
34225           - Added InitialDirectory and RestoreDirectory support
34226
34227 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
34228
34229         * FileDialog.cs: Made dirComboBox usable
34230
34231 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
34232
34233         * FileDialog.cs: Added Filter support (case sensitiv)
34234
34235 2005-03-24  Jackson Harper  <jackson@ximian.com>
34236
34237         * TabControl.cs: Need a couple more pixels for the lines.
34238
34239 2005-03-23  Jackson Harper  <jackson@ximian.com>
34240
34241         * TabControl.cs: Give the tab page focus when it is selected.
34242
34243 2005-03-23  Jackson Harper  <jackson@ximian.com>
34244
34245         * TabControl.cs: Account for the drawing of tabs borders when
34246         invalidating. If the slider was clicked dont do click detection on
34247         the tabs.
34248
34249 2005-03-23  Jackson Harper  <jackson@ximian.com>
34250
34251         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
34252
34253 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
34254
34255         * CategoryGridEntry.cs: Added
34256         * GridItem.cs: Added helper properties
34257         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
34258         * GridEntry.cs: Updated code for collection
34259         * PropertyGrid.cs: Cleaned up some formatting
34260         * PropertyGridView.cs: Added drop down functionality for enums.
34261         * GridItemCollection.cs: Added enumerator logic
34262         * PropertyGridEntry.cs: Added
34263
34264 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
34265
34266         * FileDialog.cs:
34267           - Removed unnecessary commented code
34268           - Fixed handling for entering the filename manually in the combobox
34269
34270 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
34271
34272         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
34273
34274 2005-03-18  Peter Bartok  <pbartok@novell.com>
34275
34276         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
34277           them being touching the border
34278
34279 2005-03-18  Peter Bartok  <pbartok@novell.com>
34280
34281         * TextControl.cs: Quick hack to center text better
34282
34283 2005-03-18  Peter Bartok  <pbartok@novell.com>
34284
34285         * ControlPaint.cs:
34286           - Don't throw NotImplemented exceptions, just print a notice once
34287             instead (requested by Miguel). This makes running existing SWF
34288             apps a bit easier
34289         * Control.cs:
34290           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
34291           - Added context menu trigger on right click
34292         * Panel.cs: Trigger invalidate on resize
34293         * StatusBar.cs:
34294           - Removed old double-buffer drawing
34295           - Added ResizeRedraw style to force proper update of statusbar
34296         * ListView.cs:
34297           - Removed debug output
34298         * ThemeWin32Classic.cs:
34299           - Fixed drawing of status bar, now draws Text property if there
34300             are no defined panels
34301
34302 2005-03-18  Jackson Harper  <jackson@ximian.com>
34303
34304         * ImageList.cs: When the image stream is set pull all the images
34305         from it.
34306         * ImageListStreamer.cs: Implement reading image list streams.
34307
34308 2005-03-18  Peter Bartok  <pbartok@novell.com>
34309
34310         * ThemeWin32Classic.cs (DrawPictureBox):
34311           - Fixed calculations for centered drawing
34312           - Fixed drawing for normal mode, not scaling the image on normal
34313
34314 2005-03-18  Peter Bartok  <pbartok@novell.com>
34315
34316         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
34317           textbox
34318         * FileDialog.cs:
34319           - Made Open/Save button the accept button for FileDialog
34320           - Tied the cancel button to the IButtonControl cancel button
34321           - Save/Open now properly builds the pathname
34322           - Now handles user-entered text
34323           - Preventing crash on right-click if no item is selected
34324           - Fixed Text property, now uses contents of textbox
34325           - Fixed SelectedText property, now just returns the text part that
34326             is selected in the text box
34327
34328 2005-03-18  Jackson Harper  <jackson@ximian.com>
34329
34330         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
34331         rect, make sure to de-adjust the interior rect after drawing the
34332         tab text.
34333
34334 2005-03-18  Peter Bartok  <pbartok@novell.com>
34335
34336         * MenuAPI.cs: Remove menu *before* executing selected action to
34337           prevent the menu from 'hanging around'
34338           
34339 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
34340
34341         * XplatUIOSX.cs: Implemented WorkingArea property
34342
34343 2005-03-17  Peter Bartok  <pbartok@novell.com>
34344
34345         * XplatUIX11.cs: Fixed menu coord calculations
34346         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
34347           for calculating offsets
34348
34349 2005-03-17  Peter Bartok  <pbartok@novell.com>
34350
34351         * Hwnd.cs: Do not consider menu presence for default client
34352           rectangle location/size
34353         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
34354           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
34355           translation functions
34356         * FileDialog.cs: Fixed (what I presume is a) typo
34357
34358 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
34359
34360         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
34361           X access (avoids X-Async errors)
34362
34363 2005-03-16  Jackson Harper  <jackson@ximian.com>
34364
34365         * TabControl.cs: Raise the SelectedIndexChanged event.
34366
34367 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
34368
34369         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34370           - Removed vertical ToolBar and replaced it with a custom panel
34371             (desktop and home button already work)
34372           - Added Help button (some controls get resized or relocated then)
34373           - Draw correct text depending on Open or Save.
34374           - Fixed some typos...
34375
34376 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
34377
34378         * ScrollBar.cs:
34379           - Only change Maximum and Minimum when need it (bug fix)
34380
34381 2005-03-15  Peter Bartok  <pbartok@novell.com>
34382
34383         * Form.cs: Use Handle for icon, to trigger creation if
34384           the window does not yet exist
34385         * Control.cs:
34386           - CanSelect: Slight performance improvement
34387           - Focus(): Preventing possible recursion
34388           - Invalidate(): Removed ControlStyle based clear flag setting
34389           - WM_PAINT: fixed logic for calling OnPaintBackground
34390           - WM_ERASEBKGND: Fixed logic, added call to new driver method
34391             EraseWindowBackground if the control doesn't paint background
34392         * XplatUIWin32.cs:
34393           - Moved EraseWindowBackground() method to internal methods
34394           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
34395             is sent via SendMessage on BeginPaint call on Win32
34396         * XplatUIX11.cs:
34397           - Added EraseWindowBackground() method
34398           - No longer sends WM_ERASEBKGND on .Expose, but on call to
34399             PaintEventStart, which more closely matches Win32 behaviour
34400           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
34401           - Fixed SetFocus() to properly deal with client and whole windows
34402         * Hwnd.cs: Added ErasePending property
34403         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
34404         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
34405
34406 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
34407
34408         * XplatUIOSX.cs:
34409           - Fix hard loop when timers exist.
34410           - Fix bugs with middle and right click for 3 button mice.
34411
34412 2005-03-11  Peter Bartok  <pbartok@novell.com>
34413
34414         * XplatUIX11.cs:
34415           - get_WorkingArea: Need to call X directly, GetWindowPos only
34416             returns cached data now
34417           - Added sanity check to GetWindowPos hwnd usage
34418
34419 2005-03-11  Jackson Harper  <jackson@ximian.com>
34420
34421         * BindingManagerBase.cs: This method isn't used anymore as
34422         PullData now updates the data in the control.
34423
34424 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
34425
34426         * Form.cs: fixes menu drawing on X11
34427         * MenuAPI.cs:  fixes menu drawing on X11
34428
34429 2005-03-11  Peter Bartok  <pbartok@novell.com>
34430
34431         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
34432           from Jonathan Gilbert; should fix bug #73606
34433         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
34434           in Screen coordinates. Thanks, Jordi.
34435         * Form.cs: Added missing attribute
34436
34437 2005-03-11  Peter Bartok  <pbartok@novell.com>
34438
34439         * Form.cs:
34440           - Rudimentary Mdi support
34441           - Removed outdated FormParent code
34442           - Implemented lots of missing properties and methods, still missing
34443             transparency support
34444           - Added missing attributes
34445           - Implemented support for MaximumBounds
34446           - Added firing of various events
34447         * XplatUI.cs: Added SetIcon() method
34448         * XplatUIDriver.cs: Added SetIcon() abstract
34449         * XplatUIOSX.cs: Stubbed out SetIcon() method
34450         * XplatUIX11.cs:
34451           - Implemented SetIcon() support
34452           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
34453           - Switched to unix line endings
34454         * XplatUIWin32.cs:
34455           - Made POINT internal so for can access it as part of MINMAX
34456           - Implemented SetIcon() support
34457           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
34458             native Mdi support again, might have to go managed)
34459         * Control.cs: Now fires the StyleChanged event
34460         * MdiClient.cs: Added; still mostly empty
34461
34462 2005-03-10  Peter Bartok  <pbartok@novell.com>
34463
34464         * SaveFileDialog.cs: Added emtpy file
34465
34466 2005-03-08  Peter Bartok  <pbartok@novell.com>
34467
34468         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
34469           in turn triggers OnCreateContro) when creating a handle for the
34470           first time.
34471         * TextControl.cs: Fixed endless loop in certain cases when
34472           replacing the current selection
34473
34474 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
34475
34476         * ScrollBar.cs:
34477           - Honors NewValue changes in Scroll events allowing apps to change it
34478           - Adds First and Last Scroll events
34479           - Fixes Thumb events
34480
34481 2005-03-07  Peter Bartok  <pbartok@novell.com>
34482
34483         * Hwnd.cs: Added DefaultClientRectangle property
34484         * XplatUI.cs: Now using the X11 driver Where() method, which provides
34485           more detailed debug information
34486         * XplatUIX11.cs:
34487           - Fixed size-change feedback loop, where we would pull an old size
34488             off the queue and mistakenly change our window's size to an
34489             earlier value
34490           - Now compressing ConfigureNotify events, to reduce looping and
34491             redraw issues
34492         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
34493           is called
34494
34495 2005-03-07  Jackson Harper  <jackson@ximian.com>
34496
34497         * Binding.cs: Push data pushes from data -> property. Check if the
34498         property is readonly when attempting to set it.
34499
34500 2005-03-07  Jackson Harper  <jackson@ximian.com>
34501
34502         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
34503         instead of IsSubclassOf. Pulling data now sets the value on the
34504         control.
34505         * PropertyManager.cs:
34506         * CurrencyManager.cs: Just need to pull data when updating now,
34507         because PullData will set the value on the control.
34508
34509 2005-03-04  Jackson Harper  <jackson@ximian.com>
34510
34511         * Binding.cs: Implement data type parsing and converting on pulled
34512         data. TODO: Are there more ways the data can be converted?
34513
34514 2005-03-04  Jackson Harper  <jackson@ximian.com>
34515
34516         * Binding.cs: Support <Property>IsNull checks. Also bind to the
34517         controls Validating method so we can repull the data when the
34518         control loses focus.
34519
34520 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
34521
34522         * ColumnHeader.cs:
34523           - Fixes null string format
34524           
34525         * ListView.cs:
34526           - Adds enum type checks
34527           - Fixes redrawing and recalc need after changing some properties
34528           - Fixes on focus_item set after the event
34529           - Fixes adding columns after the control has been created
34530           
34531         * ThemeWin32Classic.cs:
34532           - Fixes CheckBox focus rectangle
34533           - Fixes ColumnHeader drawing
34534
34535
34536 2005-03-03  Jackson Harper  <jackson@ximian.com>
34537
34538         * Binding.cs: Bind to <Property>Changed events so we can detect
34539         when properties are changed and update the data.
34540
34541 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
34542
34543         * ImageList.cs:
34544           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
34545           - Fixes ImageList constructor with ImageList container
34546           - Fixes image scaling (wrong parameters at DrawImage)
34547
34548 2005-02-02  Jackson Harper  <jackson@ximian.com>
34549
34550         * Binding.cs: Make property searches case-insensitive. Eliminate
34551         some duplicated code.
34552
34553 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
34554
34555         * ComboBox.cs:
34556                 - Handle focus event
34557                 - Fix scrollbar events
34558                 - Discard highlighted item if remove it
34559                 - Fixes SelectedItem with strings
34560
34561 2005-03-01  Peter Bartok  <pbartok@novell.com>
34562
34563         * Control.cs:
34564           - Fixed Visible property, now follows (once again) parent chain
34565             to return false if any control in the chain is visible=false
34566           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
34567           - Fixed several places where is_visible instead of Visible was used
34568           - Implemented FIXME related to focus selection when setting focused
34569             control to be invisible
34570
34571         * XplatUIWin32.cs: Now using proper method to find out if window is
34572           visible. Thanks to Jordi for pointing it out
34573
34574 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
34575
34576         * ComboBox.cs: show/hide scrollbar instead of creating it
34577
34578 2005-02-27  Jackson Harper  <jackson@ximian.com>
34579
34580         * CurrencyManager.cs: Add PositionChanged stuff.
34581
34582 2005-02-27  Peter Bartok  <pbartok@novell.com>
34583
34584         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
34585         * XplatUIOSX.cs: Added GetMenuOrigin() stub
34586         * XplatUIWin32.cs: Implemented GetMenuOrigin()
34587         * XplatUIX11.cs:
34588           - Implemented GetMenuDC()
34589           - Implemented GetMenuOrigin()
34590           - Implemented ReleaseMenuDC()
34591           - Implemented generation of WM_NCPAINT message
34592           - Implemented generation and handling of WM_NCCALCSIZE message
34593         * Form.cs: Added debug helper message for Jordi's menu work
34594         * Hwnd.cs:
34595           - Modified ClientRect property; added setter, fixed getter to handle
34596             setting of ClientRect
34597           - Added MenuOrigin property
34598
34599 2005-02-26  Peter Bartok  <pbartok@novell.com>
34600
34601         * XplatUIX11.cs:
34602           - Destroys the caret if a window that's being destroyed contains it
34603           - Ignores expose events coming from the X11 queue for windows that
34604             already are destroyed
34605           - Now uses the proper variable for handling DestroyNotify, before we
34606             marked the wrong window as destroyed
34607           - Improved/added some debug output
34608
34609 2005-02-26  Peter Bartok  <pbartok@novell.com>
34610
34611         * X11Keyboard.cs: Fixes to work on 64bit systems
34612
34613 2005-02-26  Peter Bartok  <pbartok@novell.com>
34614
34615         * Control.cs:
34616           - Now calling OnHandleDestroyed from DestroyHandle()
34617             instead of Dispose()
34618           - Removed bogus call to controls.Remove() from DestroyHandle()
34619
34620 2005-02-26  Peter Bartok  <pbartok@novell.com>
34621
34622         * Control.cs: Properly destroy child windows when our handle is
34623           destroyed
34624
34625 2005-02-25  Peter Bartok  <pbartok@novell.com>
34626
34627         * XplatUI.cs:
34628           - Added 'DriverDebug' define to allow tracing XplatUI API calls
34629           - Alphabetized Static Methods and Subclasses
34630
34631         * XplatUIX11.cs:
34632           - Added XException class to allow custom handling of X11 exceptions
34633           - Created custom X11 error handler, tied into XException class
34634           - Added support for MONO_XEXCEPTIONS env var to allow the user
34635             to either throw an exception on X errors or continue running
34636             after displaying the error
34637           - Added handling of DestroyNotify message
34638           - Added handler for CreateNotify message (still disabled)
34639           - Improved (tried to at least) Where method to provide file and lineno
34640         * X11Structs.cs:
34641           - Added XErrorHandler delegate
34642           - Added XRequest enumeration (to suppor translation of errors)
34643
34644 2005-02-25  Jackson Harper  <jackson@ximian.com>
34645
34646         * PropertyManager.cs: Implement editing features
34647         * CurrencyManager.cs:
34648         * Binding.cs: First attempt at UpdateIsBinding
34649         * BindingManagerBase.cs: Call UpdateIsBinding before
34650         pushing/pulling data.
34651
34652 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
34653
34654         * MenuAPI.cs: Respect disabled items
34655         * ThemeWin32Classic.cs
34656                 - Caches ImageAttributes creation for DrawImageDisabled
34657                 - Fixes vertical menu line drawing
34658                 - Draws disabled arrows in disable menu items
34659
34660 2005-02-24  Peter Bartok  <pbartok@novell.com>
34661
34662         * Hwnd.cs:
34663           - Added UserData property to allow associating arbitrary objects
34664             with the handle
34665           - Fixed leak; now removing Hwnd references from static windows array
34666         * XplatUIWin32.cs:
34667           - Fixed Graphics leak in PaintEventEnd
34668           - Removed usage of HandleData, switched over to Hwnd class
34669         * HandleData.cs: Removed, obsoleted by Hwnd.cs
34670
34671 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
34672
34673         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
34674         * ScrollBar.cs: Fixes bug
34675         * TrackBar.cs: removes death code, clipping, mimize refreshes,
34676          keyboard navigation enhancements
34677
34678 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
34679
34680         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
34681         * GroupBox.cs: Add control styles
34682         * Label.cs: Add control styles
34683         * UpDownBase.cs: Add control styles
34684         * ListBox.cs: Add control styles
34685         * XplatUIWin32.cs: Fixes wrong parameter order
34686
34687
34688 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
34689
34690         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
34691
34692 2005-02-23  Jackson Harper  <jackson@ximian.com>
34693
34694         * PropertyManager.cs: Implement property binding. This doesn't
34695         seem to work yet though as (I think) there are some bugs in
34696         System.ComponentModel.PropertyDescriptor.
34697         * BindingContext.cs: Use new PropertyManager constructor.
34698
34699 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
34700
34701         * ProgressBar.cs: use clip region in ProgressBar
34702         * ThemeWin32Classic.cs: use clip region in ProgressBar
34703
34704 2004-02-22  Jackson Harper  <jackson@ximian.com>
34705
34706         * BindingsCollection.cs: Remove some debug code.
34707
34708 2005-02-22  Jackson Harper  <jackson@ximian.com>
34709
34710         * BindingContext.cs:
34711         * ControlBindingsCollection.cs:
34712         * CurrencyManager.cs:
34713         * Binding.cs:
34714         * BindingManagerBase.cs: Initial implementation
34715         * BindingsCollection.cs: Add an internal contains method that the
34716         BindingManagerBase uses to ensure bindings aren't added twice to
34717         the collection.
34718         * PropertyManager.cs: Stubbed out.
34719         * Control.cs:
34720         * ContainerControl.cs: Hook up databinding
34721         
34722 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
34723
34724         * XplatUIOSX.cs:
34725           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
34726           Fixed Invalidate/Update chain.
34727           Fixed tons of other minor bugs (this is almost a complete rewrite).
34728
34729 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
34730
34731         * ComboBox.cs: do subcontrol creation when the control is created
34732
34733 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34734
34735         * Label.cs: fixes image drawing (image and imagelist)
34736         * ThemeWin32Classic.cs: cache brushes
34737         
34738 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34739
34740         * Form.cs: Move menu drawing code to Theme class
34741         * ComboBox.cs: Move ComboBox drawing code to Theme class
34742         * MenuItem.cs: Move menu drawing code to Theme class
34743         * MenuAPI.cs: Move menu drawing code to Theme class
34744         * ThemeWin32Classic.cs: New methods
34745         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
34746         * ListBox.cs: Move Listbox drawing code to Theme class
34747         * Theme.cs: New methods
34748
34749 2005-02-20  Peter Bartok  <pbartok@novell.com>
34750
34751         * Control.cs:
34752           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
34753             only process mnemonics on those)
34754           - Fixed event sequence for key handling; first calling
34755             ProcessKeyEventArgs now
34756         * TextBoxBase.cs:
34757           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
34758             for processing non-character keys
34759           - Fixed WM_CHAR to generate proper event sequence before processing
34760         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
34761           generation
34762
34763 2005-02-19  Peter Bartok  <pbartok@novell.com>
34764
34765         * UserControl.cs: Added TextChanged event; added attributes
34766         * SizeGrip.cs: Implemented resizing and optional display of grip
34767         * Form.cs: Fixed attribute
34768         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
34769           Changed meaning of ScrollWindow bool argument; instead of the
34770           clear attribute (which will be true usually anyway), it gives the
34771           option of moving child controls as well.
34772         * XplatUIX11.cs:
34773           - Changed to match new ScrollWindow argument
34774           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
34775             now handles the implicit parent window a WM puts around us
34776         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
34777           to work)
34778         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
34779         * TreeView.cs: Adjusted to new ScrollWindow arguments
34780
34781 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34782
34783         * Form.cs: Menu integration with non-client area
34784         * MenuItem.cs: Menu integration with non-client area
34785         * MenuAPI.cs: Menu integration with non-client area
34786
34787 2005-02-18  Peter Bartok  <pbartok@novell.com>
34788
34789         * MethodInvoker.cs: Added
34790         * MdiLayout.cs: Added
34791         * SendKeys.cs: Started implementation
34792         * ErrorIconAlignment.cs: Added
34793
34794 2005-02-18  Peter Bartok  <pbartok@novell.com>
34795
34796         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
34797         * Form.cs: Added handling for Menu-related Non-client messages
34798
34799 2005-02-17  Peter Bartok  <pbartok@novell.com>
34800
34801         * UpDownBase.cs: Fixed typo, compilation errors
34802         * DomainUpDown.cs: Fixed attribute value
34803
34804 2005-02-16  Miguel de Icaza  <miguel@novell.com>
34805
34806         * UpDownBase.cs: Attach entry events.
34807         Propagate events.
34808         Add ForeColor property, Focused, InterceptArrowKeys (interception
34809         does not work yet).
34810
34811 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
34812
34813         * Form.cs:
34814                 - Redraw non client are on Setmenu
34815                 - Calc proper menu starting point
34816
34817 2005-02-17  Peter Bartok  <pbartok@novell.com>
34818
34819         * Application.cs: Fixed message_filter check
34820
34821 2005-02-17  Peter Bartok  <pbartok@novell.com>
34822
34823         * Application.cs: Now calls registered message filters
34824         * DockStyle.cs: Fixed attribute
34825         * Form.cs: Fixed attribute
34826         * Menu.cs: Fixed attribute
34827         * ToolTip.cs: Fixed attribute
34828         * TreeNode.cs: Added missing attributes and arranged in regions
34829         * PropertyGrid.cs: Fixed signatures
34830         * TreeNodeCollection.cs: Added attributes
34831         * Splitter.cs: Added missing attributes; arranged into regions
34832         * TabPage.cs: Added missing attributes; arranged into regions
34833         * TextBoxBase.cs: Added missing attributes
34834         * TextBox.cs: Added missing attributes
34835         * ArrangeDirection.cs: Added missing attributes
34836         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
34837         * ToolBarButton.cs: Fixed attributes
34838         * AnchorStyles.cs: Fixed attribute
34839         * TrackBar.cs: Fixed attributes
34840         * TabControl.cs: Added missing attributes and arranged into regions
34841         * ToolBar.cs: Fixed attribute
34842         * StatusBar.cs: Fixed signature, organized into regions and added
34843           attributes
34844         * StatusBarPanel.cs: Fixed attributes
34845         * ContentsResizedEventArgs.cs: Implemented
34846         * ContentsResizedEventHandler.cs: Implemented
34847         * DateBoldEventArgs.cs: Implemented
34848         * DateBoldEventHandler.cs: Implemented
34849         * UpDownEventArgs.cs: Implemented
34850         * UpDownEventHandler.cs: Implemented
34851         
34852 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
34853
34854         * Form.cs: first Menu NC refactoring
34855         * MenuAPI.cs: first Menu NC refactoring
34856         
34857 2005-02-16  Peter Bartok  <pbartok@novell.com>
34858
34859         * ImeMode.cs: Added missing attributes
34860         * Menu.cs: Fixed attribute
34861         * GroupBox.cs: Fixed attribute
34862         * Label.cs: Fixed attribute
34863         * ColorDialog.cs (RunDialog): Removed TODO attribute
34864         * ComboBox.cs: Fixed attributes
34865         * ListControl.cs: Added missing attributes
34866         * PropertyGrid.cs: Fixed attributes
34867         * Control.cs: Fixed attributes
34868         * ListViewItem.cs: Added TypeConverter attribute
34869         * NotifyIcon.cs: Fixed attributes
34870         * ListView.cs: Fixed attributes
34871         * ButtonBase.cs: Fixed attribute
34872         * ImageList.cs: Added missing attributes
34873         * ContainerControl.cs: Fixed signature
34874         * CheckedListBox.cs: Fixed attribute; added missing attributes
34875         * Panel.cs: Fixed attributes
34876         * PropertyTabChangedEventArgs.cs: Added missing attribute
34877         * PropertyValueChangedEventArgs.cs: Added missing attribute
34878         * Binding.cs: Fixed attribute
34879         * ListViewItemConverter: Implemented ListViewSubItemConverter class
34880         * ListBox.cs: Fixed attribute; added missing attributes;
34881         * ScrollableControl.cs: Added missing attributes
34882         * PictureBox.cs: Added missing attributes; implemented missing property
34883         * DateTimePicker.cs: Added missing attributes
34884         * Theme.cs (ToolWindowCaptionHeight): Fixed type
34885         * MonthCalendar.cs: Fixed attributes
34886         * StatusBarPanel.cs: Added missing attributes
34887         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
34888
34889 2005-02-16  Peter Bartok  <pbartok@novell.com>
34890
34891         * TextBoxBase.cs: The previous method to enforce height yet remember
34892           the requested high was less than ideal, this is an attempt to do
34893           it better.
34894         * Control.cs: Added comment about possible problem
34895         * Copyright: Updated format
34896         * GridItemType.cs: Fixed swapped values
34897
34898 2005-02-15  Jackson Harper  <jackson@ximian.com>
34899
34900         * BaseCollection.cs: Use property so we never access an
34901         uninitialized list. Also initialize the list in the property.
34902
34903 2005-02-15  Peter Bartok  <pbartok@novell.com>
34904
34905         * GroupBox.cs (ProcessMnemonic): Implemented
34906         * Label.cs (ProcessMnemonic): Implemented
34907         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
34908           hotkeys
34909
34910 2005-02-15  Peter Bartok  <pbartok@novell.com>
34911
34912         * RadioButton.cs (ProcessMnemonic): Implemented
34913         * CheckBox.cs (ProcessMnemonic): Implemented
34914         * Control.cs:
34915           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
34916             handling
34917           - Added internal method to allow calling ProcessMnemonic from other
34918             controls
34919         * ContainerControl.cs:
34920           - Started support for handling validation chain handling
34921           - Implemented ProcessMnemonic support
34922           - Added Select() call to Active, to make sure the active control
34923             receives focus
34924         * Form.cs: Setting toplevel flag for Forms (this was lost in the
34925           FormParent rewrite)
34926         * ThemeWin32Classic.cs:
34927           - DrawCheckBox(): Fixed stringformat to show hotkeys
34928           - DrawRadioButton(): Fixed stringformat to show hotkeys
34929         * CommonDialog.cs: Removed WndProc override, not needed
34930
34931 2005-02-14  Peter Bartok  <pbartok@novell.com>
34932
34933         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
34934           missed those in the rewrite
34935
34936 2005-02-14  Miguel de Icaza  <miguel@novell.com>
34937
34938         * NumericUpDown.cs (Increment, ToString): Add.
34939         (DecimalPlaces): implement.
34940         
34941         Add attributes.
34942         
34943         * UpDownBase.cs: Add the designer attributes.
34944
34945 2005-02-13  Peter Bartok  <pbartok@novell.com>
34946
34947         * Panel.cs: Removed border_style, now in Control
34948         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
34949           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
34950
34951 2005-02-13  Peter Bartok  <pbartok@novell.com>
34952
34953         * MouseButtons.cs: Added missing attributes
34954         * XplatUIStructs.cs: Added enumeration for title styles
34955         * LeftRightAlignment.cs: Added missing attributes
34956         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
34957           it compatible with Graphics.FromHwnd()
34958         * SelectedGridItemChangedEventArgs.cs: Fixed property type
34959         * Keys.cs: Added missing attributes
34960         * SelectionRange.cs: Added missing attributes
34961         * SelectionRangeConverter.cs: Added
34962         * XplatUI.cs:
34963           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
34964             ReleaseMenuDC methods
34965           - Renamed ReleaseWindow to UngrabWindow
34966           - Added proper startup notice to allow version identification
34967         * Form.cs:
34968           - Added missing attributes
34969           - Removed FormParent concept
34970         * Label.cs: Removed border_style field, now in Control
34971         * RadioButton.cs: Now properly selects RadioButton when focus is
34972           received
34973         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
34974         * Control.cs:
34975           - Added missing attributes
34976           - Added borderstyle handling
34977           - Removed FormParent concept support
34978           - Fixed calls to XplatUI to match changed APIs
34979           - Fixed bug that would case us to use disposed Graphics objects
34980           - Removed unneeded internal methods
34981           - PerformLayout(): Fixed to handle DockStyle.Fill properly
34982           - SelectNextControl(): Fixed to properly check common parents
34983         * TextBoxBase.cs: Removed border_style field (now in Control)
34984         * MessageBox.cs:
34985           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
34986             fixed calculations for form size
34987           - Added support for localized strings and icons
34988           - Improved form size calculations, added border
34989         * ListView.cs: Removed border_style field (now in Control)
34990         * X11Structs.cs: Moved several structs from X11 driver here
34991         * X11Keyboard.cs: Changed debug message
34992         * Application.cs: Removed FormParent concept support
34993         * CommonDialog.cs:
34994           - Resetting end_modal flag
34995           - Removed FormParent concept support
34996         * NativeWindow.cs: Removed FormParent concept support
34997         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
34998           Client area and Non-Client whole window to allow support for WM_NC
34999           messages
35000         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
35001           prevent using it until it supports Hwnd as per Geoff Norton's request
35002         * ToolBar.cs: Fixed drawing, was not doing proper drawing
35003         * PictureBox.cs: Removed border_style field, now in Control
35004         * XplatUIWin32.cs: Added new driver methods
35005
35006 2005-02-12  Peter Bartok  <pbartok@novell.com>
35007
35008         * OpacityConverter.cs: Implemented
35009         * Hwnd.cs: Internal class to support drivers that need to emulate
35010           client area/non-client area window behaviour
35011
35012 2005-02-11  Peter Bartok  <pbartok@novell.com>
35013
35014         * KeysConverter.cs: Implemented
35015
35016 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
35017
35018         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
35019         * LinkLabel: Added missing attributes
35020         * MainMenu.cs: fixes ToString
35021         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
35022         * ListBox.cs: fixes event position
35023         * TrackBar.cs: adds missing attributes and events
35024         
35025 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
35026
35027         * MenuItem.cs: Use SystemInformation and bug fixes
35028         * MenuAPI.cs: Use SystemInformation and bug fixes
35029
35030 2005-02-09  Jackson Harper  <jackson@ximian.com>
35031
35032         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
35033         their keystate otherwise things like VK_MENU get stuck "on".
35034
35035 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
35036
35037         * ListBox.cs: Fixes AddRange bug
35038         
35039 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
35040
35041         * ProgressBar.cs
35042                 - Add missing attributes
35043                 - Add missing method
35044                 
35045         * CheckedListBox.cs: Added missing attributes
35046                 - Add missing attributes
35047                 - Remove extra method
35048         
35049         * ComboBox.cs: Added missing attributes
35050         * VScrollBar.cs: Added missing attributes
35051         * ScrollBar.cs:  Added missing attributes
35052         * ListBox.cs: Fixes signature, add missing consts
35053         * LinkArea.cs:   Added missing attributes
35054         
35055
35056 2005-02-08  Peter Bartok  <pbartok@novell.com>
35057
35058         * Menu.cs: Added missing attributes
35059         * MainMenu.cs: Added missing attributes
35060         * GroupBox.cs: Added missing attributes
35061         * Label.cs: Added missing attributes
35062         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
35063         * ColorDialog.cs:
35064           - Added Instance and Options properties
35065           - Added missing attributes
35066         * Cursor.cs: Made Serializable
35067         * NotifyIcon: Added missing attributes
35068         * MenuItem.cs: Added missing attributes
35069         * TextBoxBase.cs: Implemented AppendText() and Select() methods
35070         * Panel.cs: Added Missing attributes
35071         * MonthCalendar.cs: Fixed CreateParams
35072
35073 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
35074         
35075         * LinkLabel.cs:
35076                 - Fixes signature
35077                 - Fixes issues with links
35078                 - Adds the class attributes
35079
35080 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
35081         
35082         * ComboBox.cs:
35083                 - Fixes button when no items available in dropdown
35084                 - Fixes repainting problems
35085                 - Adds the class attributes
35086                 
35087 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35088
35089         * XplatUIOSX.cs: Detect the menu bar and title bar height from
35090         the current theme.  Cache these on startup.
35091
35092 2005-02-07  Jackson Harper  <jackson@ximian.com>
35093
35094         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
35095         the scrollbar buttons when they are depressed.
35096
35097 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35098
35099         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
35100         Get the display size from the main displayid.  We currently dont
35101         support multiple display configurations.
35102
35103 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35104
35105         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
35106
35107 2005-02-07  Miguel de Icaza  <miguel@novell.com>
35108
35109         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
35110
35111 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
35112
35113         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
35114
35115 2005-02-04  Jackson Harper  <jackson@ximian.com>
35116
35117         * ThemeWin32Classic.cs: Respect the clipping rect when
35118         drawing. Only fill the intersection of clips and rects so there
35119         isn't a lot of large fills.
35120         * ScrollBar.cs: Pass the correct clipping rect to the theme
35121         engine. Remove some debug code.
35122
35123 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
35124         
35125         * DateTimePicker.cs:
35126                 - Fixed crash on DateTime.Parse, use Constructor instead
35127
35128 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
35129         
35130         * MenuItem.cs:
35131         * MenuAPI.cs:
35132                 - Owner draw support (MeasureItem and DrawItem)
35133
35134 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
35135         
35136         *  Menu.cs:
35137                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
35138                 - Fixes MenuItems.Add range
35139         * MenuItem.cs:
35140                 - MergeMenu and Clone and CloneMenu functions
35141
35142 2005-02-03  Jackson Harper  <jackson@ximian.com>
35143
35144         * ScrollBar.cs: Make abstract
35145         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
35146         is abstract.
35147
35148 2005-02-03  Jackson Harper  <jackson@ximian.com>
35149
35150         * ScrollBar.cs: First part of my scrollbar fixups. This removes
35151         all the unneeded refreshes and uses invalidates with properly
35152         computed rects.
35153
35154 2005-02-03  Peter Bartok  <pbartok@novell.com>
35155
35156         * ComponentModel.cs: Added
35157         * IDataGridEditingService.cs: Added
35158         * Timer.cs: Added missing attributes
35159         * ToolTip.cs: Added missing attributes
35160
35161 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
35162
35163         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
35164
35165 2005-02-03  Peter Bartok  <pbartok@novell.com>
35166
35167         * ListBox.cs: Added missing attributes
35168
35169 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
35170         
35171         * ListBox.cs:
35172                 - Fixes font height after font change
35173                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
35174                 
35175 2005-02-02  Peter Bartok  <pbartok@novell.com>
35176
35177         * HandleData.cs: Introduced static methods to allow class
35178           to be more self-contained and track it's own HandleData objects
35179         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
35180           HandleData to use new static methods
35181
35182 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
35183
35184         * Combobox.cs:
35185                 - Fixes default size and PreferredHeight
35186                 - Missing events
35187                 - ObjectCollection.Insert implementation
35188                 
35189         * ListControl.cs
35190                 - Fixes signature
35191         * ListBox.cs:
35192                 - Several fixes
35193                 - ObjectCollection.Insert implementation
35194                 - No selection after clean
35195                 - Small fixes
35196
35197 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
35198
35199         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
35200
35201 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
35202
35203         * Combobox.cs:
35204                 - Caches ItemHeight calculation for OwnerDrawVariable
35205                 - Handles dropdown properly
35206                 - Fixes several minor bugs
35207
35208 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
35209
35210         * ListBox.cs:
35211                 - Fixes 71946 and 71950
35212                 - Fixes changing Multicolumn on the fly
35213                 - Fixes keyboard navigation on Multicolumn listboxes
35214
35215 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35216         
35217         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
35218         crash reporter log.
35219
35220 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35221
35222         * XplatUIOSX.cs: Allow applications to actually exit.
35223
35224 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35225
35226         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
35227         their parent at creation time rather than lazily later.  Fixes a major
35228         regression we were experiencing.
35229
35230 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
35231
35232         * ThemeWin32Classic.cs: more date time picker painting fixes
35233         * DateTimePicker.cs: more monthcalendar drop down fixes
35234         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
35235
35236 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
35237
35238         * ScrollBar.cs:
35239                 - When moving the thumb going outside the control should stop the moving
35240                 - Adds the firing of missing events
35241                 - Fixes no button show if Size is not specified
35242                 - End / Home keys for keyboard navigation
35243
35244 2005-01-30  Peter Bartok  <pbartok@novell.com>
35245
35246         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
35247           sanity check to prevent theoretical loop
35248         * XplatUIWin32.cs (SetVisible): Removed debug output
35249         * XplatUIX11.cs (SystrayChange): Added sanity check
35250         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
35251         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
35252           behaviour, valid until the X11 client window rewrite is done
35253         * TextBox.cs (ctor): Setting proper default foreground and background
35254           colors
35255
35256 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
35257
35258         * Theme: Added DrawDateTimePicker to interface
35259         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
35260         * DateTimePicker.cs: Created (still needs keys and painting code)
35261         * DateTimePickerFormat.cs: added
35262         * MonthCalendar.cs: fixed CreateParams for popup window mode
35263           
35264 2005-01-29  Peter Bartok  <pbartok@novell.com>
35265
35266         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
35267           this should also the calculations for ligher/darker
35268         * Theme.cs: Fixed defaults for ScrollBar widths/heights
35269
35270 2005-01-29  Peter Bartok  <pbartok@novell.com>
35271
35272         * ArrangeDirection.cs: Added
35273         * ArrangeStartingPositon.cs: Added
35274         * SystemInformation.cs: Implemented
35275         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35276           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
35277           used by SystemInformation class
35278         * X11Strucs.cs: Added XSizeHints structure
35279         * MenuAPI.cs:
35280           - Fixed CreateParams to make sure the menu window is always visible
35281           - TrackPopupMenu: Added check to make sure we don't draw the
35282             menu offscreen
35283
35284 2005-01-29  Peter Bartok  <pbartok@novell.com>
35285
35286         * HandleData.cs: Added method for altering invalid area
35287         * TextBoxBase.cs: Implemented TextLength
35288
35289 2005-01-28  Peter Bartok  <pbartok@novell.com>
35290
35291         * XplatUIX11.cs: Improvement over last patch, not sending
35292           the WM_PAINT directly anymore, instead we scroll any pending
35293           exposed areas and let the system pick out the WM_PAINT later
35294
35295 2005-01-28  Peter Bartok  <pbartok@novell.com>
35296
35297         * SWF.csproj: Deleted, no longer used. Instead,
35298           Managed.Windows.Forms/SWF.csproj should be used
35299         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
35300           directly, to avoid a potential race condition with the next
35301           scroll
35302
35303 2005-01-28  Peter Bartok  <pbartok@novell.com>
35304
35305         * XplatUI.cs: Made class internal
35306
35307 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
35308
35309         * CheckedListBox.cs:
35310                 - Draw focus
35311                 - Fixed Drawing
35312                 - Missing methods and events
35313
35314 2005-01-27  Peter Bartok  <pbartok@novell.com>
35315
35316         * Application.cs (Run): Don't use form if we don't have one
35317
35318 2005-01-27  Peter Bartok  <pbartok@novell.com>
35319
35320         * TextBoxBase.cs (get_Lines): Fixed index off by one error
35321
35322 2005-01-27  Peter Bartok  <pbartok@novell.com>
35323
35324         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
35325         * GridItem.cs: Added; Patch by Jonathan S. Chambers
35326         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
35327         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
35328         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
35329         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
35330         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35331         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
35332         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35333         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35334         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35335         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
35336
35337 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
35338
35339         * Combobox.cs:
35340                 - Draw focus on Simple Combobox
35341                 - Fixes drawing issues
35342                 - fixes 71834
35343
35344 2005-01-27  Peter Bartok  <pbartok@novell.com>
35345
35346         * Form.cs:
35347           - Place window in default location, instead of hardcoded 0/0
35348           - Send initial LocationChanged event
35349         * Control.cs:
35350           - UpdateBounds after creation to find out where the WM placed us
35351           - Make sure that if the ParentForm changes location the Form
35352             is notified
35353         * XplatUIX11.cs: XGetGeometry will not return the coords relative
35354             to the root, but to whatever the WM placed around us.
35355             Translate to root coordinates before returning toplevel
35356             coordinates
35357         * XplatUIWin32.cs: Removed debug output
35358         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
35359           flag to GetWindowPos, to allow translation of coordinates on X11
35360
35361 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
35362
35363         * ListBox.cs: connect LostFocus Event
35364
35365 2005-01-27  Peter Bartok  <pbartok@novell.com>
35366
35367         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35368           XplatUIX11.cs: Extended the Systray API
35369         * Form.cs: Removed debug output
35370         * Application.cs: Fixed focus assignment, always need to call
35371           XplatUI.Activate() since Form.Activate() has rules that may
35372           prevent activation
35373         * NotifyIcon.cs: Should be complete now
35374         * ToolTip.cs: Worked around possible timer bug
35375
35376 2005-01-27  Jackson Harper  <jackson@ximian.com>
35377
35378         * TabControl.cs:
35379         - Only invalidate the effected tabs when the
35380         selected index changes. This reduces drawing and gets rid of some
35381         flicker.
35382         - Only refresh if the tabs need to be shifted, otherwise only
35383         invalidate the slider button.
35384         - On windows the tabs are not filled to right if the slider is
35385         visible.
35386         
35387 2005-01-27  Jackson Harper  <jackson@ximian.com>
35388
35389         * TabControl.cs: Only refresh on mouseup if we are showing the
35390         slider. Also only invalidate the button whose state has changed.
35391
35392 2005-01-26  Peter Bartok  <pbartok@novell.com>
35393
35394         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
35395         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
35396           and SystrayRemove() methods
35397         * XplatUIOSX.cs: Stubbed Systray methods
35398         * XplatUIX11.cs:
35399           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
35400             methods
35401           - Fixed broken XChangeProperty calls (marshalling messed up things)
35402         * X11Structs.cs: Added enums and structs required for Size hinting
35403         * NotifyIcon.cs: Added & implemented
35404
35405 2005-01-26  Jackson Harper  <jackson@ximian.com>
35406
35407         * TabControl.cs: Space vertically layed out tabs properly.
35408
35409 2005-01-26  Peter Bartok  <pbartok@novell.com>
35410
35411         * Form.cs (CreateClientParams): Always set the location to 0,0
35412           since we're a child window.
35413
35414         * Control.cs (SetVisibleCore): Always explicitly setting the location
35415           of a toplevel window, apparently X11 doesn't like to move windows
35416           while they're not mapped.
35417
35418 2005-01-26  Jackson Harper  <jackson@ximian.com>
35419
35420         * TabControl.cs: Implement FillToRight size mode with vertically
35421         rendered tabs.
35422
35423 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
35424
35425         * ControlPaint.cs, ThemeWin32Classic.cs
35426                 - Fixes DrawFocusRectangle
35427
35428 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
35429
35430         * MenuAPI.cs:
35431                 - MenuBar tracking only starts when item is first clicked
35432                 - Fixes menu hidding for multiple subitems
35433                 - Unselect item in MenuBar when item Executed
35434                 - Fixes bug 71495
35435
35436 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
35437
35438         * ListControl.cs:
35439                 - IsInputKey for ListBox
35440         * ListBox.cs:
35441                 - Focus item
35442                 - Shift and Control item selection
35443                 - Implement SelectionMode.MultiExtended
35444                 - Fixes RightToLeft
35445         * ComboBox.cs:
35446                 - IsInputKey implemented
35447                 - Do not generate OnTextChangedEdit on internal txt changes
35448                 
35449 2005-01-23  Peter Bartok  <pbartok@novell.com>
35450
35451         * AccessibleObject.cs: Partially implemented Select()
35452         * MonthCalendar.cs: Added missing attributes and events
35453         * Form.cs: Fixed CreateParams behaviour, now controls derived from
35454           form can properly override CreateParams.
35455         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35456           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
35457           Control performs Invalidate & Update
35458         * NativeWindow (CreateHandle): Added special handling for Form
35459           and Form.FormParent classes to allow overriding of From.CreateParams
35460         * Control.cs:
35461           - ControlNativeWindow: Renamed 'control' variable to more intuitive
35462             name 'owner'
35463           - ControlNativeWindow: Added Owner property
35464           - Removed usage of Refresh() on property changes, changed into
35465             Invalidate(), we need to wait until the queue is processed for
35466             updates, direct calls might cause problems if not all vars for
35467             Paint are initialized
35468           - Added call to UpdateStyles() when creating the window, to set any
35469             styles that CreateWindow might have ignored.
35470           - Added support for Form CreateParent overrides to UpdateStyles()
35471         * MessageBox.cs: Removed no longer needed FormParent override stuff,
35472           CreateParams are now properly overridable
35473         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
35474           CreateParams are now properly overridable
35475
35476 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
35477
35478         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
35479         OnTextBoxChanged.
35480
35481         Capture LostFocus and OnTextBoxChanged.  The later introduces a
35482         recursive invocation that I have not figured out yet.
35483
35484         Reset the timer when not using (it was accumulating).
35485
35486
35487         (OnTextBoxChanged): Set UserEdit to true here to track whether the
35488         user has made changes that require validation.
35489
35490         Reset changing to avoid loops.
35491
35492 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
35493
35494         * NumericUpDown.cs: Display value at startup.
35495
35496         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
35497         ValidateEditText.
35498
35499         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
35500         filled in.  Added some basic parsing of text.
35501
35502         Still missing the OnXXX method overrides, and figuring out the
35503         events that must be emitted.
35504
35505         * UpDownBase.cs: Handle UserEdit on the Text property.
35506         
35507 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
35508
35509         * ComboBox.cs:
35510           - Fixes IntegralHeight
35511           - ToString method
35512
35513 2005-01-21  Jackson Harper  <jackson@ximian.com>
35514
35515         * TabControl.cs: Set the SelectedIndex property when SelectedTab
35516         is set so that the page visibility is updated and the tabs are
35517         sized correctly.
35518
35519 2005-01-21  Jackson Harper  <jackson@ximian.com>
35520
35521         * TabControl.cs: Use cliping rectangle for blitting. Give the
35522         theme the clipping rect so we can do clipping while
35523         drawing. Remove some debug code.
35524
35525 2005-01-21  Jackson Harper  <jackson@ximian.com>
35526
35527         * TabPage.cs: Add a new method so tab pages can force the tab
35528         control to recalculate the tab page sizes.
35529         * TabControl.cs: UpdateOwner needs to make the tab control recalc
35530         sizes.
35531
35532 2005-01-20  Jackson Harper  <jackson@ximian.com>
35533
35534         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
35535
35536 2005-01-20  Jackson Harper  <jackson@ximian.com>
35537
35538         * TreeView.cs: Set the bounds for nodes properly. They were
35539         getting screwed up when checkboxes were not enabled, but images
35540         were.
35541
35542 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
35543
35544         * ListBox.cs:
35545                 - Owner draw support
35546                 - Fixes
35547                 
35548 2005-01-20  Jackson Harper  <jackson@ximian.com>
35549
35550         * XplatUIStructs.cs: More misc keys
35551         * X11Keyboard.cs: Ignore some control keys.
35552
35553 2005-01-20  Jackson Harper  <jackson@ximian.com>
35554
35555         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
35556         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
35557
35558 2005-01-19  Peter Bartok  <pbartok@novell.com>
35559
35560         * Control.cs: Un-selecting the control when it is loosing focus
35561
35562 2005-01-19  Jackson Harper  <jackson@ximian.com>
35563
35564         * TreeView.cs: Hook up to the text controls leave event so we can
35565         end editing when the users clicks outside the text box.
35566         
35567 2005-01-19  Jackson Harper  <jackson@ximian.com>
35568
35569         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
35570         get set in the conversion array.
35571
35572 2005-01-19  Peter Bartok  <pbartok@novell.com>
35573
35574         * Application.cs (ModalRun): Added a call to CreateControl to ensure
35575           focus is properly set
35576         * Button.cs:
35577           - Added missing attributes
35578           - removed styles, those are already set in the base class
35579         * ButtonBase.cs:
35580           - Added missing attributes
35581           - Added clip window styles
35582         * CheckBox.cs: Added missing attributes
35583         * CommonDialog.cs:
35584           - FormParentWindow.CreateParams: Added required clip styles
35585         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
35586           also filters modifier keys
35587         * MessageBox.cs:
35588           - Added assignment of Accept and Cancel button to enable Enter
35589             and Esc keys in MessageBox dialogs
35590           - FormParentWindow.CreateParams: Added required clip styles
35591         * RadioButton.cs: Added missing attributes
35592         * TextControl.cs: No longer draws selection if control does not
35593           have focus
35594         * TextBoxBase.cs:
35595           - Now draws simple rectangle around test area to make it obvious
35596             there's a control. This is a hack until we properly support borders
35597           - A few simple fixes to support selections better, now erases selected
35598             text when typing, and resets selection when using movement keys
35599
35600 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
35601
35602         * UpDownBase.cs: Added some new properties.
35603
35604         * DomainUpDown.cs: Implement a lot to get my test working.
35605
35606 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35607
35608         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
35609
35610 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35611
35612         * OSXStructs (WindowAttributes): Fixed csc complaints
35613
35614 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35615
35616         * XplayUIOSX.cs:
35617           OSXStructs.cs: Initial refactor to move enums and consts into
35618           OSXStructs and use them in the driver for greater readability.
35619
35620 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35621
35622         * XplatUIOSX.cs: Initial support for Standard Cursors.
35623         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
35624
35625 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
35626
35627         * ComboBox.cs: ability to change style when the ctrl is already
35628         created, missing methods and events, bug fixes, signature fixes
35629
35630 2005-01-19  Peter Bartok  <pbartok@novell.com>
35631
35632         * Cursors.cs (ctor): Added ctor to fix signature
35633
35634 2005-01-18  Peter Bartok  <pbartok@novell.com>
35635
35636         * Button.cs: Implemented DoubleClick event
35637         * ButtonBase.cs:
35638           - Fixed keyboard handling to behave like MS, where the press of
35639             Spacebar is equivalent to a mousedown, and the key release is
35640             equivalent to mouseup. Now a spacebar push will give the same
35641             visual feedback like a mouse click.
35642           - Added missing attributes
35643           - Added ImeModeChanged event
35644           - Added support for generating DoubleClick event for derived classes
35645         * CheckBox.cs:
35646           - Implemented DoubleClick event
35647           - Added missing attributes
35648         * CommonDialog.cs: Added missing attribute
35649         * ContextMenu.cs: Added missing attributes
35650         * RadioButton.cs:
35651           - AutoChecked buttons do not allow to be unselected when clicked
35652             (otherwise we might end up with no selected buttons in a group)
35653           - Added missing attributes
35654           - Implemented DoubleClickEvent
35655         * ThreadExceptionDialog.cs: Enabled TextBox code
35656
35657 2005-01-18  Peter Bartok  <pbartok@novell.com>
35658
35659         * Form.cs: Removed debug output
35660         * Button.cs: Added support for DoubleClick method
35661
35662 2005-01-18  Peter Bartok  <pbartok@novell.com>
35663
35664         * Form.cs:
35665           - Added method to parent window that allows triggering size
35666             calculations when a menu is added/removed
35667           - set_Menu: Cleaned up mess from early days of Form and Control,
35668             now properly triggers a recalc when a menu is added/removed
35669           - Added case to select form itself as focused form if no child
35670             controls exist
35671           - Added PerformLayout call when showing dialog, to ensure properly
35672             placed controls
35673         * Control.cs:
35674           - Select(): Made internal so Form can access it
35675           - Focus(): Only call Xplat layer if required (avoids loop), and sets
35676             status
35677         * Application.cs (Run): Removed hack and calls PerformLayout instead
35678           to trigger calculation when Form becomes visible
35679
35680 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
35681
35682         * ComboBox.cs: fixes for ownerdraw
35683
35684 2005-01-18  Peter Bartok  <pbartok@novell.com>
35685
35686         * TextControl.cs:
35687           - Sentinel is no longer static, each Document gets it's own, this
35688             avoids locking or alternatively overwrite problems when more
35689             than one text control is used simultaneously.
35690           - Switched to use Hilight and HilightText brushes for text selection
35691
35692         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
35693
35694 2005-01-18  Peter Bartok  <pbartok@novell.com>
35695
35696         * Control.cs:
35697           - Hooked up the following events:
35698                 o ControlAdded
35699                 o ControlRemoved
35700                 o HandleDestroyed
35701                 o ImeModeChanged
35702                 o ParentChanged
35703                 o TabStopChanged
35704                 o Invalidated
35705                 o SystemColorsChanged
35706                 o ParentFontChanged
35707                 o Move
35708           - Removed debug output
35709           - Added a call to the current theme's ResetDefaults when a color change
35710             is detected
35711         * Form.cs: Now setting the proper ImeMode
35712         * Theme.cs: Defined a method to force recreation of cached resources
35713           and rereading of system defaults (ResetDefaults())
35714         * ThemeWin32Classic.cs: Added ResetDefaults() stub
35715
35716 2005-01-17  Peter Bartok  <pbartok@novell.com>
35717
35718         * Control.cs: Added missing attributes
35719
35720 2005-01-17  Jackson Harper  <jackson@ximian.com>
35721
35722         * TreeNode.cs: Implement editing. Add missing properties selected
35723         and visible.
35724         * TreeView.cs: Implement node editing. Also some fixes to use
35725         Invalidate (invalid area) instead of Refresh when selecting.
35726
35727 2005-01-17  Peter Bartok  <pbartok@novell.com>
35728
35729         * Control.cs:
35730           - Implemented InvokeGotFocus() method
35731           - Implemented InvokeLostFocus() method
35732           - Implemented InvokePaint() method
35733           - Implemented InvokePaintBackground() method
35734           - Implemented InvokeClick() method
35735           - Implemented FindForm() method
35736           - Implemented RectangleToClient() method
35737           - Implemented ClientToRectangle() method
35738           - Implemented ResetBackColor() method
35739           - Implemented ResetCursor() method
35740           - Implemented ResetFont() method
35741           - Implemented ResteForeColor() method
35742           - Implemented ResetImeMode() method
35743           - Implemented ResetLeftToRight() method
35744           - Implemented ResetText() method
35745           - Implemented Scale() methods
35746           - Implemented ScaleCore() method
35747           - Implemented Update() method
35748           - Removed unused variables
35749           - Stubbed AccessibilityNotifyClients and
35750             ControlAccessibleObject.NotifyClients() methods (dunno what to do
35751             with those yet)
35752           - Now setting proper default for RightToLeft property
35753           - Fixed bug in SetClientSizeCore that would cause windows to get
35754             really big
35755           - Now sending Click/DoubleClick events
35756           - Now selecting controls when left mouse button is clicked on
35757             selectable control
35758         * AccessibleEvents.cs: Added
35759         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
35760         * XplatUIOSX.cs: Stubbed UpdateWindow() method
35761         * XplatUIWin32.cs: Implemented UpdateWindow() method
35762         * XplatUIX11.cs: Implemented UpdateWindow() method
35763         * Form.cs: Removed stray semicolon causing CS0162 warning
35764         * ThemeWin32Classic.cs: Fixed unused variable warnings
35765         * ScrollableControl.cs: Now calls base method for ScaleCore
35766         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
35767           style to avoid interference with internal click handler (which is
35768           different than standard Control click handling)
35769         * RadioButton.cs:
35770           - Now unchecks all sibling radio buttons when control is
35771             selected (Fixes #68756)
35772           - Removed internal tabstop variable, using the one inherited from
35773             Control
35774
35775 2005-01-17  Jackson Harper  <jackson@ximian.com>
35776
35777         * NavigateEventArgs.cs: Fix base type.
35778         * LinkLabel.cs: Sig fix
35779         
35780 2005-01-17  Jackson Harper  <jackson@ximian.com>
35781
35782         * TreeView.cs: Only invalidate the effected nodes bounds when
35783         selecting nodes.
35784
35785 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35786
35787         * XplatUIWin32.cs: fixes Win32 marshaling
35788         * XplatUIX11.cs: fixes method signature
35789
35790 2005-01-17  Peter Bartok  <pbartok@novell.com>
35791
35792         * XplatUIX11.cs: Clean up resources when we no longer need them
35793
35794 2005-01-17  Peter Bartok  <pbartok@novell.com>
35795
35796         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
35797           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
35798           and DestroyCursor() methods.
35799         * Cursor.cs: Partially implemented, now supports standard cursors;
35800           still contains some debug code
35801         * Cursors.cs: Implemented class
35802         * Control.cs:
35803           - WndProc(): Added handling of WM_SETCURSOR message, setting the
35804             appropriate cursor
35805           - Implemented Cursor property
35806           - Replaced break; with return; more straightforwar and possibly
35807             faster
35808           - Now properly setting the result for WM_HELP
35809         * X11Structs.cs: Added CursorFontShape enum
35810         * XplatUIStructs.cs:
35811           - Added StdCursor enum (to support DefineStdCursor() method)
35812           - Added HitTest enum (to support sending WM_SETCURSOR message)
35813         * XplatUIX11.cs:
35814           - Now sends the WM_SETCURSOR message
35815           - Implemented new cursor methods
35816         * XplatUIOSX.cs: Stubbed new cursor methods
35817         * XplatUIWin32.cs:
35818           - Implemented new cursor methods
35819           - Added GetSystemMetrics function and associated enumeration
35820
35821 2005-01-15  Peter Bartok  <pbartok@novell.com>
35822
35823         * Control.cs:
35824           - WndProc(): Now handles EnableNotifyMessage
35825           - SelectNextControl(): Fixed bug where if no child or sibling
35826             controls exist we looped endlessly
35827
35828 2005-01-14  Jackson Harper  <jackson@ximian.com>
35829
35830         * TreeView.cs: Recalculate the tab pages when a new one is added
35831         so that the proper bounding rects are created.
35832
35833 2005-01-14  Jackson Harper  <jackson@ximian.com>
35834
35835         * TreeView.cs: Draw a gray box instead of a grip in the lower
35836         right hand corner when there are both horizontal and vertical
35837         scroll bars.
35838
35839 2005-01-14  Jackson Harper  <jackson@ximian.com>
35840
35841         * Control.cs: When erasing backgrounds use FromHwnd instead of
35842         FromHdc when there is a NULL wparam. This occurs on the X driver.
35843         * XplatUIX11.cs: Set the wparam to NULL.
35844
35845 2005-01-13  Jackson Harper  <jackson@ximian.com>
35846
35847         * PictureBox.cs: Implement missing methods (except ToString, need
35848         to test that on windows) and events. When visibility is changed we
35849         need to redraw the image because the buffers are killed. When size
35850         is changed refresh if the sizemode needs it.
35851
35852 2005-01-13  Peter Bartok  <pbartok@novell.com>
35853
35854         * Control.cs (SelectNextControl): Was using wrong method to select
35855           a control
35856
35857 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35858
35859         * ComboBox.cs: fixes dropstyle
35860
35861 2005-01-13  Peter Bartok  <pbartok@novell.com>
35862
35863         * Form.cs:
35864           - Implemented Select() override
35865           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
35866           - Now sets keyboard focus on startup
35867         * Control.cs (SelectNextControl): Now properly handles directed=true
35868         * TextBoxBase.cs:
35869           - WndProc: Now passes tab key on to base if AcceptTabChar=false
35870           - Added (really bad) focus rectangle (mostly for testing)
35871         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
35872           to enforce redraw on focus changes
35873         * ContainerControl.cs:
35874           - Fixed detection of Shift-Tab key presses
35875           - Fixed traversal with arrow keys
35876         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
35877           gonna keep this or if it's complete yet
35878         
35879 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35880
35881         * ComboBox.cs: missing properties, fixes
35882
35883 2005-01-13  Peter Bartok  <pbartok@novell.com>
35884
35885         * Panel.cs (ctor): Setting Selectable window style to off
35886         * Splitter.cs (ctor): Setting Selectable window style to off
35887         * GroupBox.cs (ctor): Setting Selectable window style to off
35888         * Label.cs (ctor): Setting Selectable window style to off
35889
35890 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
35891
35892         * UpDownBase.cs (InitTimer): If the timer has been already
35893         created, enable it.
35894
35895         Use a TextBox instead of a Label.
35896
35897 2005-01-12  Jackson Harper  <jackson@ximian.com>
35898
35899         * TreeView.cs: Refresh the tree after sorting the nodes. Always
35900         draw the connecting node lines (when ShowLines is true).
35901         * TreeNode.cs: The nodes index can now be updated. This is used
35902         when a node collection is sorted.
35903         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
35904         insert or an existing unsorted node collection can be sorted.
35905         
35906 2005-01-12  Peter Bartok  <pbartok@novell.com>
35907
35908         * ContainerControl.cs: Implemented ProcessDialogKeys()
35909
35910 2005-01-12  Peter Bartok  <pbartok@novell.com>
35911
35912         * Control.cs:
35913           - Implemented SelectNextControl() method
35914           - Several focus related bug fixes
35915           - Fixed Docking calculations to match MS documentation and
35916             behaviour
35917
35918 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
35919
35920         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
35921         bug fixes
35922
35923 2005-01-12  Peter Bartok  <pbartok@novell.com>
35924
35925         * Control.cs:
35926           - Fixed broken Contains() method
35927           - Implemented GetNextControl() method. Finally. This is the pre-
35928             requisite for focus handling.
35929
35930 2005-01-12  Peter Bartok  <pbartok@novell.com>
35931
35932         * OSXStrucs.cs: Added
35933
35934 2005-01-12  Peter Bartok  <pbartok@novell.com>
35935
35936         * XplatUIWin32.cs:
35937           - Removed PeekMessageFlags
35938           - Implemented SetWindowStyle() method
35939         * XplatUIStructs.cs: Added PeekMessageFlags
35940         * X11Structs: Added missing border_width field to XWindowChanges struct
35941         * XplatUIX11.cs:
35942           - PeekMessage: Now throws exception if flags which are not yet
35943             supported are passed
35944           - Implemented SetWindowStyle() method
35945           - Fixed SetZOrder to handle AfterHwnd properly
35946         * XplatUI.cs: Added SetWindowStyle() method
35947         * XplatUIDriver.cs: Added SetWindowStyle() abstract
35948         * Control.cs:
35949           - Implemented UpdateStyles() method
35950           - Implemented UpdateZOrder() method
35951         * XplatUIOSX.cs: Added SetWindowStyle() stub
35952
35953 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
35954
35955         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
35956         button mouse).
35957
35958
35959 2005-01-11  Jackson Harper  <jackson@ximian.com>
35960
35961         * TreeView.cs: Still need to draw lines to siblings even if out of
35962         the current node is out of the clip.
35963
35964 2005-01-11  Jackson Harper  <jackson@ximian.com>
35965
35966         * TreeView.cs: When setting the hbar/vbar/grip position use
35967         SetBounds so that perform layout is only called once. Also suspend
35968         and resume layout so layout is only done once for all controls.
35969         - Removed some debug fluff
35970         * SizeGrip.cs: Call base implmentation in overriding methods.
35971         - When visibility is changed the drawing buffers are killed so we
35972         need to redraw.
35973
35974 2005-01-11  Jackson Harper  <jackson@ximian.com>
35975
35976         * TreeView.cs: Calculate the open node count while drawing. This
35977         saves us an entire tree traversal for every paint operation. Use
35978         a member var for the open node count so less vars are passed around.
35979
35980 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
35981
35982         * MonthCalendar.cs:
35983         - fixed selection to use mousemove, not mouse polling on timer
35984         * ThemeWin32Classic.cs
35985         - removed redundant unused variable "no_more_content"
35986         
35987 2005-01-11  Peter Bartok  <pbartok@novell.com>
35988
35989         * XplatUIX11.cs (DoEvents): Needs to return when no more events
35990           are pending, so it now calls PeekMessage instead of GetMessage;
35991           implemented a incomplete version of PeekMessage
35992         
35993 2005-01-11  Peter Bartok  <pbartok@novell.com>
35994
35995         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
35996           I18n issues
35997         * TextBoxBase.cs: Added sending of TextChanged event
35998
35999 2005-01-10  Jackson Harper  <jackson@ximian.com>
36000
36001         * TreeView.cs: Try not to draw outside the clipping rectangle on
36002         each node element.
36003
36004 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
36005
36006         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
36007
36008 2005-01-10  Jackson Harper  <jackson@ximian.com>
36009
36010         * TreeView.cs:
36011         - Implement fast scrolling. Now only the newly
36012         exposed nodes are drawn and the old image is moved using the
36013         XplatUI::ScrollWindow method.
36014         - Factor in height of nodes when calculating whether or not the
36015         node is in the clipping rect.
36016
36017 2005-01-10  Jackson Harper  <jackson@ximian.com>
36018
36019         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
36020
36021 2005-01-10  Peter Bartok  <pbartok@novell.com>
36022
36023         * Application.cs: Added temporary hack to resolve all our resize
36024           required issues on startup. This will get fixed properly at
36025           some point in the future
36026
36027 2005-01-10  Jackson Harper  <jackson@ximian.com>
36028
36029         * SizeGrip.cs: New internal class that is used as a sizing
36030         grip control...hence the name.
36031
36032 2005-01-10  Peter Bartok  <pbartok@novell.com>
36033
36034         * Control.cs: Implemented proper TabIndex handling, now assigning
36035           a tabindex when a control is added to a container
36036         * GroupBox.cs (ctor): Now sets the Container style bit, required
36037           for Control.GetNextControl()
36038
36039 2005-01-09  Jackson Harper  <jackson@ximian.com>
36040
36041         * TextBoxBase.cs: Clear window when scrolling (fixes build).
36042
36043 2005-01-09  Peter Bartok <pbartok@novell.com>
36044
36045         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
36046           XplatUIX11.cs: Added ability to control ScrollWindow expose and
36047           an overload for ScrollWindow to allow only scrolling a rectangle
36048
36049 2005-01-09  Peter Bartok <pbartok@novell.com>
36050
36051         * Form.cs:
36052           - Implemented SetDesktopBounds method
36053           - Implemented SetDesktopLocation method
36054
36055 2005-01-08  Jackson Harper  <jackson@ximian.com>
36056
36057         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
36058         the node count has changed, this removes to VScroll::Refresh calls
36059         when drawing.
36060
36061 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
36062
36063         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
36064
36065 2005-01-07  Jackson Harper  <jackson@ximian.com>
36066
36067         * TreeNode.cs: Just update the single node when it is
36068         checked. Don't refresh after toggling, the Expand/Collapse already
36069         handles this.
36070         * TreeView.cs: Respect clipping a little more when drawing. Try
36071         not to redraw things that don't need to be redrawn. Just hide the
36072         scrollbars when they are no longer needed instead of removing
36073         them, so they don't have to be created again and again.
36074         
36075 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
36076
36077         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
36078         coordinates to window space to place the caret properly, FIXED.
36079         Implement GetWindowState & SetWindowState
36080
36081 2005-01-06  Peter Bartok <pbartok@novell.com>
36082
36083         * Form.cs:
36084           - Implemented ClientSize property
36085           - Implemented DesktopBounds property
36086           - Implemented DesktopLocation property
36087           - Implemented IsRestrictedWindow property
36088           - Implemented Size property
36089           - Implemented TopLevel property
36090           - Implemented FormWindowState property
36091         * Control.cs:
36092           - Implemented GetTopLevel() method
36093           - Implemented SetTopLevel() method
36094         * X11Structs.cs (Atom):
36095           - Added AnyPropertyType definition
36096           - Added MapState definiton and updated XWindowAttribute struct
36097         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
36098         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
36099         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
36100         * XplatUIWin32.cs:
36101           - Implemented GetWindowState() and SetWindowState() methods
36102           - Fixed Win32GetWindowLong return type
36103         * XplatUIX11.cs:
36104           - Introduced central function for sending NET_WM messages
36105           - Implemented GetWindowState() and SetWindowState() methods
36106         * TextBoxBase.cs (set_Lines):
36107           - Now uses Foreground color for text added via Text property (Duh!)
36108           - Added code to remember programmatically requested size (fixes
36109             behaviour when Multiline is set after Size)
36110           - Added AutoSize logic
36111
36112 2005-01-06  Jackson Harper  <jackson@ximian.com>
36113
36114         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
36115
36116 2005-01-06  Jackson Harper  <jackson@ximian.com>
36117
36118         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
36119         set to less then 0.
36120
36121 2005-01-06  Jackson Harper  <jackson@ximian.com>
36122
36123         * ScrollableControl.cs: Lazy init the scrollbars.
36124         
36125 2005-01-06  Jackson Harper  <jackson@ximian.com>
36126
36127         * Theme.cs: Speed up getting pens and solid brushes, by using
36128         their ARGB as a hash instead of tostring and not calling Contains.
36129
36130 2005-01-06  Peter Bartok <pbartok@novell.com>
36131
36132         * Form.cs:
36133           - Implemented OnActivated and OnDeactivate event trigger
36134           - Implemented Activate() method
36135           - Fixed ShowDialog() to activate the form that was active before
36136             the dialog was shown
36137         * XplatUIX11.cs:
36138           - Added global active_window var that tracks the currently active
36139             X11 window
36140           - Now always grabs Property changes from the root window to always
36141             catch changes on the active window property
36142           - Added code to PropertyNotify handler to send Active/Inactive
36143             messages when state changes. This puts X11 and Win32 en par on
36144             WM_ACTIVATE notifications (except for double notifications when
36145             the user clicks away from our modal window to another one of our
36146             windows)
36147
36148 2005-01-05  Jackson Harper  <jackson@ximian.com>
36149
36150         * ImageList.cs: Implment ctor
36151
36152 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36153
36154         * XplatUIOSX.cs: Implement Activate/SetTopmost
36155
36156 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36157
36158         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
36159
36160 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36161
36162         * XplatUIOSX.cs: Implement GetActive/SetFocus.
36163
36164 2005-01-05  Peter Bartok <pbartok@novell.com>
36165
36166         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
36167           XplatUIOSX.cs: Added GetActive method to return the currently
36168           active window for the application (or null, if none is active)
36169         * Form.cs:
36170           - Implemented ActiveForm
36171           - Commented out owner assignment for modal dialogs (causes problems
36172             on Win32, since the owner will be disabled)
36173           - Reworked some Active/Focus handling (still incomplete)
36174         * CommonDialog.cs: Commented out owner assignment for modal dialogs
36175           (causes problems on Win32, since the owner will be disabled)
36176         * IWin32Window: Added ComVisible attribute
36177
36178 2005-01-05  Peter Bartok <pbartok@novell.com>
36179
36180         * ToolTip.cs (WndProc): Enable setting focus now that we have the
36181           required XplatUI functions.
36182
36183 2005-01-05  Peter Bartok <pbartok@novell.com>
36184
36185         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
36186           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
36187           to implement focus and activation handling; still incomplete and
36188           with debug output
36189
36190 2005-01-04  Peter Bartok <pbartok@novell.com>
36191
36192         * TextBoxBase.cs: Changed access level for Document property to
36193           match switch to internal for TextControl
36194
36195 2005-01-04  Peter Bartok <pbartok@novell.com>
36196
36197         * AccessibleObject: Added ComVisible attribute
36198
36199 2005-01-04  Jackson Harper  <jackson@ximian.com>
36200
36201         * X11Keyboard.cs: Remove unneeded var.
36202
36203 2005-01-04  Jackson Harper  <jackson@ximian.com>
36204
36205         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
36206         but PAINT.
36207         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
36208         ClientMessage. This makes apps exit cleanly (more often).
36209         
36210 2005-01-04  Jackson Harper  <jackson@ximian.com>
36211
36212         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
36213         handling focus, return correct colors and fonts,
36214         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
36215         handle selection, horizontal scrolling, and mouse interaction.
36216
36217 2005-01-04  Peter Bartok <pbartok@novell.com>
36218
36219         * ICommandExecutor.cs: Added
36220         * IDataGridColumnStyleEditingNotificationService.cs: Added
36221         * IFeatureSupport.cs: Added
36222         * IFileReaderService.cs: Added
36223         * IDataObject.cs: Added ComVisible attribute
36224         * AmbientProperties.cs: Added
36225         * BaseCollection.cs: Added missing attributes
36226         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
36227         * BaseCollection.cs: Added missing attributes
36228         * Binding.cs: Added TypeConverter attribute
36229         * BindingContext.cs: Added DefaultEvent attribute
36230         * BindingsCollection.cs: Added DefaultEvent attribute
36231         * Button.cs: Added DefaultValue attribute
36232         * DragEventArgs.cs: Added ComVisible attribute
36233         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
36234         * KeyEventArgs.cs: Added ComVisible attribute
36235         * KeyPressEventArgs.cs: Added ComVisible attribute
36236         * MouseEventArgs.cs: Added ComVisible attribute
36237         * NavigateEventArgs.cs: Added
36238         * NavigateEventHandler.cs: Added
36239         * FeatureSupport.cs: Added
36240         * OSFeature.cs: Added
36241         * Theme.cs: Added abstract Version property to support OSFeature
36242         * ThemeWin32Classic.cs: Added Version property to
36243           support OSFeature.Themes
36244         * ProgressBar.cs: Removed OnPaintBackground override, not required since
36245           the proper styles to avoid background drawing are set, also doesn't
36246           match MS signature
36247         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
36248         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
36249         * ScrollEventArgs.cs: Added ComVisible attribute
36250         * SplitterEventArgs.cs: Added ComVisible attribute
36251         * AccessibleSelection.cs: Added Flags attribute
36252         * Appearance.cs: Added ComVisible attribute
36253         * Border3DSide.cs: Added ComVisible attribute
36254         * Border3DStyle.cs: Added ComVisible attribute
36255         * BorderStyle.cs: Added ComVisible attribute
36256         * DragAction.cs: Added ComVisible attribute
36257         * ErrorBlinkStyle.cs: Added
36258         * ScrollEventType.cs: Added ComVisible attribute
36259         * AnchorStyles.cs: Added Editor attribute
36260         * DockStyle.cs: Added Editor attribute
36261         * HorizontalAlignment.cs: Added ComVisible attribute
36262         * HelpEventArgs.cs: Added ComVisible attribute
36263         * PaintEventArgs.cs: Added IDisposable
36264
36265 2005-01-04  Peter Bartok <pbartok@novell.com>
36266
36267         * TextControl.cs: Switched Line, LineTag and Document classes to
36268           internal
36269
36270 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
36271
36272         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
36273         Simple mode, fixes, IntegralHeight, etc.
36274
36275 2005-01-04  Peter Bartok <pbartok@novell.com>
36276
36277         * TextBoxBase.cs: Using proper font variable now
36278
36279 2005-01-04  Peter Bartok <pbartok@novell.com>
36280
36281         * Form.cs (ShowDialog): Set parent to owner, if provided
36282         * GroupBox.cs: Removed unused vars
36283         * TextControl.cs:
36284           - Added GetHashCode() for Document and LineTag classes
36285           - Removed unused variables
36286           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
36287             to allow translation between continuous char position and line/pos
36288         * CheckBox.cs: Removed vars that are provided by base class
36289         * RadioButton.cs: Removed vars that are provided by base class, added
36290           new keyword where required
36291         * LinkLabel.cs: Added new keyword where required
36292         * Control.cs (WndProc): Removed unused variable
36293         * TextBoxBase.cs:
36294           - Finished SelectionLength property
36295           - Implemented SelectionStart property
36296           - Implemented Text property
36297           - Removed unused vars
36298         * MessageBox.cs: Added new keyword where required
36299         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
36300           WndProc signature
36301         * MenuAPI.cs: Added new keyword where required
36302         * ButtonBase.cs: Removed vars that are provided by base class, added
36303           new keyword where required
36304         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
36305           argument to double, to allow compiling with csc 2.0 (Atsushi ran
36306           into this)
36307         * Application.cs (Run): Now triggers the ThreadExit event
36308         * CommonDialog.cs: Added new keyword where required; now properly sets
36309           parent (owner) for dialog
36310         * XplatUIX11.cs: Commented out unused vars
36311         * StatusBar.cs: Fixed signature for Text property
36312         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
36313
36314 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
36315
36316         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
36317         TrackBar.cs, MonthCalendar.cs: remove unused vars
36318
36319 2005-01-03  Jackson Harper  <jackson@ximian.com>
36320
36321         * ThemeWin32Classic.cs:
36322         * X11Keyboard.cs: Remove unused vars.
36323
36324 2005-01-03  Peter Bartok  <pbartok@novell.com>
36325
36326         * TextBox.cs:
36327           - set_Text: Tied into TextControl
36328           - set_TextAlignment: Tied into TextControl
36329         * TextControl.cs:
36330           - Added alignment properties and implemented alignment handling
36331             and drawing (still has a bug, not generating proper expose events)
36332           - Added new Line() constructor to allow passing the line alignment
36333           - Fixed selection setting, properly handling end<start now
36334           - Added aligment considerations to RecalculateDocument()
36335         * TextBoxBase.cs:
36336           - Now properly enforces control height for single line controls
36337           - Added support for CharacterCasing
36338           - Added IsInputKey override
36339           - Fixed Keys.Enter logic
36340           - Added SetBoundsCore override
36341           - Fixed mouse selection handling
36342
36343 2005-01-03  Jackson Harper  <jackson@ximian.com>
36344
36345         * TreeView.cs:
36346           - Collapse and uncheck all nodes when CheckBoxes is disabled.
36347           - Checkboxes are always aligned to the bottom of the node,
36348           regardless of item height.
36349           - Use the node bounds to draw the text so we can center it when
36350           the item height is greater then the font height.
36351           - Node::Bounds are only the text part of the node.
36352         * TreeNode.cs: New method to combine collapsing and unchecking all
36353           nodes recursively.
36354
36355 2005-01-02  Jackson Harper  <jackson@ximian.com>
36356
36357         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
36358         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
36359         tree when a check is changed. TODO: Only refresh the checked node.
36360
36361 2004-12-30  Jackson Harper  <jackson@ximian.com>
36362
36363         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
36364         * TreeNode.cs: When collapsing make sure to never collapse the
36365         root node.
36366
36367 2004-12-29  Jackson Harper  <jackson@ximian.com>
36368
36369         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
36370         
36371 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
36372
36373         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
36374
36375 2004-12-28  Peter Bartok  <pbartok@novell.com>
36376
36377         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
36378           not yet assigned
36379
36380 2004-12-28  Peter Bartok  <pbartok@novell.com>
36381
36382         * Control.cs (WndProc): Added WM_HELP handler, now generates
36383           HelpRequested event
36384         * Form.cs: Added HelpButton property and required support code
36385         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
36386
36387 2004-12-28  Peter Bartok  <pbartok@novell.com>
36388
36389         * CommonDialog.cs:
36390           - Made DialogForm.owner variable internal
36391           - Added check to ensure owner form is set before setting
36392             owner properties in CreateParams
36393
36394 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
36395
36396         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
36397           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
36398           GetCursorPos.  Fix major visibility issues.  Rework the windowing
36399           system to support borderless/titleless windows (implements menus).
36400           Fix GetWindowPos.  Implement initial background color support for
36401           views.
36402
36403 2004-12-28  Peter Bartok  <pbartok@novell.com>
36404
36405         * Form.cs (get_CreateParams): Make sure we have an owner before using
36406           the owner variable. Implement proper default if no owner exists
36407
36408 2004-12-28  Peter Bartok  <pbartok@novell.com>
36409
36410         * In preparation for making Managed.Windows.Forms the default build target
36411           for System.Windows.Forms, the following stubbed files were added.
36412           Dialogs are currently being implemented by contributors and are only
36413           short-term place holders.
36414         * ColorDialog.cs: Initial check-in (minmal stub)
36415         * DataGrid.cs: Initial check-in (minimal stub)
36416         * DataGridLineStyle.cs: Initial check-in (minimal stub)
36417         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
36418         * DataGridTableStyle.cs: Initial check-in (minimal stub)
36419         * FontDialog.cs: Initial check-in (minimal stub)
36420         * FileDialog.cs: Initial check-in (minimal stub)
36421         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
36422         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
36423         * OpenFileDialog: Initial check-in (minimal stub)
36424         * IComponentEditorPageSite.cs: Initial check-in
36425         * Splitter.cs: Initial check-in (for Jackson)
36426         * SplitterEventArgs.cs: Initial check-in (for Jackson)
36427         * SplitterEventHandler.cs: Initial check-in (for Jackson)
36428         * TextBox.cs: Initial check-in; still needs some wiring to
36429           TextControl backend
36430         * Form.cs: Implemented ControlBox property
36431         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
36432         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
36433         * TextControl.cs: Added selection functionality; added todo header
36434         * TextBoxBase.cs:
36435           - Implemented Lines property
36436           - Implemented TextHeight property
36437           - Implemented SelectedText property
36438           - Implemented SelectionLength property
36439           - Implemented SelectAll method
36440           - Implemented ToString method
36441           - Removed and cleaned up some debug code
36442           - Implemented (still buggy) mouse text selection
36443
36444 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
36445
36446         * ComboBox.cs: Complete DropDownList implementation, fixes.
36447
36448 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
36449
36450         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
36451         * ComboBoxStyle.cs: ComboBoxStyle enum
36452         * ComboBox.cs: Initial work on ComboBox control
36453
36454 2004-12-21  Peter Bartok  <pbartok@novell.com>
36455
36456         * Control.cs (ctor, CreateParams): Moved setting of is_visible
36457           forward so that anything that creates a window gets the default,
36458           also no longer uses Visible property in CreateParams to avoid
36459           walking up the parent chain and possibly get the wrong visible
36460           status. Fixed IsVisible to no longer walk up to the parent.
36461
36462 2004-12-21  Peter Bartok  <pbartok@novell.com>
36463
36464         * Form.cs (ShowDialog): Unset modality for the proper window
36465  
36466 2004-12-20  Peter Bartok  <pbartok@novell.com>
36467
36468         * CommonDialog.cs: Initial check-in
36469
36470 2004-12-20  Peter Bartok  <pbartok@novell.com>
36471
36472         * Control.cs (Visible): Now uses the parent window instead of the
36473           client area window for the property
36474
36475         * Form.cs
36476           - ShowDialog(): Now uses the proper window for modality
36477           - The default visibility state for the form parent is now false. This
36478             will prevent the user from seeing all the changes to the form and
36479             its controls before the application hits Application.Run()
36480           - Removed some stale commented out code
36481
36482         * NativeWindow.cs:
36483           - Added FindWindow() method to have a method to check for existence
36484             of a window handle
36485           - Added ability to override default exception handling (for example
36486             when debugging with VS.Net; to do this the ExternalExceptionHandler
36487             define must be set
36488           - Removed some useless debug output
36489
36490         * XplatUIX11.cs:
36491           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
36492             not working as expected
36493           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
36494             property to allow switching back to the modal window if focus is
36495             given to another one of our windows (Application Modal)
36496           - Now only sets override_redirect if we create a window
36497             without WS_CAPTION
36498           - Moved EventMask selection before mapping of newly created window
36499             so we can catch the map event as well
36500           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
36501           - Added various Atom related DllImports
36502           - Implemented Exit() method
36503           - .ctor() : No longer shows window if WS_VISIBLE is not defined
36504             in the CreateParams
36505
36506         * MessageBox.cs: Now properly deals with the FormParent window by
36507           providing an override the FormParent CreateParams property to
36508           set as POPUP instead of OVERLAPPED window.
36509
36510 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
36511
36512         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
36513         Minor code cleanup.
36514
36515 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
36516         
36517         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
36518
36519 2004-12-18  Peter Bartok  <pbartok@novell.com>
36520
36521         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
36522           implementing SetModal() method
36523
36524 2004-12-18  Peter Bartok  <pbartok@novell.com>
36525
36526         * X11Structs.cs (XGCValues): Fixed type of function element
36527         * XplatUI.cs: Added ScrollWindow() method
36528         * XplatUIDriver.cs: Added ScrollWindow() abstract
36529         * XplatUIWin32.cs: Implemented ScrollWindow() method
36530         * XplatUIX11.cs: Implemented ScrollWindow() method
36531         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
36532
36533 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36534
36535         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
36536         Some more keyboard support (INCOMPLETE)
36537
36538 2004-12-17  Peter Bartok  <pbartok@novell.com>
36539
36540         * TextControl.cs:
36541         - Added color attribute to line tags.
36542         - Added color argument to all functions dealing with tags
36543         - Added color argument support to various functions
36544         - Fixed miss-calculation of baseline/shift in certain circumstances
36545
36546         * TextBoxBase.cs: Added new color option to test code
36547
36548 2004-12-17  Jackson Harper  <jackson@ximian.com>
36549
36550         * TreeNode.cs:
36551         * MonthCalendar.cs: Signature fixes
36552
36553 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36554
36555         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
36556         keyboard event moved it.  Create a new graphics context for each paint resolves this
36557
36558 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36559
36560         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
36561         Make caret exist and go blink blink.  Initial keyboard support.
36562         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
36563         works.
36564
36565 2004-12-17  Jackson Harper  <jackson@ximian.com>
36566
36567         * XplatUIStructs.cs: Updated set of virtual keycodes.
36568         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
36569
36570 2004-12-17  Jackson Harper  <jackson@ximian.com>
36571
36572         * XplatUIX11.cs: Prune old keyboard code.
36573
36574 2004-12-17  Jackson Harper  <jackson@ximian.com>
36575
36576         * XplatUIX11.cs: When generating mouse wparams get the modifier
36577         keys from the ModifierKeys property.
36578
36579 2004-12-17  Jackson Harper  <jackson@ximian.com>
36580
36581         * X11Keyboard.cs: Send up/down input when generating
36582         messages. Remove some unused vars.
36583
36584 2004-12-17  Jackson Harper  <jackson@ximian.com>
36585
36586         * TabControl.cs:
36587         * TreeView.cs: get rid of warnings.
36588
36589 2004-12-17  Jackson Harper  <jackson@ximian.com>
36590
36591         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
36592
36593 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
36594
36595         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
36596           CheckedListBox.cs: Implementation
36597
36598 2004-12-17  Peter Bartok  <pbartok@novell.com>
36599
36600         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
36601
36602 2004-12-16  Peter Bartok  <pbartok@novell.com>
36603
36604         * TextControl.cs:
36605           - InsertCharAtCaret(): Fixed start pos fixup
36606           - CaretLine_get: No longer derives the line from the tag, the tag
36607             could be stale if lines in the document have been added or deleted
36608           - RebalanceAfterDelete(): Fixed bug in balancing code
36609           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
36610           - Line.Streamline(): Now can also elminate leading empty tags
36611           - DumpTree(): Added a few more tests and prevented exception on
36612             uninitialized data
36613           - Added Debug section for Combining lines
36614           - Delete(): Now copies all remaining properties of a line
36615           
36616         * TextBoxBase.cs:
36617           - Left mousebutton now sets the caret (and middle button still acts
36618             as formatting tester, which must go away soon)
36619           - Added Debug section for Deleting/Combining lines
36620           - Fixed calculations for UpdateView after Combining lines
36621
36622 2004-12-16  Peter Bartok  <pbartok@novell.com>
36623
36624         * TextControl.cs: Now properly aligns text on a baseline, using the
36625           new XplatUI.GetFontMetrics() method. Simplified several calculations
36626         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
36627           defined
36628
36629 2004-12-16  Peter Bartok  <pbartok@novell.com>
36630
36631         * XplatUI.cs: Added GetFontMetrics() method
36632         * XplatUIDriver.cs: Added GetFontMetrics() abstract
36633         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
36634           into libgdiplus, our private GetFontMetrics function
36635         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
36636         * XplatUIWin32.cs: Implemented GetFontMetrics() method
36637
36638 2004-12-16  Jackson Harper  <jackson@ximain.com>
36639
36640         * XplatUIStruct.cs: Add enum for dead keys
36641         * X11Keyboard.cs: Map and unmap dead keys.
36642
36643 2004-12-16  Jackson Harper  <jackson@ximian.com>
36644
36645         * X11Keyboard.cs: Detect and use the num lock mask.
36646
36647 2004-12-16  Peter Bartok  <pbartok@novell.com>
36648
36649         * Control.cs (CreateGraphics): Added check to make sure the
36650           handle of the window exists before calling Graphics.FromHwnd()
36651
36652 2004-12-16  Peter Bartok  <pbartok@novell.com>
36653
36654         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
36655           contains a lot of code that's not supposed to be there for the
36656           real thing, but required for developing/testing the textbox
36657           backend.
36658
36659 2004-12-16  Peter Bartok  <pbartok@novell.com>
36660
36661         * TextControl.cs:
36662         - Fixed Streamline method
36663         - Added FindTag method to Line
36664         - Added DumpTree method for debugging
36665         - Added DecrementLines() method for deleting lines
36666         - Fixed UpdateView to update the cursor to end-of-line on single-line
36667           updates
36668         - Added PositionCaret() method
36669         - Fixed MoveCaret(LineDown) to move into the last line, too
36670         - Added InsertChar overload
36671         - Fixed InsertChar tag offset calculations
36672         - Added DeleteChar() method
36673         - Added Combine() method for folding lines
36674         - Fixed Delete() method, no longer allocates wasted Line object and
36675           now copies all properties when swapping nodes
36676         - Delete() method now updates document line counter
36677
36678 2004-12-15  Jackson Harper  <jackson@ximian.com>
36679
36680         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
36681         * X11Keyboard.cs: Expose the currently selected modifier keys
36682         through a property.
36683
36684 2004-12-15  Peter Bartok  <pbartok@novell.com>
36685
36686         * TextControl.cs: Initial check-in. Still incomplete
36687
36688 2004-12-15  Jackson Harper  <jackson@ximian.com>
36689
36690         * TreeNode.cs:
36691         * TreeView.cs: Fix build on csc (second time today ;-))
36692
36693 2004-12-15  Jackson Harper  <jackson@ximian.com>
36694
36695         * TreeView.cs: Store the treenodes plus/minus box bounds when it
36696         is calculated and use this for click testing.
36697         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
36698
36699 2004-12-15  Jackson Harper  <jackson@ximian.com>
36700
36701         * TreeView.cs: Pass the nodes image index to the image list when
36702         drawing that image.
36703
36704 2004-12-15  Jackson Harper  <jackson@ximian.com>
36705
36706         * X11Keyboard.cs: Set messages hwnd.
36707         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
36708         post_message calls.
36709
36710 2004-12-15  Jackson Harper  <jackson@ximian.com>
36711
36712         * X11Keyboard.cs: Fix to compile with csc.
36713         
36714 2004-12-15  Jackson Harper  <jackson@ximian.com>
36715
36716         * X11Structs.cs: Add key mask values
36717         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
36718         * X11Keyboard.cs: New file - Extrapolates and interpolates key
36719         down/up foo into WM_CHAR foo
36720         * KeyboardLayouts.cs: Common keyboard layouts
36721         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
36722         post messages into the main queue.
36723
36724 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
36725
36726         * Button.cs: implement ProcessMnemonic
36727         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
36728           brushes everytime
36729         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
36730         * ButtonBase.cs: Show HotkeyPrefix (not the &)
36731
36732 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
36733         
36734         * MonthCalendar.cs: Implemented click-hold for next/previous month
36735           and date selection
36736           
36737 2004-12-11  Peter Bartok  <pbartok@novell.com>
36738
36739         * X11Structs.cs:
36740           - Added XKeyboardState (moved from XplatUIX11.cs)
36741           - Added XCreateGC related enums and structures
36742           - Added GXFunction for XSetFunction
36743
36744         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
36745
36746         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
36747           CaretVisible() calls
36748
36749         * ToolTip.cs: Added code to prevent stealing focus from app windows
36750
36751         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
36752           DestroyCaret, SetCaretPos and CaretVisible)
36753
36754         * XplatUIX11.cs:
36755           - Added implementation for caret functions
36756           - Moved hover variables into a struct, to make it a bit easier
36757             on the eyes and to debug
36758           - Removed XKeyboardState (moved to XplatUIX11.cs)
36759           - Moved Keyboard properties into the properties region
36760
36761         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
36762           call to get a graphics context for our control
36763
36764         * XplatUIOSX.cs: Added empty overrides for the new caret functions
36765
36766         * TreeView.cs: Fixed bug. No matter what color was set it would always
36767           return SystemColors.Window
36768
36769         * XplatUIWin32.cs: Implemented caret overrides
36770
36771 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
36772
36773         * ListBox.cs: fire events, implement missing methods and properties,
36774         sorting.
36775
36776 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
36777
36778         * MonthCalendar.cs: invalidation bug fixing
36779         * ThemeWin32Classic.cs: paint fixing
36780
36781 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
36782
36783         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
36784         prepare the CGContextRef there now.
36785
36786 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
36787
36788         * MonthCalendar.cs:
36789           - optimisationL only invalidate areas that have changed
36790         * ThemeWin32Classic.cs:
36791           - only paint parts that intersect with clip_area
36792
36793 2004-12-09  Peter Bartok  <pbartok@novell.com>
36794
36795         * Application.cs: Undid changes from r37004 which cause problems
36796         on X11
36797
36798 2004-12-09  Ravindra  <rkumar@novell.com>
36799
36800         * ToolBar.cs: Added support for displaying ContextMenu
36801         attached to a button on ToolBar.
36802         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
36803         property.
36804
36805 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36806
36807         * Label.cs: autosize works in text change and removes unnecessary
36808         invalidate
36809
36810 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36811
36812         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
36813         remove warnings
36814
36815 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
36816
36817         * XplatUIOSX.cs: Added mouse move/click/grab support
36818         Remove some debugging WriteLines not needed anymore.
36819         Add window resizing/positioning.
36820         Fix visibility on reparenting.
36821
36822 2004-12-08  Peter Bartok  <pbartok@novell.com>
36823
36824         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
36825
36826 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
36827
36828         * XplatUIOSX.cs: Initial checkin
36829         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
36830
36831 2004-12-03  Ravindra <rkumar@novell.com>
36832
36833         * ListView.cs: Added some keybindings and fixed scrolling.
36834         ScrollBars listen to ValueChanged event instead of Scroll
36835         Event. This would let us take care of all changes being
36836         done in the scrollbars' values programmatically or manually.
36837         * ListView.cs (CanMultiselect): Added a check for shift key.
36838         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
36839         * ListViewItem.cs (Clone): Fixed. We need to make a copy
36840         of ListViewSubItemCollection as well.
36841
36842 2004-12-06  Peter Bartok <pbartok@novell.com>
36843
36844         * Control.cs (Parent): Added check and exception to prevent
36845         circular parenting
36846
36847 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
36848
36849         * ListBox.cs: implemented clipping, selection single and multiple,
36850         bug fixing
36851
36852 2004-12-03  Ravindra <rkumar@novell.com>
36853
36854         * ListView.cs (ListView_KeyDown):
36855         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
36856         when CTRL key is pressed.
36857         * ListViewItem.cs (Selected): Fixed setting the property.
36858
36859 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
36860
36861         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
36862
36863         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
36864         MinimizeBox, ShowInTaskbar, TopMost properties.
36865
36866         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
36867         will be implemented).
36868
36869 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
36870
36871         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
36872
36873         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
36874         tests.
36875         
36876         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
36877         
36878         * TreeView.cs: BackColor is Colors.Window.
36879
36880 2004-12-01  Jackson Harper  <jackson@ximian.com>
36881
36882         * TreeView.cs: When resizing the tree if the user is making it
36883         smaller we don't get expose events, so we need to handle adding
36884         the horizontal scrollbar in the size changed handler as well as
36885         the expose handler.
36886
36887 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
36888
36889         * DrawItemState.cs: fixes wrong enum values
36890
36891 2004-12-01  Jackson Harper  <jackson@ximian.com>
36892
36893         * TreeView.cs: Resize the hbar as well as the vbar on resize.
36894
36895 2004-12-01  Jackson Harper  <jackson@ximian.com>
36896
36897         * NodeLabelEditEventArgs.cs:
36898         * NodeLabelEditEventHandler.cs:
36899         * OpenTreeNodeEnumerator.cs:
36900         * TreeNode.cs:
36901         * TreeNodeCollection.cs:
36902         * TreeView.cs:
36903         * TreeViewAction.cs:
36904         * TreeViewCancelEventArgs.cs:
36905         * TreeViewCancelEventHandler.cs:
36906         * TreeViewEventArgs.cs:
36907         * TreeViewEventHandler.cs: Initial implementation.
36908
36909 2004-12-01  Ravindra <rkumar@novell.com>
36910
36911         * ListView.cs (CalculateListView): Fixed scrolling related
36912         calculations. Also, removed some debug statements from other
36913         places.
36914         * ListViewItem.cs: Changed access to 'selected' instance variable
36915         from private to internal.
36916         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
36917
36918 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
36919
36920         * ThemeWin32Classic.cs: remove cache of brush and pens for
36921         specific controls and use the global system, fixes scrollbutton
36922         bugs (for small sizes, disabled, etc)
36923         
36924         * ScrollBar.cs: does not show the thumb for very small controls
36925         (as MS) and allow smaller buttons that the regular size
36926
36927 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
36928
36929         * UpDownBase.cs: Add abstract methods for the interface.
36930         Add new virtual methods (need to be hooked up to TextEntry when it
36931         exists).
36932         Add override methods for most features.
36933         Computes the size, forces the height of the text entry.
36934
36935         * NumericUpDown.cs: Put here the current testing code.
36936
36937         * Set eol-style property on all files that do not have mixed line
36938         endings, to minimize the future problems.  There are still a few
36939         files with mixed endings, and someone should choose whether they
36940         want to move it or not.
36941
36942 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
36943
36944         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
36945         System.Colors
36946         
36947 2004-11-30  Ravindra <rkumar@novell.com>
36948
36949         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
36950         drawing and replaced use of SystemColors by theme colors.
36951         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
36952         * ListView.cs (ListViewItemCollection.Add): Throw exception when
36953         same ListViewItem is being added more than once.
36954
36955 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
36956
36957         * MonthCalendar.cs:
36958           - ControlStyles love to make the control not flicker
36959           
36960 2004-11-30  Peter Bartok  <pbartok@novell.com>
36961
36962         * CharacterCasing.cs: Added
36963
36964 2004-11-29  Peter Bartok  <pbartok@novell.com>
36965
36966         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36967           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
36968           I am removing these files as they conflict with already completed
36969           work. While it is fantastic to get contributions to MWF, I
36970           respectfully ask that everyone please coordinate their contributions
36971           through mono-winforms-list or #mono-winforms at this time. We're
36972           explicitly avoiding stubbing and don't want controls that don't have
36973           their basic functionality implemented in svn. Please also see
36974           http://www.mono-project.com/contributing/winforms.html
36975
36976
36977 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
36978
36979         * Application.cs (ModalRun): Don't hang after exit.
36980
36981         * Theme.cs: New TreeViewDefaultSize property.
36982
36983         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
36984         with less hardcoded SystemColors constant.
36985         Implemented TreeViewDefaultSize.
36986
36987         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36988         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
36989
36990
36991 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
36992
36993         * MonthCalendar.cs:
36994           - Fix NextMonthDate and PrevMonthDate click moving calendar
36995
36996 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
36997
36998         * MonthCalendar.cs:
36999           - Fix usage of ScrollChange Property when scrolling months
37000
37001 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
37002
37003         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
37004          - Fixes menu destroying
37005          - Support adding and removing items on already created menus
37006
37007 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
37008
37009         * MonthCalendar.cs:
37010           - Re-worked all bolded dates handling to match win32
37011         * ThemeWin32Classic.cs:
37012           - Fixed rendering with bolded dates
37013
37014 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
37015
37016         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
37017         - Horizontal scroolbar
37018         - Multicolumn
37019         - Fixes
37020
37021
37022 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
37023
37024         * MonthCalendar.cs:
37025           - Fix Usage of MaxSelectionCount from SelectionRange
37026           - Fixed Shift + Cursor Selection
37027           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
37028           - Fixed normal cursor selection to be compat with win32
37029           - Fixed Shift + Mouse Click selection
37030
37031 2004-11-24  Peter Bartok <pbartok@novell.com>
37032
37033         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
37034         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
37035         * XplatUIX11.cs:
37036           - CreatedKeyBoardMsg now updates keystate with Alt key
37037           - Added workaround for timer crash to CheckTimers, Jackson will
37038             develop a proper fix and check in later
37039           - Implemented DispatchMessage
37040           - Removed calling the native window proc from GetMessage (call
37041             now moved to DispatchMessage)
37042
37043         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
37044           the keydata (Fixes bug #69831)
37045
37046         * XplatUIWin32.cs:
37047           - (DispatchMessage): Switched to return IntPtr
37048           - Added DllImport for SetFocus
37049
37050 2004-11-24  Ravindra <rkumar@novell.com>
37051
37052         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
37053         background drawing.
37054         * ListViewItem.cs: Fixed various properties, calculations
37055         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
37056         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
37057         and some internal properties. Fixed MouseDown handler and Paint
37058         method.
37059
37060 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37061
37062         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
37063
37064 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37065
37066         * ContainerControl.cs: correct accidental check in of local changes
37067
37068 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37069
37070         * ThemeWin32Classic.cs:
37071                 - Fixed Drawing Last month in grid (sometimes not showing)
37072         * MonthCalendar.cs:
37073                 - Fixed title width calculation bug (makeing title small)
37074
37075 2004-11-23  Peter Bartok <pbartok@novell.com>
37076
37077         * XplatUIX11.cs:
37078           - Added generation of WM_MOUSEHOVER event
37079           - Added missing assignment of async_method atom
37080           - Fixed WM_ERASEBKGND; now only redraws the exposed area
37081
37082 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
37083
37084         * ThemeWin32Classic.cs:
37085                 - Fixed Drawing of today circle when showtodaycircle not set
37086                 - fixed drawing of first and last month in the grid (gay dates)
37087         * MonthCalendar.cs:
37088                 - Fixed Drawing of today circle
37089                 - Fixed drawing of grady dates
37090                 - Fixed HitTest for today link when ShowToday set to false
37091                 - Fixed DefaultSize to obey ShowToday
37092
37093 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
37094
37095         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
37096         * System.Windows.Forms/Theme.cs
37097         * MonthCalendar.cs: added for MonthCalendar
37098         * SelectionRange.cs: added for MonthCalendar
37099         * Day.cs: added for MonthCalendar: added for MonthCalendar
37100         * DateRangeEventArgs.cs: added for MonthCalendar
37101         * DateRangeEventHandler.cs: added for MonthCalendar
37102
37103 2004-11-22  Ravindra <rkumar@novell.com>
37104
37105         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
37106         property.
37107
37108 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
37109
37110         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
37111         event handler.
37112         
37113         * NumericUpDown.cs: Added new implementation.
37114         * UpDownBase.cs: Added new implementation.
37115
37116         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
37117         implementations.
37118         
37119         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
37120         implementations.
37121
37122         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
37123         methods.
37124
37125 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
37126
37127         * Timer.cs  (Dispose): Should call the base dispose when
37128         overriding.
37129
37130 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
37131
37132         * ScrollBar.cs: updates thumb position when max, min or increment
37133         is changed
37134
37135 2004-11-21  Ravindra <rkumar@novell.com>
37136
37137         * ListView.cs: Implemented item selection, activation and
37138         column header style. Fixed properties to do a redraw, if
37139         required. Added support for MouseHover, DoubleClick, KeyDown
37140         and KeyUp event handling and some minor fixes.
37141         * ListViewItem.cs: Fixed constructor.
37142         * ThemeWin32Classic.cs: Improved drawing for ListView.
37143
37144 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
37145
37146         * ThemeWin32Classic.cs: initial listbox drawing code
37147         * DrawMode.cs: new enumerator
37148         * ListControl.cs: stubbed class
37149         * ListBox.cs: initial implementation
37150         * Theme.cs: new methods definitions
37151         * SelectionMode.cs: new enumerator
37152
37153 2004-11-17  Peter Bartok  <pbartok@novell.com>
37154
37155         * XplatUIWin32.cs: Added double-click events to the class style
37156         * Control.cs (WndProc):
37157           - Added handling of click-count to MouseDown/ MouseUp events.
37158           - Added handling of middle and right mouse buttons
37159           - Removed old debug code
37160
37161 2004-11-17  Jackson Harper  <jackson@ximian.com>
37162
37163         * XplatUIX11.cs: Use the new Mono.Unix namespace.
37164
37165 2004-11-17  Ravindra <rkumar@novell.com>
37166
37167         * ListView.cs: Added event handling for MouseMove/Up/Down.
37168         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
37169         * ThemeWin32Classic.cs: We need to clear the graphics context and
37170         draw column header in a proper state.
37171
37172
37173 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
37174
37175         *  Menu.cs: fixes signature
37176
37177 2004-11-16  Peter Bartok  <pbartok@novell.com>
37178
37179         * XplatUIX11.cs (GetMessage): Implemented generation of
37180           double click mouse messages
37181
37182 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
37183
37184         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
37185         not by menu
37186
37187 2004-11-11  Peter Bartok  <pbartok@novell.com>
37188
37189         * HandleData.cs: Added Visible property
37190         * XplatUIX11.cs (IsVisible): Now uses Visible property from
37191           HandleData
37192         * XplatUIX11.cs: Removed old debug leftovers
37193         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
37194         * Control.cs (WndProc): Removed old debug leftovers,
37195           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
37196           needed WM_SIZE handling
37197
37198 2004-11-11  Jackson Harper  <jackson@ximian.com>
37199
37200         * OwnerDrawPropertyBag.cs:
37201         * TreeViewImageIndexConverter.cs: Initial implementation
37202
37203 2004-11-10  Jackson Harper  <jackson@ximian.com>
37204
37205         * ThemeWin32Classic.cs:
37206         * TabControl.cs: instead of moving tabs by the slider pos just
37207         start drawing at the tab that is offset by the slider. This way
37208         scrolling always moves by exactly one tab.
37209
37210 2004-11-10  Jackson Harper  <jackson@ximian.com>
37211
37212         * TabControl.cs: You can only scroll left when the slider has
37213         already ben moved right.
37214         
37215 2004-11-10  Jackson Harper  <jackson@ximian.com>
37216
37217         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
37218         the clip area.
37219         
37220 2004-11-10  Jackson Harper  <jackson@ximian.com>
37221
37222         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
37223         clip area.
37224         
37225 2004-11-09  Jackson Harper  <jackson@ximian.com>
37226
37227         * TabControl.cs (CalcXPos): New helper method so we can determine
37228         the proper place to start drawing vertical tabs.
37229         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
37230         
37231 2004-11-09  Jackson Harper  <jackson@ximian.com>
37232
37233         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
37234         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
37235         and Bottom, left and right are illegal values for this and
37236         multiline is enabled when the alignment is set to left or right.
37237         (DrawTab): Each alignment block should draw the text itself now
37238         because Left requires special love. Also add rendering for Left
37239         aligned tabs.
37240         
37241 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
37242
37243         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
37244         does not destroy the windows, removes debugging messages
37245
37246 2004-11-09  jba  <jba-mono@optusnet.com.au>
37247
37248         * ThemeWin32Classic.cs
37249         (DrawButtonBase): Fix verticle text rect clipping in windows
37250         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37251         rendering and incorrect text rect clipping
37252         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37253         rendering and incorrect text rect clipping
37254         
37255 2004-11-08  Jackson Harper  <jackson@ximian.com>
37256
37257         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
37258         bottom when they are bottom aligned so the bottoms of the tabs get
37259         displayed.
37260         * TabControl.cs (DropRow): Move rows up instead of down when the
37261         tab control is bottom aligned.
37262
37263 2004-11-08 13:59  pbartok
37264
37265         * XplatUIX11.cs:
37266           - Added handling for various window styles
37267           - Added handling for popup windows
37268           - Added SetTopmost handling
37269
37270 2004-11-08 13:55  pbartok
37271
37272         * XplatUIWin32.cs:
37273           - Added argument to SetTopmost method
37274           - Fixed broken ClientToScreen function
37275
37276 2004-11-08 13:53  pbartok
37277
37278         * XplatUIStructs.cs:
37279           - Added missing WS_EX styles
37280
37281 2004-11-08 13:53  pbartok
37282
37283         * XplatUI.cs, XplatUIDriver.cs:
37284           - Added argument to SetTopmost
37285
37286 2004-11-08 13:52  pbartok
37287
37288         * X11Structs.cs:
37289           - Added XSetWindowAttributes structure
37290           - Improved XWindowAttributes structure
37291           - Added SetWindowValuemask enum
37292           - Added window creation arguments enum
37293           - Added gravity enum
37294           - Added Motif hints structure
37295           - Added various Motif flags and enums
37296           - Added PropertyMode enum for property functions
37297
37298 2004-11-08 13:50  pbartok
37299
37300         * Form.cs:
37301           - Fixed arguments for updated SetTopmost method
37302
37303 2004-11-08 13:49  pbartok
37304
37305         * ToolTip.cs:
37306           - Fixed arguments for updated SetTopmost function
37307           - Fixed usage of PointToClient
37308
37309 2004-11-08 13:44  pbartok
37310
37311         * MenuAPI.cs:
37312           - Added Clipping of children and siblings
37313
37314 2004-11-08 13:41  pbartok
37315
37316         * MainMenu.cs:
37317           - Removed SetMenuBarWindow call. We do this in Form.cs
37318
37319 2004-11-08 13:40  jackson
37320
37321         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
37322           scrolling jimmi in the correct location with bottom aligned tabs
37323
37324 2004-11-08 13:36  pbartok
37325
37326         * ContainerControl.cs:
37327           - Implemented BindingContext
37328           - Implemented ParentForm
37329
37330 2004-11-08 12:46  jackson
37331
37332         * TabControl.cs: Put bottom rendered tabs in the right location
37333
37334 2004-11-08 07:15  jordi
37335
37336         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
37337           removes dead code
37338
37339 2004-11-05 17:30  jackson
37340
37341         * TabControl.cs: When selected tabs are expanded make sure they
37342           don't go beyond the edges of the tab control
37343
37344 2004-11-05 14:57  jackson
37345
37346         * TabControl.cs: Reset show_slider so if the control is resized to
37347           a size where it is no longer needed it's not displayed anymore
37348
37349 2004-11-05 13:16  jackson
37350
37351         * TabControl.cs: Make tab pages non visible when added to the
37352           control
37353
37354 2004-11-05 12:42  jackson
37355
37356         * TabControl.cs: Implement SizeMode.FillToRight
37357
37358 2004-11-05 12:16  jackson
37359
37360         * Control.cs: Do not call CreateHandle if the handle is already
37361           created
37362
37363 2004-11-05 11:46  jackson
37364
37365         * TabControl.cs: Remove superflous call to CalcTabRows
37366
37367 2004-11-05 09:07  jackson
37368
37369         * XplatUIX11.cs: Update for Mono.Posix changes
37370
37371 2004-11-05 07:00  ravindra
37372
37373         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
37374           scrolling.
37375
37376 2004-11-04 22:47  jba
37377
37378         * ThemeWin32Classic.cs:
37379           - Fix Button rendering for FlatStyle = Flat or Popup
37380           - Fix RadioButton and CheckBox rendering when Appearance = Button
37381             (normal and flatstyle).
37382           - Correct outer rectangle color when drawing focus rectangle
37383           - Adjust button bounds to be 1 px smaller when focused
37384           - Make button not draw sunken 3d border when pushed (windows compat)
37385           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
37386           - Offset the text in RadioButton and Checkbox when being rendered as
37387           a button.
37388           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
37389           radiobuttons
37390           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
37391           - Fixed disabled text rendering for normally rendered radiobuttons
37392
37393 2004-11-04 10:26  jackson
37394
37395         * TabControl.cs: Recalculate tab rows when resizing
37396
37397 2004-11-04 07:47  jordi
37398
37399         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
37400           collection completion, drawing issues, missing features
37401
37402 2004-11-04 05:03  ravindra
37403
37404         * ScrollBar.cs:
37405                 - We need to recalculate the Thumb area when
37406                 LargeChange/maximum/minimum values are changed.
37407           - We set the 'pos' in UpdatePos() method to minimum, if it's less
37408                 than minimum. This is required to handle the case if large_change is
37409                 more than max, and use LargeChange property instead of large_change
37410                 variable.
37411           - We return max+1 when large_change is more than max, like MS does.
37412
37413 2004-11-04 04:29  ravindra
37414
37415         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
37416                 - Changed default value signatures (prefixed all with ListView).
37417                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
37418                 ListView.
37419           - Fixed calculations for ListViewItem and implemented Clone()
37420           method.
37421
37422 2004-11-04 04:26  ravindra
37423
37424         * Theme.cs, ThemeWin32Classic.cs:
37425                 - Changed default ListView values signatures (prefixed all with
37426                 ListView).
37427           - Fixed default size values for VScrollBar and HScrollBar.
37428                 - Fixed DrawListViewItem method.
37429
37430 2004-11-04 04:05  ravindra
37431
37432         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
37433
37434 2004-11-04 04:04  ravindra
37435
37436         * ImageList.cs: Implemented the missing overload for Draw method.
37437
37438 2004-11-03 19:29  jackson
37439
37440         * TabControl.cs: Handle dropping rows on selection properly
37441
37442 2004-11-03 11:59  jackson
37443
37444         * TabControl.cs: remove debug code
37445
37446 2004-11-03 11:52  jackson
37447
37448         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
37449           the scrolly widgerywoo
37450
37451 2004-11-02 13:52  jackson
37452
37453         * TabControl.cs: Resize the tab pages and tabs when the tab control
37454           is resized
37455
37456 2004-11-02 13:40  jackson
37457
37458         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
37459           selected tab to the bottom
37460
37461 2004-11-02 13:39  jackson
37462
37463         * TabPage.cs: Store the tab pages row
37464
37465 2004-11-02 12:33  jordi
37466
37467         * MenuItem.cs: fixes handle creation
37468
37469 2004-11-02 11:42  jackson
37470
37471         * TabControl.cs: signature fix
37472
37473 2004-11-02 08:56  jackson
37474
37475         * TabControl.cs: Calculate whether the tab is on an edge properly.
37476           Remove top secret debugging code
37477
37478 2004-11-01 19:57  jackson
37479
37480         * TabControl.cs: Add click handling, and proper sizing
37481
37482 2004-11-01 19:47  jackson
37483
37484         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
37485           tab controls
37486
37487 2004-11-01 19:39  jackson
37488
37489         * TabPage.cs: add internal property to store the bounds of a tab
37490           page
37491
37492 2004-10-30 04:23  ravindra
37493
37494         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
37495           values.
37496
37497 2004-10-30 04:21  ravindra
37498
37499         * ListView.cs, ListViewItem.cs: Added support for scrolling and
37500           fixed calculations.
37501
37502 2004-10-30 03:06  pbartok
37503
37504         * XplatUIX11.cs:
37505           - Removed extension of DllImported libs
37506
37507 2004-10-29 09:55  jordi
37508
37509         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
37510           navigation, itemcollection completion, menu fixes
37511
37512 2004-10-27 22:58  pbartok
37513
37514         * XplatUIX11.cs:
37515           - Now throws a nice error message when no X display could be opened
37516
37517 2004-10-26 13:51  jordi
37518
37519         * ListView.cs: removes warning
37520
37521 2004-10-26 03:55  ravindra
37522
37523         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
37524           ThemeWin32Classic.cs: Some formatting for my last checkins.
37525
37526 2004-10-26 03:36  ravindra
37527
37528         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
37529           control and default values.
37530
37531 2004-10-26 03:35  ravindra
37532
37533         * Theme.cs: Added some default values for ListView control.
37534
37535 2004-10-26 03:33  ravindra
37536
37537         * ToolBar.cs: ToolBar should use the user specified button size, if
37538           there is any. Added a size_specified flag for the same.
37539
37540 2004-10-26 03:33  ravindra
37541
37542         * ColumnHeader.cs: Added some internal members and calculations for
37543           ColumnHeader.
37544
37545 2004-10-26 03:32  ravindra
37546
37547         * ListViewItem.cs: Calculations for ListViewItem.
37548
37549 2004-10-26 03:31  ravindra
37550
37551         * ListView.cs: Added some internal members and calculations for
37552           ListView.
37553
37554 2004-10-22 13:31  jordi
37555
37556         * MenuAPI.cs: speedup menus drawing
37557
37558 2004-10-22 13:16  jackson
37559
37560         * XplatUIX11.cs: Make sure to update exposed regions when adding an
37561           expose event
37562
37563 2004-10-22 11:49  jackson
37564
37565         * Control.cs: oops
37566
37567 2004-10-22 11:41  jackson
37568
37569         * Control.cs: Check to see if the window should have its background
37570           repainted by X when drawing.
37571
37572 2004-10-22 11:31  jackson
37573
37574         * XplatUIX11.cs: When invalidating areas only use XClearArea if
37575           clear is true, this way we do not get flicker from X repainting the
37576           background
37577
37578 2004-10-22 11:28  jackson
37579
37580         * XEventQueue.cs: Queue properly
37581
37582 2004-10-21 09:38  jackson
37583
37584         * XEventQueue.cs: Fix access modifier
37585
37586 2004-10-21 09:36  jackson
37587
37588         * XEventQueue.cs: Don't loose messages
37589
37590 2004-10-21 09:22  jackson
37591
37592         * XEventQueue.cs: Don't loose messages
37593
37594 2004-10-20 04:15  jordi
37595
37596         * BootMode.cs: enum need it by SystemInfo
37597
37598 2004-10-19 21:58  pbartok
37599
37600         * XplatUIWin32.cs:
37601           - Small sanity check
37602
37603 2004-10-19 21:56  pbartok
37604
37605         * Form.cs:
37606           - Added private FormParentWindow class which acts as the container
37607             for our form and as the non-client area where menus are drawn
37608           - Added/Moved required tie-ins to Jordi's menus
37609           - Fixed/Implemented the FormStartPosition functionality
37610
37611 2004-10-19 21:52  pbartok
37612
37613         * Control.cs:
37614           - Removed unneeded locals
37615           - Added code to all size and location properties to understand and
37616             deal with the parent container of Form
37617
37618 2004-10-19 21:33  pbartok
37619
37620         * Application.cs:
37621           - Fixed to deal with new Form subclasses for menus
37622
37623 2004-10-19 17:48  jackson
37624
37625         * XEventQueue.cs: commit correct version of file
37626
37627 2004-10-19 16:50  jackson
37628
37629         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
37630
37631 2004-10-19 16:15  jordi
37632
37633         * MenuAPI.cs: MenuBarCalcSize returns the height
37634
37635 2004-10-19 08:31  pbartok
37636
37637         * Control.cs:
37638           - Added missing call to PreProcessMessage before calling OnXXXKey
37639           methods
37640
37641 2004-10-19 00:04  ravindra
37642
37643         * ToolTip.cs: Fixed constructor.
37644
37645 2004-10-18 09:31  jordi
37646
37647         * MenuAPI.cs: menuitems in menubars do not have shortcuts
37648
37649 2004-10-18 09:26  jordi
37650
37651         * MenuItem.cs: fixes MenuItem class signature
37652
37653 2004-10-18 08:56  jordi
37654
37655         * MenuAPI.cs: prevents windows from showing in the taskbar
37656
37657 2004-10-18 00:28  ravindra
37658
37659         * ToolTip.cs: Suppressed a warning message.
37660
37661 2004-10-18 00:27  ravindra
37662
37663         * Control.cs: Default value of visible property must be true.
37664
37665 2004-10-17 23:19  pbartok
37666
37667         * ToolTip.cs:
37668           - Complete implementation
37669
37670 2004-10-17 23:19  pbartok
37671
37672         * XplatUIX11.cs:
37673           - Added EnableWindow method
37674           - Added SetModal stub
37675           - Added generation of WM_ACTIVATE message (still needs testing)
37676           - Added SetTopMost stub
37677           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
37678
37679 2004-10-17 23:17  pbartok
37680
37681         * XplatUIWin32.cs:
37682           - Removed VirtualKeys to XplatUIStructs
37683           - Implemented SetTopMost method
37684           - Implemented EnableWindow method
37685           - Bugfix in ScreenToClient()
37686           - Bugfixes in ClientToScreen()
37687
37688 2004-10-17 22:51  pbartok
37689
37690         * XplatUIStructs.cs:
37691           - Added WS_EX styles to WindowStyles enumeration
37692
37693 2004-10-17 22:50  pbartok
37694
37695         * XplatUI.cs, XplatUIDriver.cs:
37696           - Added method for enabling/disabling windows
37697           - Added method for setting window modality
37698           - Added method for setting topmost window
37699
37700 2004-10-17 22:49  pbartok
37701
37702         * ThemeWin32Classic.cs:
37703           - Added ToolTip drawing code
37704
37705 2004-10-17 22:49  pbartok
37706
37707         * Theme.cs:
37708           - Added ToolTip abstracts
37709
37710 2004-10-17 22:47  pbartok
37711
37712         * Form.cs:
37713           - Fixed Form.ControlCollection to handle owner relations
37714           - Added Owner/OwnedForms handling
37715           - Implemented Z-Ordering for owned forms
37716           - Removed unneeded private overload of ShowDialog
37717           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
37718             so I hope)
37719           - Fixed Close(), had wrong default
37720           - Added firing of OnLoad event
37721           - Added some commented out debug code for Ownership handling
37722
37723 2004-10-17 22:16  pbartok
37724
37725         * Control.cs:
37726           - Fixed/implemented flat list of controls
37727
37728 2004-10-17 22:14  pbartok
37729
37730         * Application.cs:
37731           - Added code to simulate modal dialogs on Win32
37732
37733 2004-10-17 16:11  jordi
37734
37735         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
37736           mouse event
37737
37738 2004-10-17 13:39  jordi
37739
37740         * MenuAPI.cs: menu drawing fixes
37741
37742 2004-10-15 09:10  ravindra
37743
37744         * StructFormat.cs: General Enum.
37745
37746 2004-10-15 09:09  ravindra
37747
37748         * SizeGripStyle.cs: Enum for Form.
37749
37750 2004-10-15 09:08  ravindra
37751
37752         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
37753           in Theme for ListView.
37754
37755 2004-10-15 09:06  ravindra
37756
37757         * ColumnHeader.cs: Flushing some formatting changes.
37758
37759 2004-10-15 09:05  ravindra
37760
37761         * ListViewItem.cs: Implemented GetBounds method and fixed coding
37762           style.
37763
37764 2004-10-15 09:03  ravindra
37765
37766         * ListView.cs: Implemented Paint method and fixed coding style.
37767
37768 2004-10-15 07:34  jordi
37769
37770         * MenuAPI.cs: fix for X11
37771
37772 2004-10-15 07:32  ravindra
37773
37774         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
37775                 - Renamed Paint() method to Draw() for clarity. Also, moved
37776                 DrawImage() to OnPaint().
37777
37778 2004-10-15 07:25  ravindra
37779
37780         * CheckBox.cs, RadioButton.cs:
37781                 - Removed Redraw (), we get it from ButtonBase.
37782                 - Implemented Paint (), to do class specific painting.
37783
37784 2004-10-15 07:16  ravindra
37785
37786         * ButtonBase.cs:
37787                 - Redraw () is not virtual now.
37788                 - Added an internal virtual method Paint (), so that
37789                 derived classes can do their painting on their own.
37790                 - Modified OnPaint () to call Paint ().
37791
37792 2004-10-15 06:43  jordi
37793
37794         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
37795           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
37796
37797 2004-10-15 00:30  ravindra
37798
37799         * MessageBox.cs:
37800                 - MessageBox on windows does not have min/max buttons.
37801                 This change in CreateParams fixes this on Windows. We
37802                 still need to implement this windowstyle behavior in
37803                 our X11 driver.
37804
37805 2004-10-14 05:14  ravindra
37806
37807         * ToolBar.cs:
37808                 - Changed Redraw () to do a Refresh () always.
37809                 - Fixed the MouseMove event handling when mouse is pressed,
37810                 ie drag event handling.
37811                 - Replaced the usage of ToolBarButton.Pressed property to
37812                 ToolBarButton.pressed internal variable.
37813
37814 2004-10-14 05:10  ravindra
37815
37816         * ToolBarButton.cs:
37817                 - Added an internal member 'inside' to handle mouse move
37818                 with mouse pressed ie mouse drag event.
37819                 - Changed 'Pressed' property to return true only when
37820                 'inside' and 'pressed' are both true.
37821                 - Some coding style love.
37822
37823 2004-10-14 00:17  ravindra
37824
37825         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
37826           public method.
37827
37828 2004-10-14 00:15  ravindra
37829
37830         * ButtonBase.cs: Redraw () related improvements.
37831
37832 2004-10-14 00:14  ravindra
37833
37834         * MessageBox.cs: Moved InitFormSize () out of Paint method and
37835           removed unnecessary calls to Button.Show () method.
37836
37837 2004-10-13 17:50  pbartok
37838
37839         * XplatUIX11.cs:
37840           - Formatting fix
37841           - Removed destroying of window until we solve the problem of X
37842             destroying the window before us on shutdown
37843
37844 2004-10-13 16:32  pbartok
37845
37846         * ButtonBase.cs:
37847           - Now Redraws on MouseUp for FlatStyle Flat and Popup
37848
37849 2004-10-13 14:18  pbartok
37850
37851         * XplatUIX11.cs:
37852           - Added code to destroy the X window
37853
37854 2004-10-13 14:18  pbartok
37855
37856         * XplatUIWin32.cs:
37857           - Added code to destroy a window
37858
37859 2004-10-13 14:12  pbartok
37860
37861         * ButtonBase.cs:
37862           - Added the Redraw on Resize that got dropped in the last rev
37863
37864 2004-10-13 09:06  pbartok
37865
37866         * ThemeWin32Classic.cs:
37867           - Path from John BouAntoun:
37868             * Fix check rendering (centre correctly for normal style, offset
37869               correctly for FlatStyle).
37870             * Fix border color usage (use backcolor) for FlatStyle.Popup
37871             * Use checkbox.Capture instead of checkbox.is_pressed when
37872               rendering flatstyle states.
37873
37874 2004-10-12 21:48  pbartok
37875
37876         * ThemeWin32Classic.cs:
37877           - Removed all occurences of SystemColors and replaced them with the
37878             matching theme color
37879
37880 2004-10-12 21:41  pbartok
37881
37882         * ThemeWin32Classic.cs:
37883           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
37884             him using the function for flatstyle drawing
37885           - Changed functions to use the new version of CPDrawBorder3D
37886
37887 2004-10-12 21:15  pbartok
37888
37889         * ControlPaint.cs:
37890           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
37891             match MS documentation. They need to return defined colors if the
37892             passed color matches the configured control color. Thanks to John
37893             BouAntoun for pointing this out.
37894
37895 2004-10-12 20:57  pbartok
37896
37897         * Control.cs:
37898           - Fix from John BouAntoun: Raise ForeColorChanged event when text
37899             color is changed
37900
37901 2004-10-12 20:46  pbartok
37902
37903         * CheckBox.cs:
37904           - Fix from John BouAntoun: Now properly sets the Appearance property
37905
37906 2004-10-12 20:45  pbartok
37907
37908         * ThemeWin32Classic.cs:
37909           - Fixes from John BouAntoun: now handles forecolors and backcolors
37910             for flatstyle rendered controls much better; It also fixes normal
37911             checkbox rendering when pushed or disabled.
37912
37913 2004-10-08 02:50  jordi
37914
37915         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
37916           work
37917
37918 2004-10-07 08:56  jordi
37919
37920         * ThemeWin32Classic.cs: Removes deletion of cached brushes
37921
37922 2004-10-06 03:59  jordi
37923
37924         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
37925           XplatUIWin32.cs: removes warnings from compilation
37926
37927 2004-10-05 12:23  jackson
37928
37929         * RadioButton.cs: Fix ctor
37930
37931 2004-10-05 11:10  pbartok
37932
37933         * MessageBox.cs:
37934           - Partial implementation by Benjamin Dasnois
37935
37936 2004-10-05 10:15  jackson
37937
37938         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
37939           by John BouAntoun
37940
37941 2004-10-05 03:07  ravindra
37942
37943         * ToolBar.cs:
37944                 - Removed a private method, Draw ().
37945                 - Fixed the ButtonDropDown event handling.
37946                 - Fixed MouseMove event handling.
37947
37948 2004-10-05 03:04  ravindra
37949
37950         * ThemeWin32Classic.cs:
37951                 - Added DrawListView method and ListViewDefaultSize property.
37952                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
37953                 - Changed DOS style CRLF to Unix format (dos2unix).
37954
37955 2004-10-05 03:03  ravindra
37956
37957         * Theme.cs:
37958                 - Added DrawListView method and ListViewDefaultSize property.
37959
37960 2004-10-05 02:42  ravindra
37961
37962         * ToolBarButton.cs: Added an internal member dd_pressed to handle
37963           clicks on DropDown arrow.
37964
37965 2004-10-04 22:56  jackson
37966
37967         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
37968           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
37969           Control handle the buffers, derived classes should not have to
37970           CreateBuffers themselves.
37971
37972 2004-10-04 21:20  jackson
37973
37974         * StatusBar.cs: The control handles resizing the buffers now.
37975
37976 2004-10-04 21:18  jackson
37977
37978         * Control.cs: When resizing the buffers should be invalidated. This
37979           should be handled in Control not in derived classes.
37980
37981 2004-10-04 14:45  jackson
37982
37983         * TabPage.cs: oops
37984
37985 2004-10-04 02:14  pbartok
37986
37987         * LeftRightAlignment.cs:
37988           - Initial check-in
37989
37990 2004-10-04 01:09  jordi
37991
37992         * ThemeWin32Classic.cs: fixes right button position causing right
37993           button not showing on horizontal scrollbars
37994
37995 2004-10-02 13:12  pbartok
37996
37997         * XplatUIX11.cs:
37998           - Simplified the Invalidate method by using an X call instead of
37999             generating the expose ourselves
38000           - Added an expose when the window background is changed
38001           - Implemented ClientToScreen method
38002
38003 2004-10-02 13:08  pbartok
38004
38005         * XplatUIWin32.cs:
38006           - Added Win32EnableWindow method (test for implementing modal
38007           dialogs)
38008           - Added ClientToScreen method and imports
38009
38010 2004-10-02 13:07  pbartok
38011
38012         * XplatUI.cs, XplatUIDriver.cs:
38013           - Added ClientToScreen coordinate translation method
38014
38015 2004-10-02 13:06  pbartok
38016
38017         * KeyPressEventArgs.cs:
38018           - Fixed access level for constructor
38019
38020 2004-10-02 13:06  pbartok
38021
38022         * NativeWindow.cs:
38023           - Changed access level for the window_collection hash table
38024
38025 2004-10-02 13:05  pbartok
38026
38027         * Form.cs:
38028           - Added KeyPreview property
38029           - Added Menu property (still incomplete, pending Jordi's menu work)
38030           - Implemented ProcessCmdKey
38031           - Implemented ProcessDialogKey
38032           - Implemented ProcessKeyPreview
38033
38034 2004-10-02 13:02  pbartok
38035
38036         * Control.cs:
38037           - Added private method to get the Control object from the window
38038           handle
38039           - Implemented ContextMenu property
38040           - Implemented PointToScreen
38041           - Implemented PreProcessMessage
38042           - Implemented IsInputChar
38043           - Implemented IsInputKey
38044           - Implemented ProcessCmdKey
38045           - Completed ProcessKeyEventArgs
38046           - Fixed message loop to call the proper chain of functions on key
38047           events
38048           - Implemented ProcessDialogChar
38049           - Implemented ProcessDialogKey
38050           - Implemented ProcessKeyMessage
38051           - Implemented ProcessKeyPreview
38052           - Added RaiseDragEvent stub (MS internal method)
38053           - Added RaiseKeyEvent stub (MS internal method)
38054           - Added RaiseMouseEvent stub (MS Internal method)
38055           - Added RaisePaintEvent stub (MS Internal method)
38056           - Added ResetMouseEventArgs stub (MS Internal method)
38057           - Implemented RtlTranslateAlignment
38058           - Implemented RtlTranslateContent
38059           - Implemented RtlTranslateHorizontal
38060           - Implemented RtlTranslateLeftRight
38061           - Added generation of KeyPress event
38062
38063 2004-10-02 05:57  ravindra
38064
38065         * ListViewItem.cs: Added attributes.
38066
38067 2004-10-02 05:32  ravindra
38068
38069         * ListView.cs: Added attributes.
38070
38071 2004-10-01 11:53  jackson
38072
38073         * Form.cs: Implement the Close method so work on MessageBox can
38074           continue.
38075
38076 2004-09-30 14:06  pbartok
38077
38078         * XplatUIX11.cs:
38079           - Bug fixes
38080
38081 2004-09-30 11:34  jackson
38082
38083         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
38084
38085 2004-09-30 07:26  ravindra
38086
38087         * ListViewItemConverter.cs: Converter for ListViewItem.
38088
38089 2004-09-30 07:26  ravindra
38090
38091         * SortOrder.cs: Enum for ListView control.
38092
38093 2004-09-30 07:25  ravindra
38094
38095         * ColumnHeader.cs: Supporting class for ListView control.
38096
38097 2004-09-30 07:24  ravindra
38098
38099         * ListView.cs, ListViewItem.cs: Initial implementation.
38100
38101 2004-09-30 07:20  ravindra
38102
38103         * ItemActivation.cs: Enum for ListView Control.
38104
38105 2004-09-29 20:29  pbartok
38106
38107         * XplatUIX11.cs:
38108           - Added lookup of pixel value for background color; tries to get a
38109             color 'close' to the requested color, it avoids having to create a
38110             colormap.  Depending on the display this could mean the used color
38111             is slightly off the desired color. Might have to change it to a more
38112             resource intensive colormap approach, but it will work as a
38113           workaround to avoid red screens.
38114
38115 2004-09-29 14:27  jackson
38116
38117         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
38118
38119 2004-09-28 12:44  pbartok
38120
38121         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
38122           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
38123           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
38124           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
38125           TrackBar.cs, VScrollBar.cs:
38126           - Streamlined Theme interfaces:
38127             * Each DrawXXX method for a control now is passed the object for
38128               the control to be drawn in order to allow accessing any state the
38129               theme might require
38130
38131             * ControlPaint methods for the theme now have a CP prefix to avoid
38132               name clashes with the Draw methods for controls
38133
38134             * Every control now retrieves it's DefaultSize from the current
38135             theme
38136
38137 2004-09-28 12:17  jackson
38138
38139         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
38140           drawing
38141
38142 2004-09-24 14:57  jackson
38143
38144         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
38145           Gives us a nice little performance boost.
38146
38147 2004-09-24 12:02  jackson
38148
38149         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
38150           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
38151           Control and supporting classes. Initial checkin
38152
38153 2004-09-23 13:08  jackson
38154
38155         * Form.cs: Temp build fixage
38156
38157 2004-09-23 01:39  ravindra
38158
38159         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
38160           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
38161           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
38162           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
38163           EventHandlers needed by ListView Control.
38164
38165 2004-09-22 14:12  pbartok
38166
38167         * ScrollableControl.cs:
38168           - Implemented DockPadding property
38169           - Implemented AutoScroll property
38170           - Implemented AutoScrollMargin property
38171           - Implemented AutoScrollMinSize property
38172           - Implemented AutoScrollPosition property
38173           - Implemented DisplayRectangle property (still incomplete)
38174           - Implemented CreateParams property
38175           - Implemented HScroll property
38176           - Implemented VScroll property
38177           - Implemented OnVisibleChanged property
38178
38179 2004-09-22 14:09  pbartok
38180
38181         * Form.cs:
38182           - Added Form.ControllCollection class
38183           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
38184             RemoveOwnedForm (still incomplete, missing on-top and common
38185             minimize/maximize behaviour)
38186           - Added StartPosition property (still incomplete, does not use when
38187             creating the form)
38188           - Added ShowDialog() methods (still incomplete, missing forcing the
38189             dialog modal)
38190
38191 2004-09-22 14:05  pbartok
38192
38193         * Application.cs:
38194           - Added message loop for modal dialogs
38195
38196 2004-09-22 14:02  pbartok
38197
38198         * GroupBox.cs:
38199           - Fixed wrong types for events
38200
38201 2004-09-22 14:00  pbartok
38202
38203         * Shortcut.cs, FormWindowState.cs:
38204           - Fixed wrong values
38205
38206 2004-09-22 12:01  jackson
38207
38208         * Control.cs: Text is never null
38209
38210 2004-09-20 22:14  pbartok
38211
38212         * XplatUIWin32.cs:
38213           - Fixed accessibility level for Idle handler
38214
38215 2004-09-20 18:54  jackson
38216
38217         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38218           XplatUIX11.cs: New message loop that uses poll so we don't get a
38219           busy loop
38220
38221 2004-09-17 10:43  pbartok
38222
38223         * ScrollBar.cs:
38224           - Fixed behaviour of arrow buttons. Now properly behaves like
38225             Buttons (and like Microsoft's scrollbar arrow buttons)
38226
38227 2004-09-17 10:14  pbartok
38228
38229         * ScrollBar.cs:
38230           - Added missing release of keyboard/mouse capture
38231
38232 2004-09-17 06:18  jordi
38233
38234         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
38235           Theme.cs: Very early menu support
38236
38237 2004-09-16 17:45  pbartok
38238
38239         * XplatUIWin32.cs:
38240           - Fixed sending a window to the front
38241           - Added overload for SetWindowPos to avoid casting
38242
38243 2004-09-16 17:44  pbartok
38244
38245         * Control.cs:
38246           - Added SendToBack and BringToFront methods
38247
38248 2004-09-16 07:00  ravindra
38249
38250         * Copyright: Added Novell URL.
38251
38252 2004-09-16 07:00  ravindra
38253
38254         * ToolBar.cs: Invalidate should be done before redrawing.
38255
38256 2004-09-15 21:19  ravindra
38257
38258         * ColumnHeaderStyle.cs: Enum for ListView Control.
38259
38260 2004-09-15 21:18  ravindra
38261
38262         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
38263           ListView Control.
38264
38265 2004-09-13 18:26  jackson
38266
38267         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
38268           properly
38269
38270 2004-09-13 18:13  jackson
38271
38272         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
38273           a second thread and post messages into the main threads message
38274           queue. This makes timing much more consistent. Both win2K and XP
38275           have a minimum timer value of 15 milliseconds, so we now do this
38276           too.
38277
38278 2004-09-13 15:18  pbartok
38279
38280         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38281           XplatUIX11.cs:
38282           - Added Z-Ordering methods
38283
38284 2004-09-13 10:56  pbartok
38285
38286         * Form.cs:
38287           - Fixed #region names
38288           - Moved properties and methods into their proper #regions
38289
38290 2004-09-13 10:51  pbartok
38291
38292         * Form.cs:
38293           - Added Accept and CancelButton properties
38294           - Added ProcessDialogKey() method
38295
38296 2004-09-13 08:18  pbartok
38297
38298         * IWindowTarget.cs:
38299           - Initial check-in
38300
38301 2004-09-10 21:50  pbartok
38302
38303         * Control.cs:
38304           - Added DoDragDrop() [incomplete]
38305           - Properly implemented 'Visible' handling
38306           - Added SetVisibleCore()
38307           - Implemented FindChildAtPoint()
38308           - Implemented GetContainerControl()
38309           - Implemented Hide()
38310
38311 2004-09-10 19:28  pbartok
38312
38313         * Control.cs:
38314           - Moved methods into their appropriate #regions
38315           - Reordered methods within regions alphabetically
38316
38317 2004-09-10 18:57  pbartok
38318
38319         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38320           - Added method to retrieve text from window
38321
38322 2004-09-10 18:56  pbartok
38323
38324         * Control.cs:
38325           - Moved some internal functions into the internal region
38326           - Implemented FontHeight
38327           - Implemented RenderRightToLeft
38328           - Implemented ResizeRedraw
38329           - Implemented ShowFocusCues
38330           - Implemented ShowKeyboardCues
38331           - Implemented FromChildHandle
38332           - Implemented FromHandle
38333           - Implemented IsMnemonic
38334           - Implemented ReflectMessage
38335           - All public and protected Static Methods are now complete
38336
38337 2004-09-10 16:54  pbartok
38338
38339         * Control.cs:
38340           - Implemented remaining missing public instance properties
38341           - Alphabetized some out of order properties
38342
38343 2004-09-10 05:51  ravindra
38344
38345         * PictureBox.cs: Added a check for null image.
38346
38347 2004-09-10 00:59  jordi
38348
38349         * GroupBox.cs: remove cvs tag
38350
38351 2004-09-09 05:25  ravindra
38352
38353         * ToolBar.cs: Make redraw accessible from ToolBarButton.
38354
38355 2004-09-09 05:23  ravindra
38356
38357         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
38358           parent redraw.
38359
38360 2004-09-09 02:28  pbartok
38361
38362         * ThemeWin32Classic.cs:
38363           - Improve disabled string look
38364
38365 2004-09-09 01:15  jordi
38366
38367         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
38368           args and handler
38369
38370 2004-09-08 23:56  ravindra
38371
38372         * ItemBoundsPortion.cs: It's enum, not a class!
38373
38374 2004-09-08 23:47  ravindra
38375
38376         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
38377           Enums for Form.
38378
38379 2004-09-08 21:13  ravindra
38380
38381         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
38382           ListView control.
38383
38384 2004-09-08 21:03  ravindra
38385
38386         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
38387           avoid crash.
38388
38389 2004-09-08 21:01  ravindra
38390
38391         * ScrollableControl.cs: Removed unreachable code.
38392
38393 2004-09-08 06:45  jordi
38394
38395         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
38396
38397 2004-09-08 01:00  jackson
38398
38399         * XplatUIX11.cs: Only run the timers when updating the message
38400           queue. This effectively gives X messages a higher priority then
38401           timer messages. Timers still need love though
38402
38403 2004-09-07 14:01  jackson
38404
38405         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
38406           this for us and the handle is no longer valid.
38407
38408 2004-09-07 13:59  jackson
38409
38410         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
38411           loop that manages to not crash. TODO: Add poll and cleanup timers
38412
38413 2004-09-07 11:12  jordi
38414
38415         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
38416
38417 2004-09-07 03:40  jordi
38418
38419         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
38420           fixes, methods, multiple links
38421
38422 2004-09-06 06:55  jordi
38423
38424         * Control.cs: Caches ClientRectangle rectangle value
38425
38426 2004-09-05 02:03  jordi
38427
38428         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
38429           certain situations
38430
38431 2004-09-04 11:10  jordi
38432
38433         * Label.cs: Refresh when font changed
38434
38435 2004-09-02 16:24  pbartok
38436
38437         * Control.cs:
38438           - Added sanity check to creation of double buffer bitmap
38439
38440 2004-09-02 16:24  pbartok
38441
38442         * ButtonBase.cs:
38443           - Fixed selection of text color
38444           - Fixed handling of resize event; now properly recreates double
38445             buffering bitmap
38446           - Added missing assignment of TextAlignment
38447           - Added proper default for TextAlignment
38448
38449 2004-09-02 14:26  pbartok
38450
38451         * RadioButton.cs:
38452           - Added missing RadioButton.RadioButtonAccessibleObject class
38453
38454 2004-09-02 14:26  pbartok
38455
38456         * Control.cs:
38457           - Added missing Control.ControlAccessibleObject class
38458           - Started to implement Select()ion mechanisms, still very incomplete
38459
38460 2004-09-02 14:25  pbartok
38461
38462         * AccessibleObject.cs:
38463           - Added missing methods
38464
38465 2004-09-02 14:23  pbartok
38466
38467         * AccessibleNavigation.cs, AccessibleSelection.cs:
38468           - Initial check-in
38469
38470 2004-09-02 10:32  jordi
38471
38472         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
38473           pool for pens, brushes, and hatchbruses
38474
38475 2004-09-01 15:30  jackson
38476
38477         * StatusBar.cs: Fix typo
38478
38479 2004-09-01 14:44  pbartok
38480
38481         * RadioButton.cs:
38482           - Fixed state
38483
38484 2004-09-01 14:39  pbartok
38485
38486         * Button.cs, RadioButton.cs:
38487           - Functional initial check-in
38488
38489 2004-09-01 14:01  pbartok
38490
38491         * CheckBox.cs:
38492           - Added missing default
38493           - Added missing region mark
38494
38495 2004-09-01 09:10  jordi
38496
38497         * Label.cs: fixes method signatures, new methods, events, fixes
38498           autosize
38499
38500 2004-09-01 07:19  jordi
38501
38502         * Control.cs: Init string variables with an empty object
38503
38504 2004-09-01 04:20  jordi
38505
38506         * Control.cs: fires OnFontChanged event
38507
38508 2004-08-31 20:07  pbartok
38509
38510         * ButtonBase.cs:
38511           - Enabled display of strings
38512
38513 2004-08-31 20:05  pbartok
38514
38515         * Form.cs:
38516           - Added (partial) implementation of DialogResult; rest needs to be
38517             implemented when the modal loop code is done
38518
38519 2004-08-31 19:55  pbartok
38520
38521         * CheckBox.cs:
38522           - Fixed to match the removal of the needs_redraw concept
38523
38524 2004-08-31 19:55  pbartok
38525
38526         * ButtonBase.cs:
38527           - Removed the rather odd split between 'needs redraw' and redrawing
38528           - Now handles the events that require regeneration (ambient
38529             properties and size)
38530
38531 2004-08-31 19:41  pbartok
38532
38533         * Control.cs:
38534           - Added firing of BackColorChanged event
38535           - Added TopLevelControl property
38536           - Fixed handling of WM_ERASEBKGRND message
38537
38538 2004-08-31 12:49  pbartok
38539
38540         * ButtonBase.cs:
38541           - Removed debug
38542           - Minor fixes
38543
38544 2004-08-31 12:48  pbartok
38545
38546         * CheckBox.cs:
38547           - Finished (famous last words)
38548
38549 2004-08-31 04:35  jordi
38550
38551         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
38552           scrolling bugs, adds new methods
38553
38554 2004-08-30 14:42  pbartok
38555
38556         * CheckBox.cs:
38557           - Implemented CheckBox drawing code
38558
38559 2004-08-30 14:42  pbartok
38560
38561         * ButtonBase.cs:
38562           - Made Redraw() and CheckRedraw() virtual
38563           - Improved mouse up/down/move logic to properly track buttons
38564
38565 2004-08-30 09:44  pbartok
38566
38567         * CheckBox.cs:
38568           - Updated to fix broken build. Not complete yet.
38569
38570 2004-08-30 09:28  pbartok
38571
38572         * CheckState.cs:
38573           - Initial checkin
38574
38575 2004-08-30 09:17  pbartok
38576
38577         * Appearance.cs:
38578           - Initial check-in
38579
38580 2004-08-27 16:12  ravindra
38581
38582         * ToolBarButton.cs: Added TypeConverter attribute.
38583
38584 2004-08-27 16:07  ravindra
38585
38586         * ImageIndexConverter.cs: Implemented.
38587
38588 2004-08-27 14:17  pbartok
38589
38590         * Control.cs:
38591           - Removed unneeded stack vars
38592           - First attempt to fix sizing issues when layout is suspended
38593
38594 2004-08-25 15:35  jordi
38595
38596         * ScrollBar.cs: more fixes to scrollbar
38597
38598 2004-08-25 14:04  ravindra
38599
38600         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
38601           Added the missing divider code and grip for ToolBar Control.
38602
38603 2004-08-25 13:20  pbartok
38604
38605         * Control.cs:
38606           - Control now properly passes the ambient background color to child
38607             controls
38608
38609 2004-08-25 13:20  jordi
38610
38611         * ScrollBar.cs: small bug fix regarding bar position
38612
38613 2004-08-25 12:33  pbartok
38614
38615         * Timer.cs:
38616           - Now only calls SetTimer or KillTimer if the enabled state has
38617           changed
38618
38619 2004-08-25 12:33  pbartok
38620
38621         * XplatUIWin32.cs:
38622           - Fixed timer handling, now seems to work
38623           - Improved error message for window creation
38624
38625 2004-08-25 12:32  pbartok
38626
38627         * Control.cs:
38628           - Fixed generation of MouseUp message
38629
38630 2004-08-25 12:29  jordi
38631
38632         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
38633           and fixes for progressbar
38634
38635 2004-08-24 18:43  ravindra
38636
38637         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
38638           in ToolBar control.
38639
38640 2004-08-24 17:15  pbartok
38641
38642         * Panel.cs:
38643           - Added #region
38644           - Added missing events
38645           - Alphabetized
38646
38647 2004-08-24 17:14  pbartok
38648
38649         * StatusBar.cs, PictureBox.cs:
38650           - Now uses Control's CreateParams
38651
38652 2004-08-24 16:36  pbartok
38653
38654         * XplatUIX11.cs:
38655           - Fixed background color handling
38656           - Fixed sending of enter/leave events on a grab
38657
38658 2004-08-24 16:35  pbartok
38659
38660         * X11Structs.cs:
38661           - Refined definitions for CrossingEvent
38662
38663 2004-08-24 12:37  jordi
38664
38665         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
38666           formmating, methods signature, and adds missing events
38667
38668 2004-08-24 12:24  jordi
38669
38670         * Control.cs: fire OnEnabledChanged event
38671
38672 2004-08-24 11:17  pbartok
38673
38674         * XplatUIWin32.cs:
38675           - Implemented SetTimer() and KillTimer()
38676
38677 2004-08-24 11:16  pbartok
38678
38679         * XplatUIX11.cs:
38680           - Now uses Remove instead of Add to kill the timer
38681
38682 2004-08-24 10:16  jackson
38683
38684         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
38685           picture boxes in the theme now. Draw picture box borders and obey
38686           sizing modes
38687
38688 2004-08-24 05:49  jackson
38689
38690         * Timer.cs: Remove top secret debugging code
38691
38692 2004-08-24 05:34  jackson
38693
38694         * PictureBox.cs: Temp hack to make picture boxes draw their full
38695           image
38696
38697 2004-08-24 05:29  jackson
38698
38699         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38700           XplatUIX11.cs: Move timers to the driver level. On X they are
38701           queued by the driver and checked on idle.
38702
38703 2004-08-24 01:07  jackson
38704
38705         * XplatUIX11.cs: Use a queue for async messages instead of passing
38706           them as ClientMessages since that was totally broken. Also simply
38707           check for events and return an idle message if none are found. This
38708           gives us an idle handler, and prevents deadlocking when no messages
38709           are in the queue.
38710
38711 2004-08-23 18:19  ravindra
38712
38713         * XplatUIWin32.cs: Removed the unwanted destructor.
38714
38715 2004-08-23 17:27  pbartok
38716
38717         * ButtonBase.cs:
38718           - Finishing touches. Works now, just needs some optimizations.
38719
38720 2004-08-23 16:53  jordi
38721
38722         * ScrollBar.cs: small fix
38723
38724 2004-08-23 16:45  pbartok
38725
38726         * Application.cs:
38727           - Removed debug output
38728           - Simplifications
38729
38730 2004-08-23 16:43  jordi
38731
38732         * ScrollBar.cs: [no log message]
38733
38734 2004-08-23 16:10  pbartok
38735
38736         * Form.cs:
38737           - Fixed handling of WM_CLOSE message
38738           - Removed debug output
38739
38740 2004-08-23 16:09  pbartok
38741
38742         * Application.cs:
38743           - Added handling of Idle event
38744           - Added handling of form closing
38745           - Fixed reporting of MessageLoop property
38746           - Removed some unneeded code, should provide a bit of a speedup
38747
38748 2004-08-23 15:22  pbartok
38749
38750         * Control.cs:
38751           - Added InitLayout() method
38752           - Added code to properly perform layout when Anchor or Dock property
38753             is changed
38754           - Changed 'interpretation' of ResumeLayout. MS seems to have a
38755             LAMESPEC, tried to do it in a way that makes sense
38756
38757 2004-08-23 14:10  jordi
38758
38759         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
38760           properties and methods
38761
38762 2004-08-23 13:55  pbartok
38763
38764         * Control.cs:
38765           - Properly fixed Jordi's last fix
38766           - Now uses Cursor's Position property instead of calling XplatUI
38767           directly
38768
38769 2004-08-23 13:44  jordi
38770
38771         * PaintEventHandler.cs: Adding missing attribute
38772
38773 2004-08-23 13:39  pbartok
38774
38775         * Cursor.cs:
38776           - Implemented Position property
38777
38778 2004-08-23 13:39  pbartok
38779
38780         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38781           - Added method to move mouse cursor
38782
38783 2004-08-23 13:39  pbartok
38784
38785         * XplatUIX11.cs:
38786           - Fixed setting of background color
38787           - Added method to move mouse cursor
38788
38789 2004-08-23 13:16  jordi
38790
38791         * Control.cs: avoids null exception
38792
38793 2004-08-22 17:46  jackson
38794
38795         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
38796           PictureBox
38797
38798 2004-08-22 17:40  jackson
38799
38800         * XplatUIX11.cs: Add some missing locks
38801
38802 2004-08-22 15:10  pbartok
38803
38804         * Control.cs, Form.cs:
38805           - Removed OverlappedWindow style from Control, instead it's default
38806             now is child
38807           - Made form windows OverlappedWindow by default
38808
38809 2004-08-22 13:34  jackson
38810
38811         * ScrollBar.cs: Update the position through the Value property so
38812           the OnValueChanged event is raised.
38813
38814 2004-08-22 12:04  pbartok
38815
38816         * SWF.csproj:
38817           - Added Cursor.cs and UserControl.cs
38818
38819 2004-08-22 12:03  pbartok
38820
38821         * Cursor.cs:
38822           - Started implementation, not usable yet
38823
38824 2004-08-22 12:00  pbartok
38825
38826         * UserControl.cs:
38827           - Implemented UserControl (complete)
38828
38829 2004-08-21 19:20  ravindra
38830
38831         * ToolBar.cs: Correcting the formatting mess of VS.NET.
38832
38833 2004-08-21 18:49  ravindra
38834
38835         * ToolBar.cs: Probably this completes the missing attributes in
38836           toolbar control.
38837
38838 2004-08-21 18:03  ravindra
38839
38840         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
38841           Fixed toolbar control signatures.
38842
38843 2004-08-21 16:32  pbartok
38844
38845         * LinkLabel.cs:
38846           - Signature Fixes
38847
38848 2004-08-21 16:30  pbartok
38849
38850         * Label.cs:
38851           - Signature fixes
38852
38853 2004-08-21 16:19  pbartok
38854
38855         * Control.cs, Label.cs:
38856           - Signature fixes
38857
38858 2004-08-21 15:57  pbartok
38859
38860         * ButtonBase.cs:
38861           - Added loads of debug output for development
38862           - Fixed typo in method name
38863
38864 2004-08-21 15:52  pbartok
38865
38866         * ToolBarButtonClickEventArgs.cs:
38867           - Added missing base class
38868
38869 2004-08-21 14:53  pbartok
38870
38871         * Control.cs:
38872           - Updated to match new GrabWindow signature
38873
38874 2004-08-21 14:51  pbartok
38875
38876         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38877           - Added method to get default display size
38878
38879 2004-08-21 14:23  pbartok
38880
38881         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38882           - Added method to query current grab state
38883           - Added argument to allow confining a grab to a window
38884
38885 2004-08-21 14:22  pbartok
38886
38887         * Keys.cs:
38888           - Added [Flags] attribute so that modifiers can be used in bitwise
38889           ops
38890
38891 2004-08-21 14:21  pbartok
38892
38893         * TrackBar.cs, ScrollBar.cs:
38894           - Replaced direct XplatUI calls with their Control counterpart
38895
38896 2004-08-21 13:32  pbartok
38897
38898         * Control.cs:
38899           - Implemented Created property
38900
38901 2004-08-21 13:28  pbartok
38902
38903         * Control.cs:
38904           - Implemented ContainsFocus
38905
38906 2004-08-21 13:26  pbartok
38907
38908         * Control.cs:
38909           - Implemented CausesValidation
38910
38911 2004-08-21 13:21  pbartok
38912
38913         * Control.cs:
38914           - Implemented CanFocus
38915           - Implemented CanSelect
38916           - Implemented Capture
38917
38918 2004-08-21 12:35  pbartok
38919
38920         * XplatUIWin32.cs:
38921           - Fixed bug with Async message handling
38922           - Implemented getting the ModifierKeys
38923
38924 2004-08-21 12:32  jackson
38925
38926         * AsyncMethodResult.cs: Make sure we have the mutex before we
38927           release it. Fixes BeginInvoke on windows
38928
38929 2004-08-21 11:31  pbartok
38930
38931         * XplatUIWin32.cs, XplatUIX11.cs:
38932           - Drivers now return proper mouse state
38933
38934 2004-08-21 10:54  jackson
38935
38936         * Control.cs: Implement EndInvoke
38937
38938 2004-08-21 10:48  jackson
38939
38940         * Timer.cs: Remove unneeded finalizer
38941
38942 2004-08-20 19:52  ravindra
38943
38944         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
38945           in mouse event handling in the ToolBar control.
38946
38947 2004-08-20 19:50  ravindra
38948
38949         * ImageList.cs: Changed draw method to use the arguments passed in
38950           to draw the image.
38951
38952 2004-08-20 18:58  pbartok
38953
38954         * XplatUIStructs.cs:
38955           - Added private message for async communication
38956
38957 2004-08-20 17:38  ravindra
38958
38959         * Control.cs: Made RightToLeft property virtual and removed a
38960           Console.WriteLine.
38961
38962 2004-08-20 14:39  jordi
38963
38964         * ThemeGtk.cs: use style_attach
38965
38966 2004-08-20 14:39  pbartok
38967
38968         * XplatUIWin32.cs:
38969           - Added jackson's Async code from X11 to Win32
38970
38971 2004-08-20 14:09  pbartok
38972
38973         * SWF.csproj:
38974           - Added all new files
38975
38976 2004-08-20 14:09  pbartok
38977
38978         * Control.cs:
38979           - Added call to set window background color
38980
38981 2004-08-20 14:03  pbartok
38982
38983         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38984           - Added method for setting the window background
38985
38986 2004-08-20 14:02  pbartok
38987
38988         * XplatUIWin32.cs:
38989           - Added method for setting the background color
38990           - Added handling for erasing the window background
38991
38992 2004-08-20 13:45  jordi
38993
38994         * TrackBar.cs: fixes timer, new properties and methods
38995
38996 2004-08-20 13:34  jackson
38997
38998         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
38999           correct thread
39000
39001 2004-08-20 13:22  jackson
39002
39003         * Timer.cs: Timer Tick events are now handed through Controls Async
39004           mechanism so the callbacks are executed in the same thread as X
39005
39006 2004-08-20 13:19  jackson
39007
39008         * XplatUIDriver.cs: Expose functionality to send async messages
39009           through the driver
39010
39011 2004-08-20 13:18  jackson
39012
39013         * Control.cs: Implement Begininvoke
39014
39015 2004-08-20 13:14  jackson
39016
39017         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
39018           messages through the driver
39019
39020 2004-08-20 13:12  jackson
39021
39022         * XplatUIX11.cs: Lock before all X operations. Also added Async
39023           method functionality through XSendEvent
39024
39025 2004-08-20 13:11  jackson
39026
39027         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
39028           This will screw up on 64 bit systems)
39029
39030 2004-08-20 13:10  jackson
39031
39032         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
39033           Async messages through X/Win32
39034
39035 2004-08-19 19:39  pbartok
39036
39037         * XplatUIX11.cs:
39038           - Updated code to match new HandleData.DeviceContext type
39039
39040 2004-08-19 19:38  pbartok
39041
39042         * HandleData.cs:
39043           - Made DeviceContext a generic object to allow usage from various
39044           drivers
39045           - Added support for queueing Windows messages
39046
39047 2004-08-19 19:37  pbartok
39048
39049         * XplatUIWin32.cs:
39050           - Added generation of MouseEnter, MouseLeave and MouseHover events
39051           - Added cleanup on EndPaint
39052
39053 2004-08-19 19:17  pbartok
39054
39055         * Control.cs:
39056           - Added handling of WM_MOUSEHOVER
39057           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
39058           code
39059
39060 2004-08-19 18:55  jordi
39061
39062         * ThemeGtk.cs: fixes button order
39063
39064 2004-08-19 18:12  jordi
39065
39066         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
39067
39068 2004-08-19 17:09  pbartok
39069
39070         * Control.cs:
39071           - Added Right property
39072           - Added RightToLeft property
39073
39074 2004-08-19 16:27  jordi
39075
39076         * ThemeGtk.cs: experimental GTK theme support
39077
39078 2004-08-19 16:26  jordi
39079
39080         * ITheme.cs, Theme.cs: move themes from an interface to a class
39081
39082 2004-08-19 16:25  jordi
39083
39084         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
39085           theme enhancaments
39086
39087 2004-08-19 16:04  pbartok
39088
39089         * XplatUIX11.cs:
39090           - Added colormap basics
39091           - Added a way to re-initialize with a different display handle
39092           - Fixed setting of the window background color
39093           - Added various X11 imports related to colors and colormaps
39094
39095 2004-08-19 15:51  pbartok
39096
39097         * X11Structs.cs:
39098           - Removed packing hints (Paolo suggested this a while back)
39099           - fixed colormap type
39100           - Added default Atom types
39101           - Added Screen and color structs and enums
39102
39103 2004-08-19 15:39  pbartok
39104
39105         * ImageList.cs:
39106           - Added missing Draw() method
39107           - Added missing RecreateHandle event
39108
39109 2004-08-19 15:30  pbartok
39110
39111         * Form.cs:
39112           - Added handling of WM_CLOSE
39113
39114 2004-08-18 13:16  jordi
39115
39116         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
39117           a table
39118
39119 2004-08-18 09:56  jordi
39120
39121         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
39122
39123 2004-08-17 15:31  ravindra
39124
39125         * SWF.csproj: Updated project.
39126
39127 2004-08-17 15:25  pbartok
39128
39129         * Control.cs:
39130           - Drawing improvement; don't call UpdateBounds if we are not visible
39131             (or have been minimized)
39132
39133 2004-08-17 15:24  pbartok
39134
39135         * XplatUIWin32.cs:
39136           - Finished IsVisible
39137           - Added Win32GetWindowPlacement
39138
39139 2004-08-17 15:08  jackson
39140
39141         * Panel.cs: Initial checkin of the Panel
39142
39143 2004-08-17 14:25  pbartok
39144
39145         * Control.cs:
39146           - Fixed broken handling of default window sizes
39147
39148 2004-08-17 13:29  jackson
39149
39150         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
39151           has a large startup time.
39152
39153 2004-08-17 10:25  jackson
39154
39155         * HandleData.cs: union areas properly
39156
39157 2004-08-17 10:12  jackson
39158
39159         * HandleData.cs: union areas properly
39160
39161 2004-08-16 20:00  ravindra
39162
39163         * ToolBar.cs, ToolBarButton.cs: Added attributes.
39164
39165 2004-08-16 18:48  ravindra
39166
39167         * ToolBar.cs: Added attributes.
39168
39169 2004-08-16 17:17  ravindra
39170
39171         * SWF.csproj: Updated project.
39172
39173 2004-08-16 17:16  jackson
39174
39175         * XplatUIX11.cs: Check for more expose events before sending a
39176           WM_PAINT so they can all be grouped together. This makes dragging a
39177           window across another window redraw in a sane way.
39178
39179 2004-08-16 15:47  pbartok
39180
39181         * Control.cs:
39182           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
39183             support OnMouseEnter/Leave()
39184           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
39185             exposure handling
39186
39187 2004-08-16 15:46  pbartok
39188
39189         * XplatUIStructs.cs, XplatUIX11.cs:
39190           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
39191           OnMouseEnter/Leave()
39192
39193 2004-08-16 15:34  jackson
39194
39195         * XplatUIX11.cs: Group multiple expose events in HandleData, make
39196           sure messages get the message field set to WM_NULL if they are not
39197           handled.
39198
39199 2004-08-16 15:24  jackson
39200
39201         * HandleData.cs: HandleData is used for storing message information
39202           for window handles
39203
39204 2004-08-15 17:23  ravindra
39205
39206         * ColorDepth.cs: Added attribute.
39207
39208 2004-08-15 17:23  ravindra
39209
39210         * SWF.csproj: Updated project for ToolBar Control.
39211
39212 2004-08-15 17:20  ravindra
39213
39214         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
39215           control and also dos2unix format.
39216
39217 2004-08-15 17:13  ravindra
39218
39219         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
39220           ToolBarButtonClickEventArgs.cs,
39221           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
39222           ToolBarTextAlign.cs: First Implementation of ToolBar control.
39223
39224 2004-08-15 15:31  pbartok
39225
39226         * ButtonBase.cs:
39227           - First (mostly) working version
39228
39229 2004-08-13 16:15  pbartok
39230
39231         * Control.cs:
39232           - Fixed Anchor default
39233
39234 2004-08-13 15:43  pbartok
39235
39236         * Control.cs:
39237           - Changed GetCursorPos signature
39238
39239 2004-08-13 15:42  pbartok
39240
39241         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
39242           - Changed signature for GetCursorPos
39243
39244 2004-08-13 15:25  pbartok
39245
39246         * XplatUIX11.cs:
39247           - Cleanup
39248           - Fixed resizing/exposure handling
39249
39250 2004-08-13 15:22  jordi
39251
39252         * ThemeWin32Classic.cs: removes redundant code and fixes issues
39253           with tickposition
39254
39255 2004-08-13 14:55  jordi
39256
39257         * TrackBar.cs: change from wndproc to events
39258
39259 2004-08-13 13:00  jordi
39260
39261         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39262           XplatUIX11.cs: implements PointToClient (ScreenToClient)
39263
39264 2004-08-13 12:53  pbartok
39265
39266         * XplatUIWin32.cs:
39267           - Changed GetWindowPos to also provide client area size
39268           - Fixed broken prototypes for several win32 functions
39269
39270 2004-08-13 12:53  pbartok
39271
39272         * XplatUI.cs, XplatUIDriver.cs:
39273           - Changed GetWindowPos to also provide client area size
39274
39275 2004-08-13 12:52  pbartok
39276
39277         * XplatUIX11.cs:
39278           - Added generation of WM_POSCHANGED
39279           - Changed GetWindowPos to also provide client area size
39280
39281 2004-08-13 12:52  pbartok
39282
39283         * Control.cs:
39284           - Added Dispose() and destructor
39285           - Fixed resizing and bounds calculation
39286           - Fixed Layout
39287           - Added memory savings for invisible windows
39288
39289 2004-08-13 12:46  jordi
39290
39291         * TrackBar.cs: adds timer and grap window
39292
39293 2004-08-13 10:25  jackson
39294
39295         * Timer.cs: SWF Timer
39296
39297 2004-08-12 16:59  pbartok
39298
39299         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39300           - Implemented method to get current mouse position
39301
39302 2004-08-12 14:29  jordi
39303
39304         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
39305           enhancement, fix mouse problems, highli thumb, etc
39306
39307 2004-08-12 13:31  pbartok
39308
39309         * Control.cs:
39310           - Fixed Anchoring bugs
39311
39312 2004-08-12 13:01  jackson
39313
39314         * StatusBar.cs: Don't forget things
39315
39316 2004-08-12 12:54  jackson
39317
39318         * ThemeWin32Classic.cs: Handle owner draw status bars
39319
39320 2004-08-12 12:54  jackson
39321
39322         * StatusBar.cs: Implement missing properties, events, and methods.
39323           Handle mouse clicking
39324
39325 2004-08-12 10:19  jackson
39326
39327         * StatusBarPanelClickEventArgs.cs,
39328           StatusBarPanelClickEventHandler.cs: Classes for handling status
39329           bar panel click events
39330
39331 2004-08-12 10:10  jackson
39332
39333         * Control.cs: Add missing properties
39334
39335 2004-08-12 09:46  pbartok
39336
39337         * BindingsManagerBase.cs:
39338           - Name changed to BindingManagerBase.cs
39339
39340 2004-08-12 09:25  jordi
39341
39342         * ScrollableControl.cs: calls ctrlbase instead of exeception
39343
39344 2004-08-11 16:28  pbartok
39345
39346         * InputLanguageChangingEventArgs.cs:
39347           - Never check in before compiling. Fixes the last check-in
39348
39349 2004-08-11 16:26  pbartok
39350
39351         * InputLanguageChangingEventArgs.cs:
39352           - More signature fixes
39353
39354 2004-08-11 16:20  pbartok
39355
39356         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
39357           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
39358           ImageListStreamer.cs, InputLanguage.cs,
39359           InputLanguageChangedEventArgs.cs,
39360           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
39361           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
39362           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
39363           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39364           - Signature fixes
39365
39366 2004-08-11 16:16  pbartok
39367
39368         * Application.cs:
39369           - Fixed Signature
39370           - Added .Net 1.1 method
39371
39372 2004-08-11 15:25  pbartok
39373
39374         * SWF.csproj:
39375           - Fixed BindingManagerBase.cs filename
39376
39377 2004-08-11 15:22  pbartok
39378
39379         * BindingManagerBase.cs:
39380           - Was checked in with wrong filename
39381
39382 2004-08-11 14:50  pbartok
39383
39384         * SWF.csproj:
39385           - Updated
39386
39387 2004-08-11 13:41  jordi
39388
39389         * XplatUIWin32.cs: Fixes ClientRect
39390
39391 2004-08-11 13:19  pbartok
39392
39393         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39394           XplatUIX11.cs:
39395           - We had SetWindowPos and MoveWindow to set window positions and
39396             size, removed MoveWindow. We have GetWindowPos, so it made sense to
39397             keep SetWindowPos as matching counterpart
39398           - Added some X11 sanity checking
39399
39400 2004-08-11 12:59  pbartok
39401
39402         * Control.cs:
39403           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
39404             (It seems that SetBounds is just a front for SetBoundsCore and
39405              SetBoundsCore updates the underlying window system and
39406              UpdateBounds is responsible for updating the variables associated
39407              with the Control and sending the events)
39408           - Major cleanup of Size handling; we now have two sizes, client_size
39409             and bounds. Bounds defines the window with decorations, client_size
39410             without them.
39411
39412 2004-08-11 12:55  pbartok
39413
39414         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39415           - Added method to calculate difference between decorated window and
39416             raw client area
39417
39418 2004-08-11 12:54  pbartok
39419
39420         * Label.cs:
39421           - Forcing redraw on resize
39422
39423 2004-08-11 11:43  pbartok
39424
39425         * ImageList.cs:
39426           - Removed disposing of the actual images when the list is disposed
39427
39428 2004-08-11 09:13  pbartok
39429
39430         * Control.cs:
39431           - Now properly reparents windows
39432
39433 2004-08-11 08:37  pbartok
39434
39435         * Control.cs:
39436           - Duh!
39437
39438 2004-08-11 07:47  pbartok
39439
39440         * Control.cs:
39441           - Rewrote the collection stuff. Might not be as fast now, not
39442             keeping the number of children around and accessible directly, but
39443             it's more straightforward
39444
39445 2004-08-11 07:44  pbartok
39446
39447         * AccessibleObject.cs:
39448           - Fixed to match ControlCollection rewrite
39449
39450 2004-08-11 07:43  pbartok
39451
39452         * ImageList.cs:
39453           - Added missing creation of the collection list
39454
39455 2004-08-10 20:08  jackson
39456
39457         * StatusBar.cs: Get the paint message from WndProc
39458
39459 2004-08-10 19:31  jackson
39460
39461         * ThemeWin32Classic.cs: Create Brushes as little as possible
39462
39463 2004-08-10 19:20  jackson
39464
39465         * UICues.cs: Add Flags attribute
39466
39467 2004-08-10 19:19  jackson
39468
39469         * StatusBarPanel.cs: Signature cleanup
39470
39471 2004-08-10 19:10  jackson
39472
39473         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
39474           Initial implementation of status bar item drawing
39475
39476 2004-08-10 17:27  jordi
39477
39478         * TrackBar.cs: add missing methods, properties, and restructure to
39479           hide extra ones
39480
39481 2004-08-10 16:24  jackson
39482
39483         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
39484           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
39485           attribute
39486
39487 2004-08-10 13:21  jordi
39488
39489         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
39490           enhancements and standarize on win colors defaults
39491
39492 2004-08-10 12:52  jackson
39493
39494         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
39495           ThemeWin32Classic.cs: Implement DrawItem functionality
39496
39497 2004-08-10 12:47  jordi
39498
39499         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
39500
39501 2004-08-10 12:32  jordi
39502
39503         * Control.cs: throw ontextchange event
39504
39505 2004-08-10 11:43  pbartok
39506
39507         * Control.cs:
39508           - Added more to the still unfinished Dock/Anchor layout code
39509
39510 2004-08-10 11:39  pbartok
39511
39512         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
39513           - Added GetWindowPos method
39514
39515 2004-08-10 11:36  pbartok
39516
39517         * XplatUIWin32.cs:
39518           - Implemented several methods
39519
39520 2004-08-10 09:47  jackson
39521
39522         * TrackBar.cs: Allow control to handle buffering
39523
39524 2004-08-10 09:41  jackson
39525
39526         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
39527
39528 2004-08-10 09:24  jackson
39529
39530         * Label.cs, LinkLabel.cs: Let Control handle buffering.
39531
39532 2004-08-10 09:09  jackson
39533
39534         * StatusBar.cs: Let Control handle all the buffering.
39535
39536 2004-08-10 09:08  jackson
39537
39538         * Control.cs: Control will now handle the buffering code, so each
39539           control does not have to implement this.
39540
39541 2004-08-10 08:34  jackson
39542
39543         * XplatUIDriver.cs: Use default colors from the theme
39544
39545 2004-08-09 17:12  pbartok
39546
39547         * ImageList.cs:
39548           - Fixed several bugs Ravindra pointed out
39549
39550 2004-08-09 16:11  pbartok
39551
39552         * Control.cs:
39553           - Added incomplete dock layout code
39554           - Added support for mouse wheel
39555
39556 2004-08-09 16:09  pbartok
39557
39558         * XplatUIX11.cs:
39559           - Added handling for middle and right mousebutton
39560           - Added handling for mouse wheel
39561           - Added handling for key state and mouse state and position
39562           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
39563           messages
39564
39565 2004-08-09 15:40  jackson
39566
39567         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
39568           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
39569           checkin
39570
39571 2004-08-09 15:37  jackson
39572
39573         * StatusBar.cs: Initial implementation of StatusBar
39574
39575 2004-08-09 15:36  jackson
39576
39577         * ITheme.cs: Add support for drawing status bar and getting status
39578           bar item sizes
39579
39580 2004-08-09 15:35  pbartok
39581
39582         * MouseButtons.cs:
39583           - Fixed values
39584
39585 2004-08-09 15:34  jackson
39586
39587         * ThemeWin32Classic.cs: Add support for drawing status bar and get
39588           status bar item sizes
39589
39590 2004-08-09 15:21  jackson
39591
39592         * ThemeWin32Classic.cs: Use known colors for default control
39593           colours
39594
39595 2004-08-09 15:12  jackson
39596
39597         * ThemeWin32Classic.cs: Make the default font static, it is static
39598           in control so this doesn't change functionality and creating fonts
39599           is sloooooow.
39600
39601 2004-08-09 14:56  pbartok
39602
39603         * X11Structs.cs:
39604           - Added GrabMode enum
39605
39606 2004-08-09 14:55  pbartok
39607
39608         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39609           - Removed Run method, was only required for initial development
39610
39611 2004-08-09 14:51  pbartok
39612
39613         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39614           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
39615           capture
39616
39617 2004-08-09 13:48  pbartok
39618
39619         * XplatUIX11.cs:
39620           - Fixed default sizing for child windows
39621
39622 2004-08-09 12:56  pbartok
39623
39624         * XplatUIX11.cs:
39625           - Added generation of WM_DESTROY message
39626           - Added handling of window manager induced shutdown
39627
39628 2004-08-09 11:31  jackson
39629
39630         * ThemeWin32Classic.cs: New names for control properties
39631
39632 2004-08-09 11:25  jackson
39633
39634         * Control.cs: Use new color names
39635
39636 2004-08-09 11:02  jackson
39637
39638         * XplatUI.cs: Get default window properties from the theme
39639
39640 2004-08-09 11:01  jackson
39641
39642         * ITheme.cs: The theme engine now controls default window
39643           properties
39644
39645 2004-08-09 11:00  jackson
39646
39647         * ThemeWin32Classic.cs: Add default window color properties
39648
39649 2004-08-09 10:17  jackson
39650
39651         * ThemeWin32Classic.cs: Use correct default back color
39652
39653 2004-08-09 10:05  jackson
39654
39655         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
39656           the theme now.
39657
39658 2004-08-09 09:56  jackson
39659
39660         * XplatUI.cs: Remove defaults, these are handled by the theme now.
39661
39662 2004-08-09 09:54  jackson
39663
39664         * Control.cs: Get default properties from the theme.
39665
39666 2004-08-09 09:53  jackson
39667
39668         * ITheme.cs: Themes now handle default control properties
39669
39670 2004-08-09 09:53  jackson
39671
39672         * ThemeWin32Classic.cs: Themes now handle default control
39673           properties so coloring will be consistent
39674
39675 2004-08-08 16:54  jordi
39676
39677         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
39678
39679 2004-08-08 15:08  jordi
39680
39681         * XplatUIX11.cs: fixes keyboard crash
39682
39683 2004-08-08 13:47  jordi
39684
39685         * Label.cs: add cvs header info
39686
39687 2004-08-08 12:09  jackson
39688
39689         * ThemeWin32Classic.cs: Add pen_buttonface
39690
39691 2004-08-08 11:52  jordi
39692
39693         * Label.cs, LinkLabel.cs: [no log message]
39694
39695 2004-08-08 11:34  jordi
39696
39697         * ThemeWin32Classic.cs: Use Windows Standard Colours
39698
39699 2004-08-07 17:32  jordi
39700
39701         * TrackBar.cs: throw exceptions of invalid enums values
39702
39703 2004-08-07 17:31  jordi
39704
39705         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
39706           draw method name
39707
39708 2004-08-07 16:56  jackson
39709
39710         * HorizontalAlignment.cs: Initial checkin
39711
39712 2004-08-07 13:16  jordi
39713
39714         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
39715           methods
39716
39717 2004-08-07 13:05  jordi
39718
39719         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
39720           GetSysColor defines
39721
39722 2004-08-06 18:01  pbartok
39723
39724         * ThemeWin32Classic.cs:
39725           - Fixed some rounding issues with float/int
39726
39727 2004-08-06 18:00  jackson
39728
39729         * DockStyle.cs, AnchorStyles.cs:
39730
39731                   Add flags and serializable attributes.
39732
39733 2004-08-06 17:46  pbartok
39734
39735         * XplatUIX11.cs:
39736           - Implemented GetParent
39737
39738 2004-08-06 17:18  pbartok
39739
39740         * TrackBar.cs:
39741           - Fixed some rounding issues with float/int
39742
39743 2004-08-06 17:17  pbartok
39744
39745         * X11Structs.cs, XplatUIX11.cs:
39746           - Fixed Refresh and Invalidate
39747
39748 2004-08-06 15:30  pbartok
39749
39750         * Control.cs, X11Structs.cs, XplatUIX11.cs:
39751           - Fixed recursive loop when resizing
39752           - Improved/fixed redrawing on expose messages
39753
39754 2004-08-06 09:53  jordi
39755
39756         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
39757           keyboard navigation
39758
39759 2004-08-06 08:02  pbartok
39760
39761         * X11Structs.cs, XplatUIX11.cs:
39762           - Fixed reparenting
39763           - Fixed window border creation
39764
39765 2004-08-05 15:38  pbartok
39766
39767         * XplatUIX11.cs:
39768           - Attempted fix for reparenting problems
39769
39770 2004-08-04 15:14  pbartok
39771
39772         * Control.cs:
39773           - Fixed Invalidation bug (calculated wrong client area)
39774           - Added ClientSize setter
39775
39776 2004-08-04 15:13  pbartok
39777
39778         * Form.cs:
39779           - Added AutoScale properties
39780
39781 2004-08-04 15:13  pbartok
39782
39783         * SWF.csproj:
39784           - Added latest files
39785
39786 2004-08-04 14:11  pbartok
39787
39788         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39789           XplatUIX11.cs:
39790           - Added Invalidate handling
39791
39792 2004-08-03 17:09  jordi
39793
39794         * XplatUIDriver.cs: fixes spelling mistake
39795
39796 2004-07-27 09:53  jordi
39797
39798         * TrackBar.cs: fixes trackbar events, def classname, methods
39799           signature
39800
39801 2004-07-27 09:29  jordi
39802
39803         * ScrollBar.cs: fixes scrollbar events
39804
39805 2004-07-27 04:38  jordi
39806
39807         * Control.cs: changes to be able to run winforms samples
39808
39809 2004-07-26 11:42  jordi
39810
39811         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
39812           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
39813
39814 2004-07-26 05:41  jordi
39815
39816         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
39817           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
39818           implementation
39819
39820 2004-07-22 09:22  jordi
39821
39822         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
39823           check link overlapping, implement events, and fixes
39824
39825 2004-07-21 10:28  jordi
39826
39827         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
39828
39829 2004-07-21 10:19  jordi
39830
39831         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
39832           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
39833           LinkLabelLinkClickedEventArgs.cs,
39834           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
39835           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
39836           implementation
39837
39838 2004-07-19 13:09  jordi
39839
39840         * Control.cs, Label.cs: label control re-written: added missing
39841           functionlity, events, and properties
39842
39843 2004-07-19 10:49  jordi
39844
39845         * Control.cs: fixes SetBounds logic
39846
39847 2004-07-19 01:29  jordi
39848
39849         * Control.cs: Call RefreshWindow only if the window has created
39850
39851 2004-07-15 14:05  pbartok
39852
39853         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
39854           - Implemented ImageList and ImageList.ImageCollection classes
39855           - Added ColorDepth enumeration
39856           - Updated SWF VS.Net project
39857
39858 2004-07-15 11:06  jordi
39859
39860         * XplatUIStructs.cs: added MsgButons enum
39861
39862 2004-07-15 11:03  jordi
39863
39864         * Control.cs: added basic mouse handeling events
39865
39866 2004-07-15 03:38  jordi
39867
39868         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
39869           Vertical TrackBar control implementation
39870
39871 2004-07-13 09:33  jordi
39872
39873         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
39874
39875 2004-07-13 09:31  jordi
39876
39877         * Control.cs, Form.cs: commit: new properties and fixes form size
39878           problems
39879
39880 2004-07-09 14:13  miguel
39881
39882         * ProgressBar.cs: Spelling
39883
39884 2004-07-09 11:25  pbartok
39885
39886         * ProgressBar.cs:
39887           - Removed usage of Rectangle for drawing. Miguel pointed out it's
39888           faster
39889
39890 2004-07-09 11:17  miguel
39891
39892         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
39893
39894                 * ProgressBar.cs: Fixed spelling for `block'
39895
39896                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
39897                 style guidelines.
39898
39899                 Avoid using the += on rect.X, that exposed a bug in the compiler.
39900
39901 2004-07-08 23:21  pbartok
39902
39903         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
39904           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
39905           BaseCollection.cs, Binding.cs, BindingContext.cs,
39906           BindingMemberInfo.cs, BindingsCollection.cs,
39907           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
39908           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
39909           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
39910           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
39911           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
39912           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
39913           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
39914           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
39915           FrameStyle.cs, GiveFeedbackEventArgs.cs,
39916           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
39917           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
39918           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
39919           InputLanguageChangedEventArgs.cs,
39920           InputLanguageChangedEventHandler.cs,
39921           InputLanguageChangingEventArgs.cs,
39922           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
39923           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
39924           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
39925           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
39926           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
39927           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
39928           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
39929           QueryAccessibilityHelpEventArgs.cs,
39930           QueryAccessibilityHelpEventHandler.cs,
39931           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
39932           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
39933           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
39934           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
39935           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
39936           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
39937           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
39938           XplatUIX11.cs, lang.cs:
39939           - Initial check-in
39940