2009-06-17 Jonathan Pobst <monkey@jpobst.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2009-06-17  Jonathan Pobst  <monkey@jpobst.com>
2
3         * ComboBox.cs: When using AddRange on a sorted combobox, don't
4         try to use our inefficient sorted insert method, just append
5         it and sort the whole thing at then end.
6         [Fixes bug #511247]
7
8 2009-06-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9
10         * ToolBar.cs: Expose as internal the code used to show a dropdown menu.
11         * PrintPreviewDialog.cs: Handle the down/up arrow keys for our
12         DropDown element.
13         Fixes #509152.
14
15 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
16
17         * DataGridView.cs: Scrolling fixes.
18         [Fixes bug #512816]
19
20 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
21
22         * DataGridView.cs, DataGridViewRowCollection.cs: Clean up a bit and 
23         optimize for batch adding rows.
24
25 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
26
27         * DataGridView.cs: Avoid calling ReBind twice during the initial data 
28         binding.
29         [Fixes bug #512807]
30
31 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
32
33         * DataGridView.cs: Suppress invalidation during data binding.
34         [Fixes part of bug #512807]
35
36 2009-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
37
38         * PrintPreviewDialog.cs: Tune the navigation among the buttons and
39         controls that are part of our ToolBar, so we can mimic the behaviour
40         observed in .Net, by handling also the arrow keys and doing the
41         preprocess for them too.
42         Fixes the remaining bits of #509142.
43
44 2009-06-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
45
46         * ToolBar.cs: Expose the current item as internal.
47         * PrintPreviewDialog.cs: Tune the TabStop property for
48         PrintPreviewControl/ToolBar so we match the .net scenario regarding
49         Tab navigation. Also implement support to navigate throughout the
50         items in the ToolBar.
51         Fixes #509142.
52
53 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
54
55         * DataGridViewComboBoxCell.cs, DataGridViewComboBoxColumn.cs: 
56         Implement items syncing in the non-databound scenario.
57         [Fixes bug #494031]
58
59 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
60
61         * DataGridView.cs: Call OnCellValidating and OnCellValidated and 
62         handle the Cancel accordingly.
63         [Fixes bug #506838]
64
65 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
66
67         * DataGridViewBand.cs: Fix a typo in DefaultHeaderCellType.
68         [Fixes bug #506796]
69
70 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
71
72         * DataGridViewColumnCollection.cs, DataGridViewRowCollection.cs, 
73         DataGridView.cs: Fire CollectionChangeAction.Refresh collection 
74         changed when Clearing the collections so that the DataGridView 
75         can know and reset the current cell.
76         [Fixes bug #492549]
77
78 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
79
80         * BindingSource.cs: In ResetBindings use the ListChangedEventArgs ctor 
81         with the PropertyDescriptor parameter instead of index, because the 
82         latter will set some irelevant indices. Fixes a bug uncovered by recent
83          fix to ListChangedEventArgs.
84
85 2009-06-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
86
87         * DataObject.cs: When looking for any specific format, do a case
88         insensitive search, as .net does.
89         Fixes #509199.
90
91 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
92
93         * CurrencyManager.cs: In AllowNew firstly check if the list is a 
94         IBindingList and proxy to AllowNew. IBindingList has slightly differet 
95         logic and eventhough it's an IList IsReadOnly should not be used in this 
96         case as it might be True but AllowNew could be True as well.
97         Fixes a bug uncovered by a fix to the Array class.
98
99 2009-06-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
100
101         * ListBindingHelper.cs: In GetListItemType do a null check when
102         looking for IList.Item, since the impl could be explicit, and thus
103         private. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
104         Fixes the remaining part of #507120
105
106 2009-06-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
107
108         * DataObject.cs: Map StringFormat/Text/UnicodeText formats properly,
109         to match them in all the cases, as this is exactly what .net does.
110         Fixes #510728.
111
112 2009-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
113
114         * ListBindingHelper.cs: In GetListItemType handle gracefully the case
115         where an instance of IEnumerator returns a null value for its Current
116         property. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
117         Fixes #507120.
118
119 2009-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
120
121         * ComboBox.cs: Properly detect whether we need to use our vertical
122         scrollbar or not, specially for DropDownList/DropDown styles,
123         depending on the value of DropDownHeight.
124         Fixes #508541.
125
126 2009-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
127
128         * ToolTip.cs: Call the base implementation in Dispose, but do it
129         before anything else to avoid a regression. This way we do the default
130         routines related to any System.ComponentModel.Container.
131         Fixes #508586.
132
133 2009-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
134
135         * Clipboard.cs:
136         * XplatUIX11.cs:
137         * DataFormats.cs: Implement support for serializable types in our
138         clipboard.
139         Fixes #357642.
140
141 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
142
143         * ColorDialog.cs: Actually add the help button to the form, so it can
144         be visible.
145         Fixes #478555.
146
147 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
148
149         * PrintPreviewDialog.cs: Don't use Dock.Fill for the
150         PrintPreviewControl, since it will be hidden in the top by our
151         toolbar. Use manual location and anchoring instead.
152         Fixes #474889.
153
154 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
155
156         * FileDialog.cs: When saving the size of the dialog, use the
157         ClientSize instead of Size, so we have always the same size for the
158         form. Patch by Alex Shulgin.
159         Fixes #503064.
160
161 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
162
163         * MessageBox.cs: When showing the dialog call XplatUI.AudibleAlert to
164         show a beep, similar to what .net does. 
165         Fixes #473725.
166
167 2009-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
168
169         * ContainerControl.cs:
170         * MenuStrip.cs
171         * ToolStrip.cs: Implicit mnemonic processing should happen for every
172         ToolStrip child, not only for MenuStrip, so we are going to do that in
173         ToolStrip.ProcessMnemonic, where we already had that exactly
174         functionality, but we are only just checking that either this instance
175         is a ToolStripDropDownMenu instance or Alt has been pressed. Finally
176         remove the extra code, since we are not going to use it now.
177         Fixes the remaining bits of #503663.
178
179 2009-05-21  Neville Gao  <nevillegao@gmail.com>
180
181         * ContextMenu.cs: Cleaned up UIA properties.
182
183 2009-05-20  Dick Porter  <dick@acm.org>
184
185         * XplatUICarbon.cs: Add more locking around MessageQueue
186         manipulations.
187
188 2009-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
189
190         * DateTimePicker.cs: Call Focus in HideMonthCalendar to avoid
191         duplication of code, as well as actually getting the focus back in
192         *any* scenario where the drop down is closed.
193
194 2009-05-18 Tom Hindle <tom_hindle@sil.org>
195         * ScrollableControl.cs: Ignore setting properties HScroll and 
196         VScroll when AutoScroll is true.
197         [Fixes bug #500213]
198
199 2009-05-18  Jonathan Pobst  <monkey@jpobst.com>
200
201         * ToolStripRenderer.cs: Apply patch from Thomas Goldstein to make
202         disabled graphics look closer to the ones that .Net produces.
203         [Fixes bug #473660]
204
205 2009-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
206
207         * DateTimePicker.cs: When calculating the max width for the year part,
208         use the current value, since *all* the possible values are exactly a 4
209         digits number. This way we avoid a ArgumentOutOfRangeException trying
210         to check against different values.
211         Fixes #500917.
212
213 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
214
215         * MessageBox.cs: When handling ProcessDialogChar, check that
216         CancelButton is not null before trying to use it, to avoid a null ref
217         exception. We don't need to do that on the ok/yes buttons, since they
218         always exist.
219         Fixes #503935.
220
221 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
222
223         * ListBox.cs: Handle the key down event in WndProc instead of doing it
224         in an event handler, as we need to avoid any operation in case
225         the user has handled it in its own OnKeyDown handler, and this can't
226         be achieved since our handler would be the first one always.
227         * FontDialog.cs: Update the calls since our method handling key down
228         has been renamed.
229         Fixes #503469.
230
231 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
232
233         * Application.cs: We should dismiss the active ToolStrip when we
234         receive a WM_SYSKEYDOWN message, instead of WM_SYSKEYUP, so the next
235         keyboard short cut can be properly processed by another menu item.
236         Fixes part of #503663.
237
238 2009-05-13  Andreia Gaita  <avidigal@novell.com>
239
240         * HtmlDocument.cs: If the objects are strings, wrap them in ""
241
242 2009-05-13  Andreia Gaita  <avidigal@novell.com>
243
244         * HtmlDocument.cs: Fix InvokeScript call (duh).
245
246 2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
247
248         * TextBox.cs: Expose IsAutoCompleteAvailable as internal.
249         * ComboBox.cs: If auto complete is being used, it is needed to update
250         the actual value of the combo box, doing it immediately if the user
251         presses Enter, or doing it when our combo box loses focus. Finally,
252         when handling Enter and Escape keys for the combobox, don't try to
253         hide the listbox if it is not visible in the first place. 
254         Fixes part of #489339.
255
256 2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
257
258         * ToolStripDropDownMenu.cs: Use the height returned by
259         ToolStripItem.GetPreferredHeight to calculate our own height.
260
261 2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
262
263         * TreeNode.cs: When setting Checked, do a double null check, since the
264         current node can still get a null parent handling
265         TreeView.OnAfterCheck.
266         Fixes #502567.
267
268 2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
269
270         * Control.cs: When assigning ContextMenu, do a null check before
271         assigning its container field.
272
273 2009-05-08  Brad Taylor  <brad@getcoded.net>
274
275         * DateTimePicker.cs: Add a UIA-specific property to ensure that if
276         is_checkbox_checked is changed, we won't break.
277
278 2009-05-08  Andrés G. Aragoneses  <aaragoneses@novell.com>
279
280         * ToolStripItem.cs: Prevent NRE when our holder is a
281         ToolStripDropDownButton and we get Select()ed.
282
283 2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
284
285         * ToolStripControlHost.cs: DefaultSize must return the current size of
286         the Control, not the value returned by GetPreferredSize. Also connect
287         a handle to the control Resize event, and use it to fire
288         OnHostedControlReize.
289         Fixes the remaining bits of #483146.
290
291 2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
292
293         * ToolStripDropDown.cs: When performing the layout, use
294         ToolStripItem.GetPreferredSize ().Height instead of
295         ToolStripItem.Height, since we are already using it that way in this
296         same method.
297         Fixes part of ##483146.
298
299 2009-05-08  Brad Taylor  <brad@getcoded.net>
300
301         * DateTimePicker.cs: Wrap UIA specific code in NET_2_0 wrappers.  Send
302         OnUIASelectionChanged when ShowCheckbox is true and the checkbox
303         recieves focus.  Part of fix for #502029.
304
305 2009-05-06  Mike Gorse  <mgorse@novell.com>
306
307         * FileDialog.cs: Add UIAFocusedItemChanged to PopupButtonPanel.
308         Add PerformClick and PerformDoubleClick to PopupButton.
309         Fixes #499851.
310
311 2009-05-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
312
313         * TabControl.cs: call Focus() to emit GotFocus event at the
314         proper time when SelectionIndex changes. Fixes #499887.
315
316 2009-05-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
317
318         * MonthCalendar.cs: In SetBoundsCore always do the bounds check to
319         have valid values, even if BoundSpecified is not including
320         Size/Height/Width - this is useful when we are in a control using Dock
321         or Anchor.
322         Fixes part of #483146.
323
324 2009-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
325
326         * ComboBox.cs: When losing the focus, if our textbox is not null,
327         close its auto complete list, if any.
328         Fixes part of #489339.
329
330 2009-04-27  Andrés G. Aragoneses  <aaragoneses@novell.com>
331
332         * ListView.cs: Make OnColumnClick +internal to be used by a11y.
333
334 2009-04-27  Brad Taylor  <brad@getcoded.net>
335
336         * ToolStripButton.cs: Emit an internal event when CheckOnClick is
337         changed.
338
339 2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
340
341         * XplatUIX11.cs: Properly support UTF8 when handling the
342         SelectionRequest event - this is helpful supporting some window
343         managers, such KDE, that explictly request the text in utf8, as
344         opposed to gnome, that supports ascii.
345         Fixes #489393.
346
347 2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
348
349         * ToolStripDropDownItem.cs: When assigning a new
350         ToolStripDropDownMenu, let it know we are its OwnerItem. This way the
351         Capture duties performed by Application/ToolStripManager are handled
352         nicely and we don't end up in an inconsisten stat.
353         Fixes #492815.
354
355 2009-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
356
357         * ToolStrip.cs: Even if we are not exactly a MenuStrip instance, close
358         any ToolStripDropDownItem when receiving a mouse down event in an
359         empty area.
360
361 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
362
363         * ToolBarButton.cs: add UIA events for style and dropdownmenu changes.
364
365 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
366
367         * ToolBarButton.cs: rename a method to include UIA prefix.
368
369 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
370
371         * ToolBarButton.cs: change visibility of some UIA methods from
372         protected virtual to private.
373
374 2009-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
375
376         * ToolStripDropDown.cs: In OnVisibleChanged, if we have an OwnerItem,
377         fire OnDropDownOpened/OnDropDownClosed depending on the new
378         visibility. This also ensures that any direct access to this instance
379         will fire the mentioned events for the OwnerItem.
380         * ToolStripDropDownItem.cs: Remove the invocations to
381         OnDropDownOpened/OnDropDownClosed, since they are handled in
382         ToolStripDropDown, as well as updating the
383         OnDropDownHide/OnDropDownShow calls to be in the right order.
384         Fixes #496193.
385
386 2009-04-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
387
388         * Control.cs, ContextMenuStrip.cs, ToolStripMenuItem.cs: Only process any 
389         shortchut in ToolStripMenuItem.ProcessCmdKey if the control generating the 
390         event is the same as the owner of the menu item. Also set properly 
391         SourceControl for ContextMenuStrip, as well as add an internal field to 
392         contain the control that owns the ContextMenuStrip (we need to know this 
393         even before the public property is assigned).
394         Fixes bits of #393775.
395
396 2009-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
397
398         * StatusStrip.cs: Use the same icon as .net when the mouse is over the
399         size grip.
400         Fixes #492828.
401
402 2009-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
403
404         * ComboBox.cs: When calculating the height of the ComboListBox,
405         specially for the 2.0 profile, use MaxDropDownItems if the
406         DropDownHeight property hasn't been set, and use the later if it has
407         been set. This way we support both properties.
408         Fixes #493308.
409
410 2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
411
412         * ThreadExceptionDialog.cs: Draw the error icon, previously missing.
413         Fixes #474253.
414
415 2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
416
417         * ContainerControl.cs: Implement support for Control.CausesValidation,
418         by adding a pending list of controls to be validated in the top
419         container control, and postpone validation as needed. 
420         Also remove any control in the validation chain in case it gets removed 
421         from its owner before the pending validation actually happens.
422         Fixes #457170.
423
424 2009-04-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
425
426         * ListBox.cs: The default instance StringFormat field used to draw our
427         items should use the StringFormatFlags.NoWrap value, so it doesn't try
428         to put in a different line the text that doesn't fit our bounds, but
429         show it partially.
430         Fixes #475581.
431
432 2009-04-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
433
434         * CheckedListbox.cs: When executing OnItemClick check that the index
435         is different to -1 before trying to retrieve an item using that value.
436         Fixes a ArgumentOutOfRangeException thrown when the horizontal
437         scrollbar was visible but not needed, and then a clicked was received
438         on its area.
439
440 2009-04-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
441
442         * MaskedTextBox.cs: If Insert is pressed, change the internal
443         overwrite mode for our default value.
444         Fixes some bits of #477395.
445
446 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
447
448         * ListView.cs: In EnsureVisible avoid any direct access to items if we
449         are using virtual mode - otherwise use the bounds stored in a specific
450         item in a given index. This is specially important when using groups
451         or when items are re-arranged, since the position in the items
452         collection can be different than that one being displayed.
453         Fixes the rest of ##491978.
454
455 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
456
457         * ThemeWin32Classic.cs: Include the previous check for ListView in a
458         2.0 define as needed.
459
460 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
461
462         * ThemeWin32Classic.cs: Don't draw ListView's gridlines if we are using groups.
463         Fixes part of #491978.
464
465 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
466
467         * ToolTip.cs: New fields to store the title/icon information.
468         * ThemeWin32Classic.cs: Implement support for tooltip's title and
469         icon.
470         Fixes #491978.
471
472 2009-04-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
473
474         * TabControl.cs: When removing a tab that was previously selected, set
475         internally the value of selected_index to -1, to avoid trying to
476         access the previous one when trying to set the new one (and was
477         already removed from the collection). This is what .net seems to do
478         too.
479         Fixes #490937.
480
481 2009-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
482
483         * XplatUIX11.cs, X11Clipboard.cs: Text and Rtf formats must be
484         separated, and we cannot fallback on Text if Rtf is requested but not
485         present.
486         * Clipboard.cs: Actually use the format specified by our user when
487         putting data.
488
489 2009-03-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
490
491         * X11Clipboard.cs: Actually look for the RtfText format when calling
492         GetRftText in our clipboard formats list, instead of using the
493         generical Text format.
494
495 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
496
497         * TextBox.cs: Process auto completion properly when we are using the
498         internal source provided by ComboBox, and also remove some repeated
499         checks.
500         Fixes #489339.
501
502 2009-03-30 Tom Hindle <tom-hindle@sil.org>
503         
504         * DataGridView added Support for Invisible Columns to 
505         AutoFillColumnsInternal method.
506
507 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
508
509         * X11Structs:
510         * X11Clipboard.cs: Move internal ClipboardStruct from X11Structs to
511         its own file, since it is adding some functionality and thus is not a
512         simple struct as before.
513         * XplatUIX11.cs: Add support to store different formats that could
514         have been specified by the user when puting data in the Clipboard -
515         this is important when more than one format is supported (such plain
516         text and rtf text). Update in the needed places, as well as simplify
517         the code.
518         Fixes #489625.
519
520 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
521
522         * XplatUIX11.cs: When handling the SelectionRequest event, use
523         SelectionRequestEvent instead of SelectionEvent, so we get the right
524         data for the app asking for clipboard data. Set the member of
525         SelectioneEvent.property to indicate the place where we are storing
526         the information as well - this is specially important for gnome/kde
527         apps using the TARGETS atom to ask for the supported permission before
528         actually asking for a specific format.
529         Fixes #489393.
530
531 2009-03-28  Ivan N. Zlatev  <contact@i-nz.net>
532
533         * DataGridViewCell.cs: We don't support drawing all types of cell borders, 
534         so fallback and at least draw something instead of nothing.
535
536 2009-03-27  Ivan N. Zlatev  <contact@i-nz.net>
537
538         * DataGridView.cs: If the column header isn't visible allow resizing 
539         using the cell column border. Also be sure to reset the cursor properly.
540         [Fixes bug #489929]
541
542 2009-03-26   Carlos Alberto Cortez <calberto.cortez@gmail.com>
543
544         * ToolStrip.cs: When disposing, iterate over the items in reverse
545         order, since disposing the items modifies the collection.
546         * ToolStripItem.cs: Remove from the owner when disposing.
547         Fixes #485769.
548
549 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
550
551         * DataGridView.cs: Add an implementation for UpdateRowHeightInfo. No 
552         longer throws a NotImplementedException.
553           Based on a patch by Tom Hindle <tom_hindle@sil.org>
554         [Fixes bug #488319]
555
556 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
557
558         * DataGridView.cs: Implement IsCurrentRowDirty. No longer throws 
559         NotImplementedException.
560
561 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
562
563         * DataGridViewColumn.cs, DataGridViewTextBoxColumn.cs: 
564         Fix SortMode clash handling.
565         [Fixes bug #488263]
566
567 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
568
569         * DataGridView.cs: Do not show the vertical scrollbar if there is only 
570         one row or less. For the sake of MSNET compatibility.
571         [Fixes bug #487988]
572
573 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
574
575         * DataGridView.cs: When the current cell is moved out of the editing row 
576         be sure to reset it back to a place holder row.
577
578 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
579
580         * DataGridView.cs: If IsHandleCreated and the very first row is added 
581         to the grid in a non-databound scenario - select the first cell.
582         [Fixes bug #486881]
583
584 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
585
586         * DataGridView.cs: If we are not databound and empty once the first row 
587         gets added select the first cell.
588         [Fixes bug #486881]
589
590 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
591
592         * DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's
593         DataGridView. They do not belong to a DataGridView.
594         [Fixes bug #486645]
595
596 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
597
598         * DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs: 
599         Set indices and associate with DataGridView only after the item is 
600         add to the internal list.
601         [Fixes part of bug #486645]
602
603 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
604
605         * DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount. 
606         FullRowTemplate already contains all the cells.
607         [Fixes part of bug #486645]
608
609 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
610
611         * DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal 
612         to perform Pre and Post removal actions to allow the current cell to be 
613         moved and all events fired properly before the column is removed.
614
615 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
616
617         * DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and 
618         Post removal action to allow the current cell to be moved and all events fired 
619         properly before the row is removed.
620
621 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
622
623         * DataGridView.cs: Fire CellEnter and CellLeave events for the Cell.
624         [Fixes bug #486640]
625
626 2009-03-18  Jonathan Pobst  <monkey@jpobst.com>
627
628         * XplatUICarbon.cs: Commit patch from Alex Shulgin that fixes window
629         placement of popup windows on OSX.
630
631 2009-03-18  Matt Guo  <matt@mattguo.com>
632
633         * FontDialog.cs: Override "ToString" for FontDialog.ColorComboBox.ColorComboBoxItem
634         [Fixes bug #482690]
635
636 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
637
638         * DataGridView.cs: Implement the CellMouseDoubleClick event.
639         [Fixes bug #486262]
640
641 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
642
643         * DataGridView.cs: Fix scrolling to take into account that the 
644         scrollbars are actually inside the client area of the datagridview.
645
646 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
647
648         * DataGridView.cs: Implement mouse wheel scrolling.
649         [Fixes bug #486159]
650
651 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
652
653         * DataGridView.cs: When DataSource changes the rebinding should happen 
654         not if IsHandleCreated but if BindingContext != null.
655         [Fixes bug #486013]
656
657 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
658
659         * DataGridView.cs: Browsable(false) properties should be skipped when 
660         autogenerating the columns.
661         [Fixes bug #486021]
662
663 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
664
665         * DomainUpDown.cs: When ReadOnly is true, all the text entered by the
666         user should use a different handling, trying to use every pressed char
667         as a unique and only one prefix to compare against the items. Also,
668         refactor some input check code to avoid duplication.
669         Fixes #458607.
670
671 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
672
673         * DataGridViewCell.cs: In OwningColumng Handle invalid column index 
674         silently.
675         [Fixes bug #485278]
676
677 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
678
679         * DataGridViewBand.cs: Update our State whenever a property changes.
680         * DataGridView.cs: Don't be so generous in reseting Displayed, because 
681         it will spawn lots and lots of unneeded State changed events.
682         [Fixes bug #484989]
683
684 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
685
686         * DataGridView.cs, DataGridViewRow.cs, DataGridViewColumn.cs: 
687         Add support for invisible rows and columns.
688         [Fixes bug #484951]
689
690 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
691
692         * DataGridViewCell.cs: Escape literal { in ToString.
693         * DataGridViewTextBoxCell.cs: Fix ToString.
694         [Fixes bug #484923]
695
696 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
697
698         * MenuAPI.cs: When navigating items using the keyboard properly handle
699         the case when no item is selected - this way we should try to select
700         the first or the last item depending on the direction, but no the
701         second or third one, etc.
702
703 2209-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
704
705         * Form.cs: When calling ProcessCmdKey, just after checking for any
706         MainMenu, check if there's an active ContextMenu that is *not* owned
707         by the form - this is needed when a non-focusable control owns a
708         ContextMenu but its ProcessCmdKey method can't be called since it
709         can't receive any input.
710         Fixes #477655.
711
712 2009-03-13  Neville Gao  <nevillegao@gmail.com>
713
714         * ToolBar.cs: Sent ButtonClick events when button style is DropDown.
715         * ContextMenu.cs: Add UIA Framework property UIAVisible to detect if
716         ContextMenu is displayed.
717
718 2009-03-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
719
720         * XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
721         WM_HELP message for the associated window, don't call
722         NativeWindow.WndProc *at all*, since this could send a WM_*
723         key-related to Control.WndProc. Also, return the keypress message, in
724         case it needs to be preprocessed for any menu.
725         Fixes #478476.
726
727 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
728
729         * DataGridView.cs: When removing the first displayed row and moving 
730         the current cell up one we must invalidate the first displayed row 
731         index before calculating the row heights, etc.
732         [Fixes bug #483202]
733
734 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
735
736         * DataGridView.cs: Fix three column bugs:
737            - Rows should be cleared (but not removed) if columns become 0.
738            - The current cell should get moved
739            - ColumnCount increase was adding too many columns.
740
741 2009-03-07  Ivan N. Zlatev  <contact@i-nz.net>
742
743         * DataGridView.cs: Fix RowCount decrease which wasn't working well 
744         in both scenarions - with and without editing row.
745
746 2009-03-06  Ivan N. Zlatev  <contact@i-nz.net>
747
748         * DataGridView.cs: Be compatible with MS in that the scroll to 
749         selection has a synchronous effect. The trick here is that in 
750         order to avoid unnecessary calculations each time a row/column 
751         is added/removed we recalculate the whole grid size just before 
752         just before the scroll to selection.
753         [Fixes bug #482478]
754
755 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
756
757         * RichTextBox.cs: LoadFile(string path) should pass by default
758         RichTextBoxStreamType.RichText, without caring about the detection or
759         extension of the file.
760
761 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
762
763         * RichTextBox.cs: When calling LoadFile, remove the extra EOL
764         introduced by StreamReader, since it will convert the EOF to an EOL.
765         Fixes #479646.
766
767 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
768
769         * ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
770         preferred size twice.
771
772 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
773
774         * ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
775         string if we aren't on a ToolStripDropDownMenu.
776
777 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
778
779         * ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
780         code from Item to Button.  Patch from Alex Shulgin.
781
782 2009-03-05  Jonathan Pobst  <monkey@jpobst.com>
783
784         * ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
785         * ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
786         not a ToolStripDropDown.
787         * ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.
788
789 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
790
791         * DataGridView.cs: Fix RowCount/ColumnCount decreasing.
792
793           Based on a patch by Tom Hindle <tom_hindle@sil.org>
794           [Fixes bug #482133]
795
796 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
797
798         * DataGridView.cs, DataGridViewElement.cs: 
799            - Always calls OnDataGridViewChanged() if the new DGV is 
800            not the same/null as the current one.
801            - Do not throw NREs when setting TopLeftHeaderCell to null
802            - Unset the DGV for TopLeftHeaderCell when replacing it
803           Based on a patch by Tom Hindle <tom_hindle@sil.org>
804           [Fixes bug #481681]
805
806 2009-03-04  Jonathan Pobst  <monkey@jpobst.com>
807
808         * ToolStripDropDown.cs: When dismissing control due to ESC, don't
809         hit a NRE if we are a ContextMenuStrip and do not have a parent.
810         [Fixes bug #478616]
811
812 2009-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
813
814         * ListView.cs: When removing items from a ListViewItemCollection
815         contained in ListView (not in ListViewGroup), before actually removing
816         the items remove them also from their -if any- associated groups. If
817         the item is present in ListViewGroup.Items but not in ListView.Items,
818         then don't remove it - this is *exactly* what .net seems to do.
819         Fixes the remaining bits of #478689.
820
821 2009-02-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
822
823         * ListView.cs: In our MouseDown handler in ItemControl use the item in
824         the very specific *real* position where the mouse was pressed, using
825         GetItemAtDisplayIndex for that purpose, instead of directly accessing
826         Items - this is specially useful when groups with Details view is
827         used. This is what we do in other places when using groups.
828         Fixes part of #478689.
829
830 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
831
832         * MaskedTextBox.cs: Properly replace selection when a new valid key
833         is pressed - even when IsOverwriteMode is false. This is what .net
834         does.
835
836 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
837
838         * MaskedTextBox.cs: When setting Text and RejectOnFirstFailure is
839         true, use MaskedTextProvider.Set instead of MaskedTextProvider.Replace, 
840         since Set will keep the previous value in case of error (just what we
841         need), but still call MaskedTextProvider.Clear if
842         RejectOnFirstFailure is false - match .net.
843
844 2009-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
845
846         * MaskedTextBox.cs: When setting Text use the very precise algorithm
847         that .net uses: iterate over every char of the new value, trying to
848         use every char, and use a normal call to MaskedTextProvider.Replace
849         call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected 
850         in case of error in both cases, as well.
851         Fixes #477408.
852
853 2009-02-25  Neville Gao  <nevillegao@gmail.com>
854
855         * ColorDialog.cs: Added UIA Framwork Property:
856         UIASelectedSmallColorControl.
857
858 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
859
860         * MaskedTextBox.cs: Forgot to update the call of the new method
861         introduces in the previous patch.
862
863 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
864
865         * MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
866         key. Also create a new method to avoid code duplication between
867         OnKeyDown and OnKeyPress.
868         Fixes #477388.
869
870 2009-02-24  Ivan N. Zlatev  <contact@i-nz.net>
871
872         * DataGridViewCell.cs: Invalidate the datagrid when the cell is selected 
873         or deselected.
874         [Fixes bug #479124]
875
876 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
877
878         * MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
879         actually inversed, so put it the right way. Also, don't automatically
880         look for the next editable item after adding a new one, but way for
881         the next insertion (this is what .net does) - this is not needed when
882         MaskedTextProvider.InsertAt is called however, since it already looks for the
883         next editable position.
884         Fixes the remaining bits of #477383.
885
886 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
887
888         * MaskedTextBox.cs: In OnKeyPress handle backspace by calling
889         MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
890         property after the text was modified, adjust the testPosition value
891         depending on what method was called.
892         Fixes part of #477383.
893
894 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
895
896         * ListView.cs: For EnsureVisible, adjust the view port bounds based on
897         the existence of the column headers, as well as using this information
898         to adjust the vscrollbar value, so items never get hidden by the
899         column headers.
900         Fixes #478498.
901
902 2009-02-23  Ivan N. Zlatev  <contact@i-nz.net>
903
904         * DataGridView.cs: Make the ScrollBars property work properly.
905
906 2009-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
907
908         * TextBox.cs: Some code lifting for AutoComplete's support. First,
909         when handling non-navigation keys, save the original Text typed by the
910         user, and don't motify it BEFORE. This was a design mistake, since the
911         re-assignation happens only when navigating the append/suggest list,
912         not while creating the matches. Also, process the Delete key just like 
913         the backspace one. Finally, when handling WM_CHAR, ignore both Escape
914         and Enter keys.
915         Fixes some missing bits of #469967.
916
917 2009-02-22  Ivan N. Zlatev  <contact@i-nz.net>
918
919         * DataGridView.cs: Fix row removal in the data-bound scenario.
920
921 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
922
923         * DataGridViewCell.cs: Use strict equality comparison in order to 
924         prevent superfluous CellValueChanged events.
925
926 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
927
928         * DataGridView.cs: Do not reset the columns when the data list changes, 
929         but only the rows. Fixes multiple bugs related to sorting, custom 
930         column styles being reset and more.
931
932 2009-02-19  Jonathan Pobst  <monkey@jpobst.com>
933
934         * ThemeWin32Classic.cs: Respect a PictureBox's Padding when
935         drawing the image.
936
937 2009-02-18  Andrés G. Aragoneses  <aaragoneses@novell.com>
938
939         * ToolBarButton.cs: Oops, use the correct event (fix r127298).
940
941 2009-02-17  Andrés G. Aragoneses  <aaragoneses@novell.com>
942
943         * ToolBarButton.cs: Event for Enabled property (needed to fix
944           UIA #474197).
945
946 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
947
948         * TextBox.cs: When handling WndProc with autocomplete activated,
949         event if the new text is not causing any change in the look up
950         algorithm, save it as we normally do when numbers and letters.
951         Fixes #469967.
952
953 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
954
955         * TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
956         Invalidate the proper bounds in the TreeView, not only resetting the
957         width.
958         Fixes #475542.
959
960 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
961
962         * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
963         BackColor property. This is what .net does in both 1.1 and 2.0.
964         * TreeView.cs: When selected_node is not the same as highlighted_node,
965         we need to handle the back color in a different way, trying to use the
966         node's BackColor if it's not Color.Empty.
967         Fixes #464200.
968
969 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
970
971         * TreeView.cs: When canceling selection in our MouseUp handler,
972         invalidate also the previous selected node bounds.
973         Fixes #464191.
974
975 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
976
977         * DataGridView.cs: End or if end fails then cancel the current edit 
978         operation before clearing the data source.
979
980 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
981
982         * DataGridView.cs: Data-bind only after the handle is created.
983         [Fixes bug #473680]
984
985 2009-02-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
986
987         * TreeView.cs: When handling the MouseMove event, check if
988         focused_node and selected_node fields are null - usually they are non
989         null, since we have always a selected node, but canceling selection by
990         handling BeforeSelect event leaves the two of them as null.
991         Fixes #470451.
992
993 2009-02-06  Neville Gao  <nevillegao@gmail.com>
994
995         * TabControl.cs: Control enabled to support accessibility.
996         [Fixes Bug #472428]
997
998 2009-02-05  Ivan N. Zlatev  <contact@i-nz.net>
999
1000         * DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation: 
1001            - Use ArrayList.Insert instead of the Item property so that the item 
1002            is actually inserted and not an existing item replaced.
1003            - Call DataGridView.OnRowsAddedInternal and drop internal from 
1004            OnRowsAdded for binary compitability. This also fixes several 
1005            redrawing issues.
1006         [Fixes bug #472968]
1007
1008 2009-02-05  Andrés G. Aragoneses  <aaragoneses@novell.com>
1009
1010         * ToolBarButton.cs: Doh, fire OnUIATextChanged *after* setting
1011           the value.
1012
1013 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1014
1015         * ToolBarButton.cs: Add another event (OnUIATextChanged).
1016
1017 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1018
1019         * ToolBarButton: Fix typo in previous commit (r125704).
1020
1021 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1022
1023         * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
1024         when a button gets focus, firing the events from the ToolBar.
1025         r: jpobst
1026
1027 2009-02-04  Mario Carrion  <mcarrion@novell.com>
1028
1029         * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting 
1030         Width.
1031         * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
1032         ColumnHeader to raise ColumnWidthChanged.
1033         [Fixes Bug #467086]
1034
1035 2009-02-03  Ivan N. Zlatev  <contact@i-nz.net>
1036
1037         * DataGridViewRowCollection.cs, DataGridView.cs: Move row completion 
1038         code in the row collection code, so that the completion happens before 
1039         the CollectionChanged event, also better encapsulation.
1040         [Fixes bug #471987]
1041
1042 2009-02-02  Ivan N. Zlatev  <contact@i-nz.net>
1043
1044         * DataGridView.cs: When editing is finished do not remove the editing 
1045         row, because it has already become a real one. Instead add a new one.
1046         [Fixes bug #471754]
1047
1048 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1049
1050         * TreeView.cs: When drawing the node's image, check that the index
1051         specified by the node is valid for the ImageList.
1052         Fixes #471094.
1053
1054 2009-02-02  Andrés G. Aragoneses  <aaragoneses@novell.com>
1055
1056         * ToolBar.cs: Add new UIAPerformClick method to be called by
1057         UIAutomationWinforms when someone calls Invoke() on the
1058         ToolBarButtonProvider. r: jpobst
1059
1060 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1061
1062         * XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
1063         MapNotify/UnmapNotify events - we are already firing those events in
1064         the proper places, so we avoid this way to send the same message two
1065         times. I'm leaving the handling code in case we could break something
1066         in the future, as this change seems dangerous (but needed).
1067         Fixes #467546.
1068
1069 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1070
1071         * DataGridView.cs: Complete incomplete rows when they are added to 
1072         the grid.
1073         [Fixes bug #471068]
1074
1075 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1076
1077         * DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the 
1078         binding is cleared prior to setting it to null. Fixes a regression 
1079         causing exceptions when the DataSource is set to null and then set 
1080         again to a data source.
1081
1082 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1083
1084         * DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs: 
1085            - Make Image/Bitmap cells work.
1086            - Handle images with size greater than the cell.
1087            - Default to MiddleCenter alignment for image cells.
1088         [Fixes bug #471101]
1089
1090 2009-01-30  Ivan N. Zlatev  <contact@i-nz.net>
1091
1092         * UpDownBase.cs: Force Height to PreferredHeight.
1093
1094 2009-01-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1095
1096         * XplatUIX11.cs: We should use utf8 handling clipboard transference
1097         with other x11 applications, and use utf16 when handling clipboard
1098         data in the class library. Update the related points as well.
1099         Fixes #468683.
1100
1101 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
1102
1103         * DataGridViewCell.cs: Format strings according to the supplied 
1104         CellStyle.Format.
1105         [Fixes bug #470384]
1106
1107 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
1108
1109         * DataGridView.cs: Reset the hover cell if it gets moved due to row(s) 
1110         addition or removal. Fixes multiple crashes in OnMouseMove.
1111
1112 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
1113
1114         * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
1115
1116 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
1117
1118         * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the 
1119         current context.
1120         [Fixes bug #469239]
1121
1122 2009-01-26  Andreia Gaita  <avidigal@novell.com>
1123
1124         * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
1125         won't be disabled by default.
1126         Fixes #468690
1127
1128 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
1129
1130         * DataGridView.cs: Do not clear the rows if we are not databound.
1131
1132 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
1133
1134         * DataGridView.cs: Do not be too smart about selecting the first cell 
1135         when the first row is added as this is not what MS does. Fixes the 
1136         failing unit tests.
1137
1138 2009-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1139
1140         * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
1141         take into account the fact that OpenTreeNodeEnumerator needs to call
1142         MoveNext/MovePrevious to actually put the passed node as the one
1143         retrieved in Current. This way this property should work as really
1144         expected in .net.
1145         Fixes part of #467225.
1146
1147 2000-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1148
1149         * TreeView.cs: When calculating the scrollbars, don't use
1150         TreeNode.Bounds, since it still can have the values of the previous
1151         -and now invalid- layout -which depends on TreeView.skipped_nodes, and
1152         could not have been updated as well-, and use the actual number of
1153         visible number of nodes to compute the height needed to contain all
1154         the nodes. Also reset the value of vbar to 0 when disabled - this way
1155         we make sure that, when re-enabled, it will update the visible area of
1156         the treeview, even if the previous value before disabling it is the
1157         same as now. Finally don't do anything for the vbar.ValueChanged
1158         handler - for the case wheer we manually set the value but don't the
1159         vbar is disabled already.
1160         Fixes part of #467225.
1161
1162 2009-01-23  Jonathan Pobst  <monkey@jpobst.com>
1163
1164         * ToolStrip.cs: Switch from foreach to for, in case the collection
1165         somehow changes while enumerating it.
1166
1167 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
1168
1169         * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no 
1170         editing control.
1171
1172 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
1173
1174         * DataGridView.cs: Fix new row adding/editing in the non-databound 
1175         scenario.
1176
1177 2009-01-21  Mike Gorse  <mgorse@novell.com>
1178
1179         * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
1180           use them.
1181           Added UIAValueParamChangedEvent.
1182
1183 2009-01-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1184
1185         * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
1186         of trying to set as top node the highest parent of the previous top
1187         node. Moving to the bottom of the TreeView after a call to CollapseAll
1188         is exactly what .net does. This should avoid some nasty issue when
1189         CollapseAll is called and we don't need the vertical scroll bar.
1190
1191 2009-01-21  Mario Carrion <mcarrion@novell.com>
1192
1193         * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
1194         and UIATopMostChanged.
1195
1196 2009-01-21  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1197
1198         * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
1199         UIAEnabledChanged, and UIATextChanged events.
1200
1201         * Form.cs: Add UIAMenuChanged event.
1202
1203         * Menu.cs:
1204         * MenuAPI.cs: Note which internal APIs are being used by UIA.
1205
1206 2009-01-21  Neville Gao  <nevillegao@gmail.com>
1207
1208         * ToolBar.cs: Control enabled to support accessibility.
1209         [Fixes Bug #455950]
1210
1211 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1212
1213         * TreeView.cs: When handling mouse up event, check whether
1214         highlighted_node is null or not - usually it should be non-null
1215         alwaays, since the mouse down handler sets it, but some externa
1216         operations, such TreeNodeCollection.Clear, could set it to null.
1217         Fixes #438650.
1218
1219 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
1220
1221         * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu 
1222         item is disabled.
1223
1224 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
1225
1226         * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
1227         [Fixes bug #467285]
1228
1229 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1230
1231         * MonthCalendar.cs: When handling the selection changes using the
1232         mouse, don't set SelectionRange if the selection range didn't actually
1233         change. This matters because, even if we set the range to the same
1234         previous range, an extra DateChanged event is fired. Just to be clear:
1235         SelectionRage property doesn't check whether the new value is
1236         different to the previous one (by ref equals doesn't work here).
1237         Fixes other bits of #364914.
1238
1239 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1240
1241         * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
1242         selection using the keyboard, since we are already firing this event
1243         when setting SelectionRange. Also don't set SelectionRange if the
1244         previous and the new value are the same (the property, just as .net
1245         does, doesn't check whether the previous value and the new one are the
1246         same). This saves us from firing OnDateChanged event if the selection
1247         range didn't change actually.
1248         Fixes the remaining bits of #364914.
1249
1250 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1251
1252         * ListBox.cs: When removing an item and the last item is selected,
1253         remove it from the selection, and if selection mode is One try to
1254         select the new last item.
1255         Fixes #465422.
1256
1257 2009-01-16  Mike Gorse  <mgorse@novell.com>
1258
1259         * Splitter.cs: Make MaxSize internal so that UIA code can use it.
1260
1261 2009-01-16  Mario Carrion <mcarrion@novell.com>
1262
1263         * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged 
1264         when changing Text. 
1265
1266 2009-01-16  Carlos Alberto Cortez <calberto.cortez@ggmail.com>
1267
1268         * X11Structs.cs:
1269         * XplatUIX11.cs: Properly encode/decode the unicode strings we
1270         store/retrieve in the Clipboard. Also, since we try to convert the
1271         data to different formats, separate the source and the result of
1272         it, so we can always fallback to the original and don't mix wrong
1273         conversions.
1274
1275 2009-01-16  Mike Gorse  <mgorse@novell.com>
1276
1277         * TextControl.cs: Add UIASelectionChanged event.
1278
1279 2009-01-16  Ivan N. Zlatev  <contact@i-nz.net>
1280
1281         * DataGridView.cs: Forward the first key events to the editing control.
1282         [Fixes bug #457307]
1283
1284 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1285
1286         * Application.cs: Oops, launch the copied handler of PreRun instead of
1287         the global one (gendarme would bark otherwise). (Improving r123375)
1288
1289 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1290
1291         * XplatUI.cs:
1292         * Application.cs: Move the PreRun event fire to the end of the XplatUI
1293         static ctor (we don't move the PreRun event to this class because its
1294         usage would cause the call to the static ctor). This way we can get
1295         a11y support for dialogs that run without App.Run.
1296
1297 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1298
1299         * ListView.cs: New internal property to know the inner array's length of
1300         the location of items, in order to avoid a try-catch strategy for the
1301         case when this array has not been resized yet (for reference, look at
1302         r123288). r: jpobst
1303
1304 2009-01-13  Andrés G. Aragoneses  <aaragoneses@novell.com>
1305
1306         * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
1307         reflection calls. This requires UIAutomationWinforms r123213.
1308
1309 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1310
1311         * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
1312         handlers and fire the DateSelected event until MouseUp is reached,
1313         like .net does, instead of firing it for each mouse event.
1314         Fixes part of #364914.
1315
1316 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1317
1318         * TreeView.cs: When the selection gets canceled using the BeforeSelect
1319         event, invalidate the previous highlighted_node bounds, to show the
1320         user that the item was *not* selected.
1321         Fixes #464191.
1322
1323 2009-01-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1324
1325         * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
1326         well as -in DropDown and Simple modes- writing in the textbox should
1327         try to set the requested item as the top one, but navigating with the
1328         keyboard and handling mouse selection don't need that behaviour. Also,
1329         when resetting selected_index handling key press events, reset
1330         ComboListBox.HighlightIndex. 
1331         Fixes the remaining bits of #464188.
1332
1333 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1334
1335         * DataGridView.cs: Fix crashes when shortcut keys are pressed, but 
1336         there are no cells:
1337            - CurrentCellAddress should be -1, -1 and not 0, 0.
1338            - Be tolerant and fall back to clearing the current cell if either 
1339            column or row is -1 in MoveCurrentCell.
1340            - Misc. more -1 checks.
1341
1342 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1343
1344         * DataGridView.cs: Preserve the column index. Fixes a regression 
1345         introduced by the data binding position tracking code.
1346
1347 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1348
1349         * DataGridView.cs: If the bottom of the row matches the client height 
1350         do not regard the row as partially visible. Fixes the weird scrolling 
1351         when there is no scrollbar.
1352
1353 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1354
1355         * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
1356
1357 2009-01-09  Mario Carrion  <mcarrion@novell.com>
1358
1359         * MessageBox.cs: Fixed internal UIAIconRectangle property.
1360
1361 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1362
1363         * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
1364
1365 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1366
1367         * DataGridView.cs: Track the Position in the CurrencyManager.
1368
1369 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1370
1371         * DataGridView.cs: Implement data-bound new item editing/addition.
1372         * DataGridViewRowCollection.cs: Make it possible for us to internally 
1373         remove the edit row.
1374         [Fixes bugs #457107, #457308, #325240]
1375
1376 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1377
1378         * CurrencyManager.cs: Even if Position is set to a greater value than the 
1379         list count reset it to position of the last item.
1380
1381 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1382
1383         * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList. 
1384         Fix that in order to make CancelNew to work.
1385
1386 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1387
1388         * BindingSource.cs: When adding a new item try to delegate to the internal 
1389         list first before throwing an exception.
1390
1391 2009-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1392
1393         * ComboBox.cs: When setting the text and adjusting the top_item, do it
1394         *only* if the current item is *not* visible already.
1395         Fixes part of #464188.
1396
1397 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1398
1399         * DataGridView.cs: Requesting the CurrencyManager for the first time can 
1400         lead to unexpected OnBindingContextChanged calls and recursive rebinding. 
1401         Fix that.
1402         [Fixes bug #464493]
1403
1404 2009-01-08  Brad Taylor  <brad@getcoded.net>
1405
1406         * ComboBox.cs: Expose a few private fields as internal UIA properties.
1407
1408 2009-01-07  Mario Carrion <mcarrion@novell.com>
1409         
1410         * DataGrid.cs: CWL removed.
1411
1412 2009-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1413
1414         * RadioButton.cs: When setting Checked, we should first update the
1415         check state of the current RadioButton, as well as invalidating it,
1416         and after that actually update the siblings. This is done to match
1417         .net.
1418         Fixes the remaining bits of #463028.
1419
1420 2009-01-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1421
1422         * RadioButton.cs: Setting Checked to false should set TabStop to stop
1423         as well. Also, when we get the focus and no other RadioButton is
1424         selected in the parent control, we should mark ourselves as Checked.
1425         Fixes part of #463028.
1426
1427 2009-01-05  Mario Carrion <mcarrion@novell.com>
1428
1429         * DataGrid.cs: UIA suppport. internal events: 
1430         UIAGridCellChanged, UIAColumnsHeadersVisibleChanged, 
1431         UIASelectionChanged, UIACollectionChanged. Internal properties: 
1432         UIARowHeight, UIACellsArea, UIACaptionArea, 
1433         UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle, 
1434         UIAVScrollBar and UIAHScrollBar.
1435
1436 2009-01-05  Jonathan Pobst  <monkey@jpobst.com>
1437
1438         * ToolStripSplitStackLayout.cs: Enable the overflow button if any
1439         of the buttons are set to Overflow = Always.
1440         [Fixes bug #463013]
1441
1442 2009-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1443
1444         * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
1445         based on whether the binding source is availble or not. Fixes #463008.
1446
1447 2009-01-03  Ivan N. Zlatev  <contact@i-nz.net>
1448
1449         * DataGridViewCell.cs: We should return a value even if we are not bound 
1450         to a DataGridView.
1451
1452 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1453
1454         * CurrencyManager.cs, DataGrid.cs: 
1455            - Rename CanAddRows to AllowNew. The CurrencyManager has no 
1456            concept of "rows".
1457            - Add two more internal properties AllowRemove and AllowEdit.
1458         * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows, 
1459         AllowUserToDeleteRows and cell ReadOnly state to be also checked against the 
1460         CurrencyManager data source.
1461
1462 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1463
1464         * DataGridView.cs: Fix crashes caused by assigning negative values to 
1465         ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than 
1466         the column/row heights/widths.
1467         [Fixes bug #462684]
1468
1469 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1470
1471         * DataGridView.cs: Non-autogenerated columns that have a data property 
1472         set that exists in the current datasource should be set to be data-bound.
1473
1474 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1475
1476         * DataGridView.cs: Fix column sorting for columns containing null 
1477         values. A "null" value is not always "null" (e.g could be String.Empty) 
1478         and thus parsing numeric types throwed an exception for "null" values.
1479
1480 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1481
1482         * DataGridView.cs: Detach the editing control when the edit is 
1483         finished.
1484
1485 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1486
1487         * DataGridView.cs: Multiple fixes to handle last column/row removal 
1488         and cell movement after that instead of throwing exceptions.
1489
1490 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1491
1492         * DataGridViewCellCollection.cs: When cells are removed the column 
1493         indices become invalid if the cell is not the last one and have to 
1494         be refreshed.
1495
1496 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1497
1498         * DataGridView.cs: Return false in CommitEdit if there was an error.
1499
1500 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1501
1502         * DataGridView.cs: Remove a leftover Console.WriteLine.
1503
1504 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1505
1506         * DataGridViewRow.cs: Access the indexer of the data manager directly 
1507         instead of the internal list.
1508
1509 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1510
1511         * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs: 
1512         Rewrite the value getting, setting, parsing, formatting logic:
1513            - If data-bound value get/set should actually get and set from the 
1514              data source.
1515            - Make proper usage of TypeConverters for value parsing/formatting.
1516            - Raise DataError if setting the new value fails.
1517            - Get rid off the internal valueType field and get/set the ValueType 
1518            property instead.
1519         [Fixes bug #462051]
1520
1521 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1522
1523         * DataGridView.cs: Rewrite the DataBinding layer:
1524            - Get rid off all BindingSource/IBindingList/DataSet/DataTable 
1525            specific code.
1526            - Get rid off the per DataSource type column autogeneration code.
1527            - Use the CurrencyManager for everything that is DataBinding related.
1528
1529 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1530
1531         * CurrencyManager.cs: Do not fire duplicate ListChanged events.
1532
1533 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
1534
1535         * DataGridView.cs, DataGridViewRow.cs: Add a new internal property 
1536         DataManager to fetch the CurrencyManager for the DataGridView and to 
1537         spare this logic for the other components to follow.
1538
1539 2008-12-31  Mario Carrion  <mcarrion@novell.com>
1540
1541         * MessageBox.cs: UIA support: new properties: UIAMessage, 
1542         UIAMessageRectangle and UIAIconRectangle.
1543
1544 2008-12-31  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1545
1546         * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
1547         and DirComboBox.DirComboBoxItem.ToString override for UIA support.
1548
1549 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
1550
1551         * DataGridView.cs: Do not autogenerate duplicate column for a 
1552         data member that has already problematically been assigned one.
1553         [Fixes bug #457305]
1554
1555 2008-12-30  Jonathan Pobst  <monkey@jpobst.com>
1556
1557         * ProfessionalColorTable.cs: Better detection of user's theme.
1558         [Fixes bug #462766]
1559
1560 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
1561
1562         * DataGridView.cs: In the case where there are no autogenerated 
1563         columns and the user adds columns problematically we must generate 
1564         the rows after the very first column is added.
1565
1566 2008-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1567
1568         * DateTimePicker.cs: When increasing/decreasing the value of month
1569         with ShowUpDown set to true, moving from december to january, and
1570         moving from january to december should adjust the year to the next and
1571         the previous year, respectively.
1572         Fixes the remaining bits of #459674.
1573
1574 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
1575
1576         * DataGridView.cs: If a new cell is selected edit mode should be 
1577         immediately enabled only if EditOnEnter is set. Whether the mouse 
1578         or not was used to select the cell is irrelevant.
1579
1580 2008-12-29  Ivan N. Zlatev  <contact@i-nz.net>
1581
1582         * DataGridView.cs: Remove a bogus ReBind call, which was causing 
1583         recursive rebinding.
1584
1585 2008-12-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1586
1587         * DateTimePicker.cs: Handle the "MMMM" month format.
1588         Fixes #459674.
1589
1590 2008-12-23  Ivan N. Zlatev  <contact@i-nz.net>
1591
1592         * DataGridView.cs: 
1593            - Make ReBind private and refactor various calls to call ReBind 
1594            instead of ClearBinding/DoBinding
1595            - Rebind when the column collection changes
1596         * DataGridViewColumnCollection.cs: 
1597            - Leave the rebinding on change to be handled by the DataGridView.
1598
1599 2008-12-23  Jonathan Pobst  <monkey@jpobst.com>
1600
1601         * DataGridView.cs: Add a ReBind convenience method.
1602         * DataGridViewColumnCollection.cs: Rebind when a column is added.
1603         [Fixes bug #462019]
1604
1605 2008-12-23  Neville Gao  <nevillegao@gmail.com>
1606
1607         * StatusBar.cs: Modified argument variable.
1608         * SplitContainer.cs: Control enabled to support accessibility.
1609         [Fixes Bug #455950]
1610
1611 2008-12-22  Jonathan Pobst  <monkey@jpobst.com>
1612
1613         * ToolStripMenuItem.cs: Guard against an NRE.
1614         [Fixes bug #457110]
1615
1616 2008-12-22  Mario Carrion  <mcarrion@novell.com>
1617
1618         * Control.cs: AccessibleXXXX properties don't return 
1619         AccessibleObject.XXXX, instead a local referece is returned.
1620
1621 2008-12-22  Neville Gao  <nevillegao@gmail.com>
1622
1623         * PrintPreviewControl.cs: Added internal properties to support
1624         accessibility.
1625         [Fixes Bug #459699]
1626
1627 2008-12-19  Mario Carrion  <mcarrion@novell.com>
1628
1629         * Control.cs: Reverted r121561. 
1630
1631 2008-12-19  Andrés G. Aragoneses  <aaragoneses@novell.com>
1632
1633         * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
1634         it has been moved to the bridge.
1635
1636 2008-12-18  Brad Taylor  <brad@getcoded.net>
1637
1638         * DateTimePicker.cs: Add a few UIA specific events, and a couple
1639         internal methods useful for UIA.
1640
1641 2008-12-18  Mario Carrion <mcarrion@novell.com>
1642
1643         * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
1644         [Fixes Bug #455752]
1645
1646 2008-12-17  Mike Gorse  <mgorse@novell.com>
1647
1648         * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
1649           item's Focused property is set.
1650
1651 2008-12-17  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1652
1653         * TreeView.cs:
1654         * TreeNode.cs:
1655         * TreeNodeCollection.cs: Add events for UIA support:
1656         UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
1657         UIACollectionChanged.
1658
1659 2008-12-17  Bill Holmes  <billholmes54@gmail.com>
1660
1661         * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the 
1662           SubItemStyle member field. 
1663
1664         Contributed under MIT/X11 license.
1665
1666 2008-12-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1667
1668         * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
1669         y coord, since it's useless in this case, and we need to rely only on
1670         the number of rows and ItemHeight to compute this value.
1671         Fixes part of #257471.
1672
1673 2008-12-15  Mike Gorse  <mgorse@novell.com>
1674
1675         * StatusBar.cs: Send OnUIACollectionChanged in Remove().
1676
1677 2008-12-15  Mario Carrion  <mcarrion@novell.com>
1678
1679         * Control.cs: Accessibility properties instantiate AccessibilityObject when
1680         needed.
1681         [Fixes Bug #459223]
1682
1683 2008-12-15  Brad Taylor  <brad@getcoded.net>
1684
1685         * ToolStripItem.cs: Add a UIA specific event for listening for when a
1686         ToolStripItem becomes selected or deselected.
1687
1688 2008-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1689
1690         * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
1691         .net does. Use the date in the point of the mouse move coords as the
1692         new range as well, if the left button of the mouse is being pressed.
1693         Fixes #364914.
1694
1695 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1696
1697         * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
1698         MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
1699         effectively repaint the control.
1700         Fixes the remaining bits of #417961.
1701
1702 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1703
1704         * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
1705         range to contain only dates within the new possible range.
1706         Fixes part of #417961.
1707
1708 2008-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1709
1710         * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
1711         length of the text, but the end position, so we need to substract 1 to
1712         have a valid value. Also, in the same InputText method, don't use
1713         SelectionLength as the length of the text, since the selected text
1714         could actually be empty, but we need to set the value anyway.
1715         Fixes #457370.
1716
1717 2008-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1718
1719         * TextBox.cs: Don't do any auto complete task if the custom source is
1720         null or empty. Also avoid duplication of code.
1721         Fixes #457743.
1722
1723 2008-12-09  Ivan N. Zlatev  <contact@i-nz.net>
1724
1725         * DataGridView.cs: Refresh column sizes when new rows are added.
1726         [Fixes bug #457050]
1727
1728 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1729         * RichTextBox.cs: When parsing the contents of a rtf file, don't call
1730         Split to create a line - we are already doing this, by _adding_ a new
1731         one when rtf_cursor_x is 0 (this field gets this value just after we
1732         receive the newline param as true). This avoids having a proportional number
1733         of empty lines in the end of the rich text box.
1734         Fixes #396664.
1735
1736 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1737
1738         * RichTextBox.cs: When saving the contents as a plain text, don't add
1739         a new line for every Line structure, since the data in Document
1740         already contains the new line characters. This avoids duplicated new
1741         lines using the Save methods.
1742         Fixes #445618.
1743
1744 2008-12-09  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1745
1746         * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
1747         framework.  Fixes bug #457678.
1748
1749 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1750
1751         * DataGridViewRow.cs: Prevent an exception on a not yet databound grid, 
1752         where datasource is null.
1753         [Fixes exception reported in bug 441240]
1754
1755 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1756
1757         * DataGridView.cs: EndEdit validation fixes.
1758
1759 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1760
1761         * DataGridView.cs: This is the cool patch that adds support for 
1762         actually updating the data in the databinding backend after editing. 
1763         With bonus firing and handling the DataError event.
1764
1765 2008-12-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1766
1767         * Line.cs: When calculating the text tags's Shift value, store it as
1768         pixels instead of points. This way we can actually handle different
1769         fonts in the same RichTextBox, as well as the right size of the caret.
1770         Fixes part of #351938.
1771
1772 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1773
1774         * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was 
1775         casted to CheckState causing InvalidCastExceptions.
1776
1777 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1778
1779         * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior 
1780         to not depend on the item being clicked.
1781
1782 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1783
1784         * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no 
1785         longer throws a NotImplementedException.
1786
1787 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1788
1789         * DataGridView.cs: Set EditingControlFormattedValue when preparing an 
1790         IDataGridViewEditingControl for editing.
1791
1792 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1793
1794         * DataGridViewComboBoxCell.cs: Implement data binding support.
1795
1796 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1797
1798         * DataGridView.cs: Use the CurrencyManager to update the data source 
1799         binding position instead of casting the data sourcde to BindingSource.
1800         This enables position updating for other type of data sources.
1801
1802 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1803
1804         * ComboBox.cs: Update the SelectedIndex before updating the Text 
1805         in OnDisplayMemberChanged.
1806
1807 2008-12-07  Ivan N. Zlatev  <contact@i-nz.net>
1808
1809         * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
1810         [Fixes bug #457112]
1811
1812 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1813
1814         * DataGridView.cs: Sorting fixes:
1815            - Be strict when sorting is enabled.
1816            - If there is a data source delegate the sorting request.
1817
1818 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1819
1820         * Binding.cs: When converting the data also try with the destination 
1821         type typeconverter. This indirectly adds support for Nullable types 
1822         in our databinding layer.
1823
1824 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1825
1826         * DataGridView.cs: When cell editing is finished focus back the 
1827         DataGridView. Fixes keyboard navigation post-editing.
1828
1829 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1830
1831         * DataGridView.cs: Fix the cell editing by delaying the currentCell 
1832         setting to after EndEdit is called for the old cell.
1833
1834 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1835
1836         * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
1837
1838 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1839
1840         * XplatUIX11.cs: Send WM_HELP only to the focused window.
1841
1842 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1843
1844         * CurrencyManager.cs: Fix exceptions when resetting the data source 
1845         for the same time (e.g. in ComboBox): 
1846            - Do not set the list position if we are still transferring data
1847            - When resetting the list firstly push the data then update the 
1848            binding.
1849         * Binding.cs: Check BindingManager.Position == -1 instead of 
1850         BindingManager.Current == null in order to avoid unexpected 
1851         exceptions.
1852
1853 2008-12-05  Brad Taylor  <brad@getcoded.net>
1854
1855         * MonthCalendar.cs: Add UIA specific events so that we can know when
1856         the selection changes, and when MaxSelectedCount changes.
1857
1858 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1859
1860         * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not 
1861         used for anything.
1862
1863 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1864
1865         * DataGridView.cs: Fix scrolling and selection of cells/rows prior
1866         to the control being drawn for the first time by:
1867            - Implement DisplayedRowsCount to not rely on the control being
1868            already painted. Also added support for the partial row flag.
1869            - Fix scrolling to take into account partial rows and scroll to
1870            them.
1871         [Fixes bug #456527]
1872
1873 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1874
1875         * DataGridView.cs: Do not reset the CurrentCell when the handle is
1876         created if the user has already set it.
1877
1878 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1879
1880         * DataGridView.cs: Fix CurrentCell to actually select the cell.
1881
1882 2008-12-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1883
1884         * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
1885         text and then let the underneath users of IDataObject interpret and
1886         parse by themselves. 
1887         Fixes #439251.
1888
1889 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1890
1891         * DataGridView.cs: Fix my previous commit to actually update what it 
1892         was supposed to.
1893
1894 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1895
1896         * DataGridView.cs: Ensure that when a row is removed the all the 
1897         current row/column/cell get updated. Fixes multiple exceptions.
1898
1899 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1900
1901         * DataGridView.cs: Fix scrolling to the current cell when key navigation 
1902         is used.
1903         [Fixes bug #443560]
1904
1905 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1906
1907         * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
1908         * DataGridViewCell.cs: Set the cell as selected prior to setting the 
1909         new state.
1910         [Fixes issue 1 in bug #443560]
1911
1912 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1913
1914         * DataGridView.cs: Invalidate after the current row/column seletion 
1915         chagnes.
1916         [Fixes bug #438434]
1917
1918 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1919
1920         * DataGridView.cs: Refresh the data if the data list is reset, etc.
1921
1922 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1923
1924         * DataGridView.cs: Handle datasource state changes:
1925            - IBindingList - list changes
1926            - BindingSource - list changed and datasource changes
1927
1928 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1929
1930         * DataGridView.cs: Select the first cell when databound. 
1931         Visually select when CurrentCell is set.
1932
1933 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1934
1935         * DataGridView.cs: Set the current cell before raising CellClick.
1936
1937 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1938
1939         * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter, 
1940         CellLeave events as this is already done in SetCurrentCellAddressCore.
1941
1942 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1943
1944         * DataGridView.cs: Set the minimum size for the columns to be the 
1945         width of their header, so that the columns don't get squashed 
1946         all together.
1947
1948 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1949
1950         * DataGridView.cs: After the data is bound PerformLayout, so that 
1951         the columns get autosized.
1952
1953 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1954
1955         * DataGridView.cs: Move all currentCell setting code into 
1956         one central place - SetCurrentCellAddressCore. That way the 
1957         current cell is properly updated when programatically set.
1958         Fire RowEnter/Leave events.
1959
1960 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1961
1962         * DataGridView.cs: Update the CurrencyManager.Position, so that 
1963         when a BindingSource is used BindingSource.Current will be correct.
1964
1965 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1966
1967         * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
1968            - No caption text is drawn because Color.Empty is used.
1969            - Fix top and height off by 1.
1970
1971 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1972
1973         * DataGridViewRow.cs: Implement DataBoundItem.
1974
1975 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1976
1977         * BindingSource.cs: Return null for Current if there is no data present.
1978
1979 2008-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1980
1981         * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
1982         menus using the arrow keys. Also when handling the left arrow key, don't 
1983         assign the current menu to the parent one, if the parent is null.
1984         Fixes #446392.
1985
1986 2008-11-24  Everaldo Canuto  <ecanuto@novell.com>
1987
1988         * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
1989         #413501.
1990
1991 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1992
1993         * Scrollbar.cs:
1994         * ScrollableControl.cs: Simplify the code to manually set the size of
1995         the thum area, avoiding duplication of code, and also preserving the
1996         right value for different code paths - this can happen when size
1997         changes are made to the scrollbar after setting LargeChange, Maximum
1998         or related properties for the ScrollBar.
1999
2000 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2001
2002         * ScrollableControl.cs: When scrolling, don't invalidate the entire
2003         area, and call to XplatUIX11.ScrollWindow instead. This is exactly
2004         what .Net does: copy the visible area, and only invalidate the part of
2005         the area that wasn't visible before scrolling.
2006         Fixes #441738.
2007
2008 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
2009
2010         * DataGridView.cs: Listen for a DataTable's TableCleared event so we
2011         can clear ourselves when it is raised, we don't have a newrowindex
2012         if we don't have any columns.
2013         * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
2014         re-index after each delete so the NewRow will have the correct index.
2015         [Fixes bug #448005]
2016
2017 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
2018
2019         * Form.cs: Don't change min/max size if it is empty.
2020         [Fixes bug #447873]
2021
2022 2008-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2023
2024         * ScrollBar.cs:
2025         * ScrollableControl.cs: When the manual thumb size is used, the
2026         maximum allowed value should depend on that thumb size, instead of
2027         LargeChange (using the maximum - LargeChange + 1 value). But
2028         LargeChange should be used normally when incrementing/decrementing.
2029         Fixes the remaining part of #441546.
2030
2031 2008-11-23  Andreia Gaita  <avidigal@novell.com>
2032
2033         * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream 
2034         until an about:blank has been loaded (according to spec). Fix 
2035         ScrollbarsEnabled to set when a document is loaded (since we use js 
2036         for it). Fix url so it reflects the current loading document and not 
2037         the previous one. Send StatusChanged events.
2038
2039 2008-11-23  Andreia Gaita  <avidigal@novell.com>
2040
2041         * Application.cs: If a message comes in for an embedded control
2042         (like webbrowser) when we're capturing the keyboard, release the
2043         capture and continue.
2044         [fixes #429462]
2045
2046 2008-11-22  Andreia Gaita  <avidigal@novell.com>
2047
2048         * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
2049
2050 2008-11-21  Andreia Gaita  <avidigal@novell.com>
2051
2052         * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
2053         
2054 2008-11-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2055
2056         * ScrollBar.cs:
2057         * ScrollableControl.cs: Set manually the thumb size for the
2058         ScrollableControl scrollbars, so any further changes to the underneath
2059         scrollbars respect the original size.
2060         Fixes part of #441546.
2061
2062 2008-11-21  Geoff Norton  <gnorton@novell.com>
2063
2064         * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
2065         PlatformID.MacOSX now exists.
2066
2067 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2068
2069         * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
2070         Having something internal abstract isn't very nice for people who want
2071         to inherit from this class.
2072
2073 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2074
2075         * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
2076         invalid value.  Just return null for the Image, and use the ImageList's
2077         ImageSize for calculations.
2078
2079 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2080
2081         * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
2082         through DroppedDown so the proper events get called and state gets reset.
2083         [Fixes bug #446805]
2084
2085 2008-11-18  Jonathan Pobst  <monkey@jpobst.com>
2086
2087         * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
2088         the collection is modified.
2089
2090 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
2091
2092         * DomainUpDown.cs: Remove string cache and reflection optimizations.  They
2093         aren't always correct, and fixing them for every case is not worth the
2094         negligible benefit they provide.
2095         [Fixes bug #445713]
2096
2097 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
2098
2099         * DataGridView.cs: We should never add actual cells to the RowTemplate.
2100         Internally, use RowTemplateFull to give us a new row with cells.
2101         * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
2102         * DataGridViewRowCollection.cs: Use RowTemplateFull.
2103
2104 2008-11-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2105
2106         * XplatUIX11.cs: Forms without borders should be able to change its
2107         size - specially they should be able to be maximized, adding the
2108         respective MotifFunctions.Resize bit when setting window properties as
2109         well as *not* marking the Hwnd as size fixed.
2110         Fixes #444347.
2111
2112 2008-11-12  Jonathan Pobst  <monkey@jpobst.com>
2113
2114         * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
2115         an alpha value.
2116         [Fixes bug #444348]
2117
2118 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
2119
2120         * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
2121         * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes.  Raise
2122         AutoSizeColumnModeChanged.
2123         [Fixes bug #443609]
2124
2125 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
2126
2127         * DataGridViewRowCollection.cs: Guard against the user deleting the
2128         NewRow.  Add an internal delete so we can still delete it.
2129         * DataGridView.cs: Use the new internal delete when deleting the NewRow.
2130         [Fixes bug #442181]
2131
2132 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
2133
2134         * TextControl.cs: Add some order of operation to our math so
2135         we don't end up with a negative height for our invalidate rect.
2136         [Fixes bug #381889]
2137
2138 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
2139
2140         * Control.cs: When our enabled changes, notify our implicit children
2141         controls as well as our regular controls.
2142         [Fixes bug #441523]
2143
2144 2008-11-08  Andreia Gaita <shana@jitted.com> 
2145
2146         * HtmlElement.cs: Small code cleanup
2147
2148 2008-11-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2149
2150         * BindingNavigator.cs: MoveFirstItem should be enabled only if
2151         position is larger than 0, not only different than 0. Also Position
2152         and Count items should be enabled if the BindingSource is non null and
2153         non empty.
2154         Fixes #439961.
2155
2156 2008-11-05  Jonathan Pobst  <monkey@jpobst.com>
2157
2158         * TabControl.cs: Don't raise SelectedIndexChanged until we have
2159         actually modified the tab collection, so TabCount will be correct.
2160         [Fixes bug #441896]
2161
2162 2008-11-05  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2163
2164         * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
2165         NonSerialized to fix serialization of ListViewItem.
2166
2167 2008-11-04  Mike Gorse  <mgorse@novell.com>
2168
2169         * ListView.cs: Call OnUIAFocusedItemChanged after completing the
2170           focus change, and always call in SetFocusedItem.
2171         * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
2172
2173 2008-11-04  Jonathan Pobst  <monkey@jpobst.com>
2174
2175         * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
2176         mode.  Based on a patch by John Mortlock.
2177         [Fixes bug #436790]
2178
2179 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2180
2181         * ListView.cs: Use the UsingGroups property where needed, instead of
2182         duplicating the check in other places.
2183
2184 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2185
2186         * ListView.cs: When calculating layout, refresh the count of items
2187         belonging to the default item, insteas of doing it only one time. This
2188         was already working fine for icon views, not not for details.
2189         Fixes #438948.
2190
2191 2008-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2192
2193         * ListView.cs:
2194         * ListViewItem.cs:
2195         * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
2196         to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
2197         does.
2198         Fixes #437933.
2199
2200 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2201
2202         * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
2203
2204 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2205
2206         * ListView.cs: Add internal UIAFocusedItemChanged event.  Fixes bug
2207         #441280, patch by Mike Gorse <mgorse@novell.com>.
2208
2209 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2210
2211         * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
2212         if there is no scrollbar.
2213         [Fixes bug #440885]
2214
2215 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2216
2217         * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
2218         patch from Andy Hume that fixes many issues with ProgressBar.
2219         [See bug #440220]
2220
2221 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2222
2223         * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
2224         [Fixes bug #438866]
2225
2226 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2227
2228         * UpDownBase.cs:
2229         * DomainUpDown.cs:
2230         * NumericUpDown.cs: Internal events added to UpDownBase:
2231         UIAUpButtonClick and UIADownButtonClick.  Patch by Neville Gao
2232         <ngao@novell.com>.
2233
2234 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2235
2236         * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
2237
2238 2008-11-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2239
2240         * ListView.cs:
2241         * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
2242         Application.EnableVisualStyles hasn't been called.
2243         Fixes part of #437933.
2244
2245 2008-10-31  Andreia Gaita  <shana@jitted.com>
2246
2247         * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
2248           if the container is not focused already, we need to specifically set
2249           focus to the first available control, or to the form itself if there
2250           are no controls.
2251
2252 2008-10-31  Andreia Gaita  <shana@jitted.com>
2253
2254         activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
2255         WM_ACTIVATE have been processed before returning, so it is guaranteed that
2256         once it returns and the form is visible, it is actually on the screen on X11
2257
2258         * ContainerControl.cs: Only send focus to the control if the top container
2259           is already focused. This is so that, when a form is first shown, all
2260           the enter/leave events are done first before any focus stuff comes in.
2261           If a control has no top container, there's an extra check on Control.Focus
2262           to make sure it gets focused in this particular case.
2263
2264         * Control.cs: Force focus if the control is active but did not receive
2265           focus after being set as active.
2266
2267         * MdiClient.cs: Dispose the form when closing
2268
2269         * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
2270           doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
2271           if the window is a top Form.
2272           Reset all hwnd properties when the window has been destroyed so that
2273           we don't land in any codepaths that might try to do something with it.
2274           Added a bunch of debugging messages. If TRACE is defined, all X calls
2275           are logged through DebugHelper. Set a few missing EntryPoint attributes.
2276
2277 2008-10-29  Mario Carrion <mcarrion@novell.com>
2278
2279         * ListViewItem.cs: Control enabled to support Accessibility:
2280         - Internal events: UIATextChanged, UIASubItemTextChanged.
2281         - Internal event UIATextChanged in ListViewSubItem that triggers
2282         UIASubItemTextChanged.
2283         * ListView.cs: Control enabled to support Accessibility:
2284         - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged, 
2285         UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
2286         - Internal event UIACollectionChanged in ColumnHeaderCollection.
2287         - Internal event UIACollectionChanged in ListViewItemCollection.
2288         - Internal properties: UIAHeaderControl, UIAColumns, UIARows, 
2289         UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
2290         - Internal methods: UIAGetHeaderBounds.
2291
2292 2008-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2293
2294         * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
2295         the event from the respective scrollbars.
2296         Fixes #436709.
2297
2298 2008-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2299
2300         * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
2301         textbox to know whether any navigation key will be handled or not. If
2302         not, don't pass the message to the textbox, and use it here instead. 
2303         * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
2304         is more precise- than the previous AutoCompleteMatches one.
2305         This should the keyboard navigation in ComboBox when using auto
2306         complete modes.
2307
2308 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
2309
2310         * ComboBox.cs: Fix item height calculation based off Font to match .Net.
2311         [Fixes bug #436730]
2312
2313 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
2314
2315         * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
2316         overridden methods will get called.
2317         * ToolStripItem.cs: Raise Click before MouseUp.
2318         * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
2319         the item's location into account.
2320         [Fixes bug #437683]
2321
2322 2008-10-24  Neville Gao  <nevillegao@gmail.com>
2323
2324         * NumericUpDown.cs: Control enabled to support accessibility.
2325         [Fiexes bug #438135]
2326
2327 2008-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2328
2329         * TextBox.cs: Check that we actually have items no navigate, select
2330         text when pressing enter, as well as handle direction keys only if
2331         mode is different to Suggest or the suggest listbox is visible.
2332
2333 2008-10-23  Andreia Gaita  <shana@jitted.com>
2334
2335         * WebBrowser.cs: Use the new ContentStream property to retrieve
2336           a stream encoded from the document content
2337
2338 2008-10-23  Andreia Gaita  <shana@jitted.com>
2339
2340         * HtmlDocument.cs,
2341           HtmlElement.cs,
2342           HtmlWindow.cs: Fix GetHashcode for null objects
2343
2344 2008-10-22  Andreia Gaita  <shana@jitted.com>
2345
2346         * HtmlDocument.cs,
2347           HtmlElement.cs,
2348           HtmlWindow.cs: Fix equality operators (fixes #428173)
2349
2350 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
2351
2352         * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
2353         mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
2354         [Fixes bug #436772]
2355
2356 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
2357
2358         * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
2359         same item with the mouse as was already selected.
2360         [Fixes bug #436789]
2361
2362 2008-10-21  Brad Taylor  <brad@getcoded.net>
2363         
2364         * TextControl.cs: Break out code to get the visible range into
2365           GetVisibleLineIndexes to be used in UIA code.
2366         
2367         * Line.cs:
2368         * TextControl.cs:
2369         * TextBoxBase.cs: Add comments indicating that the method or property
2370           is used via reflection from UIA code.
2371
2372 2008-10-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2373
2374         * ListViewItem.cs: Match .net serialization.
2375         Fixes remaining part of #417520.
2376
2377 2008-10-20  Jonathan Pobst  <monkey@jpobst.com>
2378
2379         * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
2380
2381 2008-10-20  Mario Carrion <mcarrion@novell.com>
2382
2383         * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property 
2384         added: UIAToolTipRectangle.
2385
2386 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2387
2388         * ListViewItem.cs: When deserializing enumerate over the data, instead
2389         of accessing the data directly. This way we handle much better the
2390         cases were we lack information.
2391         Fixes #417520.
2392
2393 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2394
2395         * ListView.cs: When removing an item from a main ListView.Items
2396         collection (and not a ListViewGroupCollection.Items one), remove it
2397         also from the group, as .net does. Patch by Mario Carrion (mario at
2398         novell dot com).
2399         Fixes #436653.
2400
2401 2008-10-19  Andreia Gaita  <avidigal@novell.com>
2402
2403         * Form.cs: Forms that get closed without a handle being created are
2404         disposed in 2.0. Fixes failing FormTest.FormClose and
2405         FormTest.FormClose2 on windows.
2406
2407 2008-10-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2408
2409         * ListView.cs: If both scrollbars are visible, the vertical one
2410         shouldn't extend too far down.
2411         Fixes #435771.
2412
2413 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
2414
2415         * DataGridView.cs: Add the ability to resize columns and rows with
2416         the mouse.  Also support double-clicking to autoresize.
2417         * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
2418         * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
2419         * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
2420         isn't shown on autoresize.
2421         [Fixes bug #420193]
2422
2423 2008-10-17  Mario Carrion <mcarrion@novell.com>
2424
2425         * ComboBox.cs: Remove UIAListbox.
2426
2427 2008-10-17  Mario Carrion <mcarrion@novell.com>
2428
2429         * ComboBox.cs, ListBox.cs: Using added/removed item in 
2430           OnUIACollectionChangedEvent instead of index.
2431
2432 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
2433
2434         * ComboBox.cs: When we are sorting the items, if the item's type
2435         doesn't support IComparer, use a default one that compares based
2436         off the item's visible text.
2437         [Fixes bug #436328]
2438
2439 2008-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2440
2441         * ColumnHeader.cs: Invalidate ListView.header_control when setting
2442         ImageIndex/ImageKey.
2443         * ThemeWin32Classic.cs: When drawing the column header, draw a image
2444         for the column if available, and make the required adjustments to the
2445         text location.
2446         Fixes #435105.
2447
2448 2008-10-17  Neville Gao  <nevillegao@gmail.com>
2449
2450         * StatusBarPanel.cs: Control enabled to support accessibility.
2451         [Fixes bug #435988]
2452
2453 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2454
2455         * DataGridView.cs: When a user begins an edit in the 'new row',
2456         make that a real row, and add a new 'new row'.  If the user
2457         cancels the edit, remove the new 'new row' and reset everything.
2458         Also, ensure UserAddedRow and UserRemovedRow events are raised.
2459         [Fixes bug #430954]
2460
2461 2008-10-16  Ivan N. Zlatev  <contact@i-nz.net>
2462
2463         * TableLayoutSettings.cs: Fix NREs when deserializing and 
2464         panel is not yet set.
2465         [Fixes bug #436199]
2466
2467 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2468
2469         * DataGridView.cs: Invalidate after deleting a row.
2470
2471 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2472
2473         * DataGridView.cs: Handle Enter and Escape keys.
2474           - Move call to EndEdit to MoveCurrentCell.
2475           - Remove call to EndEdit from navigation key routines.
2476           - Fire CellLeave and CellEnter.
2477
2478 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2479
2480         * DataGridViewCell.cs: Some fixes to the new cell border
2481         painting code.
2482
2483 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2484
2485         * ThemeEngine.cs: Enable visualstyles rendering by default
2486         (on platforms that support it).
2487
2488 2008-10-15  Ivan N. Zlatev  <contact@i-nz.net>
2489
2490         * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before 
2491         MainForm.OnLoad has completed unless DoEvents is forced.
2492         [Fixes bug #412536]
2493
2494 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
2495
2496         * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
2497
2498 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
2499
2500         * Control.cs: Make our implementation of DrawToBitmap better 
2501         match WmPaint.  [Fixes bug #435579]
2502
2503 2008-10-14  Andreia Gaita  <avidigal@novell.com>
2504
2505         * WebBrowser.cs: Use DocumentElement as the document's root for the
2506         whole content. Should fix DocumentText and DocumentStream problems.
2507
2508 2008-10-14  Jonathan Pobst  <monkey@jpobst.com>
2509
2510         * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
2511         these will get called in DGV.OnCollectionChanged.  Make sure 
2512         OnCollectionChanged always gets called.
2513         * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
2514         from every row.  Call this in OnCollectionChanged.
2515         [Fixes bug #433669]
2516
2517 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2518
2519         * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
2520         textbox if auto complete is used, since we need to navigate over it.
2521         And in this case don't pass this messages to the base impl. Also hide
2522         the auto complete list box when displaying the drop down listbox.
2523         * TextBox.cs: new internal members to expose some of the auto complete
2524         functionality to combobox.
2525
2526 2008-10-13  Ivan N. Zlatev  <contact@i-nz.net>
2527
2528         * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before 
2529         MainForm.OnLoad has completed.
2530         [Fixes bug #412536]
2531
2532 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2533
2534         * TextBox.cs: Apply an old-approved patch that adds autocomplete's
2535         Append support to this controls. We need it to apply new patches.
2536
2537 2008-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2538
2539         * Control.cs: When updating z order in child controls, send to back
2540         the implicit controls. Also, do it explicitly, instead of making
2541         GetAllControls return the implicit controls in a specific order, and
2542         thus avoid depending on that, which could change in the future.
2543         Fixes #434304.
2544
2545 2008-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2546
2547         * X11Dnd.cs: Try to call Application.DoEvents before returning in a
2548         call to StartDrag, since we must fire DragDrop/DragLeave *before*
2549         that, as .net does - instead of firing DragDrop/DragLeave *after* the
2550         call to Control.DoDragDrop has completed. This is needed since at the
2551         point of returning, we have sent related dnd ClientMessages, but we
2552         need to wait for them to fire the wmf respective ones.
2553         Fixes #325076.
2554
2555 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
2556
2557         * LinkLabel.cs: Recreate link pieces when change Padding.
2558
2559 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
2560
2561         * LinkLabel.cs: Take Padding into account when recreate link pieces.
2562         [Fixes bug #412530]
2563
2564 2008-10-08  Everaldo Canuto  <ecanuto@novell.com>
2565
2566         * Control.cs: Implement internal property PaddingClientRectangle, it will be
2567         useful for drawing controls that must take care about Padding property.
2568
2569 2008-10-08  Jonathan Pobst  <monkey@jpobst.com>
2570
2571         * BindingSource.cs: Make item_type internal so we can access it in DGV.
2572         * DataGridView.cs: Add support for autogenerating columns from a
2573         BindingSource.
2574
2575 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2576
2577         * DataGridView.cs: Comment out an exception that is getting thrown
2578         too often currently.
2579
2580 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2581
2582         * DataGridView.cs: Always rebind to the datasource, as things may
2583         have changed in it that we aren't capturing yet.
2584
2585 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2586
2587         * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
2588         drawing mode.  If we are top aligned, give ourselves some top padding.
2589
2590 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2591
2592         * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
2593         events on the control under the mouse pointer, instead of firing them
2594         on the window generating the dnd operation. To achieve this re-use the
2595         code used to get the window under the pointer when getting MouseMove
2596         events.
2597         Fixes #381876.
2598
2599 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2600
2601         * X11Dnd.cs: Don't check that that the window sending the dnd events
2602         is the owner of the selection. Although Gtk+ sets it that way, it's
2603         not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
2604         So, just as Gtk+ does, we set our window sending the dnd events as the
2605         owner of the selection, but don't check it when receiving them. This
2606         should fix interoperability with Qt/Kde.
2607         Fixes #324251.
2608
2609 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
2610
2611         * DataGridView.cs: Make sure we take the vertical scrollbar into
2612         account when autosizing columns.
2613
2614 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
2615
2616         * DataGridView.cs: Handle sorting datetimes.
2617
2618 2008-10-04  Ivan N. Zlatev  <contact@i-nz.net>
2619
2620         * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs, 
2621         TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup 
2622         compilation warnings.
2623
2624 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2625
2626         * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs, 
2627         ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs, 
2628         ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs, 
2629         ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup 
2630         compilation warnings.
2631
2632 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2633
2634         * DataGridView.cs, DataGridViewCell.cs, 
2635         DataGridViewCellValidatingEventArgs.cs, 
2636         DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs, 
2637         DataGridViewRow.cs, DataGridViewRowHeaderCell.cs, 
2638         DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
2639
2640 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2641
2642         * HtmlElementEventArgs.cs, HtmlWindowCollection.cs: 
2643         Cleanup compilation warnings.
2644
2645 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2646
2647         * XplatUIWin32.cs: Cleanup compilation warnings.
2648
2649 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2650
2651         * PropertyGrid.cs: Cleanup compilation warnings.
2652
2653 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2654
2655         * DataGridViewRow.cs: Only clear the row background if we
2656         are going to paint a new background.
2657
2658 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2659
2660         * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
2661         DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
2662         use PaintBorder instead.        
2663
2664 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2665
2666         * DataGridView.cs: When CellBorderStyle is set, update the
2667         AdvancedCellBorderStyle to match.
2668
2669 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2670
2671         * DataGridViewCell.cs: Add helper methods to convert Alignment
2672         to TextFormatFlags and align rectangles.
2673         * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
2674         * DataGridViewImageCell.cs: Use Alignment when painting the image.
2675
2676 2008-10-02  Ivan N. Zlatev  <contact@i-nz.net>
2677
2678         * ToolTip.cs: Display tooltips only for controls on the active form.
2679         [Fixes bug #428115]
2680
2681 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2682
2683         * DataGridView.cs: Make OnCellValueNeeded internal.
2684         * DataGridViewCell.cs: Raise the CellValueNeeded event so the
2685         user can supply their own value if they choose.
2686
2687 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2688
2689         * DataGridViewColumnHeaderCell.cs: Create a new style object
2690         so the DefaultCellStyle doesn't get changed.
2691
2692 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2693
2694         * ToolStripItem.cs: Check to make sure the owner is actually
2695         changing in InternalOwner before doing any work.  Fixes some
2696         failing tests.
2697
2698 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2699
2700         * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
2701         * DataGridView.cs: Use a column header's inherited style instead
2702         of just using the default.
2703
2704 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2705
2706         * SplitContainer.cs: Raise SplitterMoved when the splitter is
2707         moved through code.
2708
2709 2008-10-01  Mario Carrion <mcarrion@novell.com>
2710
2711         * ScrollBar.cs: Internal property added: UIAThumbPosition.
2712
2713 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2714
2715         * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
2716
2717 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2718
2719         * ToolStripItem.cs: When the user sets Owner, we need to remove
2720         it from its previous owner and then add it to the new owner's
2721         item collection.  Also, create InternalOwner, so we can set the owner
2722         that doesn't do this new stuff.
2723         * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
2724
2725 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2726
2727         * ToolStripItem.cs: When our parent changes, recalculate our text
2728         size, since we may be getting our Font from our parent.  When our
2729         owner's Font changes, recalculate ourselves as we may be using
2730         that font.
2731
2732 2008-10-01  Everaldo Canuto  <ecanuto@novell.com>
2733
2734         * MenuAPI.cs: Select the first option of a popup when opening the popup via
2735         return key. [Fixes bug #413792].
2736
2737 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2738
2739         * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
2740         ambient properties.  (Get their value from their parents if
2741         values haven't been set.)
2742
2743 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2744
2745         * ToolStripSystemRenderer.cs: Call overridden methods' bases
2746         after our logic, so users can do painting by handling the events.
2747         Currently, we draw over any user painting.
2748
2749 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2750
2751         * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
2752         after our logic, so users can do painting by handling the events.
2753         Currently, we draw over any user painting.
2754
2755 2008-09-30  Everaldo Canuto  <ecanuto@novell.com>
2756
2757         * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
2758
2759 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2760
2761         * TreeNode.cs, TreeView.cs: Move logic that determines the node
2762         image to draw to TreeNode.  Give Index/Keys put on the node
2763         precedence over the global one for the TreeView.
2764
2765 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2766
2767         * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
2768
2769 2008-09-29  Mario Carrion <mcarrion@novell.com>
2770
2771         * ListBox.cs: Index fixed.
2772
2773 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2774
2775         * TabControl.cs: When expanding the tab -because it's selected now-,
2776         using Right alignment, instead of adding some selected delta value to
2777         the X origin, substract it, so it gets a location adjacent to the panel, 
2778         instead of be more separated.
2779         Fixes #409170.
2780
2781 2008-09-29  Jonathan Pobst  <monkey@jpobst.com>
2782
2783         * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
2784         own copies of them.
2785
2786 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2787
2788         * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
2789         as well as the other static fields, to avoid using their previous
2790         values my mistake when handling the dnd events. This should avoid
2791         handling any status event after the drop has been finalized/cancelled.
2792
2793 2008-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2794
2795         * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
2796         operation, instead of waiting until we get any movement - this will
2797         help us to have the data available in case no movement was detected
2798         and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
2799         Finally add a windows.forms-only fallback to fire the mentioned events
2800         if no movement at all was detected, just like .net does.
2801         Fixes #381876.
2802
2803 2008-09-27  Jonathan Pobst  <monkey@jpobst.com>
2804
2805         * ThemeWin32Classic.cs: When drawing a status bar panel, don't
2806         return early if the text is empty because the icon doesn't get
2807         drawn then.  [Fixes bug #428113]
2808
2809 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2810
2811         * FileDialog.cs: Implement basic support for sorting by columns in
2812         Details view. Patch by Eric Petit.
2813         Fixes #428006.
2814
2815 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2816
2817         * ThemeWin32Classis.cs: When drawing gridlines take into account the
2818         case where ListView.ItemSize hasn't been computed, and provide a
2819         fallback as well. This prevents a division by 0.
2820
2821 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2822
2823         * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
2824         correctly draw tooltip backgrounds.
2825
2826 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2827
2828         * ImageList.cs: Change CopyTo implementation to ensure clones are
2829         created of our images.
2830         [Fixes bug #409169]
2831
2832 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2833
2834         * Control.cs: When setting fonts, we need to ensure we change our
2835         reference to the new font object, even if it represents the same
2836         font as before.  If we don't, the original font can get disposed
2837         and we will still try to use it.
2838         [Fixes bug #386450]
2839
2840 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2841
2842         * FileDialog.cs: Take into account Tile view when selecting the view
2843         (2.0 profile).
2844
2845 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2846
2847         * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
2848         the item bounds, since we can't iterate over them in virtual mode.
2849         Also fix wrong calculation of the gridlines when using scrolling.
2850         Fixes #400390.
2851
2852 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2853
2854         * XplatUIX11.cs: When handling EnterNotify events, take into account
2855         both the public and implicit controls when trying to detect the
2856         grab/ungrab process. This should fix ListView selection in Details
2857         view.
2858
2859 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2860
2861         * TreeView.cs: Redraw the whole node area when the selected node changes.
2862         Things like state images were not getting redrawn because the invalid
2863         rectangle was too small.
2864         [Fixes bug #428211]
2865
2866 2008-09-23  Mario Carrion  <mcarrion@novell.com>
2867
2868         * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
2869         [Fixes bug #428993]
2870
2871 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2872
2873         * Form.cs: Do not set the Form's icon in the backend if showicon = false.
2874         [Fixes bug #428114]
2875
2876 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2877
2878         * ThemeWin32Classic.cs: Allow tooltips to be multiline.
2879         [Fixes bug #427884]
2880
2881 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2882
2883         * StatusBar.cs: Add tooltip support.
2884         [Fixes bug #428113]
2885
2886 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2887
2888         * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
2889         alignments of sub items in Details view. Patch by John Mortlock (johnm at 
2890         hlaustralia.com.au).
2891         Fixes #425360.
2892
2893 2008-09-23  Neville Gao  <nevillegao@gmail.com>
2894
2895         * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
2896         [Fixes bug #419079]
2897
2898 2008-09-22  Jonathan Pobst  <monkey@jpobst.com>
2899
2900         * TextBoxBase.cs: Set Text to "" instead of null in Clear().
2901         [Fixes bug #428107]
2902
2903 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2904
2905         * ListView.cs: Don't do anything when EnsureVisible is called inside a
2906         BeginUpdate/EndUpdate block.
2907         Fixes #425049.
2908
2909 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2910
2911         * ListViewItem.cs: The semantics for the public .ctor of
2912         ListViewSubItemCollection need us to already have a Text value for the
2913         item, which in our implementation have as available *after* adding the
2914         first sub item. So create an internal .ctor that satisfies our needs
2915         and let the public .ctor have the same semantics as .net.
2916         Fixes #427561.
2917
2918 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2919
2920         * ListControl.cs: Changes in Formatting related values should call
2921         RefreshItems, as .net does.
2922         * ComboBox.cs:
2923         * ListBox.cs: In the respective overrides of RefreshItems calculate
2924         layout as well as refreshing - again, this is what .net does.
2925         Fixes #426168.
2926
2927 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2928
2929         * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
2930         since we are already doing that when we change the value of the
2931         scrollbar or force the call to ScrollWindow in the same method. This
2932         way we don't cause a Invalidate call for all the listbox bounds for
2933         methods calling UpdateTopItem with an already updated top item. This
2934         was happening specially calling EnsureVisible with already visible
2935         items.
2936
2937 2008-09-18  Mike Gorse <mgorse@novell.com>
2938
2939         * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
2940           XplatUIStructs.cs: Added KeyFilter
2941         [Fixes bug #427039]
2942
2943 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2944
2945         * RelatedPropertyManager.cs: The properties returned by
2946         GetItemProperties should be that ones of the *actual* object returned
2947         by the property, not the property type - this is very special when the
2948         property exposes a type, but the returned object actually is a child
2949         class and implements more functionality and properties.
2950
2951 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2952
2953         * Binding.cs: Don't look for the property in the data source if the
2954         passed string is empty.
2955
2956 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2957
2958         * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to 
2959         fix unused variable warnings.
2960
2961 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2962
2963         * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
2964         [Fixes bug #427073]
2965
2966 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2967
2968         * XplatUIX11.cs: 
2969          - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this 
2970          leads to the window manager overriding our border style and zorder. 
2971          - Allow the activation of non-modal forms, which are children of a 
2972          modal form.
2973         [Fixes bug #423417]
2974
2975 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
2976
2977         * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should 
2978         ask the window manager to do the work instead of changing the property 
2979         directly.
2980         [Fixes bug #423417]
2981
2982 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2983
2984         * CurrencyManager.cs: Check for positon before call ChangeRecordState in
2985         AddNew to fix some navigation for empty datasets. [Fixes #323053]
2986
2987 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2988
2989         * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set 
2990         InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
2991         border and fixes some drawing issues when resize form.
2992
2993 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2994
2995         * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
2996         
2997         * ThemeWin32Classic.cs: We don't need to reduce button size when it is
2998         AcceptButton.
2999
3000 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
3001
3002         * TextBoxBase.cs: For standard textbox the scrollbars are always 
3003         visible if Multiline is true.
3004         [Fixes bug #426896]
3005
3006 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
3007
3008         * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
3009         patch.
3010         
3011 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
3012
3013         [Fixes most od DBNull and HeadersVisible problems]
3014         
3015         * DataGrid.cs:
3016         - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
3017         returns the value that we need.
3018         - Fixed FromPixelToColumn method that return zero for first     column and for
3019         row header cell, now it returns -1 for row header cell.
3020         - Fixed HitTest to check row header cell in column header area, it now
3021         returns HitTestType.None. [Fixes #322864]
3022         - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
3023         checks for RowHeadersVisible and other things.
3024         - If an exception occurs when setting CurrentCell and user type 'yes' in
3025         message dialog, invalidade current and new cell and set setting_current_cell
3026         to false to prevent future errors. [Partially fixes #323050]
3027
3028         * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
3029         value (SetColumnValueAtRow), it must be done by grid to properly show 
3030         messages. [Fixes #323050]
3031
3032         * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
3033         better draw column and row header. Also dont draw anything when column
3034         headers is not visible.
3035
3036 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3037
3038         * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
3039         logic.
3040
3041 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3042
3043         * TreeView.cs: Don't start editing a node on right click, only
3044         left click.
3045
3046 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3047
3048         * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
3049         disabled over a year ago.
3050         * Form.cs: Wrap calling Load in a try/catch because it can happen
3051         before the catch-all one in NativeWindow.
3052         [Fixes bug #425414]
3053
3054 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3055
3056         * ToolStripDropDownMenu.cs: Calculate the connected area better
3057         to take into account when the drop down is not directly under the
3058         owner item.
3059         * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
3060
3061 2008-09-16  Mario Carrion <mcarrion@novell.com>
3062
3063         * ScrollBar.cs: New event added: UIAValueChanged, generated when
3064           LargeChange, SmallChange, Maximum or Minimum values are changed.
3065         [Fixes bug #426464]
3066
3067 2008-09-16  Mario Carrion <mcarrion@novell.com>
3068
3069         * ErrorProvider.cs: Component enabled to support accessibility.
3070         * Application.cs: Updated to Initialize UIA in ErrorProvider.
3071         [Fixes bug #426459]
3072
3073 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3074
3075         * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
3076         so we don't highlight on first focus.
3077         [Fixes bug #360869]
3078
3079 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3080
3081         * TextControl.cs: Correctly calculate the height of the area we 
3082         need to invalidate when we have started scrolling and viewport_y
3083         is used.  [Fixes bug #387608]
3084
3085 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3086
3087         * TextControl.cs: When getting the SelectedText, don't add in
3088         NewLine characters, as they are already contained in the lines.
3089         [Fixes bug #388115]
3090
3091 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3092
3093         * TextBoxBase.cs: Replace the buggy Lines setter with one that
3094         simply concats the lines and send it to the Text setter.
3095         [Fixes issue #2 and #3 of 388115]
3096
3097 2008-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3098
3099         * Binding.cs: The default value of DataSourceNullValue should be
3100         Convert.DBNull actually. Also, the NullValue should only be used *if*
3101         itself is not null, and use the null/Convert.DBNull value instead.
3102
3103 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3104
3105         * TextControl.cs: Add a method to convert a string newline to the
3106         newline enum.
3107         * TextBoxBase.cs: When the user hits enter, insert a native newline.
3108         [Fixes part 1 of bug #388115]
3109
3110 2008-09-15  Mario Carrion <mcarrion@novell.com>
3111
3112         * ToolTip.cs: UnPopup event set to internal to match public API.
3113
3114 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3115
3116         * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
3117         have to remove the Ctrl in order for the focus moving code to kick in.
3118         [Fixes bug #426170]
3119
3120 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3121
3122         * CheckedListBox.cs: Return the real item index from Add.  It may not be
3123         the last item if the list is sorted.  The user can change the NewValue in
3124         the ItemCheck event, we need to use that value if so.
3125         * ListBox.cs: Return the real item index from a sorted Add.
3126         [Fixes bug #426166]
3127
3128 2008-09-15  Ivan N. Zlatev  <contact@i-nz.net>
3129
3130         * MimeIcon.cs: Add null checks in the GnomeHandler, because it might 
3131         happen that the icons from the theme is missing or the particular size 
3132         unavailable.
3133         [Fixes bug #424981]
3134
3135 2008-09-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3136
3137         * Binding.cs: When assigning null or DBNull depending on value/ref type,
3138         use IsValueType instead to get the precise desired value.
3139         Fixes #424276.
3140
3141 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3142
3143         * TreeNodeCollection.cs: When adding a new node to an opened node,
3144         we have to invalidate everything below the parent node because
3145         every node scoots down and we have to repaint them.
3146         [Fixes bug #411386]
3147
3148 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3149
3150         * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
3151         property into account when drawing.
3152         [Fixes bug #416064]
3153
3154 2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3155
3156         * ListBox.cs: When calling Items.Clear(), call
3157         SelectedIndexCollection.ClearCore instead of normal Clear method, to
3158         not fire any Selected*Changed event - this is done to match .net and
3159         don't have invalid values when changing the DataSourceProperty.
3160         Fixes #424273.
3161
3162 2008-09-12  Mario Carrion  <mcarrion@novell.com>
3163
3164         * HelpProvider.cs: Control enabled to support accessibility.
3165         * Application.cs: Updated to Initialize UIA in HelpProvider.
3166         [Fixes bug #425988]
3167
3168 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3169
3170         * Form.cs: When we are showing a dialog box, if its owner is TopMost,
3171         make the dialog TopMost as well.
3172         [Fixes bug #425984]
3173
3174 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3175
3176         * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
3177         clipboard data better.
3178         [Fixes bug #414446]
3179
3180 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3181
3182         * TextBoxBase.cs: Applied patch from John Mortlock that ensures
3183         TextChanged and SelectionChanged events fire in the same order as .Net.
3184         [Fixes bug #425725]
3185
3186 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3187
3188         * DataGridView.cs: When sorting a column, if it only contains numbers,
3189         do a numeric sort instead of a string sort.
3190         [Fixes bug #425849]
3191
3192 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3193
3194         * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
3195         against NRE's when the settings have a null panel.
3196         * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
3197         the panel gets set.
3198         [Fixes bug #425647]
3199
3200 2008-09-11  Mario Carrion  <mcarrion@novell.com>
3201
3202         * ToolTip.cs: Control enabled to support accessibility.
3203         * Application.cs: Updated to Initialize UIA in ToolTip.
3204         [Fixes bug #425277]
3205
3206 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3207
3208         * Control.cs: Make the custom Enumerator internal to fix build.
3209
3210 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3211
3212         * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
3213         already in edit mode, begin edit mode.  Generally edit mode isn't
3214         started until the second click, but CheckBoxes are special.
3215
3216 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3217
3218         * ErrorProvider.cs: Never try to add our icons to ContainerControl,
3219         since that can be set to anything.  Always add them to the Control's
3220         parent.  [Fixes bug #416058]
3221
3222 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3223
3224         * ListView.cs: Use a custom enumerator for ListViewItemCollection
3225         so items can be deleted in a foreach.
3226         [Fixes bug #425342]
3227
3228 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3229
3230         * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
3231         Store the user set explicit height so that the row can be AutoSized
3232         and then when AutoSize is turned off, it can get its original size back.
3233         * DataGridView.cs: Use the Row's GetPreferredHeight instead of 
3234         duplicating the logic.  When setting AutoSizeRowsMode to None, reset
3235         rows' heights back to their explicit values.
3236         [Fixes bug #415780]
3237
3238 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3239
3240         * DateTimePicker.cs: When getting focus, select the checkbox if we are
3241         already showing it. Also, don't change its value when pressing space
3242         if the checkbox is not visible (ShowCheckBox as false). Finally, the
3243         checkbox should remain selected as long as Checked is false, and the
3244         other parts are disabled.
3245         Fixes #424267.
3246         
3247 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3248
3249         * MessageBox.cs: Handle shortcut keys to dialog buttons.
3250         [Fixes bug #425425]
3251
3252 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3253
3254         * Binding.cs: When the value retrieved from the control property is
3255         null, don't return Convert.DBNull for Nullable instances, since they
3256         can *actually* get a null value.
3257         Fixes #424265.
3258
3259 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
3260
3261         * Control.cs: Add an internal field to force doublebuffering regardless
3262         of what the public mechanisms are set to.  This is because MS's native
3263         controls are doublebuffered even though their .Net bits are set to false.
3264         * ProgressBar.cs: Set force_double_buffer to true.
3265         [Fixes bug #406595]
3266
3267 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
3268
3269         * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
3270         the cell template.
3271         * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
3272         * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
3273         without EditingControls, paint background selection for types without
3274         EditingControls, reset the EditingCellValueChanged flag when the
3275         cell's value is committed.
3276         * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
3277         have EditingControls, remove a double call to a cell's OnContentClickInternal,
3278         don't do cell changing logic in OnMouseDown if the cell didn't change.
3279         [Fixes bug #420351]
3280
3281 2008-09-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3282
3283         * DateTimePicker.cs: Fix the edition of am/pm specifier.
3284
3285 2008-09-09  Jonathan Pobst  <monkey@jpobst.com>
3286
3287         * TextControl.cs: Add "&" to the list of valid characters in a URL.
3288
3289 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3290
3291         * DateTimePicker.cs: Before incrementing or decrementing any part in
3292         the textbox, end any current edit. Also when ending the current edit
3293         use the editing_part_index field instead of the current selected
3294         value, since they can be out of synch, and we really need to work on
3295         the *real* current edit part. Finally when PartData.Selected changes,
3296         always try to end any ongoing edit.
3297         This should fix some small errors handling mouse navigation and
3298         increase/decrease operations.
3299
3300 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3301
3302         * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
3303         respectively) should handled different, since the 12 hours format
3304         needs the value typed by the user to be adjusted depending on the
3305         a.m/p.m value, so it is preserved, and only changed when the value
3306         reaches the 12 value (when it changes from a.m to p.m).
3307         Fixes part of #416555.
3308
3309 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3310
3311         * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
3312         * ToolStripDropDownItem.cs: Don't fire events and such again if
3313         ShowDropDown is called on an already dropped down item.
3314         * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
3315         subitems, the user may add some in the DropDownOpening event.
3316         [Fixes bug #417877]
3317
3318 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3319
3320         * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
3321         [Fixes bug #424270]
3322
3323 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3324
3325         * MdiClient.cs: When looking for menustrips on a child form to merge,
3326         look inside ToolStripContainers.
3327         [Fixes bug #424264]
3328
3329 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
3330
3331         * ErrorProvider.cs: Unbreak my previous commit.
3332
3333 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
3334
3335         * ErrorProvider.cs: Icon should always be 16x16.
3336         [Fixes bug #424380]
3337
3338 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
3339
3340         * GridEntry.cs: Invalidate the child items cache when the property 
3341         value changes.
3342
3343 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
3344
3345         * GridEntry.cs, PropertyGridView.cs: 
3346            - Update the ReadOnly detection and rendering to finally hopefully 
3347            match the one of MSFT.
3348            - Niceify and move the debug CWLS.
3349         [Fixes bug #409028]
3350
3351 2008-09-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3352
3353         * ListView.cs: Don't call Invalidate at all from SetItemLocation,
3354         since we are already calling Invalidate for the entire control when
3355         needed - and call Redraw() when size changes, since we need to paint
3356         there by ourselved and not anymore from the mentioned method. 
3357         This should improve the layout process. Also clean some not needed calls 
3358         here and there.
3359
3360 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
3361
3362         * MenuAPI.cs: Add a null check to the Alt-F4 code.
3363         [Fixes bug #420309]
3364
3365 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
3366
3367         * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
3368         [Fixes bug #423040]
3369
3370 2008-09-04  Ivan N. Zlatev  <contact@i-nz.net>
3371
3372         * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs, 
3373         PropertyGridView.sc: Implement lazy/delayed propertygrid population 
3374         on item expansion. Improves performance and fixes bug #417955.
3375         [Fixes bug #417955]
3376
3377 2008-09-05  Stephane Delcroix  <sdelcroix@novell.com>
3378
3379         * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
3380         fix the build.
3381
3382 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3383
3384         * TextControl.cs: Add "_" to the list of valid characters in a URL.
3385         [Fixes bug #423408]
3386
3387 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3388
3389         * Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
3390         region gets set.
3391         [Fixes bug #414166]
3392
3393 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3394
3395         * FontDialog.cs: When storing our font size from the starting font,
3396         use SizeInPoints instead of Size in case Size is a different unit
3397         from Points.
3398         [Fixes bug #416489]
3399
3400 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3401
3402         * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
3403         don't use it for anything else, check if a directory is highlighted.
3404         If it is, navigate into it.
3405         [Fixes bug #422087]
3406
3407 2008-09-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3408
3409         * Binding.cs: When acquiring a BindingManagerBase for the first time,
3410         check that the specified property actually exists in the data source,
3411         and throw an ArgumentException if that's not the case - this is only
3412         done for this scenario, since for later cases (such Position changes)
3413         we throw different exceptions (match .Net).
3414
3415 2008-09-03  Ivan N. Zlatev  <contact@i-nz.net>
3416
3417         * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs, 
3418           FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs, 
3419           PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs, 
3420           TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs, 
3421           ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs, 
3422           ToolStripStatusLabel.cs: Add missing PerformLayout calls to various 
3423           properties.
3424           [Fixes bug #418684]
3425
3426 2008-09-03  Neville Gao  <nevillegao@gmail.com>
3427
3428         * StatusBar.cs: Control enabled to support accessibility.
3429         [Fixes bug #419079]
3430
3431 2008-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3432
3433         * Binding.cs: When connecting the event handler for the "Changed"
3434         event for the property, only do it for PropertyManager, and not for
3435         CurrencyManager - this is exactly what does .Net, totally ignoring any
3436         change in the property of the elements of a list.
3437         Fixes the tests.
3438
3439 2008-09-02  Jonathan Pobst  <monkey@jpobst.com>
3440
3441         * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
3442         to Windows when creating a window, as we fake MDI stuffs.
3443         [Fixes bug #421858]
3444
3445 2008-09-01  Ivan N. Zlatev  <contact@i-nz.net>
3446
3447         * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the 
3448         change takes effect.
3449
3450 2008-08-24  Ivan N. Zlatev  <contact@i-nz.net>
3451
3452         * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
3453         [Fixes bug #419001]
3454
3455 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
3456
3457         * DataGridView.cs: Raise CellContentClick event.
3458         [Fixes part of bug #420351]
3459
3460 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3461
3462         * ScrollBar.cs: Control enabled to support accessibility.
3463         [Fixes bug #416759]
3464
3465 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3466
3467         * ComboBox.cs: Control enabled to support accessibility.
3468         [Fixes bug #416663]
3469
3470 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3471
3472         * ListBox.cs: Control enabled to support accessibility.
3473         [Fixes bug #416640]
3474
3475 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
3476
3477         * ComboBox.cs: Don't suppress the TextChanged event when changing
3478         the SelectedIndex.
3479         * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
3480         and re-raise it.
3481         [Fixes bug #420673]
3482
3483 2008-08-26  Jonathan Pobst  <monkey@jpobst.com>
3484
3485         * ErrorProvider.cs: Fix a regression NRE when setting properties
3486         for a control before it has a parent.
3487         [Fixes bug #420305]
3488
3489 2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3490
3491         * Binding.cs: Use the BindingManagerBase.Current value to obtain
3492         connect the property "Changed" event, instead of using the data
3493         sources - this is useful when the property specifies actually a
3494         multiple objects path.
3495         Fixes part of #417973.
3496
3497 2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3498
3499         * RelatedPropertyManager.cs: PropertyManager instances associated to a
3500         nested properties should return not the properties of the data source
3501         itself, but the properties of the type of a specific property in the
3502         data source - match .net.
3503
3504 2008-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
3505
3506         * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
3507         AddRange overloads into AddItems method, and added missing NULL check.
3508         Added extra argument check to RemoveAt for compatibility with MS. 
3509         Modified IList implementation of Add, Contains, IndexOf and Remove to
3510         throw an ArgumentException if item is not an int. Modified IList.Insert
3511         to throw a NotSupportException instead of an Exception. Implemented
3512         ICollection.
3513         (ObjectCollection): To avoid duplication, use AddItems method from
3514         AddRange overloads. On 1.0 profile, first perform NULL check on items
3515         in AddItems.
3516
3517 2008-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
3518
3519         * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
3520          #419087.
3521
3522 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
3523
3524         * X11Keyboard.cs : comment out some Console.WriteLine().
3525
3526 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
3527
3528         * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
3529           even if premises are not filled. Also XLookupString() was not
3530           receiving correct input, which blocked precise input handling
3531           on non-XIM mode.
3532
3533 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3534
3535         * ListView.cs: When calling OnCacheVirtualItems, cast to the right
3536         type of delegate, instead of EventHandler - this was causing a type
3537         cast exception in all apps handling this event.
3538         Fixes #417876.
3539
3540 2008-08-20  Jonathan Pobst  <monkey@jpobst.com>
3541
3542         * ToolStripDropDownItem.cs: Always raise DropDownOpening in
3543         ShowDropDown to give the user a chance to dynamically add
3544         drop down items.  [Step 1 of fixing bug #417877]
3545
3546 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3547
3548         * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
3549         had any mouse motion since the call to StartDrag, to match the dnd
3550         behaviour of .net.
3551         Fixes part of #381876.
3552
3553 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3554
3555         * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
3556         if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
3557         Also, if we are actually moving into a different window after
3558         grabbing, generate a LeaveNotify event for the previous window, since
3559         we need to fire the leave events until the grab ends, not when
3560         actually moving outside of the control.
3561
3562 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3563
3564         * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
3565         events only for client windows was wrong - we need to compare the
3566         client window against the window receiving the EnterNotify event, not
3567         against zero (since client window is never Zero, btw).
3568         This prevents having unnecessary handling of EnterNotify events for
3569         non-client windows when a gran begins.
3570
3571 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3572
3573         * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
3574         MouseMove/MotionNotify events at all (which should only happen after
3575         MouseUp/ButtonRelease, as .Net does).
3576         This avoids firing an extra and unnecessary MouseMove event just after
3577         every MouseDown event.
3578
3579 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3580
3581         * LinkLabel.cs: Always clear any previous links when LinkArea
3582         is set.  [Fixes bug #410709]
3583
3584 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3585
3586         * ToolStripProfessionalRenderer.cs: Revert last change.
3587         * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
3588         for ToolStripDropDownBackground.
3589
3590 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3591
3592         * ToolStripProfessionalRenderer.cs: Use Window color for the 
3593         background of dropdowns to match .Net when the user is not
3594         using the default white.  [Fixes bug #418108]
3595
3596 2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>
3597
3598         * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
3599           it caused timer registration twice. Fixed bug #418107.
3600
3601 2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3602
3603         [Correction: This is the actual change to X11Dnd issue, not the
3604         previous one, which was actually a different issue.]
3605
3606         * X11Dnd.cs: Increase the interval for the Timer, to not fire our
3607         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3608         when the pointer is actually in motion, but only when the pointer
3609         seems to stop (as .net does).
3610         Fixes part of #381876.
3611
3612
3613 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
3614
3615         * ListBox.cs: Fix CopyTo implementation.
3616         [Fixes bug #409169]
3617
3618 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
3619
3620         * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
3621         drawing a ComboBox's background.  Fixes bad disabled rendering when
3622         the control is not at 0,0.
3623         [Fixes bug #416063]
3624
3625 2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>
3626
3627         * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the 
3628         ComponentModel layer, which will properly prioritize the attributes.
3629         Avoids wrong prioritization of duplicate attributes when retrieving 
3630         the converter and editor.
3631         [Fixes bug #417729]
3632
3633 2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3634
3635         * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
3636         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3637         when the pointer is actually in motion, but only when the pointer
3638         seems to stop (as .net does).
3639         Fixes part of #381876.
3640
3641 2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>
3642
3643         * GridEntry.cs: Perform stricter check for the ParentEntry's 
3644         PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor 
3645         implementation.
3646         [Fixes bug #417567]
3647
3648 2008-08-14  Geoff Norton  <gnorton@novell.com>
3649
3650         * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
3651         Fixes #396983.  Properly fix ActiveWindow trackin and do not
3652         prematurely show POPUP windows.
3653
3654 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3655
3656         * XplatUIX11.cs: Handle the obscured regions while scrolling using
3657         GraphicsExpose event, processing it just after we copy the scrolled
3658         area. This ensures that the next calls to ScrollWindow will copy
3659         regions already updated, and the scrolling will be smooth. Also remove
3660         the code that was trying to detect the obscured regions, since we are
3661         not using it anymore (too slow).
3662
3663 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3664
3665         * ListBox.cs: Fix the -temporary- broken selection in ListBox for
3666         MultiExtended mode, by separating some logic between the ctrl/shift
3667         handling. Also ignore any MouseMove events generated together with
3668         MouseDown events - we are only interested in the real motion event.
3669         Fixes part of #414963.
3670
3671 2008-08-08  Jonathan Pobst  <monkey@jpobst.com>
3672
3673         * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
3674         is selected.  [Fixes bug #414143]
3675
3676 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
3677
3678         * GridEntry.cs: Check if current property is a ICustomTypeDescriptor 
3679         and not the parent one (the propertyowner). Fixes the behavior of 
3680         GetConverter/GetEditor.
3681         [Fixes bug #415452]
3682
3683 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
3684
3685         * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
3686         [Fixes part of bug #415452]
3687
3688 2008-08-05  Ivan N. Zlatev  <contact@i-nz.net>
3689
3690         * GridEntry.cs: ITypeDescriptorContext should be relative to the parent 
3691         GridEntry, not the current.
3692         [Fixes bug #413896]
3693
3694 2008-08-04  Ivan N. Zlatev  <contact@i-nz.net>
3695
3696         * TextBoxBase.cs: De-internalize max_length field.
3697         * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox 
3698         share the same logic.
3699         [Fixes bug #414454]
3700
3701 2008-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3702
3703         * ListBox.cs: Selection changes made in the MouseDown handler should
3704         use the *Core versions of selection in SelectedIndices collection,
3705         since the SelectedIndexChanged/SelectedValueChanged events are fired
3706         until we get a MouseUp event, and thus we need to separate the logic
3707         from the events, as done in the keyboard navigation. Also, fire those
3708         selection events from keyboard navigation in SelectionMode.None, even
3709         if we don't have a selection, as .Net does.
3710
3711 2008-08-01  Jonathan Pobst  <monkey@jpobst.com>
3712
3713         * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
3714         last change introduced when an item is clicked but isn't on a toolstrip.
3715
3716 2008-07-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3717
3718         * ListBindingHelper.cs: When looking for an object's properties, check
3719         if it implements ICustomTypeDescriptor, in which case we should
3720         resolve the propertu based on its GetProperties method, not in its
3721         actual properties. This is what .Net seems to do.
3722         Fixes a UsingWebBrowser problem during initialization.
3723
3724 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3725
3726         * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
3727         sitting on a MenuStrip.
3728
3729 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3730
3731         * ToolStripButton.cs: If we "click" a top button on a menustrip that has
3732         no children with the keyboard, we need to release the keyboard capture.
3733         [Fixes bug #413567]
3734
3735 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3736
3737         * ToolStripMenuItem.cs: If we "click" a top level menu item that has
3738         no children with the keyboard, we need to release the keyboard capture.
3739         [Fixes bug #413567]
3740
3741 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
3742
3743         * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
3744         the GTK+-based implementation of VisualStyles.
3745         * ThemeWin32Classic.cs: Exposed various layout values for use in the
3746         GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
3747         ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
3748         ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
3749         TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
3750         TrackBarHorizontalTrackHeight.
3751
3752 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
3753
3754         * TabControl.cs: Added hot style handling for the scroll buttons.
3755         right_slider_state, left_slider_state are now of type PushButtonState to
3756         allow for a hot state. Added tracking of the mouse button being held down
3757         on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
3758         LeftScrollButtonArea.
3759         * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
3760         TabControlGetRightScrollRect.
3761
3762 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3763
3764         * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent 
3765         runtime errors.
3766
3767 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3768
3769         * Form.cs: Ensure that we reset the shown_raised flag after 
3770         the form is closed, so that we raise the show events the next 
3771         time the form is shown.
3772         [Fixes bug #413141]
3773
3774 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3775
3776         * Form.cs: Ensure closing events are raised only once.
3777         [Fixes bug #413143]
3778
3779 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3780
3781         * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode, 
3782         so that we can successfully generate the LParam in-place instead of 
3783         in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard 
3784         navigation for menus.
3785
3786 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3787
3788         * MenuAPI.cs: When montion don't set the keyboard navigation state to 
3789         'navigating'. Fixes bug #411356.
3790
3791 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3792
3793         [Fixed remaining issues of #406773 (#1)]
3794         * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
3795
3796         * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
3797         MainMenu (already done) and ContextMenu creation.
3798
3799         * ContextMenu.cs: Create tracker on construction. 
3800
3801 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3802
3803         * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
3804         possible to instantiate MenuTracker without GrabControl.
3805
3806 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3807
3808         * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
3809
3810         * MainMenu.cs: Set GrabControl on SetForm using current form.
3811
3812 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3813
3814         * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
3815
3816 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3817
3818         * MenuAPI.cs: Check if menu is activated before deactivate it in 
3819         ProcessShortcut.
3820
3821 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3822
3823         * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs, 
3824         ColumnStyle.cs: 
3825         Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
3826          - One style instance can only participate in a single style collection.
3827          - Styles can request their owner to layout whenever their properties 
3828          change.
3829          [Fixes bugs #412583 and #412582]
3830
3831 2008-07-29  Ivan N. Zlatev  <contact@i-nz.net>
3832
3833         * X11Keyboard.cs: Implement the generation of the LParam for 
3834         all keyboard messages.
3835         [Fixes bug #378728]
3836
3837 2008-07-29  Jonathan Pobst  <monkey@jpobst.com>
3838
3839         * ListBox.cs: Don't let the user set TopIndex so high that it
3840         scrolls up far enough to show empty items.
3841         [Fixes bug #412728]
3842
3843 2008-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3844
3845         * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
3846         (I'm an idiot and forgot to commit the actual changes, as well as
3847         specify the right file, which is this one, not ListView.cs).
3848
3849 2008-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3850
3851         * ListView.cs: Don't draw ListViewSubItem instances from
3852         DrawListViewItem - we need to reuse the main item's drawing for the
3853         first sub item in case owner draw is true, but wants the system to
3854         do the default draw for the first sub item, without incurring in a
3855         recursion problem.
3856         Fixes #410880.
3857
3858 2008-07-28  Jonathan Pobst  <monkey@jpobst.com>
3859
3860         * ToolStripButton.cs: Update Checked for CheckOnClick before
3861         raising the Click event.  [Fixes bug #412505]
3862
3863 2008-07-28  Ivan N. Zlatev  <contact@i-nz.net>
3864
3865         * Form.cs: Remove some seems leftover code for non-TopLevel's 
3866         CreateParams, which is breaking ClientSize sizing, because it 
3867         removes the border window styles.
3868
3869 2008-07-27  Ivan N. Zlatev  <contact@i-nz.net>
3870
3871         * PropertyGrid.cs: Invalidate the View when the PropertyTab 
3872         changes.
3873
3874 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>
3875
3876         * WebBrowser.cs: Removed debug output.
3877
3878 2008-07-25  Jonathan Pobst  <monkey@jpobst.com>
3879
3880         * FileDialog.cs: Apply patch from Ernesto to clean up some
3881         dialog messages.
3882
3883 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3884
3885         * TableLayoutPanel.cs: Perform layout on GrowStyle change, so 
3886         that the change has an immediate effect.
3887
3888 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3889
3890         * ScrollableControl.cs: Update PerformLayout calls to include 
3891         provide the name of the property that changed.
3892
3893 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3894
3895         * TableLayoutPanel.cs: Draw relative to the DisplayRectangle 
3896         location. Fixes drawing of border and cell borders if scrollable.
3897
3898 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3899
3900         * ScrollableControl.cs: Perform layouting after the AutoScroll 
3901         properties have changed, so that the changes have immediate 
3902         effect.
3903         [Fixes bug #409090]
3904
3905 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3906
3907         * XplatUIX11.cs: Non Client area is actually Client such in the 
3908         case of NotifyIcon, so double check WholeWindow == ClientWindow 
3909         when adding an expose.
3910         [Fixes bugs #324237 and #357022]
3911
3912 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3913
3914         * TableLayoutPanel.cs: Invalidate after layouting, so that we 
3915         repaint the cell borders.
3916
3917 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3918
3919         * PropertyGridTextBox.cs: Stop filtering messages prior to our 
3920         disposal to avoid unexpected ObjectDisposedExceptions.
3921
3922 2008-07-24  Ivan N. Zlatev  <contact@i-nz.net>
3923
3924         * TableLayoutPanel.cs: Layout on Row/Column count change.
3925
3926 2008-07-22  Gert Driesen  <drieseng@users.sourceforge.net>
3927
3928         * ListViewItem.cs: Changed binary serialization to match MS. Fixes
3929         bug #409351.
3930         * PictureBox.cs: When ImageLocation is set to null or an empty string,
3931         only set image to null if it was previously initialized from an url
3932         (or using ImageLocation). In ImageLocation, load specified image
3933         asynchronously if WaitOnLoad is false. Added support for local file
3934         paths to LoadAsync, and added missing argument check.
3935
3936 2008-07-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3937
3938         * DateTimePicker.cs: 
3939         * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
3940         order to set the value as required (which means: when selection
3941         changes for a part being edited, and not before that if not needed).
3942         Also use an enum to describe which part are we using, and use the
3943         selection as a property in PartData, in order to notify the
3944         DateTimePicker owner that we need to end the current edit.
3945         Fixes #383462.
3946
3947 2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
3948
3949         * PropertyGridTextBox.cs: Validation should be performed only if we 
3950         are focused. We can lose focus for example if the Return key is used 
3951         to set the entry and there is an error. When the message box is 
3952         displayed we would have validate on click in the message box.
3953
3954 2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
3955
3956         * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content 
3957         in order to determine that we are expandable is wrong. There was a bug, 
3958         now fixed, in TypeDescriptor that was causing the wrong converter to be 
3959         returned which caused GetPropertiesSupported == false in most cases.
3960         [Fixes bug #409027]
3961
3962 2008-07-15  Jonathan Pobst  <monkey@jpobst.com>
3963
3964         * ImageList.cs: Fix ICollection.CopyTo implementation for
3965         ImageListCollection.  [Fixes bug #409169]
3966
3967 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3968
3969         * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
3970         WorkingArea so that menus can appear on the second monitor
3971         when one has dual monitors.
3972
3973 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3974
3975         * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
3976         Fixes build.
3977
3978 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3979
3980         * TextBox.cs: Implement navigation support for auto complete in
3981         TextBox, as well as refactor the code to show the auto complete window
3982         when receiving a WM_CHAR message, instead of TextChanged, since
3983         autocomplete itself should be able to set the Text a lot of times and
3984         finally only typing should show it, not changes from code.
3985
3986 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3987
3988         * TabControl.cs: When expanding the selected tab, don't adjust the
3989         width if alignment is Right, since it has a different offset than 0,
3990         as opposed to the other alignments.
3991         Fixes the selected tab not being painted at all with alignment = Right
3992         and using FillToRight size mode.
3993
3994 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3995
3996         * TreeView.cs: Fix ToString to match MS.  [Fixes bug #409029]
3997
3998 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3999
4000         * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
4001         values from the textbox to the boundary values.  [Fixes bug #409026]
4002
4003 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4004
4005         * TreeNodeCollection.cs: We were copying one too many elements when
4006         doing our array copy.  Fixes a crash when RemoveAt is called.
4007         [Fixes bug #408999]
4008
4009 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4010
4011         * TabControl.cs: When doing the layout and need to call FillRow -using
4012         FillToRight size mode-, use the overload receiving a bool param
4013         indicating whether we need to do a vertical or horizontal calculation.
4014         Fixes part of #399583.
4015
4016 2008-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4017
4018         * TextBox.cs: When painting, use the value returned by
4019         GetLastVisibleItem instead of using the cached last_item field, since
4020         there could be a desynchronization between the layout and the
4021         painting. Fixes a AOOR exception in auto complete mode.
4022
4023 2008-07-12  George Giolfan  <georgegiolfan@yahoo.com>
4024
4025         * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
4026         NonClientAreaEnabled until our VisualStyles is modified to allow it.
4027
4028 2008-07-12  Gert Driesen  <drieseng@users.sourceforge.net>
4029
4030         * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
4031
4032 2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4033
4034         * TextBox.cs: When focus is lost, if the auto complete listbox is
4035         visible, hide it.
4036
4037 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
4038
4039         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
4040         tracking size for tool windows.
4041         * Theme.cs, ThemeWin32Classic.cs : Extracted
4042         ManagedWindowSpacingAfterLastTitleButton.
4043
4044 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
4045
4046         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
4047         They are bit-rotted and have always been listed as "unsupported".
4048
4049 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
4050
4051         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
4052
4053 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
4054
4055         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
4056
4057 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4058
4059         * ListBox.cs: Make sure last_item_visible gets reset before we try
4060         to do a layout due to scrollbars appearing or disappearing.
4061         [Fixes bug #408139]
4062
4063 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4064
4065         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
4066         for different window themes.  [Fixes bug #339140]
4067
4068 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4069
4070         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
4071         in ManagedWindowBorderWidth.
4072
4073 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4074
4075         * InternalWindowManager.cs: Change MouseMove to take a point, so
4076         we can use the same point later on.
4077         * MdiWindowManager.cs: Store point sent to MouseMove so we can
4078         later reset to it.  On Windows, the Cursor.Position had already
4079         changed by the time we were resetting to it.
4080         [Fixes bug #363239]
4081
4082 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4083
4084         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
4085         are inactive.
4086         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
4087         user requested it.
4088         [Fixes bug #398686]
4089
4090 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4091
4092         * MdiWindowManager.cs: Double-clicking on the title bar should not
4093         maximize a MDI form if MaximizeBox = false.
4094
4095 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4096
4097         * ThemeVisualStyles.cs: Fixed a warning.
4098
4099 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4100
4101         * ThemeVisualStyles.cs: Fixed warnings and formatted.
4102
4103 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4104
4105         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
4106         implementation produces a better result.
4107
4108 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4109
4110         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
4111         windows.
4112
4113 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4114
4115         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
4116         cannot be used from the ThemeEngine constructor.
4117         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
4118         Application.VisualStylesEnabled because it does not work on X11.
4119
4120 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
4121
4122         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
4123         that we did not always check for, as well as fixes to the IList
4124         implementations.  [Fixes bug #402703]
4125
4126 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4127
4128         * IDeviceContext.cs: Added Dispose.
4129
4130 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4131
4132         * Control.cs: Added OnSizeInitializedOrChanged.
4133         * Form.cs: OnLoadInternal: Added a call to
4134         Control.OnSizeInitializedOrChanged.
4135         * InternalWindowManager.cs:
4136          * HandleTitleBarMouseMove: No longer invalidates the parent window.
4137          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
4138          * TitleButton: Added Entered.
4139          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
4140         * MdiWindowManager.cs:
4141          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
4142          move over the maximized title buttons causes a change.
4143          * IsActive: Can now be called before the window is added to a MDI parent.
4144         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
4145         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4146         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
4147         * ThemeWin32Classic.cs:
4148          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
4149          * DrawTitleButton takes a new form parameter.
4150          * Added ManagedWindowTitleButtonHasHotElementStyle,
4151          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4152
4153 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4154
4155         * ThemeEngine.cs: ThemeVisualStyles is now selected if
4156         Application.EnableVisualStyles has been called, even if the current system
4157         configuration does not support rendering with Visual Styles.
4158         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
4159         Styles should not be used.
4160
4161 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
4162
4163         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
4164         ComboBox in FormsTest.
4165
4166 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
4167
4168         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
4169         for fixed toolwindows.
4170
4171 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
4172
4173         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
4174
4175 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4176
4177         * Control.cs: CreateControl just returns if the Control is diposed 
4178         and doesn't throw ObjectDisposedException.
4179         [Fixes bug #406566]
4180
4181 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4182
4183         * Control.cs: Do not create the control if the parent isn't created 
4184         yet, e.g in the case of a parented form on which .Show is called.
4185         It will be created when the parent is made visible/created.
4186         Improves #402446.
4187
4188 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4189
4190         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
4191         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
4192         [Fixes bug #406786]
4193
4194 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4195
4196         * Form.cs: When disposed set owner to null. Improves #402446.
4197
4198 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4199
4200         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
4201         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
4202         if not.
4203         * Form.cs: Take the Padding into account for the PreferredSize.
4204         [Fixes bug #402849]
4205
4206 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4207
4208         * TabControl.cs: Since we don't support more than one direction in
4209         TabControl rows alignment (this is, the row becomes the
4210         bottom row when selected), make Direction return always 1. This way
4211         the layout doesn't get confused about a bad calculation.
4212         Fixes #399582.
4213
4214 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4215
4216         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
4217         so that the wparam is properly set.
4218         Fixes form moving in the test case in bug 402446.
4219
4220 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
4221
4222         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
4223         the full tree instead of nothing.  [Improves bug #406584]
4224
4225 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
4226
4227         * ThemeWin32Classic.cs: Adjusted minimized window painting.
4228
4229 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
4230
4231         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
4232         children.
4233
4234 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
4235
4236         * TreeView.cs: Add a null check when using CollapseAll on an
4237         empty tree.  [Fixes bug #406449]
4238
4239 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4240
4241         * Form.cs: Make OnMenuComplete internal so we can call it.
4242         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
4243         [Fixes bug #399321]
4244
4245 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4246
4247         * TabControl.cs: Handle Up and Down keys when TabControl is in
4248         vertical alignment.
4249         [Fixes bug #399585]
4250
4251 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4252
4253         * TabControl.cs: Invalidate when we remove a tab.  Guard against
4254         an AOORE when trying to remove a tabpage that is not owned by the
4255         parent control.
4256         [Fixes bug #399927]
4257
4258 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4259
4260         * ScrollBar.cs: Change the LargeChange calculation to be correct.
4261         Ensure we are using LargeChange instead of large_change so we our
4262         calculations are correct.
4263         [Fixes bug #403122]
4264
4265 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4266
4267         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
4268         we need to ensure the ColumnCount/RowCount gets set.
4269         [Fixes bug #404851]
4270
4271 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4272
4273         * ListBox.cs: When handling item navigation, if selection mode is
4274         None, call EnsureVisible, since scrolling is normally handled by
4275         selection, that we are not calling in this case.
4276         Fixes #398345.
4277
4278 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
4279
4280         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
4281         a null check to our focus walking code.  [Fixes bug #394332]
4282
4283 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
4284
4285         * ComboBox.cs: Case missed in bug 379596 "Support item
4286         navigation by entering text": On _close_ drop-down select
4287         the first item matching the text in the textbox.  [Fixes bug #397265]
4288
4289 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
4290
4291         * DataGridView.cs: Fix a crash when sorting by column headers, 
4292         mentioned in bug #404841.  Remove some dead switch cases.
4293
4294 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4295
4296         * ComboBox.cs:
4297         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
4298         uses the AutoComplete support in the internal TextBox. Also TextBox
4299         can store a reference to ComboBox, in case AutoCompleteSource is set
4300         to ListItems (this is, ComboBox's items, and we don't want to pass an
4301         additional collection).
4302
4303 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4304
4305         * ListViewItem.cs: Restore the initial value of bounds rect to
4306         Rectangle.Empty, and is this value for Layout detection in virtual
4307         mode. Fixes the tests.
4308
4309 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
4310
4311         * XPlatUI.cs: Remove references to "new" X11 backend.
4312
4313 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
4314
4315         * Control.cs: Add an internal virtual OnDragDropEnd method 
4316         to allow controls such as ListBox, which depend on a sequence 
4317         of MouseDown+Move+End events, to handle the lack of a MouseUp 
4318         when a DnD operation is started in MouseDown.
4319         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
4320         get a MouseUp, so reset our state whenever a DnD operation ends.
4321
4322 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
4323
4324         * PropertyGrid.cs: Clear the root griditem first thing when 
4325         new object/s is/are selected. Fixes some rare cases where 
4326         the View will get a paint request and won't know that the 
4327         grid is in the process of repopulating.
4328
4329 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4330
4331         * XplatUIX11.cs, InternalWindowManager.cs: 
4332         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
4333         doesn't automagically update the FormBorderStyle, so we must 
4334         double check the CreateParams explicitly to determine if the 
4335         window is a toolwindow.
4336         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
4337         instead of doing custom checks.
4338
4339         Fixes toolwindows for the test case in bug #402446
4340
4341 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4342
4343         * Control.cs: Visibility of the control should be false 
4344         when the handle is destroyed in WmDestroy and not immediately 
4345         in Dispose(). This is effectively where the disposing process 
4346         ends even though the control is marked as Disposed immediately 
4347         after calling Dispose().
4348         [Fixes bug #402446]
4349
4350 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4351
4352         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
4353         when the textbox gets focus.
4354         [Fixes bug #402704]
4355
4356 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4357
4358         * PropertyGridTextBox.cs, PropertyGridView.cs: 
4359          - Alt + Down should show the drop down editor.
4360          - Focus the editor when showing it
4361         [Fixes bug #402710]
4362
4363 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
4364
4365         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
4366         that are not the first panel.
4367         * StatusBar.cs: Ensure that the X coordinate of panels is always
4368         stored.  Fix IList implementation of StatusBarPanelCollection to
4369         call the regular methods.
4370         [Fixes bug #403599, #402165]
4371
4372 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
4373
4374         * ThemeWin32Classic.cs: Fix position calculation for centered
4375         text on status bar panels.  [Fixes bug #402165]
4376
4377 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
4378
4379         * Splitter.cs: Fix Splitter to:
4380          - Work for arbitrary splitter size
4381          - Handle MinSize and MinExtra properly
4382          - Get rid of absolute positioning during drag and use relative
4383          - Multiple other fixes 
4384          [Fixes bug #338966]
4385
4386 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
4387
4388         * Cursor.cs: Show shouldn't hide the cursor.
4389
4390 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4391
4392         * ListViewItem.cs: When invalidating, add some extra space to bounds,
4393         since focus rectangle and selection can add some space and need to
4394         take into account those small offsets - specially in Details view.
4395         * ListView.cs: Instead of invalidate using item Bounds directly, call
4396         item.Invalidate, to have the code centralized.
4397         Fixes focused/selection garbage when selecting and deselecting items
4398         that are close.
4399
4400 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4401
4402         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
4403         mode we can check whether we have to force a Layout or not, and can
4404         cache based on this, instead of avoiding caching all the the time. Do
4405         this check in GetBounds and TextBounds.
4406         Fixes selection in Details view.
4407
4408 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4409
4410         * ListView.cs: Make HeaderControl internal, thus the theme engine can
4411         get its *real* height instead of trying to infere it.
4412         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
4413         get the position of them, since it's in general a bad idea in general,
4414         and because we can't do that in virtual mode. Instead get the first
4415         visible item as well as item height, and draw them.
4416         Fixes #400390.
4417
4418 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
4419
4420         * ToolStripSplitButton.cs: We can't add in extra width if
4421         the button is not AutoSize.  [Fixes bug #401279]
4422
4423 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
4424
4425         * PaddingConverter.cs: 
4426          - Implement conversion to InstanceDescriptor
4427          - Handle "All" in CreateInstance by using the supplied 
4428          ITypeDescriptorContext.
4429          [Fixes bugs #396076 and #396078]
4430
4431          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
4432          Code contributed under MIT/X11 license.
4433
4434 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
4435
4436         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
4437         ButtonBase.cs:
4438         Add Category attributes.
4439         Code is contributed under the MIT/X11 license.
4440
4441 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
4442
4443         * Form.cs: 
4444          - Fix a NRE when unparenting a form.
4445          - Do not recreate or destroy a parented form when 
4446         unparenting. 
4447
4448 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4449
4450         * TextBox.cs: Implement basic support for AutComplete with custom
4451         sources.
4452
4453 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
4454
4455         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
4456         DropDownButtonBounds should be from the origin of the button, not the
4457         ToolStrip.  [Fixes bug #401279]
4458
4459 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
4460
4461         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
4462           running gtk_init_check.  This prevents GAIL from loading
4463           unnecessarily, which was breaking UIA support.  Initial fix for bug
4464           #375987.
4465         * Application.cs: Add UIA support to Winforms.  New static constructor
4466           uses reflection to initialize UIAutomationWinforms assembly.  Added
4467           PreRun event so UIA can initialize before the mainloop starts, and
4468           FormAdded event so UIA can provide a11y support for new Forms in an
4469           Application.
4470
4471 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
4472
4473         * DataGridView.cs: When binding to a dataset, subscribe to table
4474         and column change events.  Unsubscribe to these when we clear bindings.
4475         [Fixes bug #399601]
4476
4477 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
4478
4479         [DataGrid drawing refactory]
4480
4481         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
4482
4483         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
4484         must be handle by Theme, now it call DataGridPaintColumnHeader.
4485
4486         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
4487         test cases must be also fixed because it checks for wrong size.
4488
4489         * ThemeWin32Classic.cs: 
4490                 - Draw the bottom line of grid caption.
4491                 - Prevent to draw caption text when it is empty.
4492                 - Use CPDrawBorder3D for 3D efects to simplify code.
4493                 - Uses 3D (when not flat) to paint corner shared between row and column
4494                 header.
4495                 - Fix header drawing issues on win32, now borders are drawing.
4496                 - Fix column header paint issues to mimic win32.
4497                 - Adjust header drawing for last column, like first one it must be draw
4498                 different.
4499                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
4500                 not an character.
4501                 - DataGridPaintColumnHeader created to draw column headers, it also
4502                 paint stuff right on Win32.
4503                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
4504                 class.
4505
4506         * Theme.cs: 
4507                 - DataGridPaintRowHeaderStar method added.
4508                 - DataGridPaintColumnHeader method added.
4509
4510 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
4511
4512         * Control.cs: Don't reset to Dock style layout if DockStyle is
4513         set to none.  [Fixes bug #399316]
4514
4515 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
4516
4517         * Win32DnD.cs: Fix the check for control not equal null.
4518         Fixes bug #341420 and #381886. 
4519
4520 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
4521
4522         * DataGridViewRowCollection.cs: Update the indexes of rows after
4523         one has been removed.
4524         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
4525         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
4526         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
4527         rows for the Rows collection, or deleting rows from the bound DataSet.
4528
4529 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
4530
4531         * DataGridView.cs: Listen to a DataSet's changed event even
4532         when autogeneratecolumns is false.  Refactor the changed event's
4533         add row code to use the same as the existing add row code.
4534         [Fixes bug #399601]
4535
4536 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4537
4538         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
4539         much any time the caret moves and there is text, not just when
4540         the selection changes as one would think.
4541         * RichTextBox.cs: Override RaiseSelectionChanged and fire
4542         SelectionChanged.
4543         [Fixes bug #397271]
4544
4545 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4546
4547         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
4548         instead of trying to duplicate the code.
4549         * ListBox.cs: Make method internal so we can send keyboard events.
4550         [Fixes bug #398344]
4551         
4552 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4553
4554         * TextBoxBase.cs: When pasting and checking the max length,
4555         subtract the selected text length (the text we will be replacing) from
4556         the document length.
4557         * TextControl.cs: Ensure every character insertion is reflected in
4558         charcount, so max length will work properly.
4559         [Fixes bug #398605]
4560
4561 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4562
4563         * ListBox.cs: Ensure scrollbars are updated when a single
4564         column listbox with an already set top-index is created.
4565         [Fixes bug #398342]
4566
4567 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4568
4569         * FontDialog.cs: Typing in the font/style textboxes should search
4570         the list boxes case-insensitively.  [Fixes bug #398343]
4571
4572 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
4573
4574         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
4575         widths of icon and buttons instead of hard coded values.
4576
4577 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4578
4579         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
4580         as well as generating a SelectedIndexChanged event, just like .Net does
4581         -surprise-.
4582         Fixes #398345.
4583
4584 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4585
4586         * ListBox.cs: When navigating items visually, use FocusedItem as the
4587         reference point instead of SelectedIndex, since even in
4588         SelectionMode.None we need to support navigation, and in that case we
4589         just can't use SelectedIndex.
4590         Fixes part of #398345.
4591
4592 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
4593
4594         * Control.cs: Make a SetBoundsInternal that avoids the new
4595         SetBounds code.
4596         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
4597         SetBoundsInternal instead of SetBoundsCoreInternal.
4598
4599 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
4600
4601         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
4602         SetBounds for the scrollbars.
4603
4604 2008-06-10  Andreia Gaita <avidigal@novell.com> 
4605
4606         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
4607           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
4608           OnMouseMove, OnMouseOver, OnMouseUp
4609         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
4610           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
4611         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
4612           to the WebControl object to pass to new collection objects
4613         * HtmlHistory.cs: Implement support for individual window histories.
4614         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
4615           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
4616           GotFocus, LostFocus, OnLoad, OnUnload
4617         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
4618           ContextMenu
4619         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
4620           security level changes and context menu event support.
4621
4622 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4623
4624         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
4625         as happens with Esc, patch my Andy Hume.
4626         Fixes #396294.
4627
4628 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4629
4630         * MdiWindowManager.cs: DrawMaximizedButtons now uses
4631         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
4632         * Theme.cs: Made MenuButtonSize platform dependent. Added
4633         ManagedWindowButtonSize.
4634         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
4635         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
4636
4637 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4638
4639         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
4640         Added support for rendering with VisualStyles.
4641
4642 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4643
4644         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4645         support for rendering the border with VisualStyles.
4646
4647 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4648
4649         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
4650         the icon is not shown.
4651         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
4652         its own logic.
4653
4654 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4655
4656         * InternalWindowManager.cs: Draw minimized windows even if they don't have
4657         borders.
4658
4659 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
4660
4661         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
4662
4663 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
4664
4665         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
4666         [Fixes bug #397943]
4667
4668 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4669
4670         * ComboBox.cs: When snaping height -because of IntegralHeight set to
4671         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
4672         if the requested height leaves the listbox area with *less* than the
4673         required are to see one item. We were setting it to PreferredHeight
4674         even for values matching the height for a single item.
4675         Fixes #396297.
4676
4677 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
4678
4679         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
4680
4681 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
4682
4683         * DataGridViewCell.cs: Use property instead of field.
4684
4685 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4686
4687         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
4688         null checks.
4689
4690 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4691
4692         * Theme.cs: Added #region around the managed window code. Made the managed
4693         window methods abstract.
4694         * ThemeWin32Classic.cs: Added #region around the managed window code.
4695
4696 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4697
4698         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
4699         if it has borders.
4700         * ThemeWin32Classic.cs: Removed HasBorders checks in
4701         DrawManagedWindowDecorations.
4702
4703 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4704
4705         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4706         Extracted ManagedWindowGetTitleBarIconArea.
4707
4708 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4709
4710         * DataGridViewCellStyle.cs: Don't clone the font.
4711
4712 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4713
4714         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
4715
4716 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4717
4718         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
4719         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
4720         in 64 bit machines.
4721
4722 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4723
4724         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
4725         Use Format/FormatProvider before trying converters.
4726         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
4727         are 'set'.  Change constructor to not use ApplyStyle since it wants
4728         everything applied.  Clone the Font.
4729         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
4730         ApplyStyle the rest.
4731
4732 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4733
4734         * ListView.cs: We need to calculate the scrollbars even if the handle
4735         hasn't been created - this is needed when methods using scrollbars
4736         info, such EnsureVisible, are called before control has been created.
4737         Fixes #397272.
4738
4739 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
4740
4741         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
4742         only if the elements are defined. 
4743
4744 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4745
4746         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
4747         section. Also, when setting bounds, snap height as well as save the
4748         requested height if Dock has any value affecting the height: Left,
4749         Right and Bottom - important if using IntegralHeight as true.
4750
4751 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4752
4753         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
4754         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
4755         instead of doing that only in our SetBoundsCore override, since the 
4756         bounds cached can be the same as saved one and we could not get the
4757         new height applied.
4758         Fixes #396297.
4759
4760 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4761
4762         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
4763         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
4764         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
4765         ToolWindowCaptionButtonSize.
4766         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
4767
4768 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4769
4770         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
4771         hard coded values.
4772         * Theme.cs: Made DoubleClickTime plaform dependent.
4773
4774 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4775
4776         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
4777         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4778         ToolWindowCaptionHeight.
4779
4780 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4781
4782         * InternalWindowManager.cs: The adjustment to ensure positive client area
4783         sizes is now platform dependent (disabled on Windows).
4784         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4785         RequiresPositiveClientAreaSize.
4786
4787 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4788
4789         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
4790
4791 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4792
4793         * InternalWindowManager.cs: Changed IconicSize to use
4794         SystemInformation.MinimizedWindowSize.
4795         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
4796         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
4797
4798 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4799
4800         * ComboBox.cs: If the combobox is anchored both on top and bottom,
4801         adjust height if IntegralHeight is true when calling SetBoundsCore (as
4802         likely the height was modified even if Height wasn't specified in
4803         BoundsSpecified parameter).
4804         Fixes part of #396297.
4805
4806 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
4807
4808         * InternalWindowsManager.cs: Changed minimum window size while resizing to
4809         SystemInformation.MinWindowTrackSize.
4810         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
4811         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
4812
4813 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
4814
4815         * MenuItem.cs: Fixed Dispose.
4816
4817 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
4818
4819         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
4820         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
4821         EnteredHeaderCell, PressedHeaderCell: Added.
4822         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
4823         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
4824         theme a chance to override default painting.
4825         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
4826         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
4827         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
4828         ListView and DataGridView header rendering.
4829         
4830 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
4831
4832         * RichTextBox.cs: GetPositionFromCharIndex should return the 
4833         visual position of the character relative to the viewport.
4834         [Fixes part of bug #396664]
4835
4836 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
4837
4838         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
4839         and not just for the existance of an UITypeEditor. In some cases 
4840         there is an editor associated just to do PaintValue, but which 
4841         doesn't actually support editing.
4842         [Fixes bug #396632]
4843
4844 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4845
4846         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
4847         if needed, instead of 0 - this should help us in the corner case where
4848         we have more than one item but we are only partially showing 1 item.
4849         Fixes part of #374713.
4850
4851 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4852
4853         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
4854         control, return immediately if the any parent control's handle hasn't
4855         been created or isn't visible, as well as avoiding creating the parent
4856         Form if the handle hasn't been previously created.
4857         Fixes tests.
4858
4859 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
4860
4861         * TableLayoutPanel.cs: Use border sizes when calculating the
4862         panel's preferred size.  [Fixes part of bug #396433]
4863
4864 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
4865
4866         * SplitContainer.cs:
4867          - Fix SplitterDistance to update only if needed. 
4868          - Make it force min and max validation.
4869          - Handle properly mouse moves outside the resizeable area.
4870          [Fixes bug #396232]
4871
4872 2008-06-02  Andreia Gaita <avidigal@novell.com> 
4873
4874         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
4875           (which also suppresses all popup dialogs). Throw NotSupported
4876           exceptions for activex getters/setters.
4877         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
4878           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
4879           StatusText, Version, GoSearch
4880         * HtmlDocument.cs: Add DocType support
4881
4882 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
4883
4884         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
4885         [Fixes bug 396124]
4886
4887 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
4888
4889         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
4890
4891 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
4892
4893         * TableLayoutPanel.cs: When calculating preferred size, use the
4894         actual number of columns and rows, not what the user set them to.
4895         [Fixes bug #396141]
4896
4897 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
4898
4899         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
4900         394311.
4901
4902 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4903
4904         * XplatUIX11.cs: When detecting areas obscured in a control by other
4905         toplevel windows while scrolling, return if the control hasn't a 
4906         container form.
4907         Fixes some tests.
4908
4909 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4910
4911         * XplatUIX11.cs: Properly detect the visible area of a control being
4912         scrolled (obscured by other winforms controls and any X toplevel
4913         windows), to mark as invalid the requested area to be scrolled that
4914         isn't visible and thus can't be copied.
4915         Fixes #324513.
4916
4917 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4918
4919         * ListBox.cs: Compute the precise amount to vertically scroll when
4920         using DrawMode.OwnerDrawVariable.
4921         Patch by jkeymer (j.keymer@gmx.net).
4922
4923 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4924
4925         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
4926         to avoid setting an invalid value for the verticall scrollbar 
4927         when navigating items. And, duh, also remove my silly debug messages
4928         from previous commits.
4929         Fixes #374713.
4930
4931 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
4932
4933         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
4934         make it MS compatible.
4935
4936 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
4937
4938         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
4939          - Allow the editing of entries even if their parent is read-only.
4940          - Do not render expandable properties read-only.
4941          - Refactor expansion checks form PropertyGrid into PropertyGrid.
4942
4943 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
4944
4945         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4946         support for the hover style.
4947
4948 2008-05-29  Andreia Gaita <avidigal@novell.com> 
4949
4950         * ContainerControl.cs: Check for null dead-end when traversing the tree
4951           of parent controls.
4952         
4953           [Fixes #394332, patch by Ernesto Carrea]
4954
4955 2008-05-29  Geoff Norton  <gnorton@novell.com>
4956
4957         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
4958         constant that it is.  Fixes #393981
4959
4960 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
4961
4962         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
4963         that the user probably doesn't want to set this.
4964
4965 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
4966
4967         * ThemeWin32Classic.cs: Don't let the text size be bigger than
4968         the control size for CheckBox/RadioBox.
4969         [Fixes part of bug #394645]
4970
4971 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4972
4973         * PropertyGrid.cs: Update the state of the sorting buttons in 
4974         the toolbar if PropertySort is set programatically.
4975
4976 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4977
4978         * GridItemCollection.cs: Add multiple items with conflicting names 
4979         support and also preserve name ordering.
4980         [Fixes #395345]
4981
4982 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4983
4984         * GridItemCollection.cs: Revert my multiple items with same 
4985         name patch.
4986
4987 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4988
4989         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
4990         or middle ones.
4991         Fixes part of #393908.
4992
4993 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
4994
4995         * ToolStripDrowDown.cs: When using the Show () methods that have a
4996         Control parameter, set the menu owner to that Control.
4997         [Fixes bug #394345]
4998
4999 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
5000
5001         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
5002         [Fixes bug #362756]
5003
5004 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5005
5006         * GridItemCollection.cs: Refactor to support multiple items with the 
5007         same name.
5008         [Fixes bug #394314]
5009
5010 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
5011
5012         * Control.cs: The 2.0 check for illegal cross thread calls in 
5013         Control.Handle were throwing an exception when we were getting
5014         the Handle in order to invoke correctly.  Created a private
5015         version that does not contain this check.
5016         [Fixes bug #394531]
5017
5018 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5019
5020         * PropertyGrid.cs: Respect DefaultTabType.
5021
5022 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5023
5024         * ListView.cs: SPACE selects an item.
5025         [Fixes bug #393023]
5026
5027 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5028
5029         * ListView.cs: Reset the search string whenever the items are 
5030         modified.
5031         [Fixes bug #393020]
5032
5033 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5034
5035         * ListControl.cs: For the first added item PositionChanged is fired
5036         _before_ ItemChanged, which leave us in a temporary invalid state - so
5037         we need to set the selected index from ItemChanged handler *if* we
5038         know that the first item has just been added *and* the items have been
5039         actually added to the ListControl.
5040         Fixes #369048.
5041
5042 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5043
5044         * TabControl.cs: Only clicks with the left button should be
5045         handled.
5046         Fixes #393908.
5047
5048 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5049
5050         * ComboBox.cs: 
5051         * FIleDialog.cs:
5052         * TextBox.cs: Expose an internal method in TextBox to restore the
5053         original context menu, and call it from ComboBox to re-use it in the
5054         combobox containing the file name in FileDialog.cs.
5055         Fixes part of #393775.
5056
5057 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
5058
5059         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
5060         style.
5061
5062 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
5063
5064         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
5065         down button style.
5066
5067 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5068
5069         * ComboBox.cs: Minor correction to previous patch: PageDown should
5070         also *try* to move by one item if the computed offset is negative,
5071         just like the PageUp case.
5072
5073 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5074
5075         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
5076         should be done for at least 1 item, and not stay at the same item.
5077         Fixes part of #374713.
5078
5079 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
5080
5081         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
5082         directories.  [Fixes bug #393931]
5083
5084 2008-05-22  Andreia Gaita <avidigal@novell.com> 
5085
5086         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
5087           Don't fire events until the initial about:blank page has finished
5088           loading. Clean up events.
5089
5090 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
5091
5092         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
5093           FocusIn() too. This should fix the issue on switching
5094           scim keyboards.
5095
5096 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
5097
5098         * X11Keyboard.cs : set XIM font size to somewhat reasonable
5099           number (ideally the input textbox size, but that could be
5100           too messy).
5101
5102 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
5103
5104         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
5105         the ToolStripItem's TextChanged.  [Fixes bug #393597]
5106
5107 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5108
5109         * TabControl.cs: When invalidating in SelectedIndex and we need to
5110         inflate to take into account the border of the tabs, make sure that
5111         the invalidated rect doesn't overflow the control bounds, since that
5112         would avoid updating at all.
5113
5114 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5115
5116         * TabControl.cs: Don't substract scroller width from the row width,
5117         since we need to take into account the total width of the control when
5118         calculating the position of the tabs. This avoids showing scroller
5119         when it is actually not needed.
5120         Fixes part of #322325.
5121
5122 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5123
5124         * ThemeVisualStyles.cs: Added support for TextBoxBase.
5125
5126 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5127
5128         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5129         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
5130
5131 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5132
5133         * DataGridView.cs: Only paint the top left header cell if there
5134         are columns.
5135
5136 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5137
5138         * DataGridView.cs: When binding to a BindingSource, get the underlying
5139         list to bind to.  [Fixes bug #345483]
5140
5141 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5142
5143         * DataGridView.cs: Do not bind to collection properties.
5144         [Fixes bug #337470]
5145
5146 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5147
5148         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
5149
5150 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5151
5152         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
5153         thumb style.
5154
5155 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5156
5157         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
5158
5159 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5160
5161         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
5162         background.
5163
5164 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5165
5166         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
5167
5168 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5169
5170         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
5171         checked styles.
5172
5173 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5174
5175         * TabControl.cs: Extended to handle the hot style.
5176
5177 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5178
5179         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
5180         Extended UpDownBase code to handle hot and disabled styles.
5181
5182 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5183
5184         * DataGridView.cs: Handle databinding to generic list type things.
5185         [Fixes bug #325239]
5186
5187 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5188
5189         * DataGridViewCellCollection.cs: Add a method to find the cell
5190         with the given DataPropertyName.
5191         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
5192         * DataGridViewColumnCollection.cs: Add a method to clear all
5193         autogenerated columns.
5194         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
5195         columns.
5196         [Fixes bug #348082]
5197
5198 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5199
5200         * DataGridView.cs: Don't try to update the RowTemplate with
5201         a null CellTemplate.
5202
5203 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5204
5205         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
5206         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
5207         * DataGridView.cs: Lots of fixes/enhancements to databinding to
5208         a DataSet.
5209
5210 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5211
5212         * Control.cs: Remove invalidating implicit child controls when
5213         control is invalidated.  It was causing too many redraws on
5214         controls with implicit scrollbars.
5215         * ListView.cs: Listen to the Invalidated event and invalidate
5216         child controls.
5217
5218 2008-05-20  Andreia Gaita <avidigal@novell.com> 
5219
5220         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
5221         * HtmlDocument.cs: Check for nulls
5222
5223 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5224
5225         * Control.cs: In ControlCollection.RemoveInternal, remove the
5226         internal control before calling PerformLayout and OnControlRemoved,
5227         which was leaving us in an invalid state and causing a X error (bad
5228         match). Observe that Remove () call has the same order.
5229         Fixes an X error changing ComboBoxStyle.DropDownStyle.
5230
5231 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5232
5233         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
5234         being fired if ControlStyles.UserPaint style is activated.
5235         Fixes #371905.
5236
5237 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5238
5239         * GridEntry.cs: Don't be so strict when setting the value - 
5240         do not check if what we set is what we get.
5241         [Fixes bug #389245]
5242
5243 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5244
5245         * XplatUIX11.cs: If there are no timers timeout should be 0
5246         [Fixes bug #363522]
5247
5248 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
5249
5250         * Control.cs: As a followup to invalidating implicit children when
5251         a control is invalidated, only invalidate them if they are in the
5252         clip rectangle.
5253
5254 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5255
5256         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
5257
5258 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5259
5260         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
5261
5262 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5263
5264         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
5265         * XplatUIWin32.cs: Made Win32DeleteObject public.
5266
5267 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5268
5269         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
5270         PropertyDescriptor.ShouldSerializeValue.
5271         [Fixes bug #391924]
5272
5273 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5274
5275         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
5276         in the classic theme.
5277
5278 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5279
5280         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
5281         ThumbPressed.
5282         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
5283         ScrollBarHasPressedThumbStyle.
5284
5285 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5286
5287         * TextRenderer.cs: Included some methods in the 1.1 profile.
5288
5289 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
5290
5291         * Control.cs: When we make a control visible, it may have been
5292         previously visible and while it wasn't visible, the z-order of
5293         things may have been shuffled, so the control needs to have its
5294         z-order updated just in case.  [Fixes bug #391518]
5295
5296 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5297
5298         * ThemeVisualStyles.cs: Added support for GroupBox.
5299
5300 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5301
5302         * GroupBoxRenderer.cs: Included in the 1.1 profile.
5303
5304 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
5305
5306         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
5307           bug #389996; XSelectInput() behaved as mouse handler robber,
5308           so remove extra call to it.
5309
5310 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5311
5312         * Control.cs: Simplify ControlCollection.Contains method.
5313
5314 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5315
5316         * DataGridViewRow.cs: Implement GetPreferredSize.
5317
5318 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5319
5320         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
5321
5322 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5323
5324         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
5325         painting and edit control fixes.
5326
5327 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5328
5329         * DataGridView.cs, DataGridViewCell.cs: Work around some external
5330         checks to make sure we are in an actual row/col for top left header cell.
5331         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
5332
5333 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5334
5335         * Control.cs: Use long instead of int when handling WParam from
5336         mousewheel scrolling.  Int was overflowing on Win64.
5337
5338 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5339
5340         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
5341         flow panel without scrolling first, and then calculate the 
5342         scrolling based on the new layout.  [Fixes bug #390149]
5343
5344 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5345
5346         * ListBox.cs: Invalidate after scrolling up when selected index
5347         changes.  [Fixes bug #390151]
5348
5349 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5350
5351         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
5352         set, default height to 150. I tried first with DefaultSize, but this
5353         is not generating a SetBoundsCore call before handle creation time, so
5354         we can take it into account. This is just what .net does.
5355
5356 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
5357
5358         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
5359         as it broke some stuff.  Calberto is filing a bug for eno to
5360         work with.
5361
5362 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5363
5364         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
5365         to 0 is the current value is -1, and if style is not Simple, just
5366         return, like .net does.
5367         Fixes part of #374713.
5368
5369 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
5370
5371         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
5372         progress bar stuffs, use doubles instead of ints to prevent
5373         overflow.  [Fixes bug #389798]
5374
5375 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
5376
5377         * XplatUIX11.cs, X11Keyboard.cs :
5378           Significant refactoring on XIM support. Now IM engine UI
5379           should show up, at mostly-correct preedit position.
5380           - Eliminated use of FocusWindow, as it is never mapped
5381             and hence blocks correct preedit position. XIC is now
5382             created per window, and it must be destroyed too when
5383             the window is destroyed.
5384           - WM_QUIT messages should not be filtered even when hwnd
5385             is zombie. Filtering it could cause endless loop.
5386           - Preedit position must move only when the window is alive.
5387           - Make it IDisposable and make sure to release XIM/XICs.
5388
5389 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
5390
5391         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
5392           XplatUIX11.cs, XplatUIWin32.cs :
5393           fix for bug #325033 and #387693;
5394           - WM_QUIT should not be sent when no running application
5395             exists.
5396           - SetTimer/KillTimer (especially on win32) should be
5397             invoked for the window that the timer is/will_be attached.
5398           - There could be unattached timers to a window when it's
5399             started. For those timers, hold pending timers and when
5400             a window is mapped, attach them to it.
5401           - WaitForHwndMessage() could run into loop when
5402             WM_SHOWWINDOW is handled before this method is called.
5403             So, strictly check wm_showwindow state.
5404           - Tick handler should not be invoked while one Tick handler
5405             call is still running (introduced Busy state).
5406
5407 2008-05-13  Andreia Gaita <avidigal@novell.com> 
5408
5409         * WebBrowserBase.cs: Override Internal alternative methods for
5410           SetBoundsCore and OnResize instead of the protected ones.
5411         * Control.cs: Move SetBoundsCore and OnResize implementations to
5412           SetBoundsCoreInternal and OnResizeInternal, so they can be
5413           overriden internally (WebBrowserBase needs to catch them but can't
5414           override the protected methods without api compat problems)
5415
5416 2008-05-13  Andreia Gaita <avidigal@novell.com> 
5417
5418         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
5419
5420 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5421
5422         * Binding.cs:
5423         * ListView.cs: Remove debug messages.
5424
5425 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5426
5427         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
5428         area is empty. Also calculate scrollbars in Simple mode based in area
5429         height and total number of items, not in MaxDropDownItems.
5430         Fixes part of #371991.
5431
5432 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5433
5434         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
5435
5436 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5437
5438         * BindingSource.cs: GetListSortDescription is not public.
5439
5440 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5441
5442         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
5443
5444 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5445
5446         * HtmlElement.cs: Fix parameter names to match MS.
5447         * HtmlWindowCollection.cs: Should not be sealed.
5448
5449 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5450
5451         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
5452         button, because the thumb button will not get drawn if the scrollbar
5453         is disabled.  [Fixes bug #389262]
5454
5455 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5456
5457         * ListBox.cs: Handle End key for multi-column listboxen.
5458         [Fixes bug #389266]
5459
5460 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5461
5462         * ListBox.cs: Fix algorithm to determine which column our item is in.
5463         [Fixes bug #389265]
5464
5465 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5466
5467         * ListBox.cs: Invalidate when the listbox is resized.
5468         [Fixes bug #389256]
5469
5470 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5471
5472         * ListBox.cs: There is always at least one row in the ListBox (if
5473         we are doing these calculations.)  [Fixes bug #389253]
5474
5475 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5476
5477         * ListBox.cs: There is always at least one column in the ListBox.
5478         [Fixes bug #389250]
5479
5480 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5481
5482         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
5483         ensure in Simple mode that the height is exactly the requested one.
5484         Also add the ComboBoxListControl to the controls collection in Simple
5485         mode even if handle hasn't been created.
5486         Fixes part of #371991.
5487
5488 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5489
5490         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
5491         our ComboBox owner instead of giving it back to the previous control (
5492         as done in other controls). Also remove the empty override of Select
5493         method, since we want to be selected *and* give focus to our owner.
5494         This should let the user do keys-navigation in Simple mode. 
5495
5496 2008-05-10  Geoff Norton  <gnorton@novell.com>
5497
5498         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
5499         problems with rapid scrolling of treeviews. Fixes #381084
5500
5501 2008-05-10  Geoff Norton  <gnorton@novell.com>
5502
5503         * XplatUICarbon.cs: Deactivate the active window before
5504         activating the desired window.  Completes fixing #386504
5505
5506 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5507
5508         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
5509         SmallChange to the item size width plus the padding, to match .net.
5510
5511 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5512
5513         * FileDialog.cs: Apply the custom filter typed by the user in the file
5514         name combobox as much as possible while navigating in the file dialog.
5515         Fixes #385261.
5516
5517 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5518
5519         * Binding.cs: Actually use NullValue if the retrieved value of
5520         data source is null or DBNull. Makes a test pass.
5521
5522 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
5523
5524         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
5525         * MimeIcon.cs: Provide a way to get icons from resources.
5526
5527 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5528
5529         * Binding.cs: When the value retrieved from the control to be assigned
5530         to the data source is null, actually use the 2.0 DataSourceNullValue
5531         value. Make pass a data binding test.
5532
5533 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5534
5535         * Control.cs: We need to invalidate implicit children even when
5536         invalidate is called with invalidatechildren = false.  (Implicit
5537         children are really part of the parent.)
5538         * ListView.cs: Double-buffer internal child controls for less
5539         flicker.
5540         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
5541         owner ListView subitems for greatly increased performance.
5542         [Fixes bug #388477]
5543
5544 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
5545
5546         * FileDialog.cs: When the user types a wildcard character in the
5547         filename combobox, update the contents of the folder using the text as
5548         a filter.
5549         Fixes part of #385261.
5550
5551 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5552
5553         * ListBox.cs: Various fixes for MultiColumn listboxen.
5554         [Fixes bug #388114]
5555
5556 2008-05-08  Andreia Gaita <avidigal@novell.com> 
5557
5558         * HtmlElement.cs: Implement Style property
5559
5560 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5561
5562         * ListBox.cs: Respect checkboxes when measuring item size.
5563         * ThemeWin32Classis.cs: When drawing list items, don't draw
5564         text outside of the item's bounds to prevent overlapping.
5565         (.Net actually overlaps, but that's just silly.)
5566         [Fixes bug #388117]
5567
5568 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
5569
5570         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
5571         Gert Driesen. Fixes bug #324830. 
5572
5573 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
5574
5575         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
5576         method implemented.
5577
5578 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5579
5580         * BindingSource.cs: When calling IsSynchronized, return the value of
5581         the related IList list.
5582
5583 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5584
5585         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
5586         make a test pass.
5587
5588 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
5589
5590         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
5591         navigation to scroll the grid if the current cell is not visible.
5592
5593 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5594
5595         * HtmlElement.cs: Implement TabIndex
5596
5597 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
5598
5599         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
5600         properties, even when there are no items.
5601         [Fixes bug #387611]
5602
5603 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
5604
5605         * NativeWindow.cs: Add support for multiple handles per window.
5606         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
5607         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
5608         directly - use FromHandle instead.
5609         [Fixes bug #374660]
5610
5611 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5612
5613         * HtmlElement.cs: Implement InnerHTML setter
5614
5615 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5616
5617         * HtmlDocument.cs: Implement Focused
5618
5619 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5620
5621         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
5622         methods, as well as add messages to the exceptions.
5623
5624 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5625
5626         * BindingSource.cs: Setting DataSource should only reset DataMember if
5627         the previous value was null (make pass a not working test).
5628
5629 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5630
5631         * BindingSource.cs: When EndInit call is postponed and is called until
5632         DataSource.EndInit is called, remove the handler for data source.
5633
5634 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5635
5636         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
5637
5638 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5639
5640         * ToolStripManager.cs: Store references to toolstrips as
5641         weak references so they do not prevent forms from getting collected.
5642         [Fixes bug #386483]
5643
5644 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5645
5646         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
5647         on .Net.  So do the same thing in WndProc.
5648
5649 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5650
5651         * TrackBar.cs: Commit patch from Andy Hume that corrects
5652         the clickable areas to better match .Net.
5653         [Fixes bug #387074]
5654
5655 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5656
5657         * TrackBar.cs: Commit patch from Andy Hume that adds the
5658         ResizeRedraw control flag so the track bar repaints itself
5659         when it is resized.  [Fixes bug #387072]
5660
5661 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5662
5663         * TrackBar.cs: Commit patch from Andy Hume that adds better
5664         support for keyboard navigation when the TrackBar is vertical.
5665         [Fixes bug #387071]
5666
5667 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5668
5669         * BindingSource.cs: Implement ISupportInitializeNotification support.
5670
5671 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
5672
5673         * ThemeVisualStyles.cs: Added support for ToolBar.
5674
5675 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
5676
5677         * ToolBar.cs: Made the Vertical property internal.
5678
5679 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5680
5681         * ThemeVisualStyles.cs: Added support for TrackBar.
5682
5683 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5684
5685         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
5686         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
5687         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
5688         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
5689         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
5690         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
5691
5692 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5693
5694         * ThemeVisualStyles.cs: Added support for UpDownBase.
5695
5696 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5697
5698         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
5699         Extracted Theme.UpDownBaseDrawButton.
5700
5701 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
5702
5703         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
5704         removed from the static toolstrips collection in ToolStripManager
5705         when they are disposed.  Provides a workaround for bug #386483.
5706
5707 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
5708
5709         * GridEntry.cs: Read-only properties with Editor with 
5710         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
5711         [Fixes bug #384184]
5712
5713 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
5714
5715         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
5716         the menu key and there are no items on the menu.
5717         [Fixes bug #386644]
5718
5719 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
5720
5721         * Control.cs: Avoid calling ToString on a string.
5722         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
5723         * GroupBox.cs: In FlatStyle property throw, not just create, the 
5724         exception. Avoid calling ToString on a string.
5725         * ProgressBar.cs: Avoid calling ToString on a string. 
5726         * ScrollBar.cs: Avoid calling ToString on a string. 
5727         [All issues were found using Gendarme]
5728
5729 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
5730
5731         * NotifyIcon.cs: Prevent click events to be trigger after double click 
5732         events. Fixes remaining issues of bug #324832.
5733
5734 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
5735
5736         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
5737         to mimic win32 behavior. Partially fixes bug #324832.
5738
5739 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5740
5741         * BindingSource.cs: Implement Find methods.
5742
5743 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5744
5745         * BindingSource.cs: Implement Sort, ApplySort overloads, and
5746         RemoveSort methods.
5747
5748 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5749
5750         * ListBindingHelper.cs: When calling GetListItemProperties and the
5751         passed object is ITypedList, return the result of
5752         ITypedList.GetItemProperties instead.
5753
5754 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5755
5756         * LinkLabel.cs: Set default value of name on constructor of Link class
5757         only for 2.0 profile.
5758
5759 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5760
5761         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
5762         Fixes remaining issues of bug #346154.
5763
5764 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5765
5766         * LinkLabel.cs: Set a default value for name on internal contructor of
5767         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
5768
5769 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5770
5771         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
5772         and refer all instances to owner.links. Partially fixes #346154.
5773
5774 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5775
5776         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
5777         length equal zero. Also called CreateLinkPieces in constructor. It fixes
5778         the LinkLabel test 'TestLinkArea'.
5779
5780 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5781
5782         * Form.cs: Remove menu before close form to prevent form to be not gaced.
5783         [Fixes #386460]
5784
5785 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5786
5787         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
5788         [Fixes #386463]
5789
5790 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5791
5792         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
5793         [Fixed bug #357004]
5794
5795 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5796
5797         * MenuAPI.cs: Remove unused ProcessCmdKey method.
5798
5799 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5800
5801         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
5802         [Fixes bug #375398]
5803
5804 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5805
5806         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
5807         of bug #367492.
5808
5809 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5810
5811         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
5812         sometimes we open a conext menu on mouse down of some controls and the mouse
5813         up is dispatched to menu and dont need to. It fix remaining issues of 
5814         #363711 and other problems related to menu mouse click events.
5815
5816 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5817
5818         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
5819         some var names to better fit changes, now we have month_menu and today_menu
5820         vars. Fixes bug #363711.
5821
5822 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5823
5824         * MonthCalendar.cs: Handle every right mouse click to open context menu,
5825         right now the default month menu but it will be change to have "Go to today"
5826         menu.
5827
5828 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5829
5830         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
5831
5832 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5833
5834         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
5835
5836 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5837
5838         * ThemeVisualStyles.cs: Added support for TreeView.
5839
5840 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5841
5842         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
5843         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
5844
5845 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5846
5847         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
5848
5849 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5850
5851         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
5852         Implement 2.0 SP1 stuffs.
5853
5854 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5855
5856         * FileDialog.cs: Implement 2.0 SP1 stuffs.
5857
5858 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5859
5860         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
5861         Implement CanEnableIme property. (2.0 SP1)
5862
5863 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5864
5865         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
5866         from the 2.0 API.
5867
5868 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5869
5870         * Control.cs: Provide an internal way for a control to override
5871         the setting of Height.
5872         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
5873         set height using new method.
5874
5875 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5876
5877         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
5878
5879 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5880
5881         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5882         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
5883
5884 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5885
5886         * ThemeVisualStyles.cs: Added support for StatusBar.
5887
5888 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5889
5890         * DataObject.cs: Add the other IDataObject interface.
5891
5892 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5893
5894         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
5895         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
5896
5897 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5898
5899         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
5900         * ListView.cs: Hide non-public API.
5901         * MaskedTextBox.cs: Remove extra attribute.
5902
5903 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5904
5905         * DataGridViewImageCell.cs: Use formatted value instead of value
5906         to calculate preferred size.
5907
5908 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5909
5910         * ListBox.cs: Move some initialization around so that selected_indices
5911         is not accessed before it is created.
5912
5913 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5914
5915         * InputLanguageCollection.cs: Implement the collection better.
5916         [Fixes bug #385506]
5917
5918 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5919
5920         * ToolStripDropDownItem.cs: Get the correct event object for
5921         DropDownItemClicked.
5922         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
5923         [Fixes bug #385475]
5924
5925 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5926
5927         * DataGridViewRowCollection.cs: We don't currently support shared 
5928         rows.  Should fix test failures caused by previous commit.
5929
5930 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5931
5932         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
5933         datagridview gets set.  Only paint cells in visible columns.
5934         * DataGridViewCell.cs: Draw border after cell content.
5935         * DataGridView.cs: Invalidate after setting some properties.  Only
5936         use visible columns.  Fit hit test bug with areas in the col/row header
5937         area but not in a row or col.  Implement UpdateCell/Row methods.
5938
5939 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5940
5941         * DataGridViewElement.cs: Don't throw NIEX.
5942         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
5943         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
5944         * DataGridViewCheckBoxColumn.cs: Implement ToString.
5945         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
5946         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
5947         if the user filled in the formatting Value, use it.
5948
5949 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5950
5951         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
5952         to a string.
5953
5954 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5955
5956         * BindingSource.cs: Some corrections to Filter property, as well as
5957         setting it for our list when resetting it.
5958
5959 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
5960
5961         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
5962         than the maximum.  Fixes reopened bug #384182.
5963
5964 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5965
5966         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
5967         Fixes remaining issues of #367490.
5968
5969 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5970
5971         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
5972         SystemInformation.WorkingArea to get max_screen value.
5973
5974 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5975
5976         * BindingSource.cs: Implement Filter and RemoveFilter.
5977
5978 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5979
5980         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
5981
5982 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5983
5984         * X11Dnd.cs: When trying to convert data and we know we started the
5985         dnd loop, don't try to use the cached data if the loop is not running,
5986         which means that the data has been resetted.
5987         Fixes #378191.
5988
5989 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5990
5991         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
5992         win32 behavior.
5993
5994 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5995
5996         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
5997         it to drawn off screen edge. Fixes bug #367490.
5998
5999 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6000
6001         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
6002         menu position to have only one assignment of Location var.
6003
6004 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6005
6006         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
6007         for this patch. Fixes bug #384115.
6008
6009 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6010
6011         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
6012         the same.  If LargeChange is zero, set a minimum size for the scroll
6013         thumb grip.  [Fixes bug #384182]
6014
6015 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6016
6017         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
6018         [Fixes bug #384181]
6019
6020 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6021
6022         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
6023
6024 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6025
6026         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
6027         patch from Ernesto).
6028
6029 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6030
6031         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
6032
6033 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6034
6035         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
6036
6037 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6038
6039         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
6040
6041 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6042
6043         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
6044
6045 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
6046
6047         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
6048
6049 2008-04-27  Andreia Gaita <avidigal@novell.com> 
6050
6051         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
6052           supposed to return a reference to an mshtml interface, which we
6053           don't support).
6054         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
6055           reference to an mshtml interface, which we don't support). Code
6056           formatting cleanup.
6057         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
6058           DomDocument getter (it's supposed to return a reference to an
6059           mshtml interface, which we don't support). Code formatting cleanup.
6060
6061 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6062
6063         * ListView.cs: Ouch, forgot to commit.
6064
6065 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6066
6067         * ListView.cs: 
6068         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
6069
6070 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6071
6072         * ListView.cs: When calculating box selection for virtual mode, don't
6073         look for intersection with item's text, but item bounds, since that
6074         would mean read ListViewItem's text for _every_ item, and that's
6075         something we just can't do in virtual mode (items are only requested
6076         when drawn).
6077
6078 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
6079
6080         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
6081         partial support for managed windows (based on the patch from Ernesto).
6082
6083 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6084
6085         * ListView.cs: When doing a key search use FindItemWithText method
6086         instead of doing the search by ourselves, this way we avoid
6087         duplicating the code and also we handle the special case for virtual
6088         mode. To achieve that make our private overload of FindItemWithText
6089         internal and also have a 'roundtrip' parameter.
6090
6091 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6092
6093         * ListView.cs: When doing the layout don't request the
6094         ListViewItem instance if we are in virtual mode (since we can't request it
6095         until the item is actully drawn).
6096
6097 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6098
6099         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
6100         from Ernesto).
6101
6102 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6103
6104         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
6105         the patch from Ernesto).
6106
6107 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6108
6109         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
6110         * ThemeVisualStyles.cs: Added.
6111
6112 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6113
6114         * IDeviceContext.cs: Added a missing using.
6115
6116 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6117
6118         * ButtonBase.cs: Made IsDefault protected internal.
6119         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
6120
6121 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6122
6123         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
6124         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
6125         RadioButtonRenderer.cs: Included in the 1.1 profile.
6126         * IDeviceContext.cs: Added.
6127         * TextRenderer.cs: Included a member in the 1.1 profile.
6128
6129 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6130
6131         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
6132
6133 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6134
6135         * ErrorProvider.cs: Make the error icons come after the control
6136         they refer to.  It isn't the way the MS does it, but its better
6137         than what we were doing.  See bug #368587.
6138
6139 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6140
6141         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
6142         from Eric Albright that lazy loads the input language as ensures
6143         everything gets properly initialized.  Fixes bug #373871.
6144
6145 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6146
6147         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
6148         implicit mnemonics.  [Fixes bug #383000]
6149
6150 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6151
6152         * X11Dnd.cs: When canceling the operation, automatically restore the
6153         default cursor - normally the default cursor is restored when the
6154         mouse buttons are released, but we should be able to restore it even
6155         if the buttons are still pressed (for example, when pressing ESC to
6156         cancel).
6157         Fixes #381894.
6158
6159 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6160
6161         * X11Dnd.cs: When starting a new drad and drop operation, set control
6162         field to null, just as the other fields, to avoid calling any
6163         operation on a previous control. Also, when calling DndLeave on a
6164         control, set it to null, thus we don't fire that event multiple times
6165         for that control.
6166         Fixes #209264.
6167
6168 2008-04-23  Geoff Norton  <gnorton@novell.com>
6169
6170         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
6171         the whole_window object.  Fixes #377084.
6172
6173 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6174
6175         * HtmlElement.cs: Implement RaiseEvent (event injection into the
6176           embedded browser)
6177
6178 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
6179
6180         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
6181
6182 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6183
6184         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
6185           invocation
6186
6187 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6188
6189         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
6190           attaching/detaching
6191
6192 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6193
6194         * X11Dnd.cs: When the drop was cancelled, or could just not be
6195         performed, return DragDropEffect.None always (match .net).
6196
6197 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6198
6199         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
6200
6201 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6202
6203         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
6204
6205 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6206
6207         * DataGridView.cs: Add support for error icon tool tips.
6208         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
6209         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
6210
6211 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
6212
6213         * X11Structs.cs: Add mouse button masks enum.
6214         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
6215         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
6216         form resize/move operation instead of for each step of it.
6217         [Fixes bug #346529 for the x11 backend]
6218
6219 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6220
6221         * DataGridView*: Implement support for drawing error icons.
6222
6223 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6224
6225         * TreeView.cs: Make vbar and hbar internal.
6226         * TreeNode.cs: If collapsing the node removes one of the TreeView's
6227         scrollbars, invalidate the whole thing.
6228         [Fixes bug #382001]
6229
6230 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6231
6232         * TreeView.cs: Calling Sort() sets Sorted = true.
6233         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
6234         if the nodes need to be sorted.
6235         [Fixes bug #382028]
6236
6237 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
6238
6239         * Form.cs: Fire SizeChanged for both when the form is minimized and 
6240         restored.
6241         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
6242         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
6243
6244 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6245
6246         * ComboBox.cs: If the combobox is disabled, draw a disabled
6247         background before painting anything else.
6248         [Fixes bug #381729]
6249
6250 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6251
6252         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
6253         forget to send a Leave event to the target window - just as .net does
6254         when cancelling dnd operations.
6255
6256 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6257
6258         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
6259         soon as possible - this happens when we send the drop message to the
6260         target window. This way we avoid firing any DragOver _after_ drop finished.
6261         Fixes #378179.
6262
6263 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6264
6265         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
6266         * Form.cs: Handle form minimization as a special state, where size doesn't 
6267         change, but we have to fire SizeChanged.
6268         [Fixes bug #325122 for the win32 and x11 backends]
6269
6270 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6271
6272         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
6273         if the handle is disabled.
6274         [Fixes bug #371751]
6275
6276 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6277
6278         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
6279         for forms with FormBorderStyle.None.
6280         [Fixes bug #349571]
6281
6282 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6283
6284         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
6285         WM_EXITSIZEMOVE.
6286         [Fixes bug #346529 for the X11 backend]
6287
6288 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6289
6290         * XplatUIX11.cs: 
6291           - Send a mouse Enter message after say dragging the mouse with a 
6292           button down and then release it in another client.
6293           - Reset the cursor to prevent X11 from remembering it and setting it 
6294           before the control gets WM_SETCURSOR.
6295           - Qeueue a mouse move after a mouse enter like win32.
6296           [Fixes bug #323234]
6297
6298 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6299
6300         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
6301         It's sent when the form gets moved, resized, closed.
6302         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
6303         [Fixes bug #359193 for X11]
6304
6305 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6306
6307         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
6308         the build.
6309
6310 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6311
6312         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
6313         group. Fixes the 1.1 build.
6314
6315 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6316
6317         * ListView.cs: Use display indexes for selection in Details view, as
6318         well as do the proper layout based on display indexes for that view
6319         too.
6320
6321 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6322
6323         * ListView.cs: Focused item information is now stored as a display
6324         index, and display indexes are used all over the place for selection,
6325         instead of ListViewItem.Index values, which doesn't give us enough
6326         information to modify the selection in groups mode, and was broken.
6327
6328 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
6329
6330         * Control.cs: Do not fire MouseDown if validation of the control has 
6331         failed.
6332         * Form.cs: Validate the form before closing.
6333         [Fixes bugs #330501 and #353310]
6334
6335 2008-04-18  Andreia Gaita <avidigal@novell.com> 
6336
6337         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
6338           CreateWebBrowserSiteBase implementations
6339         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
6340           Style and TabIndex setters
6341
6342 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6343
6344         * ListViewGroup.cs: When returning the actual item count, return the
6345         proper count for default group.
6346         Fix the tests.
6347
6348 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6349
6350         * ListView.cs:
6351         * ListViewGroup.cs: When calculating groups layout, get the actual
6352         number of items per group, since groups added to the group BUT not
6353         added to the ListView are just ignored, and can cause some nasty
6354         exceptions because of the lack of synchronization. Also for
6355         ListViewGroup don't use lazy initialization for items, since we 
6356         the common scenario is to use it always - and it helps us to  refactor
6357         and clean the .ctor overloads.
6358
6359 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6360
6361         * ListView.cs: When adding an item to a ListViewItemCollection
6362         belonging to a group (ListViewGroup.Items), don't generate a redraw if
6363         the added item hasn't beeen previously added to the ListView instance
6364         refered by the group, since it will be ignored. This should avoid some 
6365         really nasty flickering.
6366
6367 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6368
6369         * ListView.cs: When accessing an item in a specific display
6370         position, use the helper method GetItemAtDisplayIndex, instead of
6371         direct access to the reordered_items_indices array. When doing layout
6372         for groups set the correct Items index for the display position (since
6373         in groups mode items don't have the same position as in Items
6374         collection).
6375         * ListViewGroup.cs: Add a field to store the starting item number,
6376         which is later used when calculating the layout.
6377
6378         Fixes #360805.
6379
6380 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
6381
6382         * Application.cs: Fixed ProductVersion to fallback to the assembly
6383         version. Fixes regression for bug #325413.
6384
6385 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6386
6387         * ListView.cs: New helper method to retrieve an item in a _specific
6388         display_ position (the items can be displayed in a different order
6389         than one of Items collection).
6390         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
6391         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
6392         specific display position (again remember that items can be sorted
6393         different than Items).
6394
6395 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6396
6397         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
6398         list and update it when the collection changes.  We were recreating
6399         this several times per row paint and for every pixel the mouse moved
6400         across the grid.
6401         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
6402         changes.
6403
6404 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6405
6406         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
6407         list to use generics.
6408         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
6409         and remove unneccessay casts.
6410
6411 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6412
6413         * DataGridViewBand.cs: Add internal way to set displayed variable.
6414         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
6415         * DataGridView.cs: Make sure we always keep track of Displayed
6416         rows and columns, and only draw things that are displayed.
6417
6418 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
6419
6420         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
6421           whether the key events are filtered or not. Introduced
6422           PreFilter() process for this purpose. This fixes atokx3/iiimx
6423           shift state issue.
6424
6425 2008-04-16  Andreia Gaita <avidigal@novell.com> 
6426
6427         * HtmlHistory.cs: Implement Length property
6428
6429 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
6430
6431         * DataGridView.cs: Call EndEdit when a sort is performed so we take
6432         away the edit textbox.  Refactor to reuse column sort code.
6433
6434 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
6435
6436         * MenuAPI.cs: Remove the code that save and restore capture status of 
6437         grab_control, this fixes some Menu and Context menu bugs but maybe it can
6438         cause some others, I cant figure the possible problems of this patch but
6439         right now remove the code looks to be better than keep it. This patch fixes
6440         bugs #357638, #378721 and #379570.
6441
6442 2008-04-12  Andreia Gaita <avidigal@novell.com> 
6443
6444         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
6445         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
6446         add missing properties and event handlers.
6447         
6448 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
6449
6450         * ListBox.cs: Make sure the LargeChange we are setting is at least
6451         zero, to prevent an IOORE.  [Fixes bug #379531]
6452
6453 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
6454
6455         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
6456         in DropDownList mode, for each key-press select the next item 
6457         starting with that letter.
6458         For other modes, when no item selected, on arrow-up/-down and open 
6459         drop-down select the first item matching the text in the textbox.
6460
6461 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
6462
6463         * X11Keyboard.cs : Control.FromHandle() could return null
6464           in MoveCurrentCaretPos().
6465
6466 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6467
6468         * ListView.cs: When changing the size in VirtualMode, also Reset the
6469         selection.
6470         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
6471         changing selection info for VirtualMode.
6472         Fixes #372618.
6473
6474 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6475
6476         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
6477         view, don't use LineLimit for the first item - use NoWrap *always*
6478         instead, since ListView.LabelWrap is not used for this view.
6479         Fixes #378054.
6480
6481 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6482
6483         * Binding.cs: Call UpdateIsBinding when setting control - probably
6484         Binding is already usable and we don't need to wait to check the
6485         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
6486         Created, just like 2.0 does.
6487         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
6488
6489 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6490
6491         * Binding.cs: Just realized we don't need to have a handler for
6492         BindingContextChanged, since this info should be now consumed directly
6493         in the BindingManagerBase. And also, the manager.IsBindingSuspended
6494         state info is checked directly, instead of caching it.
6495
6496         * CurrencyManager.cs: IsSuspended should return always false if Count
6497         == 0.
6498
6499 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6500
6501         * Binding.cs: When calling PushData, return if manager.Count == 0,
6502         since we just don't have data to be read. Also, when setting the
6503         Control for binding, hook up some events to refresh the IsBinding
6504         state when BindingContext change or control gets created; use
6505         Control.IsHandleCreated instead of Control.Created check to set
6506         IsBinding state - we *actually* need to modify IsBinding when control
6507         is created, but we don't have any Created event, only HandleCreated.
6508         Fixes part of #349364.
6509
6510 2008-04-11  Geoff Norton  <gnorton@novell.com>
6511
6512         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
6513         warping a null Caret.
6514
6515 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6516
6517         * DataGridView.cs: Implement row/column autosizing methods. Implement
6518         autosorting.
6519         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
6520         * DataGridViewRowCollection.cs: Add an internal sorting method.
6521
6522 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6523
6524         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
6525         value in ListView drawing code.
6526
6527 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6528
6529         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
6530         is clicked.  Respect the user setting Cancel in FileOk.
6531
6532 2008-04-11  Geoff Norton  <gnorton@novell.com>
6533
6534         * ListView.cs: Avoid setting and resetting control Width/Heights and
6535         calculate the final value and set it once.  Prevents a feedback loop
6536         on the mac.
6537
6538 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6539
6540         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
6541         [Fixes bug #378869]
6542
6543 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
6544
6545         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
6546           Add some on-the-spot code, but it seems we don't need it.
6547
6548 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6549
6550         * Form.cs: Add method for DataGridView to trigger focus cues
6551         even when it handles the tab keypress.
6552
6553 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6554
6555         * DataGridView.cs: More keyboard handling, tab, esc.
6556         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
6557         when at the beginning or end of the text in the text box.
6558
6559 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6560
6561         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
6562
6563 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6564
6565         * DataGridView.cs: Some fixups for showing and adding the edit control.
6566         * DataGridViewButtonColumn.cs: Implement ToString.
6567         * DataGridViewCell.cs: Size and position the control simultaneously.
6568         * DataGridViewTextBoxCell.cs: Use base to position control.
6569
6570 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6571
6572         * DataGridViewCell.cs: Fix up some formatting and painting code.
6573         * DataGridViewImageCell.cs: Implement some NIEX methods.
6574
6575 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6576
6577         * ToolStripItemCollection.cs: What moving an item from one owner
6578         to another, remove from source owner before adding to destination.
6579         [Fixes bug #378109]
6580
6581 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6582
6583         * PictureBox.cs: Call Load when ImageLocation is set.
6584         [Fixes bug #378308]
6585
6586 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
6587
6588         * X11Keyboard.cs, XplatUIX11.cs :
6589           Implement over-the-spot mode (with some odd offsets).
6590           - set preedit position when caret is set.
6591           - Wrap XMoveResizeWindow() to move preedit position.
6592
6593 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6594
6595         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
6596         array lenght.
6597
6598 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6599
6600         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
6601         and ScanTableIndex public, it fix compilations errors when compiling
6602         WinForms to generate keyboard layout resources.
6603
6604 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6605
6606         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
6607         different element count than scan table. It prevents some errors in non
6608         standard keyboards.
6609
6610 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
6611
6612         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
6613
6614 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
6615
6616         * DataGridView.cs: Call OnContentClick.
6617         * DataGridViewCell.cs: Do a null check on ValueType instead
6618         of valueType.
6619         * DataGridViewCheckBoxCell.cs: Implement.
6620
6621 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6622
6623         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
6624
6625 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6626
6627         * X11Keyboard.cs : Check XGetIMValues() return value in
6628           case it does not return input styles in some environment.
6629
6630 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6631
6632         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
6633
6634 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6635
6636         * BindingContext.cs: Stub UpdateBinding method.
6637
6638 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
6639
6640         * X11Structs.cs : added couple of structs for XIM support.
6641         * X11Keyboard.cs :
6642           Release XIM in case it failed to create XIC. 
6643           Use consts for XNblah string.
6644           Add support for IM style customization and XIC creation
6645           for preedit-position and preedit-callback.
6646           Right now use MONO_WINFORMS_XIM_STYLE environment variable
6647           (list of: over-the-spot | on-the-spot | root). Only root
6648           mode works so far.
6649
6650           (redoing r99172 with fix.)
6651
6652 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6653
6654         * TreeView.cs: Center the checkbox a little better.
6655
6656 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6657
6658         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
6659         Apply very nice patch from Ernesto Carrea that simplifies our
6660         scrollbar drawing.  [From bug #376146]
6661
6662 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6663
6664         * TreeView.cs: Correct the location of the root node checkbox when
6665         ShowRootLines = false.  Don't draw the root lines for the root node
6666         when ShowRootLines = false.  [Fixes bug #377535]
6667
6668 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
6669
6670         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
6671         Fixed line endings.
6672         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
6673         line endings.
6674         * MaskedTextBox.cs: Added missing attribute. Code formatting.
6675         * PageSetupDialog.cs: Added missing attribute. Code formatting.
6676         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
6677         * ImeMode.cs: Added missing field.
6678         * HtmlWindow.cs: Code formatting. Fixed line endings.
6679         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
6680         warnings.
6681         * HtmlHistory.cs: Code formatting. Fixed line endings.
6682         * HtmlDocument.cs: Code formatting. Fixed line endings.
6683         * ToolStripPanel.cs: Added missing IList implementation.
6684         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
6685
6686 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
6687
6688         * BindingContext.cs: Changed argument names to fix corcompare errors.
6689         * DataGridView.cs: Removed extra explicit interface implementation
6690         of IDropTarget. Code formatting.
6691         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
6692         * ComboBox.cs: Changed argument names to fix corcompare errors.
6693         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
6694         errors.
6695         * GridColumnStylesCollection.cs: Changed argument names to fix
6696         corcompare errors. Removed extra tabs.
6697         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
6698         errors.
6699         * Control.cs: Changed argument names to fix corcompare errors. Code
6700         formatting. Removed extra explicit IList implementation.
6701         * TextBox.cs: Changed argument names to fix corcompare errors. Code
6702         formatting. Use string.Empty instead of "".
6703         * GridItemCollection.cs: Changed argument names to fix corcompare
6704         errors. Code formatting.
6705         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
6706         corcompare errors. Code formatting.
6707         * ImageList.cs: Changed argument names to fix corcompare errors.
6708         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
6709         * DataGridViewRowCollection.cs: Changed argument names to fix
6710         corcompare errors. Code formatting.
6711         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
6712         * DataGridViewSelectedCellCollection.cs: Changed argument names to
6713         fix corcompare errors. Code formatting.
6714         * DataGridViewComboBoxCell.cs: Changed argument names to fix
6715         corcompare errors. Code formatting.
6716         * LinkLabel.cs: Changed argument names to fix corcompare errors.
6717         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
6718         formatting.
6719         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
6720         Code formatting.
6721         * BindingSource.cs: Changed argument names to fix corcompare errors.
6722         Removed extra explicit interface implementations.
6723         * DataGridViewSelectedRowCollection.cs: Changed argument names to
6724         fix corcompare errors. Code formatting.
6725         * ToolStripItemCollection.cs: Removed extra explicit interface
6726         implementation of IList.ReadOnly.
6727         * DataGridViewColumnCollection.cs: Changed argument names to fix
6728         corcompare errors. Code formatting.
6729         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
6730         * ListView.cs:  Changed argument names to fix corcompare errors.
6731         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
6732         errors.
6733         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
6734         errors.
6735         * ListBindingHelper.cs: Changed argument names to fix corcompare
6736         errors.
6737         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
6738         fix corcompare errors. Code formatting.
6739         * ToolStripPanel.cs: Removed extra explicit implementation of
6740         IDropTarget interface.
6741         * ListBox.cs: Changed argument names to fix corcompare errors. Code
6742         formatting. Removed extra tabs and spaces.
6743         * DataGridViewCellCollection.cs: Changed argument names to fix
6744         corcompare errors.
6745         * Help.cs: Changed argument names to fix corcompare errors. Code
6746         formatting.
6747         * TabControl.cs: Changed argument names to fix corcompare errors.
6748         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
6749         errors.
6750         * TableLayoutSettings.cs: Changed argument names to fix corcompare
6751         errors.
6752
6753 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6754
6755         * ListBindingHelper.cs: When returning properties, only return those
6756         that are browsable. Also, don't do a linear search of the properties,
6757         but use the indexer of the PropertyDescriptorCollection class.
6758
6759 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6760
6761         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
6762         Dictionary containing the related (child) currency managers. Also,
6763         when setting DataSource, add datasource to our List if it is not a list.
6764
6765 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6766
6767         * PropertyGridTextBox.cs: Fix background color of the buttons.
6768         * PropertyGridView.cs: Make the entry less jumpy.
6769
6770 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6771
6772         * PropertyGrid.cs: Fix unused variable warnings.
6773
6774 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6775
6776         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
6777         double-click. It expanded it once in the mouse down and then 
6778         again in the double-click handler.
6779
6780 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6781         
6782         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
6783         TypeConverter and UITypeEditors.
6784
6785 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6786
6787         * Control.cs: Visibility should be set synchronously, 
6788         so we must also redraw once it is and not rely on layouting or 
6789         other code to repaint.
6790         [Fixes bug #339898]
6791
6792 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
6793
6794         * DataGridViewCell.cs: Respect DataGridView.GridColor.
6795
6796 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6797
6798         * Control.cs: Invalidate when the alpha channel is less than 255,
6799         not only when control is transparent.
6800
6801 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6802
6803         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
6804         Implement some painting convenience methods that threw NIEX.
6805
6806 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6807
6808         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
6809         * DataGridViewLinkCell.cs: Implement.
6810
6811 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
6812
6813         * GridEntry.cs: Report the conversion exception error description.
6814         [Fixes bug #375792]
6815
6816 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
6817
6818         * PropertyGridView.cs: Do not scroll to item on resize.
6819         [Fixes bug #375789]
6820
6821 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6822
6823         * BindingContext.cs: When retrieving a BindingManagerBase, if the
6824         dataSource parameter is ICurrencyManagerProvider, then return
6825         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
6826         instead of creating a new one.
6827
6828 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6829
6830         * BindingSource.cs: Implement support for Type instances as
6831         DataSource.
6832
6833 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
6834
6835         * DataGridView.cs: Minor cleanups and call CellMouseUp.
6836         * DataGridViewCell.cs: Make some painting routines internally virtual.
6837         * DataGridViewButtonCell.cs: Implement.
6838
6839 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
6840
6841         * Control.cs: We always need to invalidate our children with
6842         transparent backgrounds when we are invalidated.
6843         [Fixes bug #376081]
6844
6845 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6846
6847         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
6848         and CancelCurrentEdit on CurrencyManager respectively. Implement
6849         support for ICancelAddNew too.
6850
6851 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6852
6853         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
6854         call EndNew/CancelNew if list is ICancelAddNew.
6855
6856 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
6857
6858         * DataGridView.cs: Guard against an exception while painting
6859         if there are no rows.
6860
6861 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
6862
6863         * DataGridView.cs: Implement a bunch of keyboard commands.
6864
6865 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
6866
6867         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
6868         isn't set, don't call OnPaint.  [Fixes bug #375300]
6869
6870 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6871
6872         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
6873         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
6874         hookup the remaining events related to CurrencyManager, and fire
6875         OnListChanged also for the Clear () method.
6876
6877 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6878
6879         * BindingSource.cs: Use Current and Position implementations in
6880         CurrencyManager instead of using our own routines, since we need 
6881         to be in synch with it. Count should NEVER return a -1 value, and 
6882         also report ListChanged events for both simple IList data 
6883         sources (manually) as well for IBindingList ones (by hooking up an
6884         event handler for it).
6885
6886 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6887
6888         * BindingSource.cs: Make one .ctor call the another, to avoid
6889         duplicate code. Add the CurrencyManager property, and also for AddNew
6890         throw the proper exceptions and show better error messages.
6891
6892 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6893
6894         * ComboBox.cs: Only adjust selectedindex if Handle has been
6895         created.  Fixes failing test.
6896
6897 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6898
6899         * ComboBox.cs: Adjust selectedindex if we insert a new item
6900         above the current selectedindex in a sorted ComboBox.
6901         [Fixes bug #374654]
6902
6903 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6904
6905         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
6906         [Fixes bug #374712]
6907
6908 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6909
6910         * DataGridViewTextBoxCell.cs: Implement stuffs.
6911
6912 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6913
6914         * TreeView.cs: Create the scrollbars even earlier to be
6915         double dog certain they are created before they are accessed.
6916
6917 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6918
6919         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
6920
6921 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6922
6923         * ScrollBar.cs: Create an internal safe Value setter so we
6924         won't crash if we try to set a value outside the min and max.
6925         * TextBoxBase.cs: Use safe value setter to guard against a
6926         potential NRE that is being reported by Reflector.
6927
6928 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6929
6930         * TreeView.cs: Create the scrollbars earlier in the constructor
6931         to attempt to guard against an NRE in SetTop in Reflector.
6932
6933 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6934
6935         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
6936         DataGridViewRowCollection.cs: Do not scroll column and row headers,
6937         show messagebox on data format error, use column display index
6938         correctly, make sure HitTest supports new layout stuff,
6939         make sure scrollbars support new layout stuff.
6940
6941 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
6942
6943         * XplatUIX11.cs : Patch by Doug Rintoul.
6944           For some IM engines, keypress events need to delay call
6945           to XPending() and XNextEvent() in the loop so that it
6946           does not mess the orders in XIM commit callback.
6947           Some KeyRelease events such as shift keys need to be
6948           processed both in the IM engine and winforms driver
6949           itself since winforms holds its own state check.
6950
6951           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
6952
6953 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
6954
6955         * X11Keyboard.cs, XplatUIX11.cs :
6956           add primitive support for XIM input support (preedit-
6957           nothing and status-nothing). It requires precise event
6958           capturing (XSelectInput/"filterEvents") and different
6959           call to XFilterEvent against root window.
6960           Get composed string and send dummy WM_IME_COMPOSITION.
6961           Free XIM and XIC instances in finalizer.
6962
6963           (This first patch does not include suggested changes
6964            by Doug Rintoul. It will follow.)
6965
6966 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6967
6968         * DataGridView.cs: When binding to a property, if the property
6969         doesn't have a setter, set the column to readonly.
6970         [Fixes bug #343965]
6971
6972 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6973
6974         * ComboBox.cs: Guard against NRE if an arrow key is hit while
6975         we aren't dropped down.  Support Home/End in DropDownList mode.
6976         [Fixes bug #371990]
6977
6978 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6979
6980         * TreeNodeCollection.cs: Don't increment count until we've
6981         saved our index to return.
6982         [Fixes bug #373603]
6983
6984 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6985
6986         * Label.cs: Add padding to the label's AutoSize calculation.
6987         [Fixes bug #373792]
6988
6989 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6990
6991         * ListBindingHelper.cs: Actually implement GetListName method.
6992
6993 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6994
6995         * BindingSource.cs: Throw the propert expceptions for some methods, as
6996         well as detect the list item type for Add method if DataSource is null.
6997
6998 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6999
7000         * DataGridViewCell.cs: I don't know why I commented this out,
7001         putting it back for now.
7002
7003 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7004
7005         * DataGridViewCell.cs: Remove storage for owning column, just
7006         use column index.
7007         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
7008         * DataGridViewColumnHeaderCell.cs: If the header text has been
7009         explicitly set, return it.
7010         [Fixes bug #325979]
7011
7012 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7013
7014         * DataGridViewRowCollection.cs: Disable row sharing when
7015         using data binding.  Its a great feature, but lets work on
7016         getting DGV usable first before we worry about optimizations.
7017
7018 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7019
7020         * BindingSource.cs: When resetting our internal list, compute list
7021         item type information to be used for indirect list access. Also
7022         implement/tune some properties and methods related to the list access
7023         too.
7024         * ListBindingHelper.cs: Add a stub for GetListName method, used from
7025         BindingSource.
7026
7027 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7028
7029         * DataGridView.cs: If RowCount is increased while ColumnCount
7030         is zero, add a column.  [Fixes bug #331649]
7031
7032 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7033
7034         * DataGridViewRowCollection.cs: When adding new rows for
7035         databinding, make sure they are place before the add row.
7036         [Fixes bug #343961]
7037
7038 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7039
7040         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
7041         instead of Index order.
7042
7043 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7044
7045         * DataGridView.cs: If columns are added by increasing ColumnCount,
7046         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
7047         [Fixes bug #325588]
7048
7049 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7050
7051         * DataGridView.cs: Turn off and on the "new row" when 
7052         AllowUserToAddRows is toggled.  When the handle is created,
7053         set current cell and selected cell/row/col.
7054
7055 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7056
7057         * ComboBox.cs: When navigating the drop down by keyboard, we
7058         need to scroll the list box if our selection moves out of the
7059         currently shown items.  [Fixes bug #371990]
7060
7061 2008-03-24  Luke Page <luke.a.page@gmail.com>
7062
7063         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
7064         on the control. Also now handles unicode compatibility characters and
7065         stores the unicode compatibility length on the stack. Fixes Bugs
7066         #355198 and #366436.
7067
7068 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7069
7070         * BindingSource..cs: Take into account DataMember when re-creating the
7071         List property, and also create a specific kind of list as needed.
7072
7073 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7074
7075         * ListBindingHelper.cs: Add a new case for GetList () method - when we
7076         get an empty IEnumerable, try to detect whether the datamember is
7077         valid or not for that type, if true, return null, and throw exception
7078         otherwise.
7079
7080 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
7081
7082         * ComboBox.cs: Alt-Down should drop down the list, Esc should
7083         retract it.  [Fixes bug #371989]
7084
7085 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
7086
7087         * PropertyGrid.cs: Initialize the sorting button as pushed.
7088
7089 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
7090
7091         * PropertyGrid.cs: 
7092          - Visually select the PropertyTab.
7093          - Filter Properties by Attributes properly.
7094
7095 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7096
7097         * MenuItem.cs: Remove menu item from parent when disposed.
7098         [Fixes bug #372845]
7099
7100 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7101
7102         * ToolBar.cs: Don't reset layout_type if Dock = None.
7103
7104 2008-03-21  Andreia Gaita <avidigal@novell.com> 
7105
7106         * UserControl.cs: Select the first available control when we get focus.
7107           Fixes #372616
7108
7109 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7110
7111         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
7112         the content if we are in edit mode.  [Fixes bug #343964]
7113
7114 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7115
7116         * DataGridViewCell.cs: Fix border painting for column headers.
7117
7118 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7119
7120         * BindingSource.cs: When setting or resetting data source,
7121         use ListBindingHelper.GetList () method, since it will get the list in
7122         case datasource is IListSource.
7123
7124 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
7125
7126         * DataGridViewCell.cs: Implement lots more stuffs.
7127
7128 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7129
7130         * PropertyGridView.cs, GridEntry.cs: Implement support for 
7131         UITypeEditor.IsDropDownResizable.
7132
7133 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
7134
7135         * DataGridViewCell.cs: Remove unused variables, improve how
7136         several of the property getters work.
7137         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
7138         get its size from the parent row/col.
7139
7140 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7141
7142         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
7143         user alters manually the PropertyTabs collection via the 
7144         PropertyTabs property.
7145
7146 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7147
7148         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
7149         new tests for them to be sure to be compatible with .net.
7150
7151 2008-03-20  Andreia Gaita <avidigal@novell.com> 
7152
7153         * WebBrowserBase.cs: Fix attributes, add events
7154         * WebBrowser.cs: Fix Padding signature
7155
7156 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7157
7158         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
7159
7160 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
7161
7162         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
7163         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
7164         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
7165         passes the new suite of tests for it.
7166
7167 2008-03-18  Andreia Gaita <avidigal@novell.com> 
7168
7169         * WebBrowser.cs: Add missing attributes, missing Padding and
7170           DefaultSize properties, remove extraneous getters
7171
7172 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7173
7174         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
7175         method overloads.
7176
7177 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7178
7179         * ComboBox.cs: Move resetting the selected index to keypress
7180         instead of textchanged.  Changing the text programmatically
7181         should not trigger resetting the selected index.  Fixes test.
7182
7183 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7184
7185         * ComboBox.cs: When the user types into the textbox, reset
7186         the selected index to -1.  [Fixes bug #371672]
7187
7188 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7189
7190         * FileDialog.cs: Support Control-A for selecting everything
7191         in an OpenFileDialog.  [Fixes bug #371564]
7192
7193 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
7194
7195         * DataGridView.cs: When row/column visible/height properties
7196         change, invalidate.  Take the NIEX out of InvalidateRow/Column
7197         etc.  We don't support them yet, but we can just invalidate
7198         everything until we do support them.  (Added MonoTODO).  Set
7199         proper control styles.
7200         * DataGridViewRow.cs: Don't call PaintHeader if row headers
7201         are turned off. 
7202
7203 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7204
7205         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
7206
7207 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
7208
7209         * DataGridViewRow.cs: Only paint the white background in
7210         cell bounds, the row bounds extends past the cells if the 
7211         grid width isn't as wide as the DGV.
7212
7213 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
7214
7215         * DataGridView*: Completely revamp the drawing to match the
7216         public API.  Our grids now look better, and call all the
7217         appropriate methods and event to allow users to override
7218         the painting and do their own.
7219
7220 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7221
7222         * ListBindingHelper.cs: Implement 2.0 GetList methods.
7223
7224 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7225
7226         * DataGridView.cs: Implement BorderStyle.
7227
7228 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7229
7230         * FileDialog.cs: Apply patch from Andy Hume: Any time we
7231         are comparing attributes, make sure we only look at the
7232         one we are interested.  These calls were failing if there
7233         were more than one attribute.
7234         [Fixes bug #370385]
7235
7236 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7237
7238         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
7239
7240 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7241
7242         * PageSetupDialog.cs: Stub EnableMetric.
7243         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
7244         * PrintPreviewDialog.cs: Add ProcessDialogKey,
7245         ProcessTabKey.
7246
7247 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7248
7249         * MonthCalendar.cs: Remove unused variable.
7250
7251 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7252
7253         * DataGridView*.cs: corcompare stuffs.
7254
7255 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7256
7257         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
7258         The savings aren't worth the extra code to fix the optimization.
7259         [Fixes bug #368585]
7260
7261 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7262
7263         * ToolBar.cs: Always call base.Dock in the Dock override so that
7264         Control's layout_type gets reset correctly.
7265         [Fixes bug #368882]
7266
7267 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
7268
7269         * X11Dnd.cs: End DnD operation also for the middle mouse button.
7270
7271 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7272
7273         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
7274         at the same time we do explicit ones, because we have to give all
7275         other controls on the container a chance to handle explicit ones
7276         first.  If no one has an explicit mnemonic, then we can let the
7277         MenuStrip have a shot at implicit mnemonics.
7278         * MenuStrip.cs: Create an implicit mnemonic function.
7279         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
7280         mnemonics for MenuStrips.
7281         [Fixes bug #368493]
7282
7283 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7284
7285         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
7286         DataGridColumnStyle.cs: corcompare stuffs.
7287
7288 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7289
7290         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
7291         Details - This is needed after we added the bits to use any available
7292         column also for List and SmallIcon view. 
7293
7294 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7295
7296         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
7297         at the proper place, not only when changing SelectedIndex and changing
7298         the selection using keys/mouse, as .net does.
7299
7300 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7301
7302         * ControlBindingsCollection.cs: Implement last 2.0
7303         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
7304         in the new 2.0 Add methods.
7305
7306 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7307
7308         * ListBox.cs: When calling SelectedIndexCollection.Clear,
7309         return if no items are previously selected - this is done to avoid 
7310         firing OnSelectedIndexChanged without need to do so. Also,
7311         when creating handle ensure that the focused item is visible (as
7312         .net does).
7313
7314 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7315
7316         * ListBox.cs: Rewrote/refactored most of selection code. We require
7317         the following things in selection: a) keep selection sorted (both
7318         indices and items), b) SelectedIndices automatically detect the
7319         selection mode, c) SelectedIndex should be the first selected item
7320         index, d) Need to Focus/adjust scroll bar when selecting a new item,
7321         not only for SelectedIndex, which is specially important in Multi*
7322         selection modes. To achieve this we are moving the selection core to
7323         SelectedIndexCollection and make depend all selection modifications on
7324         it.
7325         Fixes #366438.
7326
7327 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7328
7329         * ToolStrip.cs: Enable implicit mnemonics for drop down
7330         menu strips.  [Fixes part of bug #367692]
7331
7332 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7333
7334         corcompare - fix parameter names [stragglers].
7335         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
7336         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
7337         TabControl.cs.
7338
7339 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7340
7341         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
7342         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
7343         mnemonic, let the ToolStripManager have it even if it doesn't
7344         have a matching mnemonic.
7345         [Fixes bug #367499]
7346
7347 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7348
7349         corcompare - fix warning about implicit implementation
7350         * ToolStrip.cs: Add IToolStripData interface.
7351         * IToolStripData.cs: Add.
7352
7353 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7354
7355         corcompare - fix warning about implicit implementation
7356         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
7357         * IBounds.cs: Add.
7358
7359 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7360
7361         corcompare - fix parameter names [N-Z].
7362         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
7363         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
7364         PropertyManager.cs, RichTextBox.cs,
7365         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
7366         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
7367         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
7368         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
7369         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
7370         ToolStripContentPanel.cs, ToolStripDropDown.cs,
7371         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
7372         ToolStripPanel.cs, ToolStripSeparator.cs,
7373         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
7374         UICuesEventHandler.cs, UpDownBase.cs.
7375
7376 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7377
7378         corcompare - fix parameter names [G-M].
7379         GridColumnStylesCollection.cs, GridItemCollection.cs,
7380         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
7381         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
7382         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
7383         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
7384         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
7385
7386 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7387
7388         corcompare - fix parameter names [A-F].
7389         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
7390         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
7391         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
7392         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
7393         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
7394         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
7395         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
7396
7397 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
7398
7399         * GridEntry.cs: Do not convert not only if the types match, 
7400         but also if the property type is assigneable from the value's
7401         type.
7402         [Fixes bug #366566]
7403
7404 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
7405
7406         * PropertyGridView.cs: 
7407          - Subscribe to the listbox only once and not everytime.
7408          - Update the textbox even if SetValue fails.
7409          - Close the listbox before calling TrySetValue just in case.
7410          [Fixes bug #366569]
7411
7412 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
7413
7414         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
7415
7416 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7417
7418         * ListView.cs: Implement support for custom column width based on
7419         Columns collection (we were previously using this collection only
7420         with Details view).
7421         Fixes #364484.
7422
7423 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7424
7425         * ListViewItem.cs: For Tile view, always set bounds for the first
7426         subitem (which is the main one), and also don't let Width be larger
7427         than ListView.TileSize.Width. Improve code readibility also.
7428         * ThemeWin32Classic.cs: When painting the ListViewItem instances
7429         in Tile view, _always_ use the NoWrap flag.
7430         Fixes #360798.
7431
7432 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
7433
7434         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
7435         in case.
7436         * GridEntry.cs: For MS compitability make all child properties 
7437         readonly if the parent is readonly. Ugh.
7438         [Fixes bug #365945 and #365944]
7439
7440 2008-02-29  Andreia Gaita <avidigal@novell.com> 
7441
7442         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
7443           relative to the history
7444
7445 2008-02-29  Andreia Gaita <avidigal@novell.com>
7446
7447         * HtmlElement.cs: More handlers for mouse and key events
7448
7449 2008-02-28  Andreia Gaita <avidigal@novell.com>
7450
7451         * WebBrowserBase.cs: MouseClick sig changed.
7452         * HtmlHistory.cs: Implement history navigation
7453         * HtmlElement.cs: Add event handlers, and connect them.
7454
7455 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
7456
7457         * GridEntry.cs: 
7458          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
7459            so that DisplayNameAttribute doesn't get ignored.
7460          - Check for ParenthesizeNameAttribute and parenthesize the Label.
7461          - Add support for PasswordPropertyTextAttribute
7462         * PropertyGridView.cs: Check if an entry is a password.
7463         [Fixes bugs #365589, #365586, #365588]
7464
7465 2008-02-28  Andreia Gaita <avidigal@novell.com>
7466
7467         * PropertyGridView.cs: Revert the message filtering change, as we
7468         need it to block after all. Remove block parameter, unnecessary.
7469
7470 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
7471
7472         * UserControl.cs: Better implementation of GetPreferredSize.
7473         First step to fixing bug #361441.
7474
7475 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7476
7477         * Binding.cs: Actually implement data binding support for 
7478         classes implementing IBindableComponent.
7479         * ControlBindingsCollection.cs: Likewise.
7480
7481 2008-02-26  Andreia Gaita  <avidigal@novell.com>
7482
7483         * PropertyGridView.cs: Use a message filter to check when to 
7484         close the dropdown
7485
7486 2008-02-26  Andreia Gaita  <avidigal@novell.com>
7487
7488         * Application.cs: Change the message_filters loop so a filter 
7489         can be removed while looping.
7490
7491 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
7492
7493         * GridEntry.cs: Optimization in ToggleValue so that it caches
7494         the current value.
7495         * PropertyGridView.cs: An optimization so that the property isn't 
7496         re-read twice for each StandardValue added to the drop-down menu.
7497         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
7498         license.
7499         [Fixes bug #362755]
7500
7501 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
7502
7503         * Application.cs: Apply patch from Justin Cherniak to match
7504         MS better for ProductName, ProductVersion, and CompanyName.
7505         [Fixes bug #361709]
7506
7507 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7508
7509         * Binding.cs: Actually implement 2.0 NullValue property. Also
7510         when changing the formatting related properties, only update the state
7511         if formatting_enabled is true (we don't mind otherwise).
7512
7513 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
7514
7515         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
7516         [Fixes bug #364486]
7517
7518 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
7519
7520         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
7521         of GetType on the current value as it uses reflection to 
7522         determine the type. This fixes the case where the new value is 
7523         null. 
7524
7525 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
7526
7527         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
7528         past the view.
7529
7530 2008-02-24  Luke Page  <luke.a.page@gmail.com>
7531
7532         * Line.cs, TextControl.cs: Implement offset x and y so that a
7533         document doesn't have to begin  at (0,0) on the viewpoint.
7534         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
7535         bars and switches the text alignment (and therefore is now
7536         implemented for textbox). Fixes #321383.
7537
7538 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7539
7540         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
7541         properties. Also when changing FormattingEnabled update the control
7542         property -as .Net does-.
7543
7544 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
7545
7546         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
7547         * Binding.cs: Add stubs for the overloads of the Add method in
7548         CBCollection.
7549
7550 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7551
7552         * Binding.cs: PullData () returns a false value if we got an exception.
7553         Also when validating the control and we get an error, instead of
7554         setting the value of the previous one, cancel the event (tested in 1.1
7555         and 2.0).
7556
7557 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
7558
7559         * TreeView.cs: Make selected_node and highlighted_node internal.
7560         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
7561         to null when Nodes.Clear is called.
7562         [Fixes bug #363884]
7563
7564 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7565
7566         * FontDialog.cs: Ensure that when the Font is set in code,
7567         all the gui pieces are updated accordingly.
7568         [Fixes bug #361020]
7569
7570 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7571
7572         * TextRenderer.cs: Respect proposed size for MeasureString.
7573         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
7574         autosize, use a proposed width to force wrapping for long text.
7575         [Fixes bug #360981]
7576
7577 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7578
7579         * TreeView.cs: Factor in checkboxes = false and state images in
7580         to HitTest.  [Fixes bug #363360]
7581
7582 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7583
7584         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
7585         when drawing the selected range.
7586         [Fixes bug #363648]
7587
7588 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7589
7590         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
7591         ResizeRedraw control styles.
7592         [Fixes bug #363555]
7593
7594 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7595
7596         * TreeView.cs: StateImages are basically custom checkboxes, so
7597         factor their size the same as real checkboxes when determining
7598         what got clicked.
7599         [Fixes bug #363367]
7600
7601 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7602
7603         * MessageBox.cs: Make the message box wider if the form caption
7604         is longer than the text in the form.
7605         [Fixes bug #361137]
7606
7607 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
7608
7609         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
7610
7611 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7612
7613         * TreeNode.cs: Guard against an NRE when the parent's
7614         StateImageList hasn't been set.
7615         [Fixes bug #363353]
7616
7617 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7618
7619         * SplitContainer.cs: Add SupportsTransparentBackColor and
7620         OptimizedDoubleBuffering control styles.
7621         [Fixes bug #363303]
7622
7623 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7624
7625         * Application.cs: For the app data paths and the registry key paths,
7626         ensure they are created before returning them to the user.
7627         [Fixes bug #361709]
7628
7629 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7630
7631         * Application.cs: Guard against an NRE in CompanyName and
7632         ProductName.
7633
7634 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7635
7636         * Application.cs: For CompanyName, ProductName, and ProductVersion,
7637         make sure we handle all three cases correctly: attribute is present,
7638         attribute is present but is an empty string, and attribute is not
7639         present.
7640
7641 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
7642
7643         * PropertyGridView.cs: 
7644          - Fix a NRE that caused a test failure
7645          - Another performance improvement - cache the standard values
7646          listbox.
7647
7648 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7649
7650         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
7651         code paths.
7652
7653 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
7654
7655         * PropertyGridView.cs: Fix a big performance bug.
7656
7657 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7658
7659         * SelectionRange.cs: Apply patch from Andy Hume to make
7660         constructor behavior more accurate.  [Fixes bug #362117]
7661
7662 2008-02-19  Andreia Gaita <avidigal@novell.com> 
7663
7664         * Control.cs: Added a new flag is_disposing to track if the
7665         window is currently in the process of being disposed of.
7666         This is used so that, when firing visibility changes triggered
7667         by unparenting controls during Dispose, the control doesn't
7668         get created again.      
7669
7670 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7671
7672         * ComboBox.cs: Set height to preferred height when the handle
7673         is created.  [Fixes bug #360862]
7674
7675 2008-02-18  Andreia Gaita <avidigal@novell.com>
7676
7677         * XplatUIX11.cs: Create FosterParent with border width at 0.
7678         With the previous value of 4, everytime a control got reparented
7679         from parent = null, it's location would be shifted right and 
7680         down by 4, since these coordinates would be offset by the 
7681         FosterParent's border width.
7682
7683 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
7684
7685         * Control.cs: During diposing firstly remove ourselfes from
7686         the parent and *then* destroy our handle, because removing
7687         ourselfes from the parent controls collection causes 
7688         VisibilityChange, etc events, which require a handle and end
7689         up recreating the control.
7690
7691 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
7692
7693         * GridEntry.cs: Set expanded state before notifying that the
7694         expansion has taken place.
7695         * PropertyGridView.cs:
7696          - Set the propertygridtextbox text to the selected 
7697          StandardValue before proceeding to setting it.
7698          - Scrolling bugfixes.
7699
7700 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7701
7702         * GridEntry.cs:
7703          - Fix ValueText to not return null.
7704          - Fix conversion error reporting to actually happen.
7705         * PropertyGridView.cs: Set entry only if the text has changed.
7706         [Fixes bug #362116]
7707
7708 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7709
7710         * GridEntry.cs: 
7711          - Fix handling of a null current value.
7712          - Swallow editor exceptions.
7713         [Fixes bug #362114]
7714
7715 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7716
7717         * PropertyGrid.cs: Clear current items first thing before 
7718         repopulating subitems.
7719         * GridEntry.cs: 
7720          - Handle null StandardValuesCollection.
7721          - Mark as not editable if there is no PropertyDescriptor and
7722          if the Converter cannot convert from string.
7723         [Part of fix for bugs #360666 and #358332]
7724
7725 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7726         * MaskedTextBox.cs: Now skips non editable characters after a
7727         character has been entered and we are progressing to the next
7728         position in the MaskedTextBox.
7729
7730 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7731         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
7732         that it changes the selection rather than just repositioning the
7733         cursor. Fixes Bug #360873.
7734
7735 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7736         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
7737         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
7738         correctly. See #359330
7739
7740 2008-02-15  Andreia Gaita <avidigal@novell.com>
7741
7742         * XplatUIX11.cs: If the handle is null when posting a message, use the
7743         current thread queue to post instead. Fixes #332409
7744
7745         * SendKeys.cs: Slight optimization
7746
7747 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
7748
7749         * PropertyGrid.cs, PropertyGridView.cs:
7750         Fix multiple scrolling and sizing issues.
7751         [Fixes bug #359199]
7752
7753 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7754
7755         * PropertyGridView.cs: Ensure that drop down editors are shown
7756         in the WorkingArea of the screen.
7757         [Fixes bug #359807]
7758
7759 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7760
7761         * GridEntry.cs: Fail silently when UITypeEditor is missing.
7762         [Fixes bug #360666]
7763
7764 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7765
7766         * Binding.cs: Implement 2.0 DataSourceNullValue property.
7767
7768 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7769
7770         * PropertyGridView.cs:
7771          - Clear the controls in the drop down form after it is hidden.
7772          - Fix Width sizing of the dropdown editors to match MSFT.
7773
7774 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7775
7776         * PropertyGridView.cs: 
7777          - Fix height for drawing the grid entry
7778          text value, so that it clips multiline text properly.
7779          - Fix unfocusing to match MSFT.
7780
7781 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7782
7783         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
7784         Fixes a bug where on repopulation after value changed items become
7785         expandable.
7786
7787 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7788
7789         * Binding.cs: For the 2.0 profile, look for a 
7790         'PropertyChanged' event in the target control, and add checks for
7791         DataSourceUpdateMode property to change -or not- the data source
7792         from validation/control property change.
7793
7794 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
7795
7796         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
7797           not compare struct with null in 2.0).
7798
7799 2008-02-10  Luke Page <luke.a.page@gmail.com>
7800
7801         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
7802         updates the provider and if not using a provider, uses the internal document
7803         class implementation of password char. Also when showing text, uses display string
7804         from the provider, instead of the actual text.
7805
7806 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7807
7808         * Binding.cs: Ooooops, forgot to take into account the data_source
7809         and binding_member_info null case (it was breaking the Binding tests).
7810
7811 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7812
7813         * Binding.cs: Implement support for data source changes exposed by
7814         'PropertyNameChanged' events, and update the control property as
7815         needed.
7816
7817 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7818
7819         * Binding.cs: Implement 2.0 WriteValue method.
7820
7821 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7822
7823         Commit patch from James Purcell for better AutoScale implementation:
7824
7825         * ScaleControl should call GetScaledBounds with the control's total size rather
7826         than client size.  GetScaledBounds should handle ignoring the borders in its
7827         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
7828         (for the most part they just call the base code now since that is fixed).
7829         * Added ScaleChildrenInternal to allow controls to disable scaling of children
7830         without having to override ScaleChildren (since none of .NET's controls do). 
7831         This is required for most controls in Mono that have scrollbars to prevent the
7832         scrollbars from being moved/resized.
7833         * Nested ContainerControls can have a different scale mode than their parent. 
7834         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
7835         designer produce different results both of which look incorrect).
7836         * Default AutoScaleMode for ContainerControl should be Inherit.
7837         * Simplified workaround for ComboBox scaling issue.
7838         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
7839         1.0 style auto scaling should scale the whole control's size instead of
7840         ignoring the borders (except for Form) and the rounding is done differently to
7841         preserve control alignment.
7842         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
7843         GetAutoScaleSize.
7844         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
7845         * CurrentAutoScaleDimensions should round the estimated character width instead
7846         of truncating.
7847         * ListBox's GetScaledBounds should always use the height it was set to instead
7848         of the height that was passed in.  This prevents rounding errors from
7849         accumulating quickly with IntegralHeight.
7850         [Bug #359098]
7851
7852 2008-02-08  Andreia Gaita <avidigal@novell.com>
7853
7854         * Form.cs: Add a null check (darn it). 
7855
7856 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7857
7858         * MdiClient.cs: Make sure the requesting form actually owns the
7859         control menu items before removing them.  Also, use
7860         Suspend/ResumeLayout when adding or removing items so we only
7861         layout once.
7862         [Fixes bug #359887]
7863
7864 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7865
7866         * Control.cs: Guard against an NRE in ShowFocusCues.
7867         [Fixes bug #359830]
7868
7869 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7870
7871         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
7872         property, as well as stubbing DataSourceUpdateMode.
7873
7874 2008-02-08  Andreia Gaita <avidigal@novell.com>
7875
7876         * Form.cs: When closing forms, get focus back to the active control of the
7877         active form. [Fixes #341314, corner case]
7878         
7879 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7880
7881         * MdiClient.cs: After we move the scrollbars, invalidate the NC
7882         area, so any old scrollbar artifacts are cleaned up.
7883         [Fixes bug #336305]
7884
7885 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7886
7887         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
7888         for our menus, display that control box menu instead of the 1.1
7889         menu one.
7890
7891 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7892
7893         * MdiControlStrip.cs: Add property to access the mdi form tied to
7894         each toolstripitem.
7895         * MdiClient.cs: Be smarter about removing and adding toolstripitems
7896         to the implicitly merged menu.  Every time we clicked the form, items
7897         were getting removed and the re-added, causing the form to jump around
7898         as the menu resized.
7899
7900 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7901
7902         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
7903         was being reset by the implicit menu merge for menustrips.
7904         [Fixes bug #336296]
7905
7906 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7907
7908         * Form.cs: Don't do the previous change when WindowState = Normal,
7909         or it messes up where the window is placed.  Fixes test failure.
7910
7911 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7912
7913         * Form.cs: When becoming visible, if we are an MDI child, call
7914         SetWindowState with a dummy old_state so that changes will actually
7915         be made.
7916         [Fixes the 2nd part of bug #325473]
7917
7918 2008-02-07  Andreia Gaita <avidigal@novell.com>
7919
7920         * Control.cs: Reset properties to their pre parent-change values in case
7921         the new parent == null (in which case we're basically removing the control, 
7922         and don't want any events fired due to fake property changes)
7923         [Fixes #355850]
7924
7925 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
7926
7927         * PropertyGridView.cs: 
7928          - Refactor SetValue to allow setting the value
7929         when a custom editor is used, but the entry is not editable.
7930          - Remove the custom editor control on CloseDropDown.
7931         [Fixes #359196]
7932
7933 2008-02-06  Andreia Gaita <avidigal@novell.com>
7934
7935         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
7936         reflection only on 1.1, this property is public on system.drawing on 2.0.
7937         Fixed #359247
7938
7939 2008-02-06  Andreia Gaita  <avidigal@novell.com>
7940         
7941         * WebBrowser.cs: Do a normal page refresh by default.
7942
7943 2008-02-05  Andreia Gaita  <avidigal@novell.com>
7944
7945         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
7946         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
7947         platforms. Fixes #359036
7948         
7949         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
7950         platform-specific flags.
7951
7952 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7953
7954         * Binding.cs: Add 2.0 BindableComponent property - just return control
7955         by now.
7956
7957 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
7958
7959         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
7960         Jonathan for this patch. Fixes #358442.
7961
7962 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
7963
7964         * Form.cs: If we change the active MDI child form, let the others
7965         know they need to repaint their title bar so it will appear inactive.
7966         [Fixes part 1 of bug #325473]
7967
7968 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
7969
7970          * PropertyGridView.cs: Do not trucate custom editors' width
7971          and align them to the left.
7972          [Fixes #358353 and #358349]
7973
7974 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7975
7976         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
7977         Also fix the arguments passed to CollectionChangeEventArgs in the
7978         related methods.
7979
7980 2008-02-04  Geoff Norton  <gnorton@novell.com>
7981
7982         * Hwnd.cs: The conversion to Quartz coordinates happens in
7983         System.Drawing.  Removing this translation from here.
7984
7985 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
7986
7987          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
7988          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
7989          GridItemCollection.cs:
7990          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
7991
7992 2008-02-04  Geoff Norton  <gnorton@novell.com>
7993
7994         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
7995         SYSKEYUP if any other key has been pressed in the mean time.
7996         Fixes #324404
7997
7998 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7999
8000         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
8001         when the item in current position is different than 0. Also, save the
8002         item index in the beginning of the operation, instead of getting the
8003         index of the item when the event is actually performed. Lastly clean
8004         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
8005         triggered.
8006         [Fixes #357873]
8007
8008 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8009
8010         * Form.cs: Alt-Minus for MDI children system menu should work
8011         with both the minus keys on the keyboard.
8012         [Fixes bug #336295]
8013
8014 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8015
8016         * Control.cs: Don't invalidate on region change.  The WM should
8017         take care of this automagically.  Keeps us out of an infinite
8018         paint loop if someone changes the Region in the OnPaint.
8019         [Fixes bug #358327]
8020
8021 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
8022
8023          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
8024
8025 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8026
8027         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
8028         down the MonthCalendar only on F4, not Alt+F4.
8029         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
8030         [Fixes bug #358340]
8031
8032 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8033
8034         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
8035         if its part of a DateTimePicker, else, use the back color.
8036         [Fixes bug #358339]
8037
8038 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8039
8040         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
8041         [Fixes bug #358342]
8042
8043 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8044
8045         * CurrencyManager.cs: When we get a ListChanged event from our source,
8046         always fire our own ListChanged event, as .Net does.
8047
8048 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8049
8050         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
8051         #358379.
8052
8053 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8054
8055         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
8056         property. Removed if for richtext property that was always true.
8057         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
8058
8059 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8060
8061         * TextBoxBase.cs - commited patch from James Purcell that
8062         correctly sets the FixedHeight control style when the MultiLine
8063         property is changed on a TextBox control. Fixes bug 358229.
8064
8065 2008-02-02  Luke Page  <luke.a.page@gmail.com>
8066
8067         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
8068         Fixes bug 351938 - caret is positioned correctly when drawn
8069         and when calculating textual position of caret, no longer
8070         has a NRE in certain situations.
8071         
8072 2008-02-01  Geoff Norton  <gnorton@novell.com>
8073
8074         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
8075         get that region removed from the paint event.
8076         * XplatUICarbon.cs: Remove the window mapping after disposing of 
8077         window.  Prevents a crash with handle reuse.  Optimize exposes
8078         only onto visible windows (rare; but possible).
8079
8080 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8081
8082         * UpDownBase.cs: Make sure the internal textbox calls the base's
8083         OnMouseDown and OnMouseUp so the textbox will function correctly.
8084         There were notes saying it doesn't chain up, but its an internal
8085         class, so our implementation may differ.
8086         [Fixes bug #357482]
8087
8088 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8089
8090         * ListBox.cs: Fix a logic error and don't process MouseDown
8091         for mouse buttons other than Left.
8092
8093 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8094
8095         * Control.cs: Remove HeightInternal.
8096         * ListBox.cs: Commit patch from James Purcell that correctly
8097         calculates heights for ListBoxen.
8098         [Fixes bug #357152]
8099
8100 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8101
8102         * Label.cs: Apply patch from James Purcell that corrects the 
8103         signature of the AutoSize property.
8104         [Fixes bug #357605]
8105
8106 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8107
8108         * ListBox.cs: Don't throw [Mouse]Click events for buttons
8109         other than the left mouse button.
8110
8111 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
8112
8113         * Control.cs: Remove my awesome optimization as it caused some
8114         regressions with control ordering.  :(
8115         [Fixes bug #357467]
8116
8117 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
8118
8119          * PropertyGridView.cs: Fix a NRE on double click when there is no
8120          selected object.
8121
8122 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8123
8124         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
8125
8126 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
8127
8128         * ListBox.cs: Call MouseClick and MouseDoubleClick.
8129         [Fixes bug #357146]
8130
8131 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8132
8133         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
8134         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
8135         instead of Hwnd.bmp_g.
8136
8137 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8138
8139         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
8140         Use the Hwnd one instead.
8141
8142 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8143
8144         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
8145
8146 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8147
8148         * Form.cs: corcompare for RestoreBounds.
8149
8150 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8151
8152         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
8153
8154 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8155
8156         * Form.cs: Handle Alt-Minus for MDI children forms.
8157         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
8158         Add mnemonics to the control menu.
8159         [Fixes bug #336295]
8160
8161 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8162
8163         * Binding.cs: Initial implementation bits of FormattingEnabled
8164         property and BindingComplete event (2.0). 
8165         * BindingCompleteEventArgs.cs: Internal methods for setting error text
8166         and exception.
8167
8168 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
8169
8170         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
8171         table.Location.  [Fixes bug #354672]
8172
8173 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
8174
8175         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
8176         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
8177
8178 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8179
8180         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
8181         of doing all the re-bound work, just invalidate and call SetControlText 
8182         to set the updated text of selected item to our textbox.
8183         Fixes #333750.
8184
8185 2008-01-28  Andreia Gaita <avidigal@novell.com>
8186
8187         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
8188         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
8189         missing properties and methods. Add Load, Unload, Error, GotFocus, 
8190         LostFocus, Resize, Scroll events (only load and unload are connected)
8191
8192 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
8193
8194         * AccessibleObject.cs: Modified argument names to match MS.
8195         * Button.cs: Modified argument names to match MS.
8196         * BindingContext.cs: Modified argument names to match MS.
8197         * BindingMemberInfo.cs: Modified argument names to match MS.
8198         * ButtonBase.cs: Modified argument names to match MS.
8199         * ComboBox.cs: Modified argument names to match MS.
8200         * Control.cs: Modified argument names to match MS.
8201         * CheckedListBox.cs: Modified argument names to match MS.
8202         * CommonDialog.cs: Modified argument names to match MS.
8203         * DataGrid.cs: Modified argument names to match MS.
8204         * CursorConverter.cs: Modified argument names to match MS.
8205         * ControlPaint.cs: Modified argument names to match MS.
8206         * CheckBox.cs: Modified argument names to match MS.
8207         * ControlBindingsCollection.cs: Modified argument names to match MS.
8208         * BindingSource.cs: Modified argument names to match MS.
8209         * DataFormats.cs: Modified argument names to match MS.
8210         * ContainerControl.cs: Modified argument names to match MS.
8211         * CurrencyManager.cs: Modified argument names to match MS.
8212         * Application.cs: Modified argument names to match MS.
8213         * ContextMenuStrip.cs: Modified argument names to match MS.
8214         * ContextMenu.cs: Modified argument names to match MS.
8215         * BindingManagerBase.cs: Modified argument names to match MS.
8216         * WindowsFormsSection.cs: Fixed line ending.    
8217
8218 2008-01-27  Andreia Gaita <avidigal@novell.com>
8219
8220         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
8221         detecting that the dropdown toolwindow is hidden. EndLoop outside the
8222         while.
8223
8224 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
8225
8226         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
8227         MS. Code formatting.
8228
8229 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8230
8231         * Binding.cs: Don't avoid the Format event if the control 
8232         property type is object. Also, if the value retrieved by 
8233         the data source is null _and_ the control proeprty type 
8234         is object, return Convert.DBNull (match .Net).
8235         Fixes part of #324286.
8236
8237 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8238
8239         * ListControl.cs: Since we are getting two BinginContextChanged events
8240         for the same binding context instance (when the control is added to
8241         form, and when the form is actually shown), take it into account only the
8242         first time for a given binding context instance.
8243         Fixes part of #324286.
8244
8245 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
8246
8247          * PropertryGridView.cs: Ops.
8248
8249 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
8250
8251          * PropertyGridView.cs: Close dropdown form if the owner form is
8252          moved or minimized.
8253          [Fixes bug #322446]
8254
8255 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
8256
8257          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
8258          RootGridEntry.cs, CategoryGridEntry.cs:
8259          PropertyGrid rewrite.
8260          - Rewrite all of the control logic in PropertyGrid.
8261          - Rewrite all of the ComponentModel logic in GridEntry.
8262          - Rewrite all UI work in PropertyGridView.
8263          - Many bugfixes, etc.
8264
8265 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
8266
8267         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
8268         when all contained controls are autosize or dock-fill.  Also take into
8269         account when the total percentage of column/row sizes is not 100%.
8270         [Fixes bug #354672]
8271
8272 2008-01-24  Andreia Gaita <avidigal@novell.com>
8273
8274         * HtmlDocument.cs:
8275         - Save a reference to the IDocument in the instance and
8276           use that one instead of going to WebHost.Document; the document that the 
8277           WebHost returns might not be the right one (in case of frames).
8278         - Use the hashcode returned from the IDocument interface.
8279         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
8280           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
8281           LinkColor, Url, VisitedColor, Window
8282
8283         * HtmlElement.cs: 
8284         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
8285           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
8286           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
8287           SetAttribute, Equals, equality operators.
8288         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
8289           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
8290         
8291         * HtmlElementCollection.cs: Change implementation to use a generic
8292         collection. Implemented Enumerator and CopyTo
8293
8294         * HtmlHistory.cs: Add constructor, no implementation yet.
8295
8296         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
8297         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
8298         Equals, equality operators.
8299
8300         * HtmlWindowCollection.cs: Implemented. 
8301
8302         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
8303         has been deprecated).
8304
8305         * WebBrowserBase.cs: Use Completed event to track document loading
8306         (Navigated has been deprecated)
8307
8308 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
8309
8310         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
8311         level MenuItems do not respect tabs.
8312         [Fixes bug #355196]
8313
8314 2008-01-23  Geoff Norton  <gnorton@novell.com>
8315
8316         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
8317         FormWindowState.  Finished fixing Fullscreen windows on Carbon
8318
8319 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8320
8321         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
8322         be used as grab_control. Also save status of capture before show ContextMenu
8323         and restore it after close.
8324
8325 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8326
8327         * Control.cs: Internal FindRootParent method added to return high control
8328         in parent tree.
8329
8330 2008-01-23  Geoff Norton  <gnorton@novell.com>
8331
8332         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
8333         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
8334         it work again.  Handle HITTEST events.
8335
8336 2008-01-23  Geoff Norton  <gnorton@novell.com>
8337
8338         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
8339         a crash in certain cases.  Support for fullscreen windows in certain cases.
8340
8341 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
8342
8343         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
8344         [Fixes bug #355703]
8345
8346 2008-01-23  Geoff Norton  <gnorton@novell.com>
8347         
8348         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
8349
8350 2008-01-23  Geoff Norton  <gnorton@novell.com>
8351
8352         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
8353
8354 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8355
8356         * SplitContainer.cs: Remove unused declarations.
8357         * Binding.cs: Remove unused declarations.
8358
8359 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8360
8361         * Form.cs: Remove unused declaration of 'active' in Activate method.
8362         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
8363         prevent compilation warnings.
8364         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
8365         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
8366         * Bindings.cs: Remove unused formatting_enabled declaration.
8367         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
8368         warnings.
8369         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
8370         warnings.
8371         * PropertyGridView.cs: Remove usused 'ex' declaration.
8372         * DataGridView.cs: Remove unused declarations.
8373
8374 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8375
8376         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
8377         
8378         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
8379         to Control class, it makes possible to grab menu to controls that can't 
8380         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
8381         WmMouseMove removed since it was used only to track menu events.
8382
8383         * Control.cs:
8384         - Moved all active_tracker stuff from Form.
8385         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
8386         can call this method instead of reimplement all necessary code handle for
8387         menu tracker.
8388         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
8389         and WmMouseMove).
8390         
8391         * MenuAPI.cs: 
8392         - Remove special handle to ToolStripOverflow, now we can grab menu to 
8393         controls that can't reach Form using parent tree.
8394         - Change type of grab_control from Form to Control.
8395
8396 2008-01-22  Geoff Norton  <gnorton@novell.com>
8397
8398         * TextBoxBase.cs: Split up the sizing of controls and placing of 
8399         controls.  Fixes a bug where scrollbars in Reflector could be sized
8400         wrong and have non-working thumbers.
8401
8402 2008-01-23  Geoff Norton  <gnorton@novell.com>
8403
8404         * XplatUI.cs: Refactor environment variables to default support to the
8405         Carbon driver on the Mac.
8406
8407 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8408
8409         * Label.cs: Uses new LabelPainter for drawing operations.
8410         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
8411         * Theme.cs: DrawLabel and LabelDefaultSize removed.
8412
8413 2008-01-22  Geoff Norton  <gnorton@novell.com>
8414
8415         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
8416
8417 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8418
8419         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
8420         through the normal flat button code and don't draw the checkbox glyph.
8421         * Theme.cs: Button->ButtonBase signature change.
8422         [Fixes bug #324755]
8423
8424 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
8425
8426         * LinkLabel.cs: Uses new class LinkLabelPainter.
8427
8428 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
8429
8430         * MessageBox.cs: Adjust right border space, we don't need to add 
8431         "space_border*2" two times.
8432
8433 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8434
8435         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
8436         becomes a wrapper around Padding.
8437         [Fixes a part of bug #354676]
8438
8439 2008-01-22 Geoff Norton  <gnorton@novell.com>
8440
8441         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
8442         acquired.  Also ensure the buffer is large enough to grab the header
8443         we need on linux boxes.
8444
8445 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8446
8447         * Control.cs: Implement a custom enumerator so people can delete
8448         from the Controls collection while in a foreach.
8449         [Fixes bug #355074]
8450
8451 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8452
8453          * PropertyGridView.cs: Fix focusing behavior:
8454          - Tab should focus the grid text box.
8455          - Clicking on the labels shouldn't focus the grid text box.
8456
8457 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8458
8459          * PropertyGridView.cs: IsValueTypeGridItem should return true 
8460          for Arrays as well.
8461
8462 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8463
8464          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
8465           - Renamed GridEntry.SelectedObjects to TargetObjects to better
8466           reflect the property name role.
8467           - PropertyGrid.GetTarget is not required as the target is known
8468           (TargetObjects).
8469           - Setting values will handle value types as a special case now and
8470           populate them up in the chain.
8471           [Fixes #354990]
8472
8473 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
8474
8475         * Hwnd.cs: Create a public property for the Graphics we keep around.
8476
8477 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
8478
8479          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
8480          when the current object selection changes. 
8481          Fixes failing test SelectedObject_Null2.B5.
8482
8483 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
8484
8485          * PropertyGrid.cs: Process Browsable properties with 
8486          DesignerSerializationVisibilityAttribute.Content as being expandable.
8487          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
8488          will not be expandable. We should be nested components-friendly now.
8489
8490 2008-01-21  Andreia Gaita <avidigal@novell.com>
8491
8492         * WebBrowserBase.cs: Check if control was loaded properly, 
8493         don't bind if it wasn't.
8494
8495         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
8496         GetElementFromPoint, equality operators, OpenNew, Write.
8497         Remove extra set_Body
8498
8499 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
8500
8501         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
8502         that makes our AutoScale* stuff more tolerant to different orders
8503         of being set.  [Fixes bug #354669]
8504
8505 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
8506
8507          * PropertyGridView.cs, PropertyGridTextBox.cs: 
8508          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
8509          [Fixes #339005 and #348209]
8510
8511 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
8512
8513          * PropertyGridView.cs: Hide the grid text box before adjusting it
8514          for the newly selected GridItem.
8515          [Fixes #338999]
8516
8517 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
8518
8519         * Form.cs: Give MDI children the opportunity to cancel the parent form
8520         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
8521         properly for both the parent and child.
8522         * Application.cs: Signature of internal method changed, pass the previous
8523         default of false.
8524         [Fixes bug #354286]
8525
8526 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
8527
8528         * PropertyGridView.cs: Set the property value only if it has changed.
8529         [Fixes bug #338997]
8530
8531 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
8532
8533         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
8534         If the mouse hasn't actually moved, ignore these messages so the currently
8535         highlighted menuitem isn't reset to the one under the mouse.
8536         [Fixes bug #333668]
8537
8538 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
8539
8540         * PropertyGridView.cs: When the property changes Invalidate the GridItem
8541         in order for the properties with UITypeEditor.GetPaintValueSupported == true
8542         to reflect the change visually.
8543         [Fixes bug #338998]
8544
8545 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
8546
8547         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
8548         to 2.0 button drawing.
8549         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
8550         the button text is tall enough for one line.  LineLimit says it will
8551         always draw at least one line, but it is a lie.
8552         [Fixes bug #324941]
8553
8554 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
8555
8556         * XplatUIStructs.cs, X11Keyboard.cs :
8557           added some more VK_* keys to be handled.
8558
8559 2008-01-16  Andreia Gaita <avidigal@novell.com>
8560
8561         * Control.cs: Check if there is a container before setting or getting
8562         the validation flag.
8563
8564 2008-01-16  Andreia Gaita <avidigal@novell.com>
8565
8566         * ContainerControl.cs: Add flag to track if a control cancels validation, 
8567         so we don't fire click events.
8568
8569         * Control.cs: 
8570         - (HandleClick) Check if validation was cancelled before  firing the click
8571         events (doubleclicks are fired, but not clicks)
8572         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
8573         ContainerControl.set_ActiveControl, but in the case of non-selectable
8574         controls, like a Label, activecontrol is not set. 
8575
8576         * ButtonBase.cs: Only fire clicks if validation passes.
8577         
8578         Fixes #353310
8579
8580 2008-01-16  Geoff Norton  <gnorton@novell.com>
8581
8582         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
8583         trunk
8584
8585 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
8586
8587         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
8588         SelectedPath, just display the default dialog instead of crashing.
8589         [Fixes bug #348989]
8590
8591 2008-01-16  Geoff Norton  <gnorton@novell.com>
8592
8593         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
8594         AddExpose instead of trusting apples compositing manager which doesn't
8595         work for our use case.  Remove some dead code causing warnings and 
8596         redecorate some other code to prevent warnings.
8597
8598 2008-01-16  Geoff Norton  <gnorton@novell.com>
8599
8600         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
8601         carbon signals us to redraw.  Fixes another portion of the flickering bug
8602
8603 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8604
8605         * Form.cs: Prevent the MdiParent property to be set when value is the same
8606         as value already set. Fixes bug #328019.
8607
8608 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8609
8610         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
8611         it prevents NRE when closing mdi child windows. Fixes bug #325211.
8612
8613 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8614
8615         * InternalWindowManager.cs: Invalidade close button after mouse up when 
8616         mdi form is prevented to close.
8617
8618 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8619
8620         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
8621         thanks to Andy Hume. Fixes bug #325433.
8622
8623 2008-01-16  Andreia Gaita <avidigal@novell.com>
8624
8625         * LinkLabel.cs: Reset focused_index when resellecting the control.
8626         Fixes #323190
8627
8628 2008-01-15  Geoff Norton  <gnorton@novell.com>
8629
8630         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
8631         messages.
8632
8633 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
8634
8635         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
8636         of truncate.
8637
8638 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
8639
8640         * ContainerControl.cs: Setting AutoScaleMode to anything should set
8641         Form.AutoScale to false.
8642         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
8643         AutoScaleBaseSize should be changed on Font change unless it has been
8644         explicitly set.
8645         [Fixes bug #353827]
8646
8647 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
8648
8649         * MenuAPI.cs: On instance of MenuTracker check if source control is
8650         ToolStripOverflow and use properly method to find form.
8651         [Fixes bug #338511]
8652
8653 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
8654
8655         [Fixes bug #323241 Transparent toolbar support]
8656
8657         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
8658         is flat.
8659
8660         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
8661         defined in control style to mimic win32 behavior.
8662
8663         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
8664         it will be transparent.
8665
8666 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
8667
8668         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
8669         CreateParams for ToolBar controls.
8670
8671 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8672
8673         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
8674         FixedToolWindow, SizeableToolWindow, or None for border styles have
8675         different minimum sizes than regular forms.  Implemented to fix
8676         regression in PDN with toolbox being too wide.
8677
8678 2008-01-14  Andreia Gaita <avidigal@novell.com>
8679
8680         * HtmlElementCollection.cs: Implemented
8681
8682         * HtmlElement.cs: Implemented:
8683           - All
8684           - InnerHtml
8685           - InnerText
8686           - Id
8687           - Name
8688           - FirstChild
8689
8690         * HtmlDocument.cs: Implemented GetElementsByTagName.
8691
8692 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8693
8694         * Screen.cs: Stub BitsPerPixel to always return 32.
8695
8696 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8697
8698         * Form.cs: Implement RestoreBounds.
8699
8700 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8701
8702         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
8703         Sebastien and his fabulous magical problem-finding machine:
8704         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
8705         respect the value set.
8706
8707 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
8708
8709         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
8710         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
8711
8712 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8713
8714         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
8715         messages (to match .Net), we need to remove the capture ourselves.
8716
8717 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
8718
8719         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
8720         will process the message and close our window.
8721         [Fixes bug #324328]
8722
8723 2008-01-10  Geoff Norton  <gnorton@novell.com>
8724
8725         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
8726         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
8727         window manager.
8728
8729 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8730
8731         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
8732         failing test.
8733
8734 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8735
8736         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
8737         Linux doesn't care, having a minimum matches MS and keeps the window
8738         from becoming too small to use window decorations.
8739         [Fixes bug #338996]
8740
8741 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8742
8743         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
8744         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
8745         control.  [Fixes bug #325419]
8746
8747 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8748
8749         * ComboBox.cs: Guard against an NRE if the user open a new form from a
8750         SelectedIndexChanged event.  This closes the combobox dropdown, and we
8751         were trying to dispose it.  [Fixes bug #352830]
8752
8753 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8754
8755         * Control.cs, Form.cs: Implement the necessary semantics for
8756         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
8757         to determine if a focus rectangle should be drawn.
8758         * PropertyGrid.cs: Fix property visibility to match override.
8759         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
8760
8761 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8762
8763         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
8764         [Fixes bug #323552]
8765
8766 2008-01-09  Geoff Norton  <gnorton@novell.com>
8767         
8768         * XplatUICarbon.cs: Scroll windows in the correct direction.
8769
8770 2008-01-09  Geoff Norton  <gnorton@novell.com>
8771
8772         * XplatUICarbon.cs: Track all created utility windows so we can hide them
8773         when the app is deactivated or spaces is enabled.
8774
8775 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8776
8777         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
8778         extra separation pixel for the label rect origin if SmallImageList is
8779         null, and thus we don't need that separation between icon and label
8780         rects.
8781         Patch by Ernesto Carrea.
8782         Fixes # 340195.
8783
8784 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
8785
8786         * StatusStrip.cs: Invalidate after completing a layout.  The base
8787         OnLayout does this, but we don't call the base.
8788         * ToolStripItem.cs: Revert the previous change to invalidate after
8789         the item moves.
8790         [Fixes bug #351341 better.]
8791
8792 2008-01-07  Geoff Norton  <gnorton@novell.com>
8793
8794         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
8795         not a notification to exit the application.  Listen for WM_QUIT
8796         instead.
8797
8798 2008-01-07  Andreia Gaita <avidigal@novell.com>
8799
8800         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
8801
8802 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
8803
8804         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
8805         so it can repaint at the correct location.
8806         [Fixes bug #351341]
8807
8808 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8809
8810         * ListControl.cs: SelectedValue should return a null value if
8811         SelectedIndex is -1. Also, when setting it, it should throw an
8812         ArgumentNullException if the value is null, as well as taking
8813         into account the String.Empty value, instead of ignoring it (we have
8814         tests for that now).
8815         Fixes part of #324286.
8816
8817 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
8818
8819         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
8820         SelectionStart is updated after pressing enter.  Fixes bug #351918.
8821
8822 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8823
8824         * TextControl.cs: Revert a piece r92316 that prevented the fix
8825         from working when there were multiple tags in the text box.
8826         Fixes bug #351881.
8827
8828 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8829
8830         * TextControl.cs: Apply patch from Luke Page that prevents an
8831         NRE when determining the beginning of a paragraph.
8832         Fixes bug #351886.
8833
8834 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8835
8836         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
8837         caret gets moved with clicking away from a selected block of
8838         text.  Fixes bug #351885.
8839
8840 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8841
8842         * TextControl.cs: Apply patch from Luke Page that takes line
8843         alignment into account for mouse selection, so that center and
8844         right aligned text can be selected.
8845         Fixes bug #351881.
8846
8847 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8848
8849         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
8850         issues after loading an RTF file by using the correct line feeds.
8851         Fixes bug #351841.
8852
8853 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8854
8855         * TextControl.cs: When deleting multiple line selections, we need
8856         to invalidate every line beginning at the first line of the selection.
8857         Patch from Luke Page fixes bug #351791.
8858
8859 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8860
8861         * ListControl.cs: When getting a CurrencyManager.PositionChanged
8862         event, don't set SelectedIndex if the number of items is 1. This is
8863         because, for the first item, PositionChanged is fired _before_
8864         ItemChanged (the place where we actually populate the items), and
8865         leave us in a temporary invalid state (since items collection is
8866         empty).
8867         Fixes #349655.
8868
8869 2008-01-04  Geoff Norton  <gnorton@novell.com>
8870
8871         * XplatUICarbon.cs:  Create native toolwindows instead of
8872         the managed drawing ones.
8873
8874 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8875
8876         * LineTag.cs: If the line doesn't have any characters, return
8877         0 for GetCharIndex.  Fixes an AOORE exception after certain
8878         caret movements.  Fixes bug #351683.  Patch by Luke Page.
8879
8880 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8881
8882         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
8883         is hit when there is selected text, only the selected text gets
8884         deleted, not the character in front of the selection as well.
8885         Fixes bug #351578.
8886
8887 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8888
8889         * ComboBox.cs: When the values are displayed, calculate the
8890         ComboListBox scrollbar's LargeChange based on the visible area's
8891         height and  the actuall ItemHeight, instead of calculating it
8892         based on MaxDropItems value, since it's not used by our _current_ 
8893         2.0 profile.
8894         Fixes #332366.
8895
8896 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8897
8898         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
8899         Patch from Luke Page that fixes issues with font colors and styles
8900         not showing up in a readonly RichTextBox.  Fixes bug #324354.
8901
8902 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8903
8904         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
8905         from Luke Page.  This one fixes bug #349926.
8906
8907 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8908
8909         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
8910         an item in the IBindingList source changes with
8911         ListChangedType.ItemAdded. Ignore for now firing the event for other
8912         changes, since we want to have tests for those cases as well.
8913
8914 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8915
8916         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
8917         created.
8918
8919 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8920
8921         * TextBoxTextRenderer.cs: Implement a cache for measuring each
8922         character.  This is effective because the typical usage of a
8923         TextBox is with a limited amount of fonts and characters, and
8924         the current implementation of TextBox measures everything one
8925         character at a time.  Another second or two speedup for bug #347238.
8926
8927 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8928
8929         * Control.cs: Rewrite the Font getter to only query the parent's
8930         Font property once instead of twice.  Since this operation is
8931         recursive, the queries were growing exponentially as the control
8932         tree got deeper.  Another second or two speedup for bug #347238.
8933
8934 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8935
8936         * Control.cs: Avoid setting a parent (and more importantly, updating
8937         the zorder of all its children) if the parent is already correct in
8938         WmShowWindow.  Decreases the startup time of the test case on bug
8939         #347238 from 35 seconds to 11 seconds.
8940
8941 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8942
8943         * X11Dnd.cs: When the dnd operation has started and we are 
8944         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
8945         This is done to match .Net, which doesn't send those messages after
8946         dnd operation was completed/cancelled.
8947         Fixes #349922.
8948
8949 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
8950
8951         * ToolStrip.cs: Previous change should be != null, not == null.
8952         Thanks Gert!
8953
8954 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
8955
8956         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
8957         user may have moved the mouse off the current item during the event.
8958
8959 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8960
8961         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
8962         calling GetItemAt for every MouseMove event by also taking into
8963         account whether any mouse button is pressed (probably dragging); 
8964         if so, we can call GetItemAt, and if not, try to not call it 
8965         (GetItemAt can be quite expensive when used with a large number of items).
8966
8967 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8968
8969         * ListView.cs: Implement -finally- support for dnd, by calling
8970         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
8971         authors list ;-).
8972         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
8973         simple calculation of distances for all the items in the owner
8974         listview.
8975
8976 2007-12-21  Geoff Norton  <gnorton@novell.com>
8977
8978         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
8979         for windows that are originally created as invisible.  Fixes missing
8980         main window in paint-mono.
8981
8982 2007-12-21  Geoff Norton  <gnorton@novell.com>
8983
8984         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
8985         subclass handler for com.novell.mwfview subclassing HIView.  Implement
8986         Pasteboard and Dnd methods.
8987
8988 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8989
8990         * ListBox.cs: When we got focus, give focus to first item if there
8991         wasn't any pervious focused item. Also update navigation to depend on
8992         SelectedIndex rather than FocusedItem, just as .Net does.
8993         Fixes #349174.
8994
8995 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8996
8997         * ListBox.cs: Both FindString and FindStringExact methods must do an
8998         case insensitive search, should allow the last valid index to be
8999         passed in the overload taking an initial index, and should also
9000         continue searching from the top back to the specified index when it
9001         reaches the bottom.
9002
9003 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9004
9005         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
9006         redraw issue, and allows RichTextBox to draw colored text even while
9007         disabled or readonly.
9008
9009 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9010
9011         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
9012         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
9013         and doesn't grey text in a disabled RichTextBox.
9014
9015 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9016
9017         * RichTextBox.cs: Apply patch from Luke Page that adds better support
9018         for many RTF commands: quad alignment, separate formatting for blocks
9019         inside groups, and ParDef support.  Makes the test case from bug #324589
9020         look much better.
9021
9022 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9023
9024         * LineTag.cs: Fix an error in the new Draw method that caused
9025         a crash when rendering the document on bug #324589.
9026
9027 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9028
9029         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
9030         TextControl.cs: Apply patch from Luke Page that adds support
9031         for URL links in RichTextBox.
9032         [Fixes enhancement #342516]
9033
9034 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
9035
9036         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
9037         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
9038
9039 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9040
9041         * ListBox.cs: When a key gets pressed, try to find a string
9042         if the key is a character or a digit.
9043         Fixes #343971.
9044
9045 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9046
9047         * TableLayoutPanel.cs: Remove some unused variables.
9048
9049 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9050
9051         * DateTimePicker.cs: Commit patch from Luke Page that ensures
9052         we don't end up at an invalid date when we click the up/down
9053         spinner to change the month or year.  Fixes bug #348682.
9054
9055 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9056
9057         * Application.cs: Calling Exit in 2.0 should chain to the
9058         Exit (CancelEventArgs) version so it can be cancelled.
9059         * Form.cs: Create a flag to allow raising the Closing
9060         events to be skipped.  We raise them once in Application.Exit
9061         and don't want to raise them again when the Form is actually
9062         closed.  [Fixes bug #349073]
9063
9064 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
9065
9066         * ToolStripDropDown.cs: Guard against an NRE when there
9067         hasn't been a mainform set in the application context.
9068         [Fixes bug #349108]
9069
9070 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9071
9072         * ListBox.cs: When SetBoundsCore gets called, besides
9073         calling UpdateScrollBars, update the value of
9074         last_visible_index, since we could need to show more items
9075         than before, and we need to let the paint routines know that.
9076         Fixes #344445.
9077
9078 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9079
9080         * ListView.cs: Add DesignerSerializationVisibility attribute to
9081         InsertionMark property.
9082         * ListViewItem.cs: Add same attribute to Position property.
9083
9084 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9085
9086         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
9087         is 2.0 only.
9088
9089 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
9090
9091         * ThemeWin32Classic.cs: Don't draw the background on a
9092         flat button if there is a background image.
9093         [Fixes bug #348649]
9094
9095 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9096
9097         * ListBox.cs: If we remove the item currently selected,
9098         remove it not only from SelectedItems, but also
9099         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
9100         the items count decreased and focused_item has bigger value than that.
9101
9102 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
9103
9104         * Control.cs: Perform our layout after we resize ourselves
9105         if we had to adjust our AutoSize.  Missed commit for bug
9106         #346246.
9107
9108 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
9109
9110         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
9111         we can provide an implementation of AutoSize.
9112         [Fixes bug #346246]
9113
9114 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9115
9116         * ListBox.cs: Add the internal overload Sort (bool paint),
9117         to indicate whether we actually need a paint or we will
9118         call Refresh ourselves. This way we don't request a paint
9119         _before_ having an updated and valid layout.
9120         Fixes #347233.
9121
9122 2007-12-12  Andreia Gaita <avidigal@novell.com>
9123
9124         * XPlatUIX11.cs: Send paint messages when updating a systray icon
9125         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
9126         properly invalidated. 
9127         Fixes #324237
9128
9129 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9130
9131         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
9132         don't simply assign it to our internal group field, but instead 
9133         use our Group property, which should do all the neccessary work
9134         required to support groups. Fixes an issue reported to me (mail) by a 
9135         guy using this new feature.
9136
9137 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
9138
9139         * Control.cs: Use Scale instead of ScaleControl to ensure the
9140         whole hierarchy gets scaled.
9141         [Fixes bug #347282]
9142
9143 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9144
9145         * DateTimePicker.cs: Don't set the internal MonthCalendar's
9146         Parent property.  Doing this causes the control to be hosted by
9147         the Form instead of being a popup window.
9148         [Fixes bug #347665]
9149
9150 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9151
9152         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
9153         at an index higher than Count, just use Add instead of Insert.
9154         [Fixes bug #347669]
9155
9156 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9157
9158         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
9159         DrawPictureBox, this is handled by Control.PaintBackground.
9160         [Fixes bug #347276]
9161
9162 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
9163
9164         * MenuAPI.cs: When process menu keys return true by default only if menu is
9165         active. Fixes bug #342892.
9166
9167 2007-12-09  Andreia Gaita <avidigal@novell.com>
9168
9169         * Control.cs: check if windows are actually mapped before
9170         trying to zorder. Fixes #342509, #346955
9171
9172 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9173
9174         * ListView.cs:
9175         * ListViewInsertionMark.cs:
9176         * ThemeWin32Classic.cs: Implement the drawing side of the
9177         new 2.0 ListView.InsertionMark property.
9178
9179 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
9180
9181         * CurrencyManager.cs: Silence some debug spew.
9182
9183 2007-12-07  Geoff Norton  <gnorton@novell.com>
9184         
9185         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
9186         masks for our children as well as siblings to avoid having to query
9187         Quartz for this information.
9188         * XplatUICarbon.cs: Implement a delegate based system to pass
9189         information to System.Drawing.  Implement Async methods.  Remove
9190         the hack for the resize thumb and imlpement a transparent Grow Box.
9191         Rework the messaging system to proplery create window's and messages,
9192         fixes TabControl.
9193
9194 2007-12-06  Andreia Gaita <avidigal@novell.com>
9195
9196         * X11Keyboard.cs: Use Xutf8LookupString to support international 
9197         characters under alternate codepages. Patch from #340878
9198
9199 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9200
9201         * ListView.cs: When doing layout computations, set position in the
9202         ListView instances (we cache the position just as .Net does).
9203         * ListViewItem.cs: New internal setter method for Position. Also set
9204         position field as also available in 1.1, since we are going to use it
9205         now in the common case.
9206
9207 2007-12-06  Andreia Gaita <avidigal@novell.com>
9208
9209         * Control.cs: When removing controls, get the actual container
9210         to notify about active control changes. Fixes 341314.
9211
9212 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9213
9214         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
9215
9216 2007-12-05  Andreia Gaita <avidigal@novell.com>
9217
9218         * Control.cs: When updating the zorder, ignore windows that are not
9219         mapped. Fixes #342509
9220
9221 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9222
9223         * ListViewItem.cs: Actually implement serialization on this class.
9224
9225 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
9226
9227         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
9228         LinkCollection. Spaces to tabs, and removed extra tabs.
9229
9230 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9231
9232         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
9233           tests to fail (hopefully).
9234
9235 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9236
9237         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
9238         the image margin so custom renderers can correctly place it.
9239
9240 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9241
9242         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
9243         so custom renderers can correctly place it.
9244
9245 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9246
9247         * Application.cs: Let WM_CHAR messages flow through to controls
9248         hosted in Strips.  [Fixes bug #343972]
9249
9250 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
9251
9252         * ToolStripManager.cs: Guard against an NRE I ran into.
9253
9254 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
9255
9256         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
9257         a Link is manually added to the Links collection, we need to set
9258         its owner, so it can invalidate properly.
9259         [Fixes bug #344012]
9260
9261 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9262
9263         * ListView.cs: When changing ListViewItem.Position (which calls
9264         ListView.ChangeItemLocation), invalidate not only the area
9265         corresponding to the main item, but also to the area occupied
9266         by the items being moved.
9267
9268 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9269
9270         * ListView.cs: When changing the position of a given item,
9271         don't use item bounds, but item areas (which includes the item spacing
9272         between them). Also, use first/last position if the requested
9273         position is outside bounds (as .Net does). Invalidate the previous and
9274         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
9275         in a specific position, instead of directly accessing Items collection
9276         (this is done to get the right item - remember an Item can have a
9277         different position in the grid than in the Items collection).
9278
9279 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9280
9281         * MessageBox.cs: Calculate text area instead of just top left, this rect 
9282         area will be used in DrawString. Fixes bug #343364.
9283
9284 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9285
9286         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
9287         screen width. Partially fixes bug #343364.
9288
9289 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9290
9291         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
9292         code inside recalculate, it makes code more simple.
9293
9294 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
9295
9296         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
9297         between update or add icon. Fixes bug #324344.
9298
9299 2007-11-21  Andreia Gaita <avidigal@novell.com>
9300
9301         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
9302         window manager, since that stretches the drawing area to include
9303         the window decorations, and they get hidden. Reverts r84444 and fixes
9304         #335849 and #342790 (mdi and pdn3 regression)
9305
9306 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9307
9308         * ListView.cs: When setting focused item, try to give focus to the
9309         previous one _only_ if the previous one remains valid. 
9310         Fixes #342504.
9311
9312 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
9313
9314         * Application.cs: Revert r89650, as it broke a common case to fix
9315         an obscure case.  Fixes bug #342606.
9316
9317 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
9318
9319         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
9320
9321 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
9322
9323         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
9324         alignment. [Fixes #324228]
9325
9326 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
9327
9328         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
9329         [Fixes bug #342123]
9330
9331 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
9332
9333         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
9334         it prevent problems when empty captions. [Fixes #342141]
9335
9336 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
9337
9338         * Label.cs: Use Size instead of None.  Fixes bug #342077.
9339
9340 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9341
9342         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
9343
9344 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
9345
9346         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
9347         but there isn't a MdiContainer.
9348         [Fixes bug #342358]
9349
9350 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
9351
9352         * TextControl.cs: Don't recalculate document if the recalc_start and
9353         recalc_end hasn't changed.
9354         [Fixes bug #342505]
9355
9356 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
9357
9358         * DataGridViewTextBoxCell.cs: Removed CWL.
9359
9360 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9361
9362         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
9363
9364 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
9365
9366         * TextControl.cs: Missed some code for bug 341534 to trigger a
9367         recalculation when the font changes.
9368
9369 2007-11-16  Andreia Gaita <avidigal@novell.com>
9370
9371         * Control.cs: When updating the zorder, check if the child to update is
9372         the same control that is set to always be on top (i.e., scrollbars), and 
9373         just put it on top directly. Fixes BadMatch error on pdn3
9374
9375 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9376
9377         * ListView.cs: Throw the needed exceptions for FindNearestItem.
9378
9379 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
9380
9381         * Control.cs: Don't perform a new layout when a label changes its text,
9382         cause label handles its own autosizing.
9383         [Fixes bug #342077]
9384
9385 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9386
9387         * ListView.cs: Implement 2.0 FindNearestItem methods.
9388
9389 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
9390
9391         * ToolStripPanel.cs: Make Join at least add the control to the panel,
9392         even if the rest of what Join does isn't supported.  Add some more
9393         support for vertical toolbars.
9394         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
9395         [Fixes the application breaking parts of bug #341998]
9396
9397 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
9398
9399         * ToolStripItem.cs: When determining if we have a check/image margin,
9400         we need to look at ShowCheckMargin as well as ShowImageMargin.
9401
9402 2007-11-15  Geoff Norton  <gnorton@novell.com>
9403
9404         * XplatUIOSX.cs: Rename to...
9405         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
9406         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
9407
9408 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
9409
9410         * KeysConverter.cs: The default values should be an array of Keys, not
9411         strings.  Also, the array has more values for 2.0.
9412         [Fixes bug #341851]
9413
9414 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9415
9416         * Application.cs: Change ExecutablePath to use 
9417         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
9418         [Fixes bug #323552]
9419
9420 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9421
9422         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
9423         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
9424         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
9425         be ignored.  Create a new GetLineEnding that can specify which types of
9426         line endings to look for.  On Insert, only create new lines for \n and \r\n.
9427         [Fixes bug #324274]
9428
9429 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9430
9431         * TextBoxBase.cs: As we loop through each line changing the font, tell
9432         the document that the line needs to be recalculated.  Fixes bug #341534.
9433
9434 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
9435         [Another round of refactoring]
9436         * Line.cs: Add DeleteCharacters.
9437         * LineTag.cs: Add Delete.
9438         * TextBoxBase.cs: Update to use new methods.
9439         * TextControl.cs: Refactor the Delete* methods.
9440
9441 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
9442
9443         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
9444         the patch. [Fixes #324856]
9445
9446 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9447
9448         * ListView.cs:
9449         * ListViewItem.cs: Add an initial implementation of
9450         2.0 ListViewItem.Position getter.
9451
9452 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9453
9454         * ListView.cs: Add a reordered_items_indices array, to allow us
9455         to have a different sorting than that of Items (the sorting in Items
9456         could not match the actual sorting in screen). This is needed to
9457         implement a pair of 2.0 features.
9458         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
9459         actual position in the ListView grid, since it could have a position
9460         different than its Index (position in ListViewItemCollection). 
9461
9462 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
9463
9464         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
9465         not draw partial lines.
9466         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
9467         LineLimit flag from the base is preserved.
9468         Fixes the windows part of bug #338965.
9469
9470 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
9471
9472         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
9473         so that it can be canceled in KeyPress.
9474         Fixes bug #340078.
9475
9476 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9477
9478         * ListView.cs: In ItemControl, reset mouse-handling related
9479         fields even if we dont' have items (we still should reset them when
9480         we had items but then called Items.Clear). Partially based in a patch
9481         by George Giolfan.
9482         Fixes #338399.
9483
9484 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
9485
9486         * Application.cs: In ProductVersion first try AssemblyFileVersion
9487         before falling back to assembly version. Fixes bug #339787.
9488
9489 2007-11-08  Andreia Gaita <avidigal@novell.com>
9490
9491         * HtmlElement.cs: Implement InnerText setter.
9492         * WebBrowserBase.cs: Implement Navigated event support.
9493         Add flag to track when the browser "document" is ready to be retrieved.
9494         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
9495         Make sure browser document is ready before retrieving it.
9496         Clean up cached objects (document) when moving to a new page through
9497         any of the navigation methods.
9498         Use the new Mono.WebBrowser.INavigation interface to control navigation.
9499         Implement OnNavigated event.
9500
9501 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
9502
9503         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
9504         DrawLinkLabel, this is handled by OnPaintBackground.
9505         Fixes bug #339565, part II.
9506
9507 2007-11-07  Andreia Gaita <avidigal@novell.com>
9508
9509         * Control.cs: Revert r88915. Selecting text on a textbox depends on
9510         getting a Select call on click, so this call needs to be here for now.
9511         Unfixes #325809
9512
9513 2007-11-07  Geoff Norton  <gnorton@novell.com>
9514
9515         * OSXStructs.cs: Add the kEventClassApplication constants.
9516         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
9517         application is deactivated otherwise Menu overlays linger on top of
9518         other application windows.
9519
9520 2007-11-07  Geoff Norton  <gnorton@novell.com>
9521
9522         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
9523         dont support cursors yet anyways.  This allows Reflector to run.
9524
9525 2007-11-07  Geoff Norton  <gnorton@novell.com>
9526
9527         * XplatUIOSX.cs: Implement DragSize.
9528
9529 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9530
9531         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
9532         ItemControl, request the focus, as .Net does. This is needed after 
9533         Control does not request focus anymore when it receives a
9534         WM_LBUTTONDOWN.
9535
9536 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
9537
9538         * Label.cs: Make DrawImage internal so it can be called from Theme code.
9539         Remove the DrawImage call from OnPaint.
9540         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
9541         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
9542         but before we draw the text for DrawLabel and DrawLinkLabel.
9543         Fixes bug #339565.
9544
9545 2007-11-05  Andreia Gaita <avidigal@novell.com>
9546
9547         * Control.cs: Remove select call on click. Fixes #325809
9548
9549 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9550
9551         * ListViewItem.cs: Add 2.0 Position property getter.
9552
9553 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9554
9555         * ListView.cs: Add 2.0 BackgroundImageTiled property.
9556         Also, to make it work properly, change item's BackColor and
9557         BackgroundImageLayout as needed.
9558         * ThemeWin32Classic.cs: Don't fill any background rectangle 
9559         in ListView.ItemControl when drawing items; just let the Control
9560         base implementation fill it.
9561
9562 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9563
9564         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
9565         as well as adding a custom 'dummy' Converter, as .net does.
9566
9567 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9568
9569         * PropertyGridView.cs: When clicking drop-down button,
9570         select an index in the listbox only if our standard values collection 
9571         has one or more items.
9572
9573 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9574
9575         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
9576         property.
9577
9578 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
9579
9580         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
9581         the value is not changed. This ensure a pushed button remains in that
9582         state when clicked again. When switching the value of PropertySort
9583         between Categorized and CategorizedAlphabetical, do not update the
9584         grid items and do not fire a PropertyChangedEvent. When clicking the
9585         sorting buttons, do not modify the PropertySort value when switching
9586         between Categorized and CategorizedAlphabetical but only update the
9587         button state.
9588
9589 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
9590
9591         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
9592         formatting.
9593         * PropertyGrid.cs: Also put Categorized button in pushed state when
9594         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
9595         for help description label.
9596
9597 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9598
9599         * ListView.cs: When calculating the biggest item for a given column,
9600         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
9601         the item's width.
9602
9603 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
9604
9605         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
9606         value for PropertySort on 1.0 profile. PropertySortChanged event
9607         should only be fired on 2.0 profile. Fixed NullReferenceException
9608         in UpdateSortLayout when PropertyGrid contains no items.
9609
9610 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
9611
9612         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
9613         [Fixes bug #338554]
9614
9615 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9616
9617         * ListViewItem.cs: Implement 2.0 IndentCount property.
9618
9619 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9620
9621         * X11Dnd.cs: When sending status in a dnd operation, compare current
9622         effect with the 'allowed' field instead of 'drag_data.Allowed', since
9623         the later is only created when a Winforms application is both the
9624         source and the target, but not when we are the target only.
9625         Fixes part of #324251.
9626
9627 2007-11-01  Geoff Norton  <gnorton@novell.com>
9628
9629         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
9630         order of Z-Order.
9631         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
9632         children out of the drawing view on mac.
9633         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
9634         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
9635         
9636 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
9637
9638         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
9639         on the non-hosted-control part of it shouldn't do anything.
9640         Fixes part of bug #327498.
9641
9642 2007-11-01  Andreia Gaita <avidigal@novell.com>
9643
9644         * WebBrowserBase.cs: revert previous change, resize can be called anytime
9645
9646 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
9647
9648         * Application.cs: When a toolstrip has the keyboard input loop, let messages
9649         it does not use flow through to controls that are hosted in menus.
9650         Same with mouse clicks.
9651         * Form.cs: Don't close all menus on click if the click is on a
9652         control hosted in a menu.
9653         Fixes part of bug #327498, and part of bug #325969.
9654
9655 2007-10-31  Andreia Gaita <avidigal@novell.com>
9656
9657         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
9658
9659 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
9660
9661         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
9662         Addresses an issue raised in bug #336218.
9663
9664 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
9665
9666         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
9667         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
9668
9669 2007-10-30  Andreia Gaita <avidigal@novell.com>
9670
9671         * ContainerControl.cs: Check if the active control is a
9672         child of a removed control and update active_control accordingly.
9673         Fixes #329718
9674
9675 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9676
9677         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
9678         or the MaxDate.  Fixed bug #337693.
9679
9680 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9681
9682         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
9683         after calling SetWindowLong for a form, to force an immediate NC refresh.
9684         Fixes first part of bug #325150.
9685
9686 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9687
9688         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
9689         simple.  Fixes the last part of bug #322668.
9690
9691 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9692
9693         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
9694         needs to be TopMost as well, or else the MessageBox is under the form.
9695         Patch by George fixes bug #325300.
9696
9697 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9698
9699         * X11Dnd.cs: When starting a new drag operation, reset the static
9700         'dropped' field to false (previously the implementation didn't reset
9701         it and got confused after the first drag).
9702         Fixes #325071.
9703
9704 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9705
9706         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
9707         items instead of re-creating them all. For this purpose we now cache
9708         both CategoryGridEntry items and the GridEntries for the main object's
9709         properties.
9710         * GridItem.cs: Make SetParent method abstract.
9711         * GridEntry.cs: Override the SetParent method (already there, but now
9712         we override it).
9713         Fixes #324866.
9714
9715 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9716
9717         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
9718         depending on its depth (as .Net does). Update the needed values in
9719         MouseDown handler. Also draw the plus/minus rect after the label,
9720         so we don't draw on top of it.
9721
9722 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
9723
9724         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
9725         processed by forms or controls when menu is active. [Fixes #333548]
9726
9727 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9728
9729         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
9730         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
9731         focus on mouse over.
9732
9733 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9734
9735         * TextControl.cs: Code cleaning, simplifying.
9736
9737 2007-10-24  Geoff Norton  <gnorton@novell.com>
9738
9739         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
9740         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
9741
9742 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9743
9744         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
9745         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
9746
9747 2007-10-24  Andreia Gaita <avidigal@novell.com>
9748
9749         * SendKeys.cs: apply jpobst's patch to bug #332409
9750
9751 2007-10-23  Andreia Gaita <avidigal@novell.com>
9752
9753         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
9754         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
9755         for some reason
9756
9757 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9758
9759         * PropertyGridView.cs: If a property has an UIEditor available,
9760         make the drop-down/editor button available only if the property
9761         is _not_ read only.
9762
9763 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9764
9765         * PropertyGridView.cs: Don't make the grid item textbox 
9766         editable when a drop-down control is available, but 
9767         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
9768         true. The same bur the color of the grid item value's label.
9769
9770 2007-10-22  Geoff Norton  <gnorton@novell.com>
9771
9772         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
9773         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
9774         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
9775         driver.  Padd the bottom of all real windows so the resize thumb doesn't
9776         obscure scroll/status bars.
9777
9778 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
9779
9780         * WindowsFormsSection.cs: Implement.
9781
9782 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9783
9784         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
9785         closed see #325434 patch.
9786
9787 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9788
9789         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
9790         see #325434 patch.
9791
9792 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9793
9794         * PropertyGridView.cs: When showing the textbox for a grid item,
9795         have two local variables to store the read-only and non-editable
9796         status of a grid item (we were previously using just one variable
9797         to do this, when actually they are slightly different).
9798         Fixes part of #325023.
9799
9800 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9801
9802         * PropertyGridView.cs: When showing a drop-down list, try to get the
9803         values using TypeConverter.ConvertTo (to convert to a string). Fixes
9804         part of #325023.
9805
9806 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9807
9808         * PropertyGrid.cs: When updating a property and populating sub grid
9809         items, remove the previous ones, and invalidate the specific area.
9810         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
9811         area behind a grid item.
9812         * GridItemCollection.cs: Add an internal Clear method, to allow us to
9813         clean the items if needed (specially for controls implementing 
9814         ICustomTypeDescriptor and returning a variable number of properties).
9815         Fixes #324865.
9816
9817 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
9818
9819         * TextControl.cs: Clean up and document the Insert function.
9820
9821 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9822
9823         * TextControl.cs: Make sure we know our start point for updating the view
9824         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
9825         update the view.
9826
9827 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9828
9829         * ListView: Couple of corcompare fixes.
9830
9831 2007-10-17  Geoff Norton  <gnorton@novell.com>
9832
9833         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
9834         the title caption of real window.
9835
9836 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9837
9838         * ErrorProvider.cs: Add the error provider's internal window to a 
9839         containercontrol when the parent changes.  [Fixes bug #329714]
9840
9841 2007-10-17  Geoff Norton  <gnorton@novell.com>
9842
9843         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
9844         When we make a new window; restore the old active window - fixes dialogs.
9845
9846 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9847
9848         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
9849         when modifying a property, and if found then invalidate as
9850         requested.
9851         Fixes part of #324865.
9852
9853 2007-10-17  Geoff Norton  <gnorton@novell.com>
9854
9855         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
9856         highly experimental.  Fixed coordinate translation.  Fixed window locations.
9857         Initial support for clipping. Implemented NC areas and menus.  Support for
9858         launching from command line from Will Johansson (wjohansson@atacomm.com).
9859         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
9860         wjohansson@atacomm.com)
9861         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
9862         Hwnds now track the existence of all of their children for Mac clipping.
9863     * XplatUI.cs: Re-enabled the native driver on the Mac.
9864
9865 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9866
9867         * Line.cs: Move the InsertString function to here.
9868         * TextControl.cs: Cleanup some duplicate code, move some InsertString
9869         functionality to Line.
9870
9871 2007-10-17  Geoff Norton  <gnorton@novell.com>
9872
9873         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
9874
9875 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
9876
9877         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
9878         always setting value to true.
9879         * Form.cs: When changing AcceptButton, notify new and original button.
9880
9881 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
9882
9883         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
9884         a custom control that implements IButtonControl instead of an actual
9885         button.  [Fixes bug #334244]
9886
9887 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
9888
9889         * Form.cs: Change SelectActiveControl to internal, we need to call it in
9890         MdiWindowManager.
9891         
9892         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
9893         active control when activate a new mdi window.
9894         
9895         [Fixes bug #330495]
9896
9897 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
9898
9899         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
9900         is already added.
9901         [Fixes bug #333617]
9902
9903 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9904
9905         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
9906         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
9907         so we always recalculate the whole document instead of just the new part.
9908         [Fixes bug #325082]
9909
9910 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9911
9912         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
9913         when the mouse was to the left of the first character in the line.
9914
9915 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9916
9917         * TextBox.cs, TextBoxBase.cs: When setting the document's password
9918         character, use the property instead of the variable so that the
9919         UseSystemPasswordChar property is taken into account.
9920         [Fixes bug #333748]
9921
9922 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9923
9924         * FolderBrowserDialog.cs: When a node is right clicked and the "New
9925         folder" contex menu appears, actually add the new folder to it, even
9926         if the node is not currently selected. Still use SelectedNode in case 
9927         there wasn't found a node under the pointer.
9928         Fixes #325452.
9929
9930 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9931
9932         * ListViewItem.cs: When retrieving the focused state, the index check
9933         should be done only when ListView is in virtualmode, as it is an
9934         expensive check for normal mode.
9935
9936 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9937
9938         * ListViewItem.cs: Make the focus state information be stored
9939         in the ListView, not in the items. This is done to match the MS
9940         behaviour for items that are not yet part of a ListView control;
9941         besides that, since just one item can be focused at the same time,
9942         we save a little space in our items.
9943         Fixes part of #331643.
9944
9945 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9946
9947         * ComboBox.cs: When focus is lost, deselect the text. When setting
9948         text of control, select all text. Do not hide selection when control
9949         does not have focus. Fixes bug #333663.
9950
9951 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9952
9953         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
9954         instead of ArgumentException when SelectionLength is set to negative
9955         value. Added same check to SelectionStart. Code formatting.
9956
9957 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9958
9959         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
9960         or SelectionStart. Code formatting.
9961
9962 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9963
9964         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
9965         indicating that there was not a previous drag-and-drop operation going
9966         on.
9967         Fixes part of #325071.
9968
9969 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9970
9971         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
9972         AllowedEffect, don't let the drop operation happen. 
9973         Fixes #32580.
9974
9975 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9976
9977         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
9978
9979 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9980
9981         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
9982         is called.
9983
9984 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9985
9986         * Line.cs: Add a method that finds the tag that contains an x-coord.
9987         * LineTag.cs: Add a method that finds the character at an x-coord using
9988         a binary search, the old way was a linear search.
9989         * TextControl.cs: Change FindCursor to use the above new methods.
9990
9991 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9992
9993         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
9994         value different than AllowedEffect). This should be possible to
9995         indicate that dragging is not possible in some control/area.
9996
9997 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
9998
9999         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
10000         descent internally when font changes instead of outside code being responsible
10001         for setting it.
10002         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
10003         instead of accessing internal variables.
10004
10005 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
10006
10007         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
10008         remove special treatment for ArrangeIcons since it is already arranged.
10009
10010 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10011
10012         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
10013         the Win32 backend uses Color.
10014         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
10015         Refactor to store a Color instead of a Brush for Color.
10016
10017 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10018
10019         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
10020         away.  I didn't realize I needed this when I refactored these earlier.
10021
10022 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10023
10024         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
10025         store a Color structure and use the ResPool for back color instead of
10026         holding onto brushes.
10027
10028 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10029
10030         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
10031         [Fixes bug #325592]
10032
10033 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10034
10035         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
10036         to recalculate its size.  Fixes a part of bug #331052.
10037
10038 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10039
10040         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
10041         button.  Fixes a part of bug #331052.
10042
10043 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10044
10045         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
10046         the CreateParams.
10047         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
10048         decorations.
10049         [Fixes bug #330986]
10050
10051 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10052
10053         * TextBoxTextRenderer.cs: Don't make this a static class, as static
10054         doesn't exist in 1.1.  (Thanks jb!)
10055
10056 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10057
10058         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
10059         class to allow us to use different backends on different platforms.
10060         Linux uses the current [Draw|Measure]String backend.  Windows uses
10061         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
10062         of GDI+.  This leads to better looking text and more accurate measurements
10063         on Windows, fixing many of the reported issues.
10064         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
10065
10066 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10067
10068         * FolderBrowserDialog.cs: When running on Windows,
10069         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
10070         since we must match both "C:" and "C:\" forms. A little hackish, but
10071         works.
10072         Fixes #325247.
10073
10074 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10075
10076         * ListView.cs: When calling EndEdit (after editing an item),
10077         create a new instance of LabelEditEventArgs to keep clean the fields
10078         in case we get a new call to BeginEdit; also do Application.DoEvents
10079         to have focus in synch. This is a fix similar to TreeView's #325244.
10080
10081 2007-10-07  Andreia Gaita <avidigal@novell.com>
10082
10083         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
10084         * WebBrowserBase.cs: Added dialog support, calling the
10085           WebBrowserDialogs classes for each specific dialog type.
10086
10087 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10088
10089         * ListView.cs: When the last item is focused and is removed,
10090         move the focus to the previous item (in Items order). This is what MS
10091         does.
10092         Fixes #330415.
10093
10094 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10095
10096         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
10097         instead of the opposite (RemoveAt call Remove). This is a better
10098         approach since we don't need to to a pair of traversals when using
10099         RemoveAt.
10100
10101 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10102
10103         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
10104         check that the node actually has nodes, and if not, move to the
10105         parent node instead. 
10106         Fixes #325265.
10107
10108 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10109
10110         * TreeView.cs: Move the previous change to the general case (to
10111         call Application.DoEvents in cases where the method was called by
10112         different places).
10113
10114 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10115
10116         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
10117         call Application.DoEvents. This is neccessary when we get a call to
10118         BeginEdit from an AfterLabelEdit handler, because the focus always
10119         goes to the TreeView, even if we try to give it to our
10120         LabelEditTextBox. The call do Application.DoEvents seems to
10121         synchronize the focus, basically.
10122         Fixes #325244.
10123
10124 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10125
10126         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
10127         should be false. This also removes some nasty recursive paths. Fixes
10128         part of #325244.
10129
10130 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
10131
10132         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
10133         state to normal. Also resize window when cascading. Fixes #325433. 
10134
10135 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
10136
10137         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
10138         DefaultForeColor, as drawing empty colored lines isn't very useful.
10139         [Fixes the not drawn lines part of bug #324358]
10140
10141 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
10142
10143         * TextControl.cs: Move Line and LineTag classes into separate files to
10144         make things easier to find.
10145         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
10146         * RichTextBox.cs: Capitalize LineTag.Length property access.
10147         - This is purely an organizational/formatting change, no logic changed. -
10148
10149 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10150
10151         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
10152         text is empty.
10153
10154 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10155
10156         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
10157         text is empty.
10158
10159 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10160
10161         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
10162         prevent calling of OnBackColorChanged. Fixes #325321.
10163
10164 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10165
10166         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
10167         because control can be disabled because owner is disabled.
10168
10169 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
10170
10171         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
10172         string.Empty, test failed from previous change.
10173
10174 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
10175
10176         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
10177         is null, not String.Empty.  See bug #323038.
10178
10179 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
10180
10181         * TextControl.cs: Change the margins to match MS a little better.
10182         Still not perfect for X11 due to some DrawString differences, but
10183         is still an improvement over the old stuff.
10184         Partially fixes #324467.
10185
10186 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10187
10188         * FolderBrowserDialog.cs: When using MyComputer as 
10189         RootFolder, let absolute paths be considered as valid ones. Also, use
10190         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
10191         for Windows compatibility.
10192         Partially fixes #325247.
10193
10194 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10195
10196         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
10197         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
10198         method, since it causes the dialog to not select folders directly
10199         under the root path (when setting SelectedPath property).
10200
10201 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10202
10203         * TreeNode.cs: When calling Expand/Collapse and need to call 
10204         ExpandBelow/CollapseBelow respectively, take into account
10205         partially visible nodes (previously Expanding/Collapsing
10206         a partially visible node in the bottom was not updating its +- sign).
10207
10208 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10209
10210         * TreeView.cs: When calling Expand on a TreeNode, and we need to
10211         expand nodes below (ExpandBelow), scroll the entire Viewport
10212         area if the node is above it and not visible (instead of scrolling
10213         the area from node's Bottom, which applies only when the node is
10214         visible).
10215         Fixes #325266.
10216
10217 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10218
10219         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
10220         node in the bottom area (as .Net does). This is done to preserve the
10221         scroll position when ExpandAll is called before handle is created for
10222         the 1.1 profile (bottom area, as opposed to top area in 2.0).
10223         Fixes #324103.
10224
10225 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10226
10227         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
10228         bottom area if we are in fact not using the vertical scroll bar.
10229         Fixes #324824.
10230
10231 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
10232
10233         * Control.cs: Comment out a double buffering optimization that doesn't
10234         take into account invalidates created in OnPaint, causing the control
10235         to never be redrawn.  It would take quite a bit of work to work around
10236         this, but I left it commented with an explanation for later possible
10237         optimization.
10238         [Fixes bug #328681]
10239
10240 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
10241
10242         * Control.cs: Ask parent to perform a layout if control is AutoSize and
10243         the text changes.
10244         * RadioButton.cs: Implement GetPreferredSizeCore.
10245         [Fixes bug #328672]
10246
10247 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
10248
10249         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
10250         corcompare stuffs.
10251
10252 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
10253
10254         * Application.cs: Move the sync context stuff to Run instead of RunLoop
10255         so that it doesn't get uninstalled on modal forms.
10256         * Control.cs: Install a sync context when a control is created.
10257         * WindowsFormsSyncronizationContext.cs: Create a private static control
10258         to invoke on.  This is easier than trying to find a created control we
10259         can use.
10260         [Fixes bug #327608]
10261
10262 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
10263
10264         * Application.cs: Install a WindowsFormsSynchronizationContext in the
10265         run loop, and uninstall it when done.
10266         * WindowsFormsSynchronizationContext.cs: Implement.
10267         [Fixes the common case in bug #327608]
10268
10269 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
10270
10271         * DataGridViewCellCollection.cs: Added argument checks for indexers.
10272         Use case-insensitive lookup of column name in indexer. Code
10273         formatting.
10274
10275 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10276
10277         * TreeNode.cs: When collapsing or expanding a node, check whether its
10278         change will affect the visible area (we were previously doing a
10279         IsVisible check, but that check is not enough since children nodes
10280         could be still visible). Fixes part of #325266.
10281
10282 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
10283
10284         * TreeView.cs: Always select the first node when the TreeView gets
10285         focus if there is no currently selected node.
10286         [Fixes bug #324279]
10287
10288 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
10289
10290         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
10291         node being selected is null.
10292         [Patch from Yves Bastide fixes bug #326858]
10293
10294 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10295
10296         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
10297         whether all the parent nodes are expanded.
10298         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
10299         call RecalculateVisibleOrder if all previous nodes are expanded.
10300         Before that we were doing a IsVisible check, but sometimes the node
10301         is not in the visible area, but _should_already be ready, because of
10302         all previous nodes are expanded. Fixes #325259.
10303
10304 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10305
10306         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
10307         portion of the item is clicked.
10308
10309 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10310
10311         * TextControl.cs: Do not tell the system to move the cursor if the
10312         textbox isn't focused.  Fixes part of bug #322668.
10313
10314 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10315
10316         * ComboBox.cs: When there are no items, do not show the dropdown if
10317         the down arrow is clicked.  Fixes part of bug #322668.
10318
10319 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10320
10321         * ToolStripComboBox.cs: Manually set the size of this control in the
10322         constructor, as it doesn't seem to be the same as DefaultSize.
10323         Fixes a failing monobuild test.
10324
10325 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
10326
10327         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
10328         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
10329
10330 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
10331
10332         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
10333         Desktop.  This lets it work for people who have moved their desktops
10334         from the default location on windows.  For people who have not, both
10335         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
10336
10337 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10338
10339         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
10340         but when the base constructor sets this, the control is null.  Set it
10341         again in the constructor.  Fixes a failing monobuild test.
10342
10343 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10344
10345         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
10346         get called.
10347         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
10348         called.
10349
10350 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10351
10352         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
10353         will handle it themselves.
10354         * ToolStripItem.cs: When deciding what the text of a tooltip should
10355         be, use the Text property instead of the text field.
10356         * ToolStripTextBox.cs: Handle tooltips.
10357         [Fixes bugs #325417 and #325973]
10358
10359 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10360
10361         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
10362         left click.  Fixes the easy part of bug #325969.
10363
10364 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10365
10366         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
10367         bug #325406, but set a minimum for StatusStrip to 22 to keep
10368         bug #325390 fixed.  I think this minimum would have been figured
10369         up automatically if the grip was actually a ToolStripItem, but it
10370         currently is not.
10371
10372 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10373
10374         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
10375         as this is apparently the actual value used by .Net. Also apply
10376         ItemPadding in Details view only, and decrease the general width padding,
10377         to have only the needed. This should fix #324340 in Windows too.
10378
10379 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10380
10381         * ListViewItem.cs: Don't Invalidate item if parent is inside
10382         a BeginUpdate/EndUpdate block. This prevents to have differences
10383         between the ListView and items state, as well as avoid some exceptions
10384         there.
10385         * ListView.cs: Make 'updating' field internal.
10386
10387 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10388
10389         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
10390         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
10391         size if appropriate.
10392         Fixes reopened bug #325414.
10393
10394 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10395
10396         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
10397         * ToolStripItem.cs: Invalidate before and after our new autosize when
10398         text changes.
10399         Fixes reopened bug #325390.
10400
10401 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10402
10403         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
10404         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
10405         #325044.
10406
10407 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10408
10409         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
10410
10411 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10412
10413         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
10414         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
10415         #82734.
10416
10417 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
10418
10419         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
10420         item to select when the ToolStrip is selected.
10421         * ToolStripControlHost: Realign the control when the bounds or visibility
10422         change.
10423         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
10424         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
10425         preferred height.
10426         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
10427         base.OnPaint.  Was causing text not to be drawn.
10428
10429 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
10430
10431         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
10432
10433 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10434
10435         * TreeView.cs: When creating the label edit text box,
10436         set is initially to Visible = false. This is done to
10437         prevent a confusion in the layout which makes it to lose
10438         focus when shown the first time. Fixes part of #82592.
10439
10440 2007-09-13 Andreia Gaita <avidigal@novell.com>
10441
10442         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
10443
10444 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10445
10446         * ToolStrip.cs: Take Margin into account when calculating preferred
10447         size.  Also, allow preferred size to get smaller than the explicit
10448         size.
10449         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
10450         First step towards fixing bug #82747.
10451
10452 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10453
10454         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
10455         full row select background over the plus/minus glyph.  Also, turn
10456         off the focus rectangle for full row select since MS doesn't seem
10457         to ever paint it.  [Fixes bug #81839]
10458
10459 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10460
10461         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
10462         This was causing keyboard opened dropdowns to lose focus.
10463         [Fixes bug #82803]
10464
10465 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10466
10467         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
10468         ClientRectangle instead.  [Fixes bug #82838]
10469
10470 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10471
10472         * SplitContainer.cs: We can't reset Visible on every layout because
10473         someone may have set Visible = false explicitly on a SplitterPanel.
10474         Make sure when we switch orientation the SplitterDistance does not
10475         change.  Fixes two failing tests.
10476
10477 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10478
10479         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
10480         TextRenderer, since the latter is only available in 2.0.
10481
10482 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
10483
10484         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
10485         * SplitContainer.cs: Implement FixedPanel layouting.
10486
10487 2007-09-12  Andreia Gaita  <avidigal@novell.com>
10488
10489         * WebBrowserBase.cs: setup shutdown routine
10490
10491 2007-09-12  Andreia Gaita  <avidigal@novell.com>
10492
10493         * Application.cs: Let keyboard events that are targetted 
10494                 to non-mwf windows hosted inside mwf (as in, webbrowser),
10495                 propagate properly. Fixes keyboard handling on the webbrowser.
10496
10497 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10498
10499         * ListView.cs: When handling MouseUp event and we are 
10500         highligting a node with the mouse right button, don't trigger
10501         Before/AfterSelecting event, since we are not actually selecting
10502         the node.
10503
10504 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10505
10506         * TreeView.cs: When editing a node, modify the edit text box
10507         depending on the text length (as you are typing), like MS does.
10508
10509 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
10510
10511         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
10512         Override GetPreferredSizeCore to perform calculations.  Remove custom
10513         autosize logic.  [Fixes bug #82739]
10514
10515 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
10516
10517         * TextBoxBase.cs: Modified should default to false.
10518
10519 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10520
10521         * Control.cs: Update the anchoring distances even when layout is supspended.
10522         Patch provided by George fixes bug #82805.
10523
10524 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10525
10526         * Control.cs: Provide a setter for ExplicitHeight.
10527         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
10528         remove the hacks in here for requested_height.
10529         [Fixes bug #82749]
10530
10531 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10532
10533         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
10534         Maximum to lower that its current Value caused an ArgumentException by setting
10535         the Value to the new Maximum.
10536
10537 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10538
10539         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
10540         handle moves to the closest tick when it is being dragged.
10541         [Fixes bug #82751]
10542
10543 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10544
10545         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
10546         can't let them count as real items when calculating where to merge in the
10547         user's items.  [Fixed bug #82786]
10548
10549 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10550
10551         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
10552         who want to add a menu item directly onto a toolstrip.
10553         [Fixes bug #82775, part II]
10554
10555 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10556
10557         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
10558         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
10559         don't set it to available.
10560         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
10561         [Fixes bug #82727, part II]
10562
10563 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10564
10565         * StatusStrip.cs: Change item placement to None if not visible.
10566         * ToolStripItem.cs: Invalidate when InternalVisible changes.
10567         These should have been committed to fix 82723, but I missed them.
10568
10569 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10570
10571         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
10572         Click, and that it is only called once.
10573         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
10574         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
10575         dropped down.
10576         [Fixes bug #82775]
10577
10578 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10579
10580         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
10581         to match .Net.
10582         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
10583         instead of 8, just like above. Partially fixes #82734.
10584
10585 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10586
10587         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
10588         fixes #82734.
10589
10590         * ListView.cs: Remove extra space between rows in Details view (match
10591         .Net). 
10592         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
10593         the DefaultFont.
10594
10595 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
10596
10597         * Application.cs: Modified ProductVersion to return value of
10598         AssemblyInformationVersion if available, and fallback to assembly
10599         version. Fixes bug #82746. Code formatting.
10600         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
10601         instead.
10602
10603 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10604
10605         * Control.cs: When updating ZOrder for a child control,
10606         take into account the implicit ones (we need it in our controls
10607         using them). Fixes #82642.
10608
10609 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
10610
10611         * ToolStripItem.cs: Add support for animated images.
10612         [Fixes bug #82726]
10613
10614 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
10615
10616         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
10617         visible.  [Fixes bug #82727]
10618
10619 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10620
10621         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
10622         so we repaint using the new size.  [Fixes bug #82723]
10623
10624 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10625
10626         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
10627         option.  [Fixes bug #81779]
10628
10629 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10630
10631         * TreeView.cs: Override HandleClick because the StandardClick style is
10632         set to false.  According to MSDN (and testing), the click events should
10633         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
10634
10635 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10636
10637         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
10638         the border will disappear.  Fixes reopened #82653.
10639
10640 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10641
10642         * Control.cs: If the control is autosize, and its preferred size changes
10643         when it lays out its children, tell its parent so it can be re-layed out.
10644         Fixing some of the fallout from r85433.
10645
10646 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10647
10648         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
10649         and CheckBox share some code.
10650
10651 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10652
10653         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
10654         the TrackBar, not every mouse move.  [Fixed bug #82718]
10655
10656 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10657
10658         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
10659         under 2.0 rendering.  [Fixes bug #82657]
10660
10661 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10662
10663         * TreeView.cs: If we found a TreeNode to display a context menu, but
10664         it doesn't have one to show, let the TreeView display its menu
10665         instead.  [Fixes bug #82680]
10666
10667 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10668
10669         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
10670         OnPaintInternal instead.  Give the internal TextBox a Border property
10671         so it can draw itself more correctly.  [Fixes bug #82653]
10672
10673 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
10674
10675         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
10676
10677 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10678
10679         * ComboBox.cs: Adjust combobox button state to reflect current state when
10680         back to enabled = true. Fixes first issue of #82654.
10681
10682 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10683
10684         * Control.cs: Fix last patch regression, prevent forms to update zorder when
10685         setting visible property.
10686
10687 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10688
10689         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
10690         fix zorder for controls initially created as non visible. Fixes #82667.
10691
10692 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
10693
10694         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
10695         mimic win32 look. Fixes #82656.
10696
10697 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
10698
10699         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
10700         Stubs for new net 3.5 classes.
10701
10702 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10703
10704         * ListViewItem.cs: In ListViewItemCollection operations calculate
10705         Layout for owner as well as invalidate it. Fixes part of #82642.
10706
10707 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
10708
10709         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
10710         when returning Enabled.  [Fixes bug #82651]
10711
10712 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
10713
10714         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
10715
10716 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10717
10718         * ListView.cs: Put item padding info in a single place
10719         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
10720         columns again.
10721         * ThemeWin32Classic.cs:
10722         * Theme.cs: Likewise.
10723
10724 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10725
10726         * ListView.cs: When a ListViewSubItem instance is invalidated,
10727         invoke Invalidate on parent ListViewItem, not parent ListView.
10728         Fixes #81570.
10729
10730 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10731
10732         * ListView.cs, ListViewItem.cs: corcompare stuffs.
10733
10734 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10735
10736         * BindingMemberInfo.cs: Implement == and != operators.
10737
10738 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10739
10740         * HtmlElementEventArgs.cs: Implement properties.
10741
10742 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10743
10744         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
10745
10746 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10747
10748         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
10749         Add (string,string,string) to implement the imagekey.  It turns out, we
10750         use the requested imagekey whereas .Net does not.  So I broke ours to match
10751         theirs.  :(
10752
10753 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10754
10755         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
10756
10757 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10758
10759         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
10760
10761 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
10762
10763         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
10764         up-to-date. Fixes bug #82618.
10765
10766 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
10767
10768         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
10769         reflect document changes. Fixes #82367.
10770
10771 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10772
10773         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
10774         as well as add new ones. This should make work the BackgroundImage
10775         property for ListView again.
10776
10777 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10778
10779         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
10780         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
10781         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
10782
10783 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10784
10785         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
10786         IsKeyLocked.
10787
10788 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10789
10790         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
10791         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
10792
10793 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10794
10795         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
10796         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
10797
10798 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
10799
10800         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
10801
10802 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
10803
10804         * GridEntry.cs: Implement GetService.
10805
10806 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
10807
10808         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
10809         for label editting, make sure we focus back on the TreeView.
10810         [Fixes bug #82590]
10811
10812 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10813
10814         * ListView.cs: Add some 2.0 overrides.
10815
10816 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10817
10818         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
10819         because getter dont returns right value before handle creation. Thanks 
10820         to George. Fixes #82569.  
10821
10822 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10823
10824         * Theme.cs: Revert last patch, it causes error under win32. 
10825
10826 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10827
10828         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
10829         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
10830         logical Desktop rather than the physical file system location. Fixes #82603. 
10831
10832 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
10833
10834         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
10835         for the patch. Fixes #82568.
10836
10837 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10838
10839         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
10840         methods.
10841
10842 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10843
10844         * ListViewInsertionMark.cs: New stubbed class.
10845
10846 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10847
10848         * FolderBrowserDialog.cs: When adding folder, immediately create the
10849         directory with temporary name and rename the directory when editing
10850         finishes. This matches MS. Ensure the node for the new folder is 
10851         selected and LabelEdit is disabled, when editing is either finished
10852         or cancelled.
10853
10854 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10855
10856         * TreeView.cs: When editing label of node, ensure node is visible.
10857
10858 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
10859
10860         * PropertyGridView.cs: Set the value only if it has changed.
10861
10862 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10863
10864         * ListView.cs: Some more code refactoring to add support sorting
10865         with groups (now for Details view). Remove unused code also.
10866
10867 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10868
10869         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
10870         Not a big fan of reacting immediately to a field in an EventArg, but that's
10871         the way it's done.  (This is part of the previous commit that got left out.)
10872
10873 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10874
10875         * FolderBrowserDialog.cs: Removed need for separate description field.
10876         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
10877         has focus when dialog box is displayed again, regardless of what
10878         button was pressed the previous time. Set RootFolder and SelectedPath
10879         each time dialog box is displayed. This ensures the treeview is
10880         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
10881         when it does not have focus. Added support for more special folders.
10882
10883 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10884
10885         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
10886         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
10887         it resets the edit_args.
10888         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
10889         [Fixes bug #82577]
10890
10891 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
10892
10893         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
10894         button to match MS. Provide more meaningful exception message for
10895         invalid RootFolder value. Use zero-length string when SelectedPath
10896         is set to null. Allow non-rooted paths in SelectedPath, but ignore
10897         them in FolderBrowserTreeView. Allow folders to be created in
10898         RootFolder. Fixes bug #82576.
10899
10900 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10901
10902         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
10903         since we need to take into account the group headers and the margin
10904         between them.
10905         * ListViewGroup.cs: Add a rows field to store the number of rows per
10906         group.
10907
10908 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10909
10910         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
10911           Anyways, let's just follow the lead.
10912
10913 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10914
10915         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
10916         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
10917         controls in GetPreferredSizeCore.
10918         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
10919         [Fixes bug #82488]
10920
10921 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10922
10923         * PrintDialog.cs: Need to instantiate the form variable here too.
10924
10925 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10926
10927         * ListView.cs: Do some reorganization to support sorting in groups,
10928         by doing the layout sequentially in ListView.Items. Also add support
10929         for the Default Group, which should be available for items with no
10930         group assigned.
10931         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
10932         for storing layout info also.
10933         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
10934         collection, as well as providing internal members to do a traversal
10935         including the default group (needed when doing layout/drawing).
10936         * ThemeWin32Classic.cs: When drawing group headers use internal
10937         ListViewGroupCollection members to take into account the default
10938         group.
10939
10940 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
10941
10942         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
10943
10944 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10945
10946         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
10947         been created.  If handle is created, we want arror keys.  If we are editing
10948         a node, we want things like enter, esc, home, end, page up, page down.
10949         Allows Esc to work for FolderBrowserDialog.
10950
10951 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10952
10953         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
10954         they close when ESC is pressed.  Thanks Andy!
10955
10956 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10957
10958         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
10959         This way we can tell if this is a CommonDialog provided with mono, or one
10960         that is being implemented outside by a developer.  If it is an external one,
10961         the developer is responsible for showing their own form.  We were showing
10962         our blank form after the developer showed his.
10963         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
10964         PageSetupDialog.cs: Instantiate form variable in our constructor.
10965         [Fixes bug #82531]
10966
10967 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10968
10969         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
10970         and always return true.  [Fixes bug #81616]
10971
10972 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10973
10974         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
10975         TextBox.  [Fixes bug #82549]
10976
10977 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
10978
10979         * FileDialog.cs: When Save/Open is clicked and no filename is selected
10980         or entered then do not close the dialog. Fixes bug #82539. Removed
10981         CWLs.
10982
10983 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
10984
10985         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
10986         code to this method. It is calling every time filter changes. This method
10987         will help to fix the bug #80887.
10988
10989 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
10990
10991         * CheckBox.cs: Implement AutoSize calculation.
10992
10993 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
10994
10995         * CheckBox.cs: Use new 2.0 rendering for 2.0.
10996         * Theme.cs: Method declarations for 2.0 rendering path.
10997         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
10998
10999 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11000
11001         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
11002
11003 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11004
11005         * ListViewGroupCollection.cs: Implement AddRange the right way, to
11006         only call Redraw on the parent one time.
11007
11008 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11009
11010         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
11011           GetClipboardContent.
11012         * DataGridViewCell.cs: Implemented GetClipboardContent,
11013           GetEditedFormattedValue, GetFormattedValue.
11014         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
11015
11016 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
11017
11018         * TableLayoutStyleCollection.cs: corcompare fix.
11019
11020 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11021
11022         * DataObject.cs: Implemented retrieval of convertible / not convertible
11023           objects.
11024
11025 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
11026
11027         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
11028         ourselves.  This ensures the entire old bounds are repainted, in case our new
11029         size is smaller.  [Fixes bug #82518]
11030
11031 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
11032
11033         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
11034         flag to make fast handle of mouse events, without this the mouse move is
11035         handled in some manner, whether it is a mouse move or not. Fixes #81588.
11036
11037 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11038
11039         * ListView.cs: When doing layout calculations don't use a ref
11040         param to keep the current item; instead use its Index value (this 
11041         is specially important when doing the layout with Groups
11042         and Items being sparse). Also don't take into account items added to
11043         the Group but not yet added to the main ListView.Items collection.
11044
11045 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11046
11047         * ListViewGroupCollection.cs: Forgot to mimic an issue
11048         in the indexer (don't assign the ListView owner for new values).
11049
11050 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11051
11052         * ListViewGroupCollection.cs: Make the string indexer use
11053         the int based indexer to re-use code, instead of duplicate the code.
11054         Also Redraw as needed and take into account null values.
11055
11056 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
11057
11058         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
11059         [Fixes bug #82481]
11060
11061 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
11062
11063         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
11064         when other buttons are clicked or navigated to.
11065
11066 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11067
11068         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
11069           it's XplatUIX11 that attaches them.
11070
11071 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11072
11073         * DataGridView.cs: If a column has been added, recreate the editing row.
11074           Fixes #82226.
11075
11076 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11077
11078         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
11079           of the tag to draw. Makes disappearing text show up again.
11080
11081 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11082
11083         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
11084           Contents. Fixes #82487.
11085
11086 2007-08-19  Andreia Gaita  <avidigal@novell.com>
11087
11088         * Added HtmlElement.cs, HtmlElementCollection.cs, 
11089           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
11090           
11091 2007-08-19  Andreia Gaita  <avidigal@novell.com>
11092
11093         * BindingSource.cs: Implement this, dispose and getenumerator.
11094         * DataGridViewRowCollection.cs: Move the InvalidOperationException
11095         out of AddInternal, throw it only on public Add calls. The 
11096         UsingWebBrowser sample was blowing up with this when setting the
11097         DataSource after adding DataBindings, so it's likely that .net
11098         only throws this exception when Add is called directly. 
11099         
11100         * ToolStripControlHost.cs: Return the hosted control's text
11101         property, and not the ToolStripItem one (it would always return
11102         the initial value).
11103         
11104         * HtmlDocument.cs: Implement GetElementById and All
11105         * WebBrowser.cs: Remove exception on set_DocumentStream.        
11106
11107 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11108
11109         * Form.cs: Fix the max and min value for opacity (0~1).
11110
11111 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11112
11113         [Fixes #80118]
11114         * DataGridTableStyle.cs: Default header font is now null, on getter it 
11115         returns datagrid font when is null. On setter permits null.
11116
11117         * DataGrid.cs:
11118         - When ResetHeaderFont set header font to null.
11119         - On EndInit set grid_style.DataGrid.
11120
11121 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11122
11123         * TabControl.cs: Fix regression in default padding x.
11124
11125 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11126
11127         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
11128
11129 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11130
11131         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
11132         not 2. Fixes #82229.
11133
11134 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11135
11136         * TabControl.cs: Fix tab size when image height is less than text height.
11137         Partially fixes #81837.
11138
11139 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11140
11141         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
11142         "alt + tab". It works only for Win32, for X11 theres no way to remove window
11143         from taskbar and keep it on "alt_tab". Fixes #81722.
11144
11145 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11146
11147         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
11148         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
11149         Fixes #80877 and #79418.
11150
11151 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11152
11153         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
11154         between position and one of the screen borders. Fixes #82349.
11155
11156 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11157
11158         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
11159         the MessageBox in the taskbar. Fixes #82457.
11160
11161 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11162
11163         * MessageBox.cs: Fix form size when icon is set and text height is bigger
11164         than icon. Fixes #82468.
11165
11166 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11167
11168         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
11169         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
11170           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
11171           Refactored HandleNCCalcSize somewhat to avoid code duplication.
11172         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
11173           FormBorderStyle to decide if we're calculating a new size from the
11174           client size or not. CreateParams: Don't fake tool windows, only the X11
11175           backend manages toolwindows manually.
11176
11177 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11178
11179         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
11180         ObjectDisposedException.
11181
11182 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11183
11184         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
11185         in OnLoad should not have any effect.  [Fixes bug #82470]
11186
11187 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11188
11189         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
11190         paint for controls that create their own ToolTipWindow instead of
11191         going through ToolTip.
11192
11193 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11194
11195         * ToolTip.cs: Make Hide internal instead of public to match MS API.
11196
11197 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11198
11199         * ListViewGroupCollection.cs: Use generic List instead of an
11200         ArrayList, since this collection is 2.0 only.
11201
11202 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
11203
11204         * ToolTip.cs (Hide): Made public to make the build work (should
11205         this not be public?).
11206
11207 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11208
11209         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
11210         ToolTipWindow.
11211         * ToolTip.cs: Add an internal Visible property to facilitate transition.
11212
11213 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11214
11215         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
11216         PopupEventHandler.cs: Make these internal for 1.1.
11217         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
11218         use ToolTipWindow internals.
11219         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
11220         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
11221
11222 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11223
11224         * X11Dnd.cs: Add a null check.
11225
11226 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11227
11228         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
11229           nothing else succeeds. Fixes #82453.
11230
11231 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11232
11233         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
11234           rectangle if we're painting to another window than the one the paint
11235           message was generated on. Simplify the code somewhat, which makes
11236           PaintEventEnd also simpler.
11237
11238 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11239
11240         * Control.cs: When changing parent of a form, let the form decide whether
11241           XplatUI.SetParent should be called or not.
11242         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
11243           recreating the handle. If the new parent's handle isn't created, don't
11244           recreate our handle, just destroy it. CreateParams: Check if the
11245           parent's handle is created before fetching it.
11246
11247 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11248
11249         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
11250           Update calls to PaintEventStart/End to take a Message argument.
11251         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
11252           take a Message argument.
11253         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
11254           Message argument, and handle the case where we don't paint to the window
11255           for which the paint message was generated.
11256
11257 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11258
11259         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
11260           Marshal.GetLastWin32Error. Plug nasty memory leak in
11261           PaintEventStart/End, we were creating a DC we weren't releasing.
11262
11263 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11264
11265         * ListView.cs: Add Groups support in Details view. Also have a small
11266         method to do the layout of the group header. Don't use a separate
11267         method to do the groups calculation in Icons view, since our methods
11268         are now a little simpler.
11269         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
11270         `Bounds'.
11271         * ThemeWin32Classic.cs: Likewise.
11272
11273 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
11274
11275         * Application.cs: Add FilterMessage method and rework our message loop
11276         logic to use it.
11277
11278 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
11279
11280         * Application.cs: Add some methods and stub a few methods that are
11281         pretty much never used.
11282
11283 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
11284
11285         * TreeNode.cs: Add some serialization methods.
11286
11287 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11288
11289         * ListView.cs: In ListViewItemCollection have a 
11290         'is_main_collection' field to not modify ListViewItem.ListView
11291         when using it as ListViewGroup.Items (and not ListView.Items)
11292         and also don't modify selection state (.Net behaviour). 
11293         Instead, set group for items contained in a ListViewGroup.Items collection.
11294         * ListViewItem.cs: Simplify some code in Group setter.
11295         * ListViewGroup.cs: use the new .ctor to pass the current instance
11296         to the ItemsCollection.
11297         * ListViewGroup.cs: Set the ListView property for ListViewGroup
11298         instances when adding/removing. Also make Remove use RemoveAt, which
11299         should perform better.
11300
11301 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11302
11303         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
11304         that crept into the 1.1 profile.
11305
11306 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11307
11308         * ToolBarButton.cs: Implement ImageKey.
11309
11310 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11311
11312         * ToolBar.cs: Implement ScaleControl/ScaleCore.
11313
11314 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11315
11316         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
11317           created, it might have gotten destroyed since we last checked. Fixes
11318           #82405.
11319
11320 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
11321
11322         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
11323         tooltip will hide when mouse is moved off the control.
11324         [Fixes bug #82407]
11325
11326 2007-08-11 Andreia Gaita <avidigal@novell.com>
11327
11328         * WebBrowserBase.cs, WebBrowser.cs: add implementation
11329         using Mono.Mozilla for loading and navigating webcontrol
11330         with xulrunner.
11331         The initial implementation was done on 
11332         /trunk/mozembed/tests/browser , and copied here.
11333
11334 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
11335
11336         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
11337         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
11338
11339 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11340
11341         * DataGridView.cs: Add support for an editing row. Fixes #82226.
11342           RowTemplateFull: throw an exception if a column doesn't have a template.
11343         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
11344           add the row just before it.
11345         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
11346           selected.
11347         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
11348           DataGridView field to be able to reach the grid's editing row.
11349
11350 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11351
11352         * ToolTip.cs: If the control's handle hasn't been created when it has a
11353         tooltip set on it, don't check to see if we need to show the tooltip.  This
11354         check was causing the control's handle to be created.
11355         [Fixes bug #82399]
11356
11357 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11358
11359         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
11360                                         1.1             2.0
11361         Handle Not Created      -1              0
11362         Handle Created          0               0
11363         [Fixes bug #82371]
11364
11365 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11366
11367         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
11368         [Fixes bug #82348]
11369
11370 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
11371
11372         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
11373         * ToolTip.cs: Implement some properties and owner draw.
11374
11375 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11376
11377         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
11378           show them again, since setting visibility causes a paint, causing an
11379           endless loop (instead use a temporary and set it all when it's known if
11380           they should be shown or not). Fixes #79265.
11381
11382 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11383
11384         * DataGridView.cs: Only do a full column/row selection if a header was
11385           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
11386           isn't pressed, deselect everything before selecting something.
11387
11388 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11389
11390         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
11391           behaviour according to bug #81075 - they are returned in the order they
11392           are selected. Fix HitTest to check if the point is within any of the
11393           headers. Allow for row/column selection when in ColumnHeader or
11394           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
11395           the row and column to call when their selected state changes, and
11396           updated selected_[rows|columns] whenever SetSelected* is called.
11397         * DataGridViewBand.cs: Initialize isRow correctly. Call
11398           SetSelected[Row|Column]CoreInternal when the selected state changes, and
11399           add a SelectedInternal to avoid StackOverflows.
11400         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
11401           ReadOnly no matter what.
11402         * DataGridViewSelectedColumnCollection.cs,
11403           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
11404           the items in reverse order (just as MS does...)
11405
11406 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
11407
11408         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
11409         itself, not part of a mnemonic.  [Fixes bug #82378]
11410
11411 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11412
11413         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
11414         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
11415           the DGV, the column, the row, or the cell itself is readonly.
11416
11417 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
11418
11419         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
11420         OSVersion.Platform.
11421         * FileDialog.cs: Same.
11422         * TextRendered.cs: Same.
11423         * FolderBrowserDialog.cs: Same.
11424         * TextBoxBase.cs: Same.
11425         * Application.cs: Same.
11426         * Cursors.cs: Same.
11427         * ThemeClearLooks.cs: Same.
11428
11429 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
11430
11431         * XplatUI.cs: Added RunningOnUnix property to be used by controls
11432         instead of duplicating these checks everywhere.
11433         * FileDialog.cs: Use case-insensitive comparison for populating the
11434         DirComboBox when not running on unix. Fixes bug #82385.
11435         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
11436         "Look in".
11437
11438 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11439
11440         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
11441           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
11442           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
11443           cell and column selection with ctrl and shift pressed. Call the correct
11444           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
11445           the corresponding virtual method (PaintBackground to paint background,
11446           etc).
11447         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
11448           either the column, row or the cell itself is selected.
11449         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
11450           OnRowsAdded.
11451         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
11452           here. When the row is selected, don't select all cells. Each cell now
11453           queries the row to see if the row is selected.
11454
11455 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11456
11457         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
11458           SelectionMode.
11459
11460 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11461
11462         * ListView.cs: In ListViewItemsCollection check that owner is
11463         not null before trying to access it (this happens quite often
11464         using Groups). Also don't duplicate calls by calling CollectionChanged
11465         method.
11466
11467 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11468
11469         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
11470         when we are dismissed to clear keyboard mnemonics.
11471         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
11472         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
11473         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
11474         was activated by keyboard or the OS tells us to always draw them.
11475         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
11476         [Fixes bugs #82376, #82377]
11477
11478 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11479
11480         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
11481         shot at having it because Alt was pressed.
11482         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
11483         the first real menu item.
11484         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
11485         a mnemonic if Text is null.
11486         [Fixes bug #82374]
11487
11488 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11489
11490         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
11491         search do check whether the item is already contained in the
11492         collection or not; instead check if the owner of the item is the same
11493         as ours. Also, remove a redundant check in the same method. 
11494
11495 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11496
11497         * Control.cs: Allow the clip region to be set back to null.
11498         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
11499         [Fixes button still showing up in bug #82370 when Show Through is turned off]
11500
11501 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11502
11503         * GridEntry.cs: Add a null check.
11504         * PropertyGrid.cs: When checking for existing grid entries, ignore category
11505           entries. Fixes #82297.
11506
11507 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
11508
11509         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
11510         for 2.0.
11511
11512 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
11513
11514         * ListBox.cs: Implement ScaleControl.
11515
11516 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11517
11518         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
11519           have a menu strip.
11520         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
11521           parent has a menu strip. Fixes #81689.
11522
11523 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11524
11525         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
11526           moments, so apply some fuzzy logic to determine if the mouse is still
11527           inside a control or not. Fixes #82288 (for the third time).
11528
11529 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11530
11531         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
11532           Don't create the child if it has been disposed already (may happen if
11533           the user closes the form the Load event).
11534
11535 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11536
11537         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
11538           #82288.
11539
11540 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11541
11542         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
11543           might call us after we've been destroyed, in which case our own private
11544           parent field is null. Fixes #82326.
11545
11546 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
11547
11548         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
11549         check for setting the dropdown's owner.
11550
11551 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
11552
11553         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
11554         before removing system menu items.
11555
11556 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
11557
11558         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
11559         folding.
11560         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
11561         folding.
11562         * ToolStrip.cs: Add a null check to mnemonics.
11563         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
11564         no ConnectedArea.
11565         [Fixes most of bug #81689]
11566
11567 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11568
11569         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
11570
11571 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11572
11573         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
11574
11575 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11576
11577         * DataGridViewCell.cs: EditType: returns
11578           DataGridViewTextBoxEditingControl always.
11579
11580 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
11581
11582         * TextRenderer.cs: Remove the LineLimit string format flag from the
11583         DrawString fallback method so that things like buttons that aren't
11584         tall enough to draw a full line will still draw part of the text.
11585         [Fixes part of bug #82272]
11586
11587 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11588
11589         * DataGridView.cs: Implemented AutoResizeColumn(s).
11590         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
11591           according to the Alignment.
11592         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
11593           Implement alignment and padding when painting.
11594         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
11595           exists.
11596         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
11597           way.
11598         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
11599           a column is added.
11600
11601 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11602
11603         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
11604         which is internal.
11605
11606 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11607
11608         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
11609         hide GetPreferredSize from public API.
11610         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
11611         * ToolStripItem.cs: Stub out drag and drop methods and events.
11612         * ToolStripManager.cs: Stub out Save/LoadSettings.
11613         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
11614         * ToolStripPanel.cs: Fix corcompare error.
11615         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
11616         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
11617         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
11618
11619 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11620
11621         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
11622         bounds height instead of PreferredHeight.  Puts things back the way 
11623         they were for height while still fixing the width.  Fixes broken unit
11624         tests.
11625
11626 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11627
11628         * Binding.cs: Implement 2.0 constructors and add a null check.
11629
11630 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11631
11632         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
11633           and fix row index (off by one).
11634
11635 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11636
11637         * PropertyGridView.cs: Remove debug output.
11638
11639 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11640
11641         * Control.cs: We need to reset the is_created flags when the handle is
11642           destroyed. Fixes #82187.
11643         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
11644           client coordinates if the window doesn't have a parent.
11645           Win32GetParent returns the parent or the owner, and for top-level
11646           windows with no parent (but with an owner) we were calculating the
11647           location from the location of the owner.
11648         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
11649           form has been disposed.
11650         * MdiClient.cs: Add a null-check.
11651
11652 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
11653
11654         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
11655         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
11656         so we can provide an implementation that returns the current width
11657         and preferred height.  Allows anchor = right to work with TextBox 2.0.
11658         [Fixes bug #82233]
11659
11660 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11661
11662         * ListView.cs: Add support for navigating items in Groups mode, by
11663         creating a big matrix containing all rows and cols of all groups. When
11664         are in other mode than Details, pressing Up should have a similar
11665         behaviour as that one of Down (moving to the next available column if
11666         current one doesn't have an item in the requested row). Also, don't
11667         proceed to use groups if ShowGroups is false.
11668         * ListViewGroup.cs: Add an internal int field to store the starting
11669         row of the group (used by the big matrix used for navigating the
11670         ListView).
11671         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
11672         false.
11673
11674 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
11675
11676         * ToolStripDropDown.cs: When we do Show, start with the 
11677         DefaultDropDownDirection, but if our popup menu is going to off-screen,
11678         modify the direction to keep it on screen.  [Fixes bug #82210]
11679
11680 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
11681
11682         * FileDialog.cs: Accept any FilterIndex value, and store it
11683         unmodified. When FilterIndex is less than 1, or greater than number
11684         of filters, then default to first filter. Only add filter extension to
11685         file if user did not specifiy an extension. When type of dialog is
11686         OpenFileDialog and DefaultExt is set, then only use filter extension
11687         if: CheckFileExists is true and no file wih the default extension
11688         exists, or CheckFileExists is false, and user specified file does not
11689         exist. When CheckFileExists is true, then add first extension of 
11690         selected filter that matches existing file. Perform checks for
11691         existing file, overwrite and create after extension has been added to
11692         file name. When CheckFileExists is true and type is SaveFileDialog,
11693         then only consider first filter extension if DefaultExt is set.
11694         When CheckFileExists is true, then ignore DefaultExt if file with that
11695         extension does not exist. Also perform check for existing file when
11696         type is SaveFileDialog. Changed some field to constants.
11697
11698 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11699
11700         * ListView.cs: Take into account the region used by header
11701         control when doing the vertical scroll (this way we invalidate
11702         the precise area, and don't get any dirty one).
11703
11704 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
11705
11706         * FileDialog.cs: Check for valid filterIndex on button open/save. 
11707         Fixes #82184.
11708
11709 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11710
11711         * ListView.cs: Update some layout calculations in details view
11712         and clean the code in a pair of assignations.
11713
11714 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11715
11716         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
11717         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
11718         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
11719         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
11720
11721 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11722
11723         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
11724         performance of thread-safe Graphic methods.  (Thanks rolf!)
11725
11726 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11727
11728         * ListView.cs: When doing the layout calculations, don't calculate
11729         scroll bars before handle is created. This is unnecessary and also
11730         calculating them before handle creation item causes a number of random
11731         bugs (which begin to appear after Chris' big patch for handle creation
11732         fixes). 
11733
11734 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11735
11736         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
11737         for things that don't have a Graphics object.  Currently, things just use
11738         the static Hwnd.bmp_g which is not thread safe.
11739
11740 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11741
11742         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
11743           dialog. Fixes #82187.
11744
11745 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11746
11747         * DataGridViewElement.cs: Initialize state.
11748         * DataGridView.cs: Forward a few Mouse events to cells. Add
11749           GetRowInternal and GetCellInternal that doesn't unshare rows.
11750           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
11751           don't use the index, but look it up. Add
11752           DataGridViewControlCollection.RemoveInternal to remove controls
11753           that Remove won't remove (scrollbars, edit control).
11754         * DataGridViewColumn.cs: Initialize State correctly.
11755         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
11756           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
11757           implementing this.
11758         * DataGridViewRowCollection.cs: Implemented shared rows.
11759         * DataGridViewRow.cs: Throw exceptions as MS do.
11760         * DataGridViewCell.cs: A few properties are implemented by a
11761           Get<Property> method, so move implementation there and remove the
11762           NIEX in the method. Add a bunch of OnXInternal that DataGridView
11763           calls when necessary.
11764         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
11765           complicates matters.
11766         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
11767           unshare any rows.
11768
11769 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11770
11771         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
11772         the children controls.  Instead, we will just set up the proper docking for the
11773         children controls so we don't have to worry about it.  [Fixes bug #82188]
11774
11775 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11776
11777         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
11778         canceling and correct Before/AfterLabelEdit properties as layed out in bug
11779         81847.  [Fixes bug #81847]
11780
11781 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11782
11783         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
11784         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
11785         an explicit size based on the design-time size of the text.  Since our fonts
11786         may not match this explicit size, we tend to cut off the ends of people's labels.
11787
11788 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
11789
11790         * Menu.cs: Add some missing methods to MenuItemCollection.
11791
11792 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11793
11794         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
11795         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
11796         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
11797         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
11798         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
11799         * DataGridViewElement.cs: State defaults to Visible.
11800         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
11801         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
11802
11803 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11804
11805         * Control.cs: Minor 1.1 corcompare fix.
11806
11807 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11808
11809         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
11810         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
11811
11812 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11813
11814         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
11815           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
11816           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
11817           DataGridViewSelectedColumnCollection.cs,
11818           DataGridViewSelectedRowCollection.cs: Corcompare work.
11819
11820 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11821
11822         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
11823         it is autoset by VS2005 designer and the effect is barely noticeable.
11824
11825 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11826
11827         * TreeView.cs: Implement HitTest.
11828
11829 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11830
11831         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
11832           manually adding and removing the control from the Controls
11833           collecftion.
11834         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
11835           EditingControlInternal property that tracks the editing control.
11836           Always keeping the scrollbars in the Controls collection, as MS
11837           testing confirms is the right behaviour.
11838
11839 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11840
11841         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
11842           according to MSDN and new test.
11843
11844 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11845
11846         * TreeNode.cs: Implement ToolTipText.
11847         * TreeView.cs: Implement tooltips, NodeMouse* events.
11848
11849 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11850
11851         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
11852
11853 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11854
11855         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
11856         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
11857
11858 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
11859
11860         * Control.cs, Form.cs, ContainerControl.cs,
11861         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
11862         for misc properties.
11863
11864 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11865
11866         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
11867         * TreeView.cs: Implement StateImageList.
11868
11869 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11870
11871         * Form.cs: Don't check if the current form is the active form before
11872           activating it. Fixes #81904.
11873
11874 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11875
11876         * Form.cs: Don't check if the current form is the active form before
11877           activating it. Fixes #81904.
11878
11879 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11880
11881         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
11882
11883 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11884
11885         * Form.cs: Don't try to position the form after loading if the form was
11886           disposed. Fixes #81969.
11887
11888 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11889
11890         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
11891           properties. Had to change ToolBar into ToolStrip, which required a
11892           few #ifs.
11893
11894 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11895
11896         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
11897           resized, fixes part of #79829 (vertical lines in toolbar).
11898           PropertyGrid: Refactored Populate* to something that's easier to
11899           follow at least for me, as well as splitting it up into several new
11900           methods, required to update only subitems when something has
11901           changed by a popup editor or listbox. Don't use events to check
11902           when any values are changed, since the events are unreliable (we're
11903           changing the objects the events are registered with, and if the
11904           event handling requires the objects to be immutable (objects stored
11905           in hashtables for instance), the events will never be raised).
11906         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
11907           everytime we change a value, since events are unreliable.
11908           DropDownButtonClicked: For the same reason don't compare objects to
11909           check if it has changed or not, it would require all objects to
11910           derive Equals. Fix dialog location on windows, MS is doing weird
11911           things when creating parented forms.
11912         * GridEntry.cs: Add a SelectedObject setter.
11913
11914 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
11915
11916         * TreeNode.cs: Add some corcompare attributes.
11917         * TreeNodeCollection.cs: Implement 2.0 stuffs.
11918         * TreeView.cs: Implement some 2.0 stuffs.
11919
11920 2007-07-18  Andreia Gaita  <avidigal@novell.com>
11921
11922         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
11923         for moma.
11924
11925 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
11926
11927         * ListBox.cs: Implement custom tab offsets.
11928
11929 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11930
11931         * ToolStripContentPanel.cs: Support System renderer.
11932         * ToolStripControlHost.cs: Set RightToLeft to default to No.
11933
11934 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11935
11936         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
11937
11938 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11939
11940         * CheckBox.cs: Chain TextAlign to base implementation instead of
11941         maintaining another one.
11942
11943 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11944
11945         * ButtonBase.cs: Fix an incorrect string constant.
11946
11947 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11948
11949         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
11950         of creating one for measuring strings.
11951
11952 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11953
11954         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
11955         Implement MaxItemSize.
11956
11957 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
11958
11959         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
11960         for DeviceContext.  Instead, use the static one available in Hwnd.
11961         Informal tests show this saves about 500k on formtest.exe.
11962
11963 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
11964
11965         * ContainerControl.cs: Implement 2.0 AutoScaling.
11966
11967 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11968
11969         * ComboBox.cs: Work around bug #82120 (bug in mcs).
11970
11971 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
11972
11973         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
11974         Darken the focus color.
11975
11976 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
11977
11978         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
11979         for the checkbox.
11980         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
11981         X, Y instead of a rect for drawing text.
11982         - For ControlPaint.DrawCheckBox, center the check a little better when the
11983         checkbox is odd width.  When drawing a flat checkbox, use a white background
11984         when state != inactive.
11985         [Fixes bugs #82097, 82100]
11986
11987 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
11988
11989         * ListControl.cs: When changing CurrencyManager, disconnect event
11990         handlers from previous one. Fixes bug #81771. Code formatting.
11991
11992 2007-07-15  Andreia Gaita <avidigal@novell.com>
11993
11994         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
11995         full preview invalidation from layout invalidation, and only invalidate
11996         the layout when setting zoom or other properties. Invalidation should
11997         always be done even when resetting properties with the same values as
11998         what is there. Fixes #81744 and #79830.
11999
12000 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12001
12002         * ListView.cs: Implement initial support for Groups. Split some of the
12003         LayoutIcons code to render a partial list of the items (needed by
12004         items contained in ListViewGroup instances). Let the
12005         ListViewItemsCollection.ListView property be modifiable (needed when
12006         using Groups, too).
12007         * ListViewGroup.cs: Use a Bounds property rather than a Location
12008         one. Also invalidate the bounds when they get changed.
12009         * ThemeWin32Classic.cs: When drawing items, also draw the group header
12010         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
12011         method as well.
12012
12013 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12014
12015         * ListView.cs: When space gets pressed and CheckBoxes is true, 
12016         don't invoke the Begin and EndUpdate methods. We are generating 
12017         a redraw of the entire control without need to do so.
12018
12019 2007-07-13  William Holmes <billholmes54@gmail.com> 
12020
12021         * Control.cs: Changing logic in FindFlatForward and 
12022           FindFlatBackward to handle multiple Controls with 
12023           the same TabIndex.  
12024           This fixes bug 81687.
12025
12026 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
12027
12028         * OSFeature.cs: Enable IsPresent.
12029
12030 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12031
12032         * Control.cs: Don't do anything in WmShowWindow if the control has been
12033           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
12034           control is created, put on a form, the control is disposed (the
12035           form is never shown), and then we get a MapNotify, triggering a
12036           WM_SHOWWINDOW.
12037         * Form.cs: Exclude the current form when sending Deactivate to all
12038           MdiChildren.
12039         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
12040           there was a race condition because assigning the handle raises
12041           events, we can get more messages, therefore trying to assign the
12042           handle again, which would fail if any of those event handlers
12043           closed/disposed the control.
12044
12045 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12046
12047         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
12048
12049 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
12050
12051         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
12052         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
12053
12054 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12055
12056         * DateTimePicker.cs: If there's no part format specifier, return an
12057           empty string.
12058
12059 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
12060
12061         * FlatButtonAppearance.cs: Throw NotSupportedException for a
12062         Transparent BorderColor.
12063
12064 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12065
12066         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
12067           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
12068           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
12069           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
12070           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
12071           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
12072           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
12073           Remove warnings.
12074         * X11Structs.cs: Remove warnings, add ToString implementations.
12075
12076 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12077
12078         * XplatUIX11.cs: Translate min/max size according to the actual min/max
12079           size, and not the current size. Fixes #81798.
12080
12081 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12082
12083         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
12084           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
12085           to the control yet).
12086
12087 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12088
12089         * PropertyGridTextBox.cs: Add a method that sends any forwarded
12090           mousedowns to the contained textbox.
12091         * X11Structs.cs: More ToString implementation.
12092         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
12093           #81791.
12094
12095 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12096
12097         * PropertyGridView.cs: Add a null-check, fixes a few tests.
12098
12099 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
12100
12101         * TableLayoutPanelCellPosition.cs: TypeConverter.
12102
12103 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12104
12105         [ Fixes #79761]
12106         
12107         * PropertyGridTextBox.cs: Propagate any color changes to all contained
12108           controls.
12109         * PropertyGridView.cs: A few color fixes.
12110
12111 2007-07-10  Jackson Harper  <jackson@ximian.com>
12112
12113         * TextControl.cs: Remove some old unused text formatting stuff.
12114
12115 2007-07-10  Jackson Harper  <jackson@ximian.com>
12116
12117         * TreeView.cs: Update full row select invalidation to match the
12118         newer DrawSelection... method.
12119         - Make sure to invalidate the entire width when selecting a new
12120         node, if we have full row selection enabled.
12121
12122 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12123
12124         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
12125           display of properties again.
12126
12127 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
12128
12129         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
12130         to existing collections.
12131
12132 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12133
12134         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
12135         that changed between 1.1 and 2.0.
12136
12137 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12138
12139         * PowerStatus.cs: Added.  This is just a data class, it is filled
12140         in by SystemInformation.
12141
12142 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12143
12144         * Message.cs: Add op_Equality and op_Inequality.
12145
12146 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12147
12148         * MenuStrip.cs: Finish corcompare work.
12149
12150 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12151
12152         * LinkArea.cs: Add op_Equality and op_Inequality.
12153
12154 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12155
12156         * Application.cs: Add MessageLoopCallback delegate.
12157
12158 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12159
12160         * ListBox.cs: First set of 2.0 stuffs.
12161
12162 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12163
12164         * Control.cs: Make an internal Height property we can override
12165         without messing up the public API.
12166         * ListBox.cs: Override HeightInternal to always return the size
12167         the user set.  [Fixes bug #80466]
12168
12169 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
12170
12171         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
12172         paint cell borders if we haven't calculated where they go yet.
12173         [Fixes bugs #82040 and #82041]
12174
12175 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12176
12177         * ListView.cs: In Details view, set the location of item_control
12178         in the (0,0) position (and the header_control is thus on the
12179         item_control). This way the Bounds of the Items are relative to the
12180         ListView control (before this, they had a Bounds value without the
12181         header_control offset, which wasn't matching .Net). Fixes #82004.
12182
12183 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12184
12185         * ListControl.cs: When DataSource is set to null, pass an empty
12186         array of object to SetItemsCore. This is done to clean the items
12187         in the ListContol children. Fixes #81788.
12188
12189 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12190
12191         * ListControl.cs: Add 2.0 stuffs.
12192
12193 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12194
12195         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
12196         Refresh is overkill for just about every repaint request.
12197
12198 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12199
12200         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
12201         so remove my custom Get method and fix the property getter.
12202
12203 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12204
12205         * Label.cs: DefaultMargin for 2.0.
12206
12207 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12208
12209         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
12210         reported issue where other controls with mnemonics would steal strokes
12211         from a selected ComboBox.
12212
12213 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12214
12215         * ScrollOrientation.cs: Make internal for 1.1.
12216         * ScrollEventArgs.cs: Add 2.0 stuffs.
12217
12218 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
12219
12220         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12221         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
12222         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
12223
12224 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12225
12226         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
12227
12228 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12229
12230         * ListView.cs: Implement the so-incredibly broken 2.0 
12231         VirtualItemsSelectionRangeChanged event.
12232
12233 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12234
12235         * ListView.cs: When enter is pressed and selection is non empty,
12236         an OnItemActivate event must be fired.
12237
12238 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12239
12240         * ListView.cs: Store the FocusedItem information as an
12241         int instead of a ListViewItem (needed by VirtualMode).
12242         Update the calls to SetFocusedItem to pass an index instead of
12243         an item.
12244         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
12245         the Focused state from the owner ListView. 
12246
12247 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12248
12249         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
12250         property. Also, invalidate previous focused item in the mentioned
12251         property (match .Net).
12252
12253 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12254
12255         * ListView.cs: Implement 2.0 FocusedItem property setter.
12256
12257 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12258
12259         * ListView.cs: Implement 2.0 TopItem property setter.
12260
12261 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
12262
12263         * StatusStrip.cs: The default renderer is System.
12264         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
12265         if the user specifies it.
12266         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
12267         if we are ManagerRenderMode.
12268         * ToolStripMenuItem.cs: Calculate our text color better.
12269         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
12270         from Professional to the base class based off working with the System renderer.
12271         * ToolStripSystemRenderer.cs: Added.
12272
12273 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12274
12275         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
12276
12277 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
12278
12279         * ToolTip.cs: Implement 2.0 Tag property.
12280
12281 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12282
12283         * ListView.cs: Implement 2.0 HitTest methods.
12284
12285 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12286
12287         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
12288         item is under the pointer or not (sugar). Also remove the TODO
12289         regarding to the cursor changes in OneClick activation.
12290         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
12291         the subitems use the parent's HotFont if UseItemStyleForSubItems is
12292         true; otherwise don't show the underline style.
12293
12294 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12295
12296         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
12297         the code to retrieve the item at position only one time. Also
12298         change cursor when Activation is ItemActivation.OneClick as well
12299         as invalidate the item if HotTracking is true (to show/hide the
12300         underline style). Add an internal HotItemIndex property to retrieve
12301         the current hot item's index.
12302         * ListViewItem.cs: Add an internal HotFont property to cache the
12303         font used when HotTracking is true and the pointer moves within the
12304         item's borders.
12305         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
12306         HotFont depending on the hot state of the item.
12307
12308 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12309
12310         * ListView.cs: Implement 2.0 HotTracking property.
12311
12312 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12313
12314         * ToolStripControlHost.cs: If our hosted control never got created,
12315         don't try to dispose it.  [Fixes bug #81909]
12316
12317 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12318
12319         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
12320
12321 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12322
12323         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
12324
12325 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12326
12327         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
12328         Details view.
12329         * DrawListViewColumnHeaderEventArgs.cs:
12330         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
12331         using the DrawText () methods.
12332
12333 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
12334
12335         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
12336         background which got erased in my changes yesterday.
12337
12338 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12339
12340         * ListViewItem.cs: Actually set bounds for subitems in Details view
12341         (2.0 feature).
12342         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
12343         can invoke from the owner draw routines if we need it. Also, add
12344         support for Owner draw in Details view.
12345
12346 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12347
12348         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
12349         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
12350         ShowImageMargin setting, properly align text in a ToolStripLabel
12351         hosted on a ToolStripDropDown.
12352
12353 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12354
12355         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
12356         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
12357
12358 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12359
12360         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
12361
12362 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12363
12364         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
12365         location to match ToolStripMenuItems.
12366
12367 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12368
12369         * DrawListViewColumnHeaderEventArgs.cs:
12370         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
12371         column headers in ListView. 
12372
12373 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
12374
12375         * UserControl.cs: Implement AutoSize.
12376
12377 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12378
12379         * DrawListViewItemEventArgs.cs:
12380         * ListView.cs:
12381         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
12382         ListView.
12383
12384 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
12385
12386         * ToolStripDropDownItemAccessibleObject.cs: Added.
12387         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
12388         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
12389         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
12390         ToolStripTextBox.cs: corcompare work.
12391
12392 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
12393
12394         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
12395         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
12396         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
12397                 corcompare.
12398
12399 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
12400
12401         * OSFeature.cs: Add IsPresent.
12402         * PrintPreviewControl.cs: Add RightToLeft.
12403         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
12404         * SplitterPanel.cs: Add AutoSizeMode.
12405
12406 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12407
12408         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
12409         * MdiClient.cs: Add 2.0 ScaleControl.
12410         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
12411         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
12412
12413 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12414
12415         * Form.cs: Implement some scaling methods, stub some RTL methods,
12416         corcompare work.
12417
12418 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12419
12420         * Control.cs: corcompare work.
12421         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
12422
12423 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12424
12425         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
12426         ControlPaint 2.0 stuffs.
12427
12428 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12429
12430         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
12431
12432 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12433
12434         * UpDownBase.cs: Add 2.0 stuffs.
12435
12436 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12437
12438         * NumericUpDown.cs: Add 2.0 stuffs.
12439
12440 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12441
12442         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
12443
12444 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12445
12446         * ErrorProvider.cs: Implement 2.0 stuffs.
12447
12448 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12449
12450         * DomainUpDown.cs: Implement 2.0 stuffs.
12451
12452 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12453
12454         * CheckedListBox.cs: Fix RefreshItems signature.
12455
12456 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12457
12458         * PictureBox.cs: Implement 2.0 stuffs.
12459
12460 2007-06-12  Andreia Gaita  <avidigal@novell.com>
12461         
12462         * TabControl.cs: Check if there are tabpages before checking
12463         the selected index - fix #81802 (font changes raise a ResizeTabs
12464         call on controls.add, which blew up nicely with no tabpages)
12465
12466 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12467
12468         * ListView.cs:
12469         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
12470
12471 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12472
12473         * ListView.cs:
12474         * ListViewItem.cs: In VirtualMode the selection information
12475         resides in the ListView, rather than in the Items. Also, throw
12476         InvalidOperationExceptions when VirtualMode is being used and
12477         CheckedItemCollection is accessed.
12478
12479 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12480
12481         * ComboBox.cs: Add ScaleControl.
12482
12483 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12484
12485         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
12486
12487 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12488
12489         * GroupBox.cs: Add 2.0 stuffs.
12490
12491 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12492
12493         * Panel.cs: Add autosize properties/event.
12494
12495 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
12496
12497         * Control.cs:
12498         - When we remove a control, remove it from the collection before performing the layout.
12499         - Setup an internal property for explicit_bounds.
12500         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
12501         - Perform a layout when we set a new AutoSizeMode.
12502
12503 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
12504
12505         * ScrollableControl.cs: Add 2.0 stuffs.
12506
12507 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12508
12509         * ScrollBar.cs: Add 2.0 stuffs.
12510
12511 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12512
12513         * Splitter.cs: Add 2.0 stuffs.
12514
12515 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12516
12517         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
12518         to have BindingContext simply use base implementation.
12519
12520 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12521
12522         * ColumnHeader.cs: corcompare fix.
12523
12524 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12525
12526         * Button.cs: corcompare fixes.
12527         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
12528
12529 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12530
12531         * Button.cs: Override GetPreferredSizeCore.
12532         * ButtonBase.cs: PerformLayout after changing properties that can affect
12533         AutoSize.  Simplify some mouse/keyboard code.
12534         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
12535         * MouseEventArgs.cs: Make Location internal for 1.1.
12536         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
12537         * Theme.cs: Add CalculateButtonAutoSize.
12538         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
12539
12540 2007-06-05  Miguel de Icaza  <miguel@novell.com>
12541
12542         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
12543
12544 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12545
12546         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
12547         since we can get different item instances every time we retrieve it.
12548
12549 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12550
12551         * ListView.cs: Work around for #81602, since an unkown an pretty
12552         infrequent condition appears only in some systems (old linux boxes, it
12553         seems).
12554
12555 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12556
12557         * Button.cs: Completely reformat and a little refactor to bring
12558         this closer to Mono circa 2007.
12559
12560 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12561
12562         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
12563         to be ButtonBase.Invalidate.
12564
12565 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12566
12567         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
12568
12569 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12570
12571         * ButtonBase.cs: Completely reformat and a little refactor to bring
12572         this closer to Mono circa 2007.
12573
12574 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
12575
12576         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
12577         values for autosize. Fixes #80137.
12578
12579 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12580
12581         * Control.cs: Don't perform layout when AutoSize changes.
12582         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
12583         directly when autosizing, use SetBounds with BoundsSpecified.None.
12584         Fixes unit tests my last commit broke.
12585
12586 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12587
12588         * Control.cs: Perform layout when AutoSize changes.
12589         * Form.cs: Implement AutoSizing.
12590
12591 2007-06-01  Chris Toshok  <toshok@ximian.com>
12592
12593         * DataGrid.cs: remove the XXX'ed check at the top of
12594         ProcessGridKey.  fixes #80464.
12595
12596 2007-06-01  Chris Toshok  <toshok@ximian.com>
12597
12598         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
12599         adding idempotent (add/remove in Edit()), and also make sure we
12600         don't add it until after we set the text, so it's not tripped in
12601         Edit().  Fixes unit test regression.
12602
12603 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12604
12605         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
12606         change is user explicit, not when the layout engine moves stuff.  Fixes
12607         anchoring to bottom and right.  [Fixes bug #81790]
12608
12609 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12610
12611         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
12612
12613 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12614
12615         * ContainerControl.cs: 
12616         Fire enter event for common ancestor if it is not a ContainerControl.
12617         Send focus to the active_control and not the 'value', the active 
12618         control might have been changed in one of the events fired.     
12619         Definitely fixes #80159.
12620
12621 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12622
12623         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
12624
12625 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12626
12627         * PropertyGrid.cs: Anchor the help description to the bottom of the
12628           help panel and refactor SelectGridItem into a
12629           SelectGridItemInternal that can be set to null (and update it to
12630           clear the help texts when it is set to null). Set root item to null
12631           when there's no SelectedObject. Fixes #80438.
12632         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
12633           when we're recalculating after a resize (only).
12634
12635 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12636
12637         * ListView.cs: Implement 2.0 RedrawItems method.
12638
12639 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12640
12641         * ListControl.cs: Disconnect PositionChanged and ItemChanged
12642         handlers from previous data manager when DataSource is set to
12643         null. Fixes #81771.
12644
12645 2007-05-31  Jackson Harper  <jackson@ximian.com>
12646
12647         * TextBoxBase.cs: These seem to be the correct values.
12648
12649 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
12650
12651         * FileDialog.cs: When close dialog with ok set filterindex using combobox
12652         value. Fixes #81784.
12653
12654 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
12655
12656         * Control.cs: Implement 2.0 scaling methods.
12657
12658 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12659
12660         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
12661           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
12662           corcompare issues.
12663
12664 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12665
12666         * ProgressBar.cs: Implemented missing 2.0 members.
12667
12668 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12669
12670         * Control.cs: Corcompare issues.
12671         * MessageBox.cs: Implemented missing 2.0 functions.
12672
12673 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12674
12675         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
12676           Implemented more 2.0 members.
12677
12678 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12679
12680         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
12681           null (strange, but it seems to happen when running unit tests).
12682
12683 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12684
12685         * ContainerControl.cs: Set active_control even earlier, before 
12686         firing any events, and undo it if validation returns false.
12687
12688 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12689
12690         * ContainerControl.cs: Raise Validation and Enter/Leave events
12691         even if there is no Form and set active_control earlier, just
12692         before firing Enter events (toshok's patches). Fixes #80647.
12693
12694 2007-05-30  Jackson Harper  <jackson@ximian.com>
12695
12696         * TextControl.cs: Redid the pageup/pagedown a little to simplify
12697         things and fix bug #81311.
12698
12699 2007-05-30  Jackson Harper  <jackson@ximian.com>
12700
12701         * X11Dnd.cs: Now that we have our own event loop, we need to
12702         cancel when we get a mouseup but it won't be accepted.
12703
12704 2007-05-30  Chris Toshok  <toshok@ximian.com>
12705
12706         * DataGrid.cs (set_CurrentCell): guard against negative
12707         column/row.
12708
12709         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
12710         array index syntax instead of looping over the property names.
12711
12712         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
12713         and set IsInEditOrNavigateMode to false there.
12714
12715 2007-05-30  Jackson Harper  <jackson@ximian.com>
12716
12717         * TreeView.cs: Make sure we don't get a bad visible order when
12718         setting to the top node.  Fixes some misc crashing in
12719         ControlInspector.
12720
12721 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12722
12723         * UserControl.cs: Add 2.0 AutoSizeMode
12724
12725 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12726
12727         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
12728
12729 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12730
12731         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
12732         lines. Fixes #80285. 
12733
12734 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12735
12736         * DataGridColumnStyle.cs: Add char trimming column header text format. 
12737
12738 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12739
12740         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
12741         Fixes #80147.
12742
12743 2007-05-29  Jackson Harper  <jackson@ximian.com>
12744
12745         * TreeNode.cs: Fix off by one on calculating whether or not a node
12746         is visible.
12747
12748 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
12749
12750         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
12751         * ScrollableControl.cs: Force an UpdateDistances when we move the
12752         scrollbars.
12753         [Fixes bug #80605]
12754
12755 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12756
12757         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
12758         update the page setup screen.
12759
12760 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12761
12762         * PageSetupDialog.cs: Fix landscape mode.
12763
12764 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12765
12766         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
12767         IconSizeHorizontalSpacing.
12768
12769 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12770
12771         * ListView.cs: The declaration of prev_tooltip_item should be inside
12772         a NET_2_0 conditional (avoid a warning).
12773
12774 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12775
12776         * PageSetupDialog.cs: Implement PrintPreview control to display
12777         the preview thumbnail. Change unit conversion to use 
12778         PrinterUnitConvert methods.
12779         
12780         Note: there is a huge bug in ms.net where the default margins are 
12781         interpreted as centimeters (?), when in fact they are set in inches. When 
12782         loading the page setup dialog initially (ms.net), the default margins 
12783         are set to 1 inch, and the dialog shows them with value 10, when in fact 
12784         it should be 25 (properly converted). Our dialog doesn't have this bug.
12785         
12786         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
12787         RectangleF.
12788         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
12789
12790 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12791
12792         * ListView.cs:
12793         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
12794         items.
12795
12796 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12797
12798         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
12799         an IntPtr on csc (it builds fine on mcs, could it be a compiler
12800         bug?), convert the ptr to Int32 first.
12801
12802 2007-05-28  Jackson Harper  <jackson@ximian.com>
12803
12804         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
12805         recieved, we will exit the dnd tracking loop.
12806
12807 2007-05-28  Jackson Harper  <jackson@ximian.com>
12808
12809         * X11Dnd.cs: Keep tracking until the xdnd finished event is
12810         recieved. TODO: I should probably stick a timer on the dropped
12811         event, and finish the drag if the XDND Finished event never shows
12812         (because some apps don't seem to send it).
12813
12814 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
12815
12816         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
12817         #81733.
12818
12819 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12820
12821         * MonthCalendar.cs: Only mark the keypresses we actually handle as
12822           handled.
12823
12824 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12825
12826         * MonthCalendar.cs: Set the size after initializing all the relevant
12827           variables. Fixes #81742.
12828
12829 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12830
12831         * KeyEventArgs.cs: Fix typo.
12832
12833 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
12834
12835         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
12836         to match MS. Fixed MinDate to only accept value less than or equal
12837         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
12838         Removed TODO's that are now verified by unit tests.
12839
12840 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
12841
12842         * TreeNodeCollection.cs: Minor corrections to exceptions to match
12843         MS.
12844
12845 2007-05-25  Jackson Harper  <jackson@ximian.com>
12846
12847         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
12848         it's own message loop.
12849         * XplatUIX11.cs: Remove some of the dnd hooks
12850
12851 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
12852
12853         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
12854         instead of MinimizedWindowSize.
12855
12856 2007-05-25  Jackson Harper  <jackson@ximian.com>
12857
12858         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
12859
12860 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12861
12862         * KeyEventArgs.cs: Added SuppressKeyPress.
12863         * Control.cs: Added support for SuppressKeyPress.
12864
12865 2007-05-24  Andreia Gaita  <avidigal@novell.com>
12866
12867         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
12868         problems with PieChart. suppress_validation should not be a counter,
12869         if there are several BeginInit calls, the first EndInit will 
12870         activate validation. Fix exceptions thrown by set_Value.
12871         * UpDownBase.cs: ValidateText only if it's the user editing it.
12872
12873 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12874
12875         * ListControl.cs: FilterItemOnProperty should return the filtered
12876         item proeprty even if DataSource is null. The same applies for
12877         GetItemText. Fixes #80427.
12878
12879 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12880
12881         * Control.cs: If a control doesn't have a parent when it's Dock is
12882         set, but it has children, it needs to do a layout.  Fixes some nested
12883         controls issues.  [Fixes bug #81199]
12884
12885 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12886
12887         * ComboBox.cs: If there are few items in the drop down list, make it
12888           the exact size the items need, no bigger. Fixes #81612.
12889
12890 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12891
12892         * Application.cs: When we have captured the keyboard for a menu,
12893         check for mouse down events in case we need to close the menu.
12894         * Control.cs, Form.cs: Remove mouse down checks for menus.
12895
12896 2007-05-24  Jackson Harper  <jackson@ximian.com>
12897
12898         * TextControl.cs: Handle tabs in non multiline mode a little
12899         differently.
12900
12901 2007-05-24  Jackson Harper  <jackson@ximian.com>
12902
12903         * TextControl.cs: We need to manually break apart tabbed text and
12904         move the tabs, since the system.drawing tabbing mechanism relies
12905         on tab stops.
12906         * TextBoxBase.cs: Move the caret properly when the user enters a
12907         tab.
12908
12909 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12910
12911         * ContainerControl.cs: Don't check CanSelect before calling
12912         ProcessMnemonic.
12913         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
12914         release a KeyboardActive on click if it's not ours.
12915
12916 2007-05-23  Andreia Gaita  <avidigal@novell.com>
12917
12918         * ColumnHeader.cs: Add TypeConverter
12919
12920 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12921
12922         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
12923
12924 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12925
12926         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
12927
12928 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12929
12930         * LinkLabel.cs: Implement public Padding property.
12931
12932 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12933
12934         * LinkLabel.cs: Implement public FlatStyle.
12935
12936 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
12937
12938         * Control.cs: Apply patch from George to call parent.PerformLayout
12939         when Visible is changed.  [Fixes bugs #81118, 81718]
12940
12941 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12942
12943         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
12944
12945 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12946
12947         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
12948
12949 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12950
12951         * ContextMenu.cs: Implement Collapse.
12952
12953 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
12954
12955         * ToolBarButton.cs: Implement Name.
12956
12957 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
12958
12959         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
12960         use current_item, it prevents some NRE. Fixes #81675.  
12961
12962 2007-05-22  Andreia Gaita  <avidigal@novell.com>
12963
12964         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
12965         without updating the text.
12966
12967 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
12968
12969         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
12970         without calling DeleteObject.  [Should fix bug #81709]
12971
12972 2007-05-22  Jackson Harper  <jackson@ximian.com>
12973
12974         * RichTextBox.cs: Set the line endings correctly, when flushing
12975         RTF text.
12976
12977 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
12978
12979         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
12980          {Width=0,Height=0}.
12981
12982 2007-05-22  Jackson Harper  <jackson@ximian.com>
12983
12984         * TreeView.cs: Setting top with a null node should set to the very
12985         top.
12986
12987 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12988
12989         * Form.cs: ShowDialog: destroy the handle when message loop is
12990           finished, matches MS behaviour. Refactor parts of WmClose into
12991           RaiseCloseEvents, that only raises events if they haven't already
12992           been raised. Fixes #81688 and #81521.
12993         * Application.cs: Don't call close on the form when exiting a modal
12994           loop, it will raise all the (Form)Closed/Closing events again if
12995           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
12996           which doesn'r raise any events it they have been raised before.
12997
12998 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
12999
13000         * Control.cs: Add OnPrint.
13001         * ToolStrip.cs: Add GetChildAtPoint.
13002         * ToolStripContainer.cs: Add OnRightToLeftChanged.
13003         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
13004
13005 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
13006
13007         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
13008
13009 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13010
13011         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
13012           isn't visible anymore. Fixes #81651.
13013
13014 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13015
13016         * Control.cs: WmShowWindow: Update children's z-order after setting
13017           their parent. SetParent may show the window, thereby corrupting
13018           z-order, since the window will be shown on top.
13019         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
13020           multiple (and redundant) WM_SHOWWINDOW messages.
13021         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
13022           event has already been raised.
13023         * Form.cs: Change is_changing_visible_state to a counter, since
13024           SetVisibleCore can be called recursively. CreateHandle: when
13025           creating mdi children, send (De)Activated events.
13026         * MdiClient.cs: Update use of is_changing_visible_state.
13027         * Application.cs: OnThreadException: Surround exception handling with
13028           try/finally to ensure we always reset the error-handling state
13029           before leaving.
13030
13031 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13032
13033         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
13034           (#81704).
13035
13036 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13037
13038         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
13039         SmallIcon views, now that we have a standarized horizontal spacing.
13040
13041         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
13042         4, just like the other views (Match .Net).
13043
13044 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
13045
13046         * Control.cs: Delay calculating anchor distances until we actually layout.
13047         Always query the WM for the actual size and location it put us at instead of
13048         only when we send negative values.
13049         [Fixes bugs #81694, 81695]
13050
13051 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13052
13053         * Application.cs: Avoid a possible stack overflow when trying to exit
13054           the application.
13055
13056 2007-05-19  Marek Safar  <marek.safar@gmail.com>
13057
13058         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
13059         enum value.
13060
13061 2007-05-19  Andreia Gaita  <avidigal@novell.com>
13062
13063         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
13064         * NumericUpDownAcceleration.cs, 
13065           NumericUpDownAccelerationCollection.cs: Added 2.0
13066           implementation.
13067
13068 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
13069
13070         * RichTextBox.cs: Recalculate the document after the ScrollBars
13071         property is changed. Fixes bug #81681.
13072
13073 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
13074
13075         * DataObject.cs: Implement 2.0 methods.
13076
13077 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13078
13079         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
13080         in the center of the checkbox, not in the left-top corner. 
13081         Fixes #80037.
13082
13083 2007-05-18  Jackson Harper  <jackson@ximian.com>
13084
13085         * RichTextBox.cs: Recalculate the document after the scrollbars
13086         property is changed.
13087         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
13088         81486.
13089
13090 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13091
13092         * CreateParams.cs: Make HasWindowManager marginally faster.
13093         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
13094           into Hwnd so that other drivers can use it as well.
13095         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
13096           the default location from Hwnd. Fixes MDI client windows always
13097           showing up at (0,0) in Windows (Win32 won't set the default
13098           location since the window styles aren't correct).
13099
13100 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
13101
13102         * TreeView.cs: Modified DoubleBuffered to just use the base
13103         implementation.
13104
13105 2007-05-18  Jackson Harper  <jackson@ximian.com>
13106
13107         * TreeView.cs: Set the top node to the last child node when
13108         expanding all
13109         - When we get focus, if there is no selected node, use the top
13110         node.
13111
13112 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
13113
13114         * KeysConverter.cs: Add CanConvertTo.
13115         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
13116         * LinkConverter.cs: Added.
13117
13118 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13119
13120         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
13121         it prevents error when file dont have write access. Fixes #81669 and #81667.  
13122
13123 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13124
13125         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
13126         button text. Fixes #79640.  
13127
13128 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13129
13130         * Control.cs: According to MSDN controls created in the designer theres 
13131         keyboard accelerators visible by default. So included check for design
13132         in ShowKeyboardCuesInternal.  
13133
13134 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13135
13136         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
13137         text. Fixes #81621.  
13138
13139 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13140
13141         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
13142         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
13143
13144 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13145
13146         * Control.cs: Finish implementation of UI State using WmChangeUIState
13147         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
13148         in some controls to check for show_keyboard_cues to draw accell keys "_".  
13149
13150 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13151
13152         * ListBox.cs: When calculating the horizontal scrollbar
13153         in single column mode, don't use values less than 0 for
13154         Maximum. Fixes #81474.
13155
13156 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13157
13158         * ListBox.cs: Throw the some missing exceptions in
13159         ListBox.ObjectCollection methods.
13160
13161 2007-05-17  Jackson Harper  <jackson@ximian.com>
13162
13163         * TextBoxBase.cs: Recalculate the document when the word wrap
13164         value has changed. This fixes 81488.
13165
13166 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13167
13168         * Clipboard.cs: Implement missing GetText overload.
13169
13170 2007-05-17  Chris Toshok  <toshok@ximian.com>
13171
13172         * Control.cs (CheckDataBindings): remove the binding_context arg
13173         to binding.Check.
13174
13175         * CurrencyManager.cs (OnItemChanged): fix this now that
13176         BindingManagerBase is fixed. also remove the comment telling where
13177         the fix should go.  We set transfering_data to true/false around
13178         the call to PushData to keep UpdateIsBinding from being called.
13179         (ListChangedHandler): remove the extra OnMetaDataChanged call for
13180         PropertyDescriptorAdded in the 1.1 case.  The extra call is
13181         actually generated by System.Data generating 2 metadata changed
13182         events of its own per column add.  The fix should go there.  Add a
13183         comment to that affect in our test's Assert.Ignore.
13184
13185         * BindingManagerBase.cs: Rework PullData and PushData slightly.
13186         we keep a boolean flag (transfering_data) that keeps us from
13187         calling UpdateIsBinding multiple times if we re-enter either of
13188         them.
13189
13190         * ControlBindingsCollection.cs (AddCore): remove the
13191         binding_context arg to binding.Check.
13192
13193         * Binding.cs (IsBinding): don't check if we're binding here, just
13194         return our cached value.  we update it in UpdateIsBinding.
13195         (Check): don't take the binding_context arg, we'll just use our
13196         control's.  Also, for some reason MS doesn't use the data member
13197         field when getting the bindingmanager for this binding.  it just
13198         uses the datasource.  Make this method callable multiple times,
13199         and only do the is_null_desc stuff if manager.Position != -1 (so
13200         we don't get an exception accessing manager.Current).
13201         (UpdateIsBinding): move the code from IsBinding here.
13202         (PositionChangedHandler): call Check here to we can initialize
13203         things that require a non- -1 position.
13204
13205 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13206
13207         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
13208         control.
13209
13210 2007-05-17  Andreia Gaita  <avidigal@novell.com>
13211
13212         * TabControl.cs: Add 2.0 methods and events, including
13213         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
13214         * TabPage.cs: Add 2.0 methods
13215
13216 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13217
13218         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
13219         keyboard_cues is properly handled by message method.  
13220
13221 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13222
13223         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
13224
13225 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13226
13227         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
13228
13229 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
13230
13231         * Control.cs: 
13232         - WmUpdateUIState added to handle state changes, it make call to
13233         OnChangeUICues event.
13234         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
13235         SystemInformation.
13236
13237 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
13238
13239         * ImageKeyConverter.cs: Added.
13240         * TreeViewImageKeyConverter.cs: Added.
13241
13242 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13243         
13244         * ToolTips.cs: Update Text if SetToolTip is called for a control
13245         already showing the tooltip, as well as restarting its timer; show
13246         tooltip if we are inside the control bounds by the time of calling
13247         SetToolTip. Inside ShowTooltip remove the check to not show the 
13248         tooltip again for the active control (it is allowed by .Net to 
13249         show the tooltip on the same control multiple times).
13250
13251 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13252
13253         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
13254
13255 2007-05-16  Andreia Gaita <avidigal@novell.com> 
13256
13257         * ContainerControl.cs: only process tab key if there are no 
13258         modifier keys present, otherwise the control does the 
13259         tab processing, if it needs to. Fixes #81622
13260         * TabControl.cs: Fixes calculation for which tab to select on
13261         shift+ctrl+tab.
13262
13263 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13264
13265         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
13266
13267 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
13268
13269         * Control.cs: Make IsInputCharInternal to allow controls to
13270         override it and still match MS API.
13271         * TextBoxBase.cs: Override IsInputCharInternal and always
13272         return true.
13273         [Fixes bug #81616]
13274
13275 2007-05-15  Jackson Harper  <jackson@ximian.com>
13276
13277         * TextBox.cs: Disable some of the menu options when using a
13278         readonly textbox.
13279
13280 2007-05-15  Jackson Harper  <jackson@ximian.com>
13281
13282         * TextBox.cs:
13283         * TextBoxBase.cs:
13284         * RichTextBox.cs: Some new 2.0 methods
13285
13286 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
13287
13288         * FileDialog.cs: On 1.0 profile, do not support multidotted 
13289         extensions.
13290
13291 2007-05-14  Jackson Harper  <jackson@ximian.com>
13292
13293         * TextBoxBase.cs: Implement some of the new 2.0 methods.
13294         * RichTextBox.cs: We need to override these methods on 2.0.
13295         * MaskedTextBox.cs: These are implemented now
13296         * TextControl.cs: This was off by one.
13297
13298 2007-05-14  Jackson Harper  <jackson@ximian.com>
13299
13300         * TextControl.cs: Because the line endings are including in the
13301         text, we don't need to add them in anymore.
13302
13303 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13304
13305         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
13306         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
13307
13308 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13309
13310         * ToolBar.cs: Adjust size to default size when button theres no text and
13311         image, it fixes remaining issues from #81524.
13312
13313 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13314
13315         * ToolBar.cs: 
13316         - When not flat call redraw to recalculate sizes on creare handle to match
13317         win32 behavior.
13318         - Revert 77220 because it causes some regressions in toobar
13319         button.
13320
13321 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13322
13323         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
13324           now actually enters a usable state.
13325
13326 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13327
13328         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
13329         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
13330         3 buttons.
13331
13332 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13333
13334         * ToolBar.cs: Save default_size on create handle to use later for buttons
13335         without text, needed to mimic win32 behavior.
13336
13337 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13338
13339         * ToolBar.cs: Fix button layour to best fit width or height according to
13340         vertical or not. Fixes #81524.
13341
13342 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
13343
13344         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
13345         toolbar size info because different styles theres different sizes.
13346         Fixes #81522.
13347
13348 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13349
13350         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
13351         if we are using checkboxes, checked is true, and we have less
13352         than two images in StateImageList; for the 1.1 in the same scenario
13353         draw the first image if we have at least one image in StateImageList.
13354         Fixes part of #81191.
13355
13356 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13357
13358         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
13359         the owner's Items collection on merge.
13360
13361 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13362
13363         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
13364         * ToolStripItemCollection.cs: Lots of fixes to when events get called
13365         and parent/owner gets changed based on gert's unit tests.
13366
13367 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13368
13369         * MaskedTextBox.cs: Started implementing parts of it.
13370
13371 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13372
13373         * ListView.cs: When clicking the checkbox on the items
13374         take into account the double clicks even if we have only
13375         one image in StateImageList (only for 1.0/1.1). Also 
13376         generate an extra change of checked state when we receive
13377         the second click on checkbox (match .Net behaviour). 
13378         Fixes part of #81191.
13379
13380 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
13381
13382         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
13383
13384 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13385
13386         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
13387         even if OnLoad is overriden and base.OnLoad is not called.
13388         [Fixes bug #81582]
13389
13390 2007-05-10  Andreia Gaita  <avidigal@novell.com>
13391
13392         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
13393         shame. (I blame my ever-persisting and annoying cold)
13394
13395 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13396
13397         * ListView.cs: Don't eat navigation keys.  Let them flow through to
13398         KeyDown/KeyPress routines.  [Fixes bug #81569]
13399
13400 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13401
13402         * ListView.cs: When handling keys for selecting the item based off
13403         keyboard input, do not consider keys pressed with Alt or Control.  Also,
13404         correctly handle keys when the Shift key is down. [Fixes bug #81578]
13405
13406 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13407
13408         * Control.cs: When using UseWaitCursor, we have to store the requested
13409         Cursor to use when UseWaitCursor is turned off.
13410
13411 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13412
13413         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
13414         to false.
13415         * Application.cs: Use PreProcessControlMessage instead of
13416         PreProcessMessage.
13417         * PreProcessControlMessage.cs: Make internal for 1.1.
13418
13419 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13420
13421         * Control.cs: Add InternalContains focus property, which hast the same
13422         functionality of ContainsFocus, but also including implicit controls.
13423         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
13424         since we need to know if the focus is contained in our implicit
13425         ItemControl when calculating Layout. Fixes part of #80888.
13426
13427 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
13428
13429         * ToolTip.cs: Remove center form string alignment as it must be align to
13430         left.
13431
13432 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
13433
13434         * ToolStripItemCollection.cs: Set the new item's parent and owner
13435         in Insert like we do in Add.  [Fixes bug #81568]
13436
13437 2007-05-08  Jackson Harper  <jackson@ximian.com>
13438
13439         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
13440         - Off by one error in SetTop
13441         - Disable DoubeBuffering
13442         
13443 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13444
13445         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
13446           control as much as necessary in order to make it entirely visible,
13447           instead of centering the control in the container (matches MS
13448           behaviour). CalculateCanvasSize: we need to take the current scroll
13449           position into account when calculating the maximum canvas,
13450           otherwise the following scenario will fail: resize so that the
13451           scrollbars appear, use the scrollbars to scroll, resize again
13452           smaller, and now the canvas size is too small. Recalculate: when
13453           showing scrollbars make sure they start off at 0, and try to scroll
13454           the active control into view. Fixes #79540. HandleScrollBar: don't
13455           scroll anywhere if the scrollbar isn't visible.
13456
13457 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13458
13459         * ListView.cs: When focus changed, call Layout/Invalidate
13460         in the focused item to update the selected state (should show
13461         entire label when ListView is focused, and a part of it if is not).
13462         * ListViewItem.cs: When doing layout for LargeIcon, take into account
13463         for displaying the entire label not only the Focused state of the
13464         item, but also the Focused state of the ListView (match .Net
13465         behaviour).
13466
13467 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13468
13469         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
13470         Implement UseWaitCursor. 
13471
13472 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13473         Applying contributed patch from Sergey Volk.
13474
13475         * Clipboard.cs: Implement SetDataObject retry logic and new overload
13476         of SetDataObject.
13477         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
13478
13479 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13480
13481         * Control.cs: Implement DrawToBitmap.
13482
13483 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13484         Applying contributed patch from Stefan Noack.
13485         
13486         * Control.cs: Add [Get|Set]AutoSizeMode.
13487
13488 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13489
13490         * MdiClient.cs: Unmerge menus when the last child is closed.
13491
13492 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13493
13494         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
13495         * ToolStripManager.cs: Call Merge on DropDowns.
13496         [Fixes bug #81477]
13497
13498 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13499
13500         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
13501           uints.
13502         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
13503           visibility. We can't create forms visible, since we have to set the
13504           owner before making the form visible (otherwise Win32 will do
13505           strange things with task bar icons). The problem is that we set the
13506           internal is_visible to true before creating the control, so
13507           is_changing_visible_state is the only way of determining if we're
13508           in the process of creating the form due to setting Visible=true -
13509           this works because SetVisibleCore explicitly makes the form
13510           visibile afterwards anyways. Fixes #80775.
13511
13512 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13513
13514         * ThemeWin32Classic.cs: When drawing ListViewItems,
13515         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
13516         or LargeIcon _and_ item is not focused (match .Net behaviour).
13517
13518 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
13519
13520         * Control.cs, Form.cs: Fix some obsolete method warnings.
13521
13522 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
13523
13524         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
13525         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
13526
13527 2007-05-04  Andreia Gaita  <avidigal@novell.com>
13528
13529         * ContainerControl.cs: Fix active_control attribution when going
13530         up the parent chain so that the first parent container gets the control
13531         and the rest of the parent containers get the child containers (skips
13532         non-containers). Fixes #80729
13533
13534 2007-05-04  Randolph Chung  <tausq@debian.org>
13535
13536         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
13537         [Fixes bug #81499]
13538
13539 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13540
13541         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
13542           takes a size parameter, since the CreateParam's size isn't true for
13543           minimized forms. Fixes #81518,
13544
13545 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13546
13547         * Form.cs: Add OnDeactivateInternal.
13548         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
13549
13550 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13551
13552         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
13553           accessing the parent. Fixes #81508.
13554
13555 2007-05-03  Chris Toshok  <toshok@ximian.com>
13556
13557         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
13558         2.0 block, pass listposition + 1 to ChangeRecordState when a row
13559         was added before the current listposition.  Fixes the
13560         TestInsertRowBeforeCurrent unit test.
13561
13562 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
13563
13564         * Application.cs: Add RaiseIdle.
13565         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13566         XplatUIX11.cs: Implement RaiseIdle.
13567
13568 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
13569         corcompare work: N - Z
13570         * NotifyIcon.cs
13571         * ProgressBar.cs
13572         * RadionButton.cs
13573         * ScrollableControl.cs
13574         * SplitContainer.cs
13575         * SplitterPanel.cs
13576         * StatusBar.cs
13577         * SystemInformation.cs
13578         * TabControl.cs
13579         * TableLayoutControlCollection.cs
13580         * TableLayoutPanel.cs
13581         * TabPage.cs
13582         * ToolBar.cs
13583         * ToolBarButton.cs
13584         * ToolStrip.cs
13585         * ToolStripComboBox.cs
13586         * ToolStripContainer.cs
13587         * ToolStripContentPanel.cs
13588         * ToolStripDropDown.cs
13589         * ToolStripDropDownItem.cs
13590         * ToolStripDropDownMenu.cs
13591         * ToolStripItem.cs
13592         * ToolStripItemCollection.cs
13593         * ToolStripMenuItem.cs
13594         * ToolStripPanel.cs
13595         * ToolStripSplitButton.cs
13596         * ToolTip.cs
13597         * TreeNode.cs
13598         * TreeNodeCollection.cs
13599         * TreeNodeMouseHoverEventArgs.cs
13600         * TreeView.cs
13601
13602 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
13603
13604         * ContextMenu.cs: Add public method Show with alignment property to 2.0
13605         stuff. Thanks aatdark for the patch. 
13606
13607 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13608
13609         * GridItem.cs: Implement 2.0 Tag property.
13610
13611 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
13612
13613         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
13614         count instead of Nodes.Length.  [Fixes bug #81448]
13615
13616 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13617
13618         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
13619         [Fixes bug #81506]
13620
13621 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13622         corcompare work: A - M
13623         * BindingNavigator.cs
13624         * Button.cs
13625         * ButtonBase.cs
13626         * CheckBox.cs
13627         * Control.cs
13628         * FlowLayoutPanel.cs
13629         * Form.cs
13630         * Label.cs
13631         * LinkLabel.cs
13632         * ListView.cs
13633
13634 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13635
13636         * Application.cs: Give toolstrips a chance to process mnemonics.
13637         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
13638         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
13639         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
13640
13641 2007-05-01  Jackson Harper  <jackson@ximian.com>
13642
13643         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
13644         wider area too.
13645         - Don't set the BoundsSpecified
13646
13647 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13648
13649         * Application.cs: When using the toolstrip shortcut mechanism, allow the
13650         message to pass through to a regular control if it hosted by a toolstrip.
13651         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
13652         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
13653
13654 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13655
13656         * TextRenderer.cs: Use the flags argument when using the MeasureString
13657         fallback algorithm.
13658
13659 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13660
13661         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
13662         the MDI menu item.  [Fixes bug #81483]
13663
13664 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
13665
13666         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
13667         string. When setting Name to null, use zero-length string instead.
13668
13669 2007-04-29  Andreia Gaita  <avidigal@novell.com>
13670
13671         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
13672         DeselectTab). Implement missing 2.0 TabPageCollection methods
13673         (Add, ContainsKey, RemoveByKey, IndexOfKey)
13674
13675 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
13676
13677         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
13678
13679 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
13680
13681         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
13682         Fixes bug #81479. Include details of exception when LoadFile fails.
13683
13684 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
13685
13686         * DrawListViewSubItemEventArgs.cs: Added missing setter
13687
13688 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13689
13690         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
13691         Hide methods (not complete). Implement missing 2.0 OnPopup event.
13692
13693 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13694
13695         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
13696         removed in ly last commit (it was breaking the Label edit feature).
13697
13698         * ThemeWin32Classic.cs: When drawing a ListViewItem use
13699         StringAlignment.Near for LineAlignment (match .Net).
13700
13701 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13702
13703         * TabControl.cs: Change SetTab so it adds the tabpage to the list
13704         of controls if it isn't already there - was blowing up when doing
13705         tabcontrol.TabPages[i]=new TabPage(). 
13706         SetTab now does a replace by removing the page at the index. 
13707         Add a new InsertTab method that inserts a page in a given index 
13708         instead of replacing. 
13709         Implements TabPageCollection.Insert(int, TabPage).
13710
13711 2007-04-27  Chris Toshok  <toshok@ximian.com>
13712
13713         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
13714         internal handler that can be invoked from our subclasses.)  Also,
13715         add a comment to PushData about how we need to fix it.
13716
13717         * CurrencyManager.cs: tons of changes here.  trying to get things
13718         matching the behavior of .net wrt event orders (ItemChanged,
13719         CurrentChanged, PositionChanged.)  I've implemented a private .net
13720         symbol (ChangeRecordState) that appears in stack traces because
13721         it's actually easier to do this than to effective inline all its
13722         various behaviors at every call site.
13723
13724         * RelatedPropertyManager.cs: guard against an exception here by
13725         not using parent.Current if the position is set to -1 (if the
13726         parent datasource is cleared, for instance).
13727
13728         * Binding.cs: don't parse data in PushData (this might be wrong,
13729         but it jives with MS's behavior.)  Also, don't call PushData when
13730         we get a CurrentChanged event.
13731
13732 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13733
13734         * WebBrowser.cs,
13735           WebBrowserBase.cs,
13736           WebBrowserSiteBase.cs,
13737           HtmlDocument.cs: Added stubbed out classes, no real implementations 
13738           yet.
13739
13740 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13741
13742         * MainMenu.cs: In draw method without parameters call draw method with 
13743         PaintEvent, another one (just rect) adjust rectangle and we dont need it
13744         as Rect property is already adjusted. Fixes #80694.
13745
13746 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
13747
13748         * Application.cs: Need to handle keyboard menu deselection here.
13749         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
13750         navigation, allowing keyboard to work on X11.
13751         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
13752
13753 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13754
13755         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
13756         menu bar. It fixes some drawing issues in menu bar.
13757
13758 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13759
13760         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
13761         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
13762         when <alt> key is pressed.
13763
13764 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
13765
13766         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
13767         example just set visible to false and make this prevent from other problems.
13768         In SystrayAdd always remove pending expose. Fixes #81072.
13769
13770 2007-04-26  Marek Safar  <marek.safar@gmail.com>
13771
13772         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
13773         value is set.
13774
13775 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13776
13777         * ListView.cs: Added three missing 2.0 events and corresponding
13778         EventHandlers. Added the OwnerDraw property.
13779         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
13780
13781 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13782
13783         * DrawListViewItemEventArgs.cs
13784         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
13785
13786 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13787
13788         * TextControl.cs: Fixed typo in constructor
13789
13790 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
13791
13792         * Application.cs: Create a shortcut path so that currently selected
13793         MenuStrips can intercept keyboard events without having focus.
13794         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
13795         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
13796         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
13797         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
13798         generate WM_SYSCOMMAND message in X11 for other platforms.
13799         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
13800         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
13801         * ToolStripSplitButton.cs: Add DefaultItem property.
13802         
13803 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
13804
13805         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
13806         fixes some menu draw problem on Windows with border diferent from default
13807         it also fixes #81403.
13808
13809 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13810
13811         * Form.cs: Refactor WndProc into separate methods, just like Control is
13812           doing it.
13813
13814 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13815
13816         * Control.cs: set_Text: move the call to the driver into a seperate
13817           virtual method so that Form can override it.
13818         * MaskedTextBox.cs: Corcompare fixes.
13819         * Form.cs: Override UpdateWindowText and only update the styles if the
13820           form has been shown (fixes #81405).
13821
13822 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
13823
13824         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
13825         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
13826         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
13827         the form lost focus or another control was clicked.
13828
13829 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
13830
13831         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
13832         fixed.
13833
13834 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13835
13836         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
13837           DrawListViewItemEventHandler.cs,
13838           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
13839           Added.
13840         * X11Structs.cs: More ToString implementation.
13841
13842 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
13843
13844         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
13845         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
13846
13847 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13848
13849         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
13850           handle.
13851         * FormCollection.cs: Don't add a form if it's already in the
13852           collection.
13853         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
13854           according to behaviour and MSDN. The ownerWin32 is the active
13855           window at the moment when we call ShowDialog, not the context's
13856           main form (the context's main form may open another form that opens
13857           a form with ShowDialog, the win32 owner is the second form). Add
13858           and remove forms to the Application.OpenForms in other places to
13859           better match MS behaviour. Add an IsActive property that raises
13860           On(de)Activated only if the active state has changed (we were
13861           raising OnDeactivated before OnActivated while creating forms).
13862         * Application.cs: Refactor Enabling/Disabling of windows for modal
13863           dialog loops out to separate methods, and restore the thread
13864           context when we quit the method. Fixes #81407.
13865
13866 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13867
13868         * ListView.cs: In ItemControl.HandleClicks, also fire 
13869         2.0 MouseClick or MouseDoubleClick events on the parent,
13870         not only the Click/DoubleClick events.
13871
13872 2007-04-24  Andreia Gaita  <avidigal@novell.com>
13873
13874         * TableLayoutSettings.cs: 
13875         - Added a GetControls method and a support structure to help the 
13876         TypeConverter to enumerate the controls for     serialization. 
13877         - Added a new serialization constructor. 
13878         - Added a isSerialized flag initialized to true on the 
13879         serialization constructor so that the TableLayoutPanel.LayoutSettings 
13880         setter does not throw the designed NotSupportedOperation exception
13881         when the object is built through deserialization.
13882         - Implemented GetObjectData
13883         
13884         * TableLayoutPanel.cs: Added check on LayoutSettings.
13885
13886 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13887
13888         * ListView.cs: Report Click and DoubleClick events to the parent
13889         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
13890         from breaking the click count state when using dialog forms (Control
13891         reports the clicks in a similar fashion). In the previous behaviour
13892         the last WM_LBUTTONUP message in a  double click was sent to the
13893         ListView's form, instead of the ListView, which was breaking the click
13894         count for it. Fixes #80387.
13895
13896 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
13897
13898         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
13899
13900 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
13901
13902         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
13903         us from created dropdowns for menu items that do not have subitems.
13904         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
13905         Check HasDropDownItems before calling DropDown so a dropdown will not be
13906         created if it isn't needed.
13907
13908 2007-04-24  Jackson Harper  <jackson@ximian.com>
13909
13910         * TreeView.cs: Set the first node to the selected node when we get
13911         focus if there is no selected node.
13912
13913 2007-04-24  Andreia Gaita  <avidigal@novell.com>
13914
13915         * MimeIcon.cs: remove using blocks so that image streams are
13916         not disposed of. Fixes #80151
13917
13918 2007-04-24  Jackson Harper  <jackson@ximian.com>
13919
13920         * TextBoxBase.cs: Fixup the height of textboxes when the control
13921         is created.
13922
13923 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
13924
13925         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
13926         for each ToolStripItem when the parent's RightToLeftChanged is called.
13927
13928 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13929
13930         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
13931           Fixes #80163.
13932         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
13933           property, so that the setter can be overriden too.
13934         * TextBox.cs: Change GetContextMenuInternal() to use
13935           ContextMenuInternal.
13936
13937 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13938
13939         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13940           #81406.
13941
13942 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13943
13944         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13945           #81406.
13946
13947 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13948
13949         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
13950           avoid duplicate work. Mostily skeleton code, it's not working at
13951           all yet.
13952
13953 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
13954
13955         * NotifyIcon.cs : stub for MouseClick event
13956         * Application.cs: stub for SetUnhandledExceptionMode
13957
13958 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
13959
13960         * BindingNavigator.cs : Initial (partial) implementation
13961
13962 2007-04-23  Jackson Harper  <jackson@ximian.com>
13963
13964         * TreeView.cs: Do not create the treeview's handle when setting
13965         the scroll position.
13966         - ExpandAll needs to compute the scrollbars so it knows which
13967         position to set the bar too.
13968         * TreeNode.cs: 
13969         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
13970
13971 2007-04-23  Jackson Harper  <jackson@ximian.com>
13972
13973         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
13974         key. Fixes #81408.
13975
13976 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
13977
13978         * ToolStripItem.cs: Make GetImageSize internal.
13979         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
13980         need to draw an item.  Fixes a reported issue where images on menus
13981         that were not 16x16 were drawing incorrectly.
13982
13983 2007-04-21  Miguel de Icaza  <miguel@novell.com>
13984
13985         * Padding.cs: Use the converter, fixes the resgen2 issue with
13986         XMLNotePad. 
13987
13988 2007-04-21  Jackson Harper  <jackson@ximian.com>
13989
13990         * TreeView.cs: Dont try to unhighlight the selected node if there
13991         isn't a selected node.
13992
13993 2007-04-21  Jackson Harper  <jackson@ximian.com>
13994
13995         * UpDownBase.cs:
13996         * TextBoxBase.cs:
13997         * ListView.cs:
13998         * ListBox.cs:
13999         * TreeView.cs: Use the InternalBorderStyle property to set the
14000         initial border style, this forces the client rectangle to be sized
14001         correctly.
14002
14003 2007-04-20  Jackson Harper  <jackson@ximian.com>
14004
14005         * TreeView.cs: Simplify scrolling to the last node after expanding
14006         all.
14007         - Fix some off by ones with setting the bottom.
14008
14009 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
14010
14011         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
14012         that.  We were incorrectly doing it the other way around.  Also,
14013         update ClientSize if we change the BorderStyle before the control
14014         is created.
14015
14016 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
14017
14018         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14019         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14020         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
14021         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14022         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14023         Caption to CaptionHeight.
14024         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
14025         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
14026         and FixedFrameBorderSize to return value from current XplatUI driver.
14027         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
14028         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
14029         and FixedFrameBorderSize using win32 API. Renamed Caption to
14030         CaptionHeight.
14031         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
14032         * SystemInformation.cs: Fixed typo in BorderSize.
14033
14034 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
14035
14036         * XplatUI.cs: Added MenuAccessKeysUnderlined.
14037         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
14038         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
14039         returning false.
14040         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
14041         value from XplatUI driver.
14042         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
14043         SystemParametersInfo.
14044         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
14045         override.
14046         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
14047         returning false.
14048
14049 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14050
14051         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
14052
14053 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14054
14055         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
14056
14057 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
14058
14059         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
14060         MenuStrips that contain ToolStripSeparators.
14061
14062 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14063
14064         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
14065           DefineStdCursorBitmap.
14066         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
14067           has been created off a standard cursor. This is used to get a
14068           bitmap of the standard cursor when Draw or DrawStretched is called
14069           in order to draw the cursor.
14070         * X11Structs.cs: Added XcursorImage and XcursorImages.
14071         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
14072           DefineStdCursorBitmap.
14073         * Cursors.cs: Update all relevant creations of Cursor to use the new
14074           internal constructor.
14075
14076 2007-04-19  Jackson Harper  <jackson@ximian.com>
14077
14078         * TextBox.cs: Move the has_been_focused into the base control, so
14079         some of the text adding methods can manipulate it (probably time
14080         for a better name for this flag too).
14081         - Call a new version of selectall that doesn't scroll
14082         * TextBoxBase.cs: When we append text, if the document is empty,
14083         don't scroll.  If the document has text already, we scroll to the
14084         end of the appended text.
14085         - When the text is changed, we reset the has_been_focused, so the
14086         next time the control gets focused, all the text is selected.
14087
14088 2007-04-19  Jackson Harper  <jackson@ximian.com>
14089
14090         * TextControl.cs: Move the margins to the document, add a method
14091         so the margin sizes can be updated.
14092         * TextBoxBase.cs: When the border style is changed, update the
14093         border sizes.
14094
14095 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
14096
14097         * Control.cs: Respect DefaultPadding.
14098         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
14099         padding into account.
14100         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
14101
14102 2007-04-19  Jackson Harper  <jackson@ximian.com>
14103
14104         * TextControl.cs: Oops, we need to use the ClientRect not the
14105         bounds here.
14106
14107 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14108
14109         * ListView.cs: In ItemControl.ItemsMouseDown, take into
14110         account the double clicks when CheckBoxes are used and
14111         the pointer is inside the checkbox. Fixes part of #81191.
14112
14113 2007-04-18  Jackson Harper  <jackson@ximian.com>
14114
14115         * TextControl.cs: Pressing the end key shouldn't move the caret
14116         past the line ending.
14117         * TextBoxBase.cs: We can still delete if we are in the line
14118         ending and the combine will just kill the existing line ending.
14119
14120 2007-04-18  Jackson Harper  <jackson@ximian.com>
14121
14122         * TextControl.cs: We can't move lines, then invalidate their
14123         bounds, we need to get the old bounds and combine that with the
14124         new bounds.
14125         * TextBoxBase.cs: Before combining two lines for a delete, we need
14126         to invalidate the area of the old line, since that will be moved
14127         in the combine operation.
14128
14129 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
14130
14131         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
14132         with transparent background. Fixes #80482.
14133
14134 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
14135
14136         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
14137         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
14138         [Fixes bug #81391]
14139
14140 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14141
14142         * CreateParams.cs: Add a couple of helper methods and do a less string
14143           concatenation in ToString.
14144         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
14145           overload that takes a Control parameter, since this method may be
14146           called before a control is assigned to the hwnd (from
14147           CreateWindow), and update CreateWindow to use the new overload. In
14148           GetMenuOrigin subtract the title bar from the y position if the
14149           form has a window manager (since we're painting it and not X).
14150         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
14151           CreateParams to calculate the origin (since border sizes may vary).
14152           In ScreenToMenu only subtract the title height if we actually have
14153           a title.
14154         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
14155           mdi children never have menus of themselves.
14156         * InternalWindowManager.cs: Implement menu handling like form does.
14157           Added GetMenuOrigin to calculate the menu origin, can't use the
14158           CreateParams from the form like normally since it's lying.
14159         * Hwnd.cs: Implement GetBorderSize better (in the sense more
14160           windows-like) and add Inflate and comparison operators to the
14161           Borders type. When calculating MenuOrigin and it's a form with a
14162           window manager, use the window manager to calculate it.
14163
14164 2007-04-17  Chris Toshok  <toshok@ximian.com>
14165
14166         * Control.cs (CreateControl): turns out in 2.0 we don't need this
14167         OnBindingContextChanged thing here.  It's only generated from
14168         ContainerControl.OnCreateControl.  Fixes a newly written unit test
14169         - BindingTest.BindingContextChangedTest4.
14170         
14171 2007-04-17  Jackson Harper  <jackson@ximian.com>
14172
14173         * ScrollBar.cs: When setting values, make sure the current
14174         position stays within the new values range.
14175
14176 2007-04-17  Chris Toshok  <toshok@ximian.com>
14177
14178         * Control.cs (CreateControl): talk about a bizarre corner case.
14179         Don't emit OnBindingContextChanged here if we're a parentless
14180         control (i.e. if we're a form.).  Fixes
14181         BindingTest.BindingContextChangedTest2.
14182
14183 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
14184
14185         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
14186         from win32. Fixes #81255.
14187
14188 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
14189
14190         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
14191         already present in CalculateButtonTextAndImageLayout.
14192
14193 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14194
14195         * XplatUIX11.cs: When setting min/max size for a window we need to
14196           translate the coordinates to x coordinates. Create an overload of
14197           SetWindowMinMax that takes a CreateParams handling this, and change
14198           SetWMStyles to call this function (can't use Control.FromHandle in
14199           the SetWindowMinMax to get the control/CreateParams from the handle
14200           because the handle might not have been assigned to the control
14201           yet). Fixes #81371.
14202
14203 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14204
14205         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
14206         if StateImageList is non-null and it has less than two items (match MS
14207         behaviour). Also, in HandleNavKeys handle the Space key, calling
14208         the new ToggleItemsCheckState method, which tries to change the
14209         checked state of the selected items. Fixes part of #81191.
14210
14211 2007-04-16  Jackson Harper  <jackson@ximian.com>
14212
14213         * RichTextBox.cs: namespace cleanup.
14214
14215 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
14216
14217         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
14218
14219 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
14220
14221         [Fixes #79447]
14222         * Control.cs: Call invalidate in set_Region.
14223
14224         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
14225         it dont works here.
14226
14227 2007-04-16  Jackson Harper  <jackson@ximian.com>
14228
14229         * TextBoxBase.cs: When enter is pressed, we need to update all
14230         lines below the current.
14231
14232 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
14233
14234         * MdiClient.cs: Implement implicit menu merging for MDI
14235         children.  When a child form is active, if it has a menustrip
14236         and the parent form has a MainMenuStrip, automatically merge
14237         the menus.
14238
14239 2007-04-15  Andreia Gaita  <avidigal@novell.com>
14240
14241         * TabControl.cs: Refactored sizing methods to not repeat
14242         code all over the place. Tab bounds are now calculated
14243         as if alignment is top and single line, and only when 
14244         setting the bounds are the positions adjusted according
14245         to alignment. Replaced hardcoded positions, spacings and
14246         paddings by getting the values the ThemeEngine. 
14247         Fixes #79619.
14248         
14249         * Theme.cs: Change TabControl properties and methods so
14250         that all start with TabControl*. Added more properties
14251         to help remove hardcoded values on tabcontrol.
14252         Add CPDrawBorder3D declaration so the Theming classes
14253         can access it.
14254         
14255         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
14256
14257         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
14258         on the Theming namespace, and call the appropriate methods here.
14259         Change CPDrawBorder3D to public.
14260
14261 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14262
14263         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
14264         the control after firing the OnMouseUp event, instead of sending
14265         the message before the mentioned event. This is so we can match the
14266         MS behaviour. Fixes part of #80385.
14267
14268 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
14269
14270         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
14271         RightToLeft property.
14272
14273 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
14274
14275         * ToolStrip.cs: Add properties and internal methods to support merging.
14276         * ToolStripItem.cs: Add MergeAction and MergeIndex.
14277         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
14278         not trigger reparenting or layouts.
14279         * ToolStripManager.cs: Add Merge and RevertMerge methods.
14280         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
14281         is hosting the overflow menu.
14282
14283 2007-04-13  Jackson Harper  <jackson@ximian.com>
14284
14285         * TextControl.cs: Set the line ending correctly for the first
14286         inserted line.
14287
14288 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
14289
14290         * Theme.cs: Update GetMethod to get the new definition for 
14291         KnownColors.Update (and fix theme color updates).
14292
14293 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
14294
14295         * MessageBox.cs: Fix some test and button position.
14296
14297 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14298
14299         * Form.cs: Consider the implicit controls in
14300         GetRealChildAtPoint. We need it since this method
14301         is called on Form when handling the some messages in
14302         WndProc, and need to consider those implicit ones too.
14303         Fixes #80385.
14304
14305 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
14306
14307         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
14308         if there are no ShortcutKeys set.
14309         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
14310         set, use it when painting.
14311
14312 2007-04-12  Jackson Harper  <jackson@ximian.com>
14313
14314         * TextControl.cs: Fix some off-by-one issues in line duplication
14315         and insertion in the undo manager. Also, overwrite the first tag
14316         of a line on insert, if it is just a zero lengthed tag. This
14317         prevents us from getting an extra stranded tag at the beginning of
14318         the first line.
14319
14320 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
14321
14322         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
14323         to calculated proper size including when handle was not created yet.
14324
14325 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14326
14327         * MdiWindowManager.cs: When moving a form, allow the form to be moved
14328           when the mouse is outside of it's parent's client rectangle. Fixes
14329           #79982 (take 3, part 2).
14330
14331 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14332
14333         * X11Structs.cs: Add a few ToString() overrides.
14334         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
14335           the window location in a window-manager independent way. Reworked
14336           FrameExtents, it now actually works. Reworked AddConfigureNotify
14337           and ReparentNotify handling to use GetTopLevelWindowLocation
14338           instead of the earlier, more hacky solution. Reworked SetWMStyles,
14339           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
14340           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
14341           for all other windows (fixes #81281 part 1), a toolwindow is hidden
14342           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
14343           and generally refactored to do as few calculations as possible
14344           inside the lock.
14345
14346 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
14347
14348         * Theme.cs: Change "reflective-contract" between MWF and SD to 
14349         minimize # of calls, avoid Color serialization and avoid updating 
14350         every "known colors" each time a single one is updated.
14351
14352 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
14353
14354         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
14355         when not readonly and the text is explicitly set. Code style updates.
14356         * DataGridTableStyle.cs: Removed extra line.
14357         * DataGrid.cs: Code style updates. Removed extra whitespace.
14358         * DataGridColumnStyle.cs: Code style updates. Removed extra 
14359         whitespace.
14360
14361 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14362
14363         * XplatUIX11.cs: Added comment that "fixes" #80021.
14364
14365 2007-04-09  Jackson Harper  <jackson@ximian.com>
14366
14367         * TextControl.cs: We don't need this -1 on the line count anymore.
14368
14369 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
14370
14371         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
14372         entered value to underlying type, and convert it back to a string to
14373         apply formatting. Modified GetFormattedValue to use TypeConverter
14374         if available.
14375
14376 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
14377
14378         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
14379         Use SubItems property when we want to ensure there's at least one
14380         subitem. Modified SubItems property to ensure there's always at least
14381         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
14382         the NRE's reported by MS.
14383
14384 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
14385
14386         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
14387         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
14388         Spaces to tabs. Removed extra tabs.
14389
14390 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
14391
14392         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14393         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
14394
14395 2007-04-06  Jackson Harper  <jackson@ximian.com>
14396
14397         * TextBoxBase.cs: When a delete removes a line, recalculate all
14398         lines below that line (they need to get offsets setup correctly)
14399         and invalidate.
14400
14401 2007-04-05  Jackson Harper  <jackson@ximian.com>
14402
14403         * TextControl.cs: We need to invalidate across the width of the
14404         document when we are invalidating multiple lines.
14405         * TextBoxBase.cs: Don't delete into the line ending.
14406
14407 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14408
14409         * ListView.cs: Restore the check for the MouseHover event
14410         in ListView. It looks like the ListView fires more than one MouseHover
14411         event when HoverSelection is true  _only_ in weird-corner scenarios, but
14412         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
14413         event.
14414
14415 2007-04-05  Mike Kestner  <mkestner@novell.com>
14416
14417         * ListView.cs : raise MouseDown before updating selection.
14418         [Fixes #80373 tab 1&3]
14419
14420 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
14421
14422         * ToolStripRenderer.cs: Add static method to mirror image.
14423         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
14424         and RightToLeftAutoMirrorImage.
14425         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
14426
14427 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
14428
14429         * ToolStripSplitStackLayout.cs: Support Alignment property.
14430         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
14431
14432 2007-04-05  Jackson Harper  <jackson@ximian.com>
14433
14434         * TextControl.cs: Move around the line endings when crossing line
14435         boundaries.
14436         - When combining lines, strip the ending text off the first line.
14437
14438 2007-04-05  Jackson Harper  <jackson@ximian.com>
14439
14440         * TextControl.cs:
14441         * TextBoxBase.cs: Try to never move the cursor into the line
14442         ending.
14443         
14444 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14445
14446         * ToolStripItem.cs: Make sure we aren't firing mouse events when
14447         the item is disabled.  Also add a few missing methods.
14448
14449 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14450
14451         * ListView.cs: We don't need the MouseEnter/MouseLeave check
14452         to fire just one MouseHover event when HoverSelection is true, since
14453         .Net does fire more than one MouseHover event in that scenario. Also,
14454         fix the selection in HoverSelection, by invoking UpdateMultiSelect
14455         if MultiSelect is true, instead of only setting ListViewItem.Selected.
14456         Finally, we need to reset the Hover logic in MouseMove, even when we
14457         don't have a selected item.
14458
14459 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14460
14461         * ToolStrip.cs: Add several missing methods, properties, and events.
14462
14463 2007-04-04  Chris Toshok  <toshok@ximian.com>
14464
14465         * DataGridTextBoxColumn.cs: set the bounds of the text box to
14466         (0,0,0,0) in Commit, as MS does.
14467
14468         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
14469         make sure we set CurrentRow on a row header click *before* calling
14470         Select.  This moves the current cell (and the textbox) to the new
14471         row.  The call to Select then hides the textbox, giving us the
14472         correct behavior.  Fixes #80362.
14473
14474         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
14475         (ListChangedHandler): reorder the position/current changed events,
14476         and call UpdateIsBinding in the ItemAdded case.
14477
14478         * GridColumnStylesCollection.cs: add some columns events, one of
14479         which raises the CollectionChanged event.
14480
14481 2007-04-04  Jackson Harper  <jackson@ximian.com>
14482
14483         * TextControl.cs: When we delete multiple selection lines
14484         invalidate the selection area, don't need to do that for single
14485         lines because the final update view will handle it.
14486
14487 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14488
14489         * Control.cs: When we CreateControl, we need to also create all of the
14490         control's children.  The child's OnLoad must also fire before the parent's
14491         OnLoad.  Fixes the toolbox size in PDN.
14492
14493 2007-04-04  Jackson Harper  <jackson@ximian.com>
14494
14495         * TextBoxBase.cs: When the user presses enter, insert a line
14496         ending into the text. (Maybe this would be a good spot for
14497         Environment.NewLine).
14498         * TextControl.cs: Remove undo manager hack, line endings get
14499         inserted properly now.
14500         
14501 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
14502
14503         * MenuAPI.cs: 
14504         - Remove unneeded parameters in UpdateCursor.
14505         - Fix UpdateCursor to check if menu is active.
14506         - Call UpdateCursor when menu deactivate my click.
14507         [Fixes remaining issues from #80410]
14508
14509 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
14510
14511         * Control.cs: GetRealChildAtPoint method added, it make an
14512         recursive child control search for the point. 
14513
14514         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
14515         menu.
14516
14517         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
14518
14519 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
14520
14521         * Form.cs: Fix mouse position when send back mouse event after closes
14522         menu.
14523
14524 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
14525
14526         * Form.cs: Simplify the BUTTONDOWN for active tracker.
14527
14528 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
14529
14530         * Control.cs: Fix an issue where if a user resized a control inside
14531         a sizing method like OnResize, we would overwrite their explicit
14532         value.  Also, only call DefaultSize once in the constructor instead
14533         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
14534         nothing actually changed.
14535
14536 2007-04-03  Jackson Harper  <jackson@ximian.com>
14537
14538         * TextControl.cs: Don't attempt to copy text for lines with no
14539         text in them (technically this shouldn't happen, but we aren't
14540         always inserting line endings when we should be).
14541
14542 2007-04-03  Jackson Harper  <jackson@ximian.com>
14543
14544         * TextBoxBase.cs: Calculate the scrollbars before calculating the
14545         document, because this sets some of the document size properties
14546         that are needed.
14547
14548 2007-04-03  Jackson Harper  <jackson@ximian.com>
14549
14550         * TextBoxBase.cs: We need to calculate maximums even if this is
14551         not a multiline control, because the maxs are used for scrolling.
14552         - Display the caret after doing a page up/down, we need to
14553         manually display it because a proper CaretMoved event isn't
14554         triggered (this is because of the way the math is done to
14555         determine how far to scroll).
14556
14557 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
14558
14559         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
14560         (ToolBar was relying on SetBoundsCore to default the values sent 
14561         base off of BoundsSpecified.)
14562
14563 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14564
14565         * DateTimePicker.cs: Change Text so that when a null value or empty
14566           string is assigned to the test we always raise ValueChanged and
14567           TextChanged (earlier implementation would only raise ValueChanged
14568           if the current date value was different from DateTime.Now).
14569
14570 2007-04-03  Andreia Gaita <avidigal@novell.com> 
14571
14572         * ButtonBase: Call update after invalidation, fixes #80194
14573
14574 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14575
14576         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
14577           #79335.
14578
14579 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14580
14581         * XplatUIX11.cs: SetWMStyles: If the control is a form with
14582           FormBorderStyle = None, don't give the window any decorations.
14583           Fixes #81276.
14584
14585 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14586
14587         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14588         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
14589           to check for is a mix of several styles (such as WS_CAPTION for
14590           instance).
14591         * Control.cs: Don't paint an area bigger than the client area when
14592           painting the background colour. Add an internal GetCreateParams.
14593           Update calls to XplatUI.CalculateWindowRect due to API change.
14594         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
14595           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
14596           the size if it hasn't been handled by any windows. When creating
14597           and moving windows, X wants the location of the entire window, but
14598           the size of the client window, so add
14599           TranslateClientRectangleToXClientRectangle,
14600           TranslateWindowSizeToXWindowSIze and
14601           TranslatedXWindowSizeToWindowSize to cope with this, and call them
14602           before every window creation and move. Update CalculateWIndowRect
14603           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
14604           In AddConfigureNotify don't do anything if the hwnd is a zombie
14605           (fixes the BadWindow we were getting while running the tests),
14606           always calculate the offsets when it's a parentless window, not
14607           only when reparented, and translate the window size, since we're
14608           getting the client size of the whole window, excluding entire
14609           window.
14610         * Theme.cs: Added BorderSizableSize.
14611         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14612           anymore. Update calls to XplatUI.CalculateWindowRect due to API
14613           chang
14614         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
14615           change. Fake the window styles here instead of in XplatUIWin32 so
14616           that all back-ends get the same window styles (and it's Form that's
14617           deciding when to use wm, not the Win32 backend anyways)
14618         * Hwnd.cs: Completely reworked GetWindowRectangle and
14619           GetClientRectangle - they are now passed a CreateParams and they
14620           only use Style and ExStyle to determine the rectangles (they should
14621           now work just like Win32AdjustWindowRectEx - though quite a few
14622           special cases are probably missing). They should also be 100%
14623           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
14624           == rect), and all numbers (borders, menu sizes) are taken from the
14625           current theme. Added a GetBorders helper function that will return
14626           the borders for any given CreateParams (including captions and
14627           menus), and GetBorderSize that returns the given border size only.
14628         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14629           Hwnd.GetClientRectangle.
14630
14631 2007-04-02  Chris Toshok  <toshok@ximian.com>
14632
14633         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
14634         logic between the values we present to the user and the values
14635         which are stored in the column's property.  Also, don't call
14636         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
14637
14638 2007-04-02  Jackson Harper  <jackson@ximian.com>
14639
14640         * TextBoxBase.cs: Scroll faster!
14641
14642 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
14643
14644         * StatusStrip.cs: Layout fixes for PDN.
14645         * ToolStrip.cs: Set item's available to true, and placement to main when
14646         added.
14647         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
14648         changing in setter before doing any work, add InternalVisible.
14649         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
14650         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14651         infinite loop.
14652
14653 2007-04-02  Jackson Harper  <jackson@ximian.com>
14654
14655         * TextBox.cs: LBUTTON does not make the textbox select all of it's
14656         text on focus.
14657
14658 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14659
14660         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
14661           Makes ToolStripComboBoxes show up again.
14662
14663 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14664
14665         * ListView.cs: Add a hover_pending field in ListView
14666         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
14667         cycle (we are resetting the MouseHover logic in XplatUI
14668         to handle HoverSelection). Fixes #80429.
14669
14670 2007-04-02  Jackson Harper  <jackson@ximian.com>
14671
14672         * TextControl.cs: Make sure the attributes get set on the last
14673         tag.
14674         - Still have to do the end tag if we have stepped all the ways to
14675         the end.
14676
14677 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
14678
14679         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
14680         on an internal libgdiplus call when the information is already 
14681         available via the public API.
14682
14683 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14684
14685         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
14686           control is removed from a control collecftion.
14687         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
14688           Fixes FormPropertyTest (failed on rare occasions).
14689         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
14690           of Win32SetParent (when changing from no parent to a parent it
14691           might add the new parent's location in screen coordinates to this
14692           window's location).
14693         * Form.cs: Rework ChangingParent once again, now the handle is
14694           recreated whenever a FormWindowManager is added or removed (that is
14695           whenever a normal form is parented or abandoned). Also change
14696           CreateParams so that all non-toplevel windows always get the
14697           specified sice (StartupPosition is never considered for
14698           non-TopLevel forms).
14699         * ContainerControl.cs: Add ChildControlRemoved, the container control
14700           needs to be notified when a control is removed from it's
14701           collection, in the case the removed control is the active control.
14702
14703 2007-04-02  Jackson Harper  <jackson@ximian.com>
14704
14705         * RichTextBox.cs: Use the new methods for setting the font and
14706         color, these methods set the specified attribute without
14707         overriding the other attributes.
14708
14709 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
14710
14711         * ToolStripPanel.cs: Fixes for better layouts in PDN.
14712
14713 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
14714
14715         * TextBox.cs: Added internal ChangeBackColor method to special-case
14716         Color.Empty. Added check for invalid ScrollBars value.
14717         * TextBoxBase.cs: Added internal ChangeBackColor method.
14718         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
14719         internal ChangeBackColor method to special-case Color.Empty. Added
14720         check for invalid ScrollBars value.
14721
14722 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
14723
14724         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
14725
14726 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
14727
14728         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
14729         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
14730         [Based on submitted patch from Olivier Duff.]
14731
14732 2007-03-30  Jackson Harper  <jackson@ximian.com>
14733
14734         * TextBox.cs: Only select all on initial focus if the user has not
14735         specified a selection area.
14736
14737 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
14738
14739         * UserControl.cs: Override CreateParams.
14740
14741 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14742
14743         [ Fixes #80995 ]
14744
14745         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14746         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
14747           check for is a mix of several styles (such as WS_CAPTION for instance).
14748         * Control.cs: Don't paint an area bigger than the client area when painting
14749           the background colour. Add an internal GetCreateParams. Update calls to
14750           XplatUI.CalculateWindowRect due to API change.
14751         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
14752           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
14753           hasn't been handled by any windows. When creating and moving windows, X
14754           wants the location of the entire window, but the size of the client
14755           window, so add TranslateClientRectangleToXClientRectangle,
14756           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
14757           to cope with this, and call them before every window creation and move.
14758           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
14759           removing DeriveStyles). In AddConfigureNotify don't do anything if the
14760           hwnd is a zombie (fixes the BadWindow we were getting while running the
14761           tests), always calculate the offsets when it's a parentless window, not
14762           only when reparented, and translate the window size, since we're getting
14763           the client size of the whole window, excluding entire window.
14764         * Theme.cs: Added BorderSizableSize.
14765         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14766           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
14767         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
14768           Fake the window styles here instead of in XplatUIWin32 so that all
14769           back-ends get the same window styles (and it's Form that's deciding when
14770           to use wm, not the Win32 backend anyways)
14771         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
14772           they are now passed a CreateParams and they only use Style and ExStyle
14773           to determine the rectangles (they should now work just like
14774           Win32AdjustWindowRectEx - though quite a few special cases are probably
14775           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
14776           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
14777           sizes) are taken from the current theme. Added a GetBorders helper
14778           function that will return the borders for any given CreateParams
14779           (including captions and menus), and GetBorderSize that returns the given
14780           border size only.
14781         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14782           Hwnd.GetClientRectangle.
14783
14784 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14785
14786         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
14787           layout of the mdi children is handled by CreateParams. Fixes
14788           #79964,
14789
14790 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14791
14792         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
14793         processed.
14794
14795         * Form.cs: When active tracker mouse down is not processed, send event 
14796         back to control inside mouse position. [Fixes #81227]
14797
14798 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
14799
14800         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
14801         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
14802         stealing focus from the active form on Windows.  (Control will be made
14803         visible in ShowWindow.)
14804
14805 2007-03-29  Mike Kestner  <mkestner@novell.com>
14806
14807         * ImageList.cs : add internal Changed event.
14808         * ListView.cs : hook up to StateImageList.Changed to perform
14809         invalidations when the the state icon list changes. [Fixes #81191]
14810
14811 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
14812
14813         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
14814         to prevent tooltips from stealing focus from the active form on Windows.
14815
14816 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14817
14818         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
14819
14820         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
14821
14822 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14823
14824         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
14825         balloons.
14826
14827 2007-03-29  Jackson Harper  <jackson@ximian.com>
14828
14829         * TextControl.cs: When deleting text from non multiline textboxes,
14830         we need to update the entire document, because line offsets will
14831         be shifting.
14832
14833 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14834
14835         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
14836         added to theme, now we can create themes that uses diferent notify engines
14837         like notification-daemon from galago project or growl for Mac OS.
14838
14839 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14840
14841         * NotifyIcon.cs: Prevent Balloon to show in task bar.
14842
14843 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14844
14845         * XplatUIX11.cs: Prevent system to open more than one balloon.
14846
14847         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
14848         some compiler warning messages.
14849
14850 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14851
14852         [Fixes #79149]
14853
14854         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
14855
14856         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
14857         implemented, this methods is used by NotifyIcon.BalloonWindow class.
14858
14859         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
14860         systems.
14861
14862 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14863
14864         * ListViewItem.cs: Forgot to make Invalidate internal.
14865
14866 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14867
14868         * ListView.cs: Add a InvalidateSelection method to
14869         invalidate methods which are currently selected, and call
14870         it when setting FullRowSelect and HideSelection, instead of
14871         calling Redraw.
14872
14873 2007-03-28  Chris Toshok  <toshok@ximian.com>
14874
14875         * XplatUIX11.cs (UnmapWindow): reindent this block.
14876
14877         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
14878         the selection_start if we're moving the selection (that is, not
14879         extending it). Fixes bug #80461.
14880
14881 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14882
14883         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
14884         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
14885         create private ControlCollection.
14886
14887 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14888
14889         * Control.cs: We need to call OnVisibleChanged for our implicit
14890         children as well as our normal children.  Fixes scrollbars in
14891         comboboxes not showing up.
14892
14893 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14894
14895         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
14896         the check for IsHandleCreated first.  The check in CreateHandle is not
14897         good enough because CreateHandle can be overriden, and the override 
14898         should not be called if the handle is already created.
14899
14900 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14901
14902         * ToolStrip.cs: Remove MonoTODO for tooltips.
14903         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
14904         * ToolStripContainer.cs: Add custom ControlCollection class.
14905         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
14906         * ToolStripDropDown.cs: Add some missing properties/methods.
14907         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
14908         * ToolStripItem.cs: Remove MonoTODO for tooltips.
14909         * ToolStripManager.cs: Add IsShortcutDefined.
14910         * ToolStripOverflow.cs: Override LayoutEngine.
14911         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
14912         * ToolStripSeparator.cs: Add ImageKey.
14913
14914 2007-03-28  Jackson Harper  <jackson@ximian.com>
14915
14916         * TextControl.cs: If a char delete removes a line ending, we need
14917         to update the ending style.
14918         - Make sure the line ending calcs get called.
14919
14920 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14921
14922         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
14923           it was making the new code not work. Fixed a typo in the new code
14924           as well. Fixes #79826.
14925
14926 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14927
14928         * XplatUIWin32.cs:
14929         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
14930         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
14931         - SystrayBalloon method implemented.
14932         [Add support for notifyicon balloon on win32, #79149]
14933
14934 2007-03-27  Mike Kestner  <mkestner@novell.com>
14935
14936         * ThemeWin32Classic.cs : update StateImageList selection to mirror
14937         the ms behavior when only one image is added to the list.
14938         [Fixes #81191]
14939
14940 2007-03-27  Jackson Harper  <jackson@ximian.com>
14941
14942         * TextControl.cs: Improvements to non multiline line ending
14943         drawing/measuing.
14944
14945 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14946
14947         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
14948
14949 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14950
14951         * NotifyIcon.cs: 
14952         - Balloon message handling added.
14953         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
14954
14955         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
14956         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
14957         to SystrayBalloon to me like other Systray method, also a
14958         handle parameter added.
14959
14960 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14961
14962         * ListView.cs: Show scrollbars even when items.Count == 0
14963         but the columns Width is bigger than the ListView.Width.
14964         Also, when columns.Count == 0 set layout_wd and layout_ht
14965         to the ClientRectangle values, so we don't show any scrollbar
14966         in that case.
14967
14968 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14969
14970         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
14971
14972 2007-03-27  Jackson Harper  <jackson@ximian.com>
14973
14974         * RichTextBox.cs: The RTF library decodes the text properly for us
14975         now.
14976
14977 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14978
14979         * ListView.cs: Display HeaderControl even when columns.Count == 0.
14980         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
14981         ListView header (HeaderControl), instead of Control.BackColor.
14982
14983 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
14984
14985         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
14986         Fixes tab control issues where controls would not show up because they
14987         never received their OnVisibleChanged call.
14988
14989 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14990
14991         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
14992         BalloonTipShown).
14993
14994 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
14995
14996         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
14997         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
14998         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
14999         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
15000         the handle.  Fix WindowState by using the internal variable until we are 
15001         sure that we've been shown.
15002         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
15003         max or min.
15004         [Fixes bug #81198]
15005
15006 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15007
15008         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
15009           (at least borders). Fixes #79386 on Linux (with a small difference
15010           in behaviour: when trying to resize a caption-less window metacity
15011           shows the sysmenu. Resizing is still possible though).
15012         * XplatUIWin32.cs: When setting window styles send request an extra
15013           WM_NCCALCSIZE when it's a form without title (due to no text and no
15014           caption), since Win32 seems to calculate it wrong the first time we
15015           get the message, though the second time things work as they should.
15016         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
15017           newly reparented window might show up unparented. Update
15018           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
15019           there's no title text. Fixes #79386.
15020
15021 2007-03-27  Mike Kestner  <mkestner@novell.com>
15022
15023         * ListBox.cs : don't perform invalidations if the handle hasn't been
15024         created.  [Fixes #80753]
15025
15026 2007-03-27  Mike Kestner  <mkestner@novell.com>
15027
15028         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
15029         [Fixes #80428]
15030
15031 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15032
15033         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
15034         needed to implement Balloon.
15035
15036 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15037
15038         * ListViewItem.cs: In the constructors that take
15039         an array of strings, don't use ListViewSubItemCollection.AddRange
15040         method to add items, since we need to have a different behaviour (in
15041         the constructors we add an item for each null string, opposed to
15042         the behaviour of AddRange, which adds nothing).
15043
15044 2007-03-26  Andreia Gaita  <avidigal@novell.com>
15045
15046         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
15047
15048 2007-03-26  Jackson Harper  <jackson@ximian.com>
15049
15050         * TextControl.cs: Draw and measure line endings when in non
15051         multiline mode.
15052         - When searching the text, count the end of the last line as a
15053         word boundary.
15054
15055 2007-03-26  Jackson Harper  <jackson@ximian.com>
15056
15057         * RichTextBox.cs: The selection_start and selection_end don't
15058         really track the correct tags for the selection. So we'll manually
15059         compute the correct tag here.
15060
15061 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15062
15063         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
15064           and Continuous styles. Fixes #79469.
15065
15066 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
15067
15068         * ToolStrip.cs: Implement Tooltips.
15069         * ToolStripItem.cs: Create internal method for determining tooltip.
15070
15071 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
15072
15073         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
15074
15075 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15076
15077         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
15078         it prevents a problem thak keeps icon visible after application 
15079         closes on win32.
15080
15081 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15082
15083         * NotifyIcon.cs: Balloon properties and methods created.
15084
15085         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15086         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
15087
15088 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
15089
15090         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
15091
15092 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
15093
15094         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
15095         parameter indicates which aspects were explicit/user-set.
15096         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
15097
15098 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
15099
15100         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
15101         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
15102         SmallChange, and Value (2.0).
15103         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
15104
15105 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15106
15107         * ListView.cs: Always set item_control.Width in LayoutDetails
15108         if View is Details. Setting it later in CalculateScrollBars
15109         in a not-so-corner scenario (the sum of columns width is
15110         not bigger than the ListView width when handle is created, and then
15111         that sum gets bigger by increasing the width of the columns)
15112         causes a very weird recursion path (which shouldn't be happening,
15113         since header_control sets it in CalculateScrollBars too). This bug
15114         appeared after Chris' fixes for handle created issues, so probably
15115         it's related to some handle-creation time.
15116
15117 2007-03-23  Chris Toshok  <toshok@ximian.com>
15118
15119         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
15120         case where there's an add row, just so we don't end up in a case
15121         where it's not displayed (this happens when the row is partially
15122         obscured).  Fixes bug #79574.
15123
15124 2007-03-23  Jackson Harper  <jackson@ximian.com>
15125
15126         * TextControl.cs:
15127         * TextBoxBase.cs:
15128         * RichTextBox.cs: Preserve line endings in the lines text buffer,
15129         also added an enum that represents the line ending type. 
15130
15131 2007-03-23  Andreia Gaita  <avidigal@novell.com>
15132
15133         * NumericUpDown.cs: Fix logic so Text and Value properties are not
15134         messed with in every method call, but only from DownButton, 
15135         UpButton, UpdateEditText() and ValidateText. Fixes #80346
15136
15137 2007-03-23  Chris Toshok  <toshok@ximian.com>
15138
15139         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
15140         format objects if the format spec is "".  Fixes bug #80889.
15141
15142 2007-03-22  Miguel de Icaza  <miguel@novell.com>
15143
15144         * ToolStripPanel.cs (Join): added stubs to build PDN3
15145
15146         * Control.cs (AutoScrollOffset): Add.
15147
15148         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
15149         property, its only implemented for Win32, on X11 it defaults to
15150         some hardcoded value.
15151
15152         * ToolStripItem.cs (AllowDrop): Add property
15153
15154 2007-03-22  Mike Kestner  <mkestner@novell.com>
15155
15156         * ListView.cs : in FullRowSelect Details mode, only enable box
15157         selection if the user clicks over the "item" column outside of the
15158         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
15159
15160 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15161
15162         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
15163           handle is not created yet.
15164         * Form.cs: Select: Don't call CreateHandle if the handle is already
15165           created, avoids a stack overflow on Windows when we are recreating
15166           controls.
15167         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
15168           they are made visible, and override AfterTopMostControl to keep
15169           them on top when other controls are brought to front.
15170           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
15171           or force_*scroll_visible is true (old implementation always shows
15172           scrollbars when needed, no matter what auto_scroll was set to).
15173         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
15174           IsHandleCreated check.
15175
15176 2007-03-22  Andreia Gaita  <avidigal@novell.com>
15177
15178         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
15179         row or col separator.
15180         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
15181
15182 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15183
15184         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
15185
15186 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15187
15188         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
15189         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
15190         every time. Fixes #80410.
15191
15192 2007-03-22  Chris Toshok  <toshok@ximian.com>
15193
15194         * BindingSource.cs (AddNew): partially implement.
15195
15196         remove a couple of NotImplementedException's
15197         to get bug #81148 closed.
15198
15199 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15200
15201         [Fixes #80380]
15202         
15203         * Control.cs:
15204         - UpdateCursor method added to update the screen cursor.
15205         - GetAvailableCursor method added to return cursor for enabled tree,
15206         it searches for cursor on control and it's parent's for enabled control.
15207         - Call UpdateCursor method on setter of Cursor property.
15208         - On setter of Enabled call UpdateCursor when it is false, we need to
15209         change cursor to normal (or to this parent cursor) because cursor 
15210         setting theres no effect to disabled controls.
15211         - Some minor source changes to follow the coding style guidelines.
15212
15213         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
15214         controls.
15215
15216 2007-03-22  Chris Toshok  <toshok@ximian.com>
15217
15218         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
15219         generates.
15220
15221 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15222
15223         * XplatUIX11.cs: Implement default locations for forms.
15224         * Form.cs: Completely rework startup location for forms. Fixes #79964.
15225         * Hwnd.cs: Add previous_child_startup_location (to track the current
15226           startup location for any child forms of the current form) and
15227           previous_main_startup_location (to track the startup location for
15228           the current toplevel form).
15229
15230 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15231
15232         * Control.cs: Don't trigger a layout if an implicit control is added
15233         that isn't visible.  Also, don't notify the owner when an implicit control
15234         is added.  (Owners shouldn't even know about their implicit controls.)
15235
15236 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15237
15238         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
15239         to save some re-layouts.
15240
15241 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
15242
15243         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
15244         [Fixes #81203]
15245
15246 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15247
15248         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
15249         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
15250
15251 2007-03-21  Mike Kestner  <mkestner@novell.com>
15252
15253         * ListView.cs : disable selection update for non-left button clicks
15254         with mods and over selected items.  [Fixes #80524]
15255
15256 2007-03-20  Jackson Harper  <jackson@ximian.com>
15257
15258         * TextControl.cs:
15259         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
15260         \r\r\n, \n.
15261
15262 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15263
15264         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
15265           very probably a more complicated calculation there. Update the
15266           textbox' ForeColor and BackColor when the ComboBox' colors are
15267           changed. Change the border change in LayoutComboBox to only affect
15268           the textbox, not all the calculations there. Seems to fix most of
15269           #79436.
15270
15271 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15272
15273         * ComboBox.cs: Handle Home and End keys as well as all combinations of
15274           modifiers + navigation keys as input keys, enables advanced text
15275           selection in the combobox (like Shift+Left Arrow for instance).
15276           ComboTextBox now overrides Focused and returns whatever
15277           ComboBox.Focused returns, since it really should be focused
15278           whenever the ComboBox is. Fixes #80795. Also make the border around
15279           the text box one pixel bigger, as mentioned in #79436.
15280
15281 2007-03-20  Jackson Harper  <jackson@ximian.com>
15282
15283         * TreeView.cs: Don't offset the images, this was causing some
15284         artifacts when expanding/collapsing with images that were the
15285         exact height of the treenode.
15286
15287 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15288
15289         * TrackBar.cs: Query the theme for the correct value when the mouse
15290           moves and the thumb is pressed. 
15291         * Theme.cs: Added TrackBarValueFromMousePosition
15292         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
15293           implementation was updating the trackbar value when drawing, now
15294           the drawing methods only draw. Fixes #80900. Refactored the
15295           calculations out to TrackBarValueFromMousePosition and
15296           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
15297           according to the mouse position whenever it wants to. Changed the
15298           light coloured pen when drawing the thumb from ControlLight to
15299           ControlLightLight, because the ControlLight is the same colour as
15300           the background so the 3D effect is lost. 
15301
15302 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15303
15304         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
15305         defined. Fixes #80784.
15306
15307 2007-03-20  Marek Habersack  <mhabersack@novell.com>
15308
15309         * ContextMenuStrip.cs: align with the change introduced in
15310         revision 74664.
15311
15312 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15313
15314         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
15315         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
15316         in SetTopmost.
15317
15318 2007-03-19  Chris Toshok  <toshok@ximian.com>
15319
15320         * Control.cs (WmPaint): don't make use of the Handle property
15321         after an event is emitted, as the user could have closed the
15322         form/destroyed the control.  Store the Handle in a local variable
15323         and make use of that.  Fixes bug #80768.
15324
15325 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15326
15327         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
15328         behavior in X11 environments.
15329
15330 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15331
15332         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
15333         because on setter of topmost we dont call SetTopmost when handle is not
15334         created.
15335
15336 2007-03-20  Jackson Harper  <jackson@ximian.com>
15337
15338         * TextControl.cs: Need to use SelectionLength () not
15339         selection_length, since that var is reset to -1.
15340         - Draw the caret when we don't have focus.
15341         * TextBox.cs: The selectall actually doesn't occur until the first
15342         focus.
15343         * TextBoxBase.cs: Need to update the caret position after a
15344         selectall.
15345         
15346 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15347
15348         * ListView.cs: Enable scrolling when using Tile view.
15349
15350 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15351
15352         [Fixes #80902]
15353
15354         * XplatUIDriver.cs: Abstract SetOwner method created.
15355
15356         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
15357         must be implemented and was masked as todo.
15358
15359         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
15360         GWL_HWNDPARENT.
15361
15362         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
15363         cheking for null owner to remove transient. The SetTopmost will be change
15364         on a decond step.
15365
15366         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
15367         SetTopmost. Now owned forms will work properly in win32 and X11.
15368
15369 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15370
15371         * MdiWindowManager.cs: Update function name.
15372         * Form.cs: After closing a form MdiParent is always null.
15373         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
15374           better what it should do: necessary book-keeping when the form is
15375           closed, it should not close the form itself.
15376
15377 2007-03-19  Andreia Gaita  <avidigal@novell.com>
15378
15379         * ListViewItem.cs: Fix back and fore color. The subitems only
15380         use their own colors if they are set, otherwise use the listview's
15381         colors. Don't set default colors on constructor for subitem.
15382         Fixes #79315.
15383
15384 2007-03-19  Mike Kestner  <mkestner@novell.com>
15385
15386         * ListView.cs : make box selection for Details views with 
15387         FullRowSelect conform to MS behavior when clicking in the "item" 
15388         column and clicking outside the defined columns.
15389         [Fixes case 5-6 of #80374]
15390
15391 2007-03-19  Chris Toshok  <toshok@ximian.com>
15392
15393         * ScrollableControl.cs: create the controls from within the ctor,
15394         but don't actually add them until our handle is created.  this
15395         fixes a NRE possibility jpobst found (if you override OnLayout in
15396         a subclass, it's called before your ctor).  Also, add a
15397         IsHandleCreated guard to UpdateSizeGripVisibility as well.
15398
15399 2007-03-19  Jackson Harper  <jackson@ximian.com>
15400
15401         * TextBox.cs: Reduce the amount of invalidation we do.
15402         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
15403         some of them are true by default on MS.
15404         - Add some functions to reduce the amount of invalidates we do.
15405         * TextControl.cs: Less invalidation.
15406
15407 2007-03-19  Chris Toshok  <toshok@ximian.com>
15408
15409         [ Fixes #81773, and *seems* to fix #81553 as well ]
15410
15411         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
15412         AccumulateDestroyedHandles.  We need to do it *after* we send
15413         WM_DESTROY, as the user's code can access Control.Handle in
15414         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
15415         move the WM_DESTROY/zombie handling to before the call to
15416         XDestroyWindow.  For some reason without this ordering
15417         FormTest.RecreateHandle hangs.  This ordering is semantically
15418         equivalent, however, as XDestroyWindow is async anyway.
15419
15420 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
15421
15422         * RichTextBox.cs: Reset backcolor_set after setting default.
15423
15424 2007-03-19  Chris Toshok  <toshok@ximian.com>
15425
15426         * ScrollableControl.cs: the scroll position should not effect the
15427         canvas size.  commit patch from georgegiolfan@yahoo.com, which
15428         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
15429         
15430 2007-03-19  Chris Toshok  <toshok@ximian.com>
15431
15432         * ScrollableControl.cs: clean this up a bit.  create the
15433         scrollbars in the ctor and just show/hide them as needed.  Also,
15434         make hscroll_visible/vscroll_visible internal to Recalculate, and
15435         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
15436         everywhere else.  This seems to fix the scrollbars appearing
15437         beneath the content for me (i have *no* idea why that is,
15438         however.)
15439
15440 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
15441
15442         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
15443         some redundacy for stuff in Anchor and Dock that base will take care of.
15444         [Fixes #80762]
15445
15446 2007-03-19  Mike Kestner  <mkestner@novell.com>
15447
15448         * ListView.cs : make box selection for Details views without 
15449         FullRowSelect dependent on the text bounds, not item bounds.
15450         * ListViewItem.cs : add an internal property to obtain the TextBounds
15451         in Details view.  [Fixes case 1-4 of #80374]
15452
15453 2007-03-19  Andreia Gaita  <avidigal@novell.com>
15454
15455         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
15456         we're < 2.0. #78448 && #80316
15457
15458 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
15459
15460         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
15461         have the same style available as the previously selected one.  Also,
15462         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
15463
15464 2007-03-19  Jackson Harper  <jackson@ximian.com>
15465
15466         * TextControl.cs: Add an alignment property that all new lines
15467         will be given.
15468         - Make sure to use the align shift when calculating the line's X
15469         position.
15470         * TextBox.cs: Set the alignment on the document as well as on all
15471         the document lines.
15472
15473 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15474
15475         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
15476           throw if setting the parent of an mdichild that already has an
15477           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
15478           AssemblyProductAttribute in the assembly, use the type's namespace (as
15479           MS seems to do). CreateControl: don't create the handle if the control
15480           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
15481           create handle if the control is not a form. Change FocusInternal to
15482           virtual so that it can be overriden by Form.
15483         * TextBox.cs: Update call to FocusInternal.
15484         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
15485           form is not a toplevel form when it's a mdi child, so update is_toplevel
15486           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
15487           hasn't been created. Show (IWin32Window): Don't allow this overload for
15488           toplevel windows. CenterToParent/CenterToScreen/Select: create the
15489           handle as MS does. SetVisibleCore: if called on a MdiChild and the
15490           parent isn't visible yet, save the visibility and restore it when the
15491           parent is made visible.
15492         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
15493           methods, since the visibility of the scrollbars can be changed from
15494           several places, not only from AutoScroll.
15495           [Fixes #81179]
15496
15497 2007-03-19  Jackson Harper  <jackson@ximian.com>
15498
15499         * RichTextBox.cs: Enable shortcuts by default.
15500         * TextBoxBase.cs: Add conditional shortcuts.  
15501
15502 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
15503
15504         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
15505
15506 2007-03-19  Chris Toshok  <toshok@ximian.com>
15507
15508         [ Fixes bug #80604]
15509         
15510         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
15511         swallow the message we're waiting on, instead of delivering it, as
15512         this is only used for the WM_SHOWWINDOW raised from
15513         MapWindow/UnmapWindow, and the message needs to be generated
15514         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
15515         before doing the Map/Unmap.  Also make sure that the Hwnd is still
15516         alive after the message has been handled.
15517
15518         *before* the window is shown.
15519
15520         * Control.cs (CreateControl): guard a few more things inside the
15521         if (!is_created) block, as we might end up being called again -
15522         yay .net.
15523         (WmShowWindow): call CreateControl if we're showing the control.
15524
15525 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15526
15527         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
15528           controls without a handle if they have any parent with a handle. In
15529           Dispose add a check whether the handle is created or not before
15530           calling BeginInvoke, this removes the need of the extra disposing
15531           parameter (which was bogus anyway since it didn't prevent the
15532           invoke from happening, it only skipped the check for an existing
15533           handle, meaning that the invoke would call on an inexistent
15534           handle).
15535
15536 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
15537
15538         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
15539         appears in taskbar.
15540
15541 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
15542
15543         * MessageBox.cs:
15544         - Fixed a problem that dont show help button for messages with 3 buttons.
15545         - Refactory button size and position calculations, now dont use fixed 
15546         values, also fixed button sizes (#80043) and form's border space.
15547         - AddButton method created, now all other AddButton methods call this one.
15548         - Some other source code cosmetic changes.
15549
15550 2007-03-18  Jackson Harper  <jackson@ximian.com>
15551
15552         * RichTextBox.cs: Don't do this all fonts must match check if
15553         there is only one char selected.
15554
15555 2007-03-18  Jackson Harper  <jackson@ximian.com>
15556
15557         * TreeView.cs: ScrollWindow works properly now, so we don't need
15558         to screw around with the scroll area.  This fixes some artifacts
15559         when expanding and collapsing.
15560
15561 2007-03-18  Jackson Harper  <jackson@ximian.com>
15562
15563         * TextBoxBase.cs: Allow updating the selection position when the
15564         cursor is outside the textarea, but we have a capture.
15565         * TextControl.cs: A special case for when the cursor is outside
15566         the bounds of the TB.
15567         
15568 2007-03-18  Jackson Harper  <jackson@ximian.com>
15569
15570         * TextBoxBase.cs: Remove image pasting code for now.  There is no
15571         way to get an image on the clipboard right now anyways.
15572         * TextControl.cs:
15573         * RichTextBox.cs: Use the new RTF Picture class for pictures.
15574
15575 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
15576
15577         * MessageBox.cs:
15578         - Set window properties in constructor intead of on CreateParams.
15579         - Remove topmost from Window ExStyle.
15580         - Set ShowInTaskbar to false.
15581         - Set form border to FixedDialog.
15582         - Some cosmetic changes and remove unneeded comments.
15583         - It fixes itens 2,3 and 4 of bug #80043.
15584
15585 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
15586
15587         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
15588         none was explicitly set. Fixes part of bug #79949.
15589
15590 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
15591
15592         * ToolStripComboBox.cs: Add AutoComplete*.
15593
15594 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
15595
15596         * ToolStripComboBox.cs: Add FlatStyle.
15597
15598 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
15599
15600         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
15601         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
15602
15603 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15604
15605         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
15606           CheckBox.cs, RadioButton.cs, BindingSource.cs,
15607           DataGridColumnStyle.cs: Remove warnings.
15608
15609 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15610
15611         * Menu.cs: MergeMenu: Check menu argument for null before looping over
15612           it.
15613         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
15614           visibility of mdi child forms. FormSizeChangedHandler: update the
15615           maximized size if size has changed while maximized.
15616         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
15617           creating the handle.
15618         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
15619           avoid creating the handle if not created.
15620         * XplatUI.cs: Update debug output.
15621         * XplatUIStructs.cs: Added ToString's for a couple of structs.
15622
15623 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
15624
15625         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
15626         ProcessCmdKey().
15627         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
15628         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
15629         Implement keyboard shortcuts.
15630
15631 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
15632
15633         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
15634         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
15635         ColorDialog and all derived classes.
15636
15637 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
15638
15639         [ Fixes bug #79828 ]
15640
15641         * ToolBar.cs:
15642         - Rename ToolBarButtonInfor to ToolBarItem.
15643         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
15644         - Maintain an array of ToolBarItem, used instead of ToolBarButton
15645         collection to be able add same button more than one time on a toolbar.
15646         - Refactory all properties and methods to use ToolBarItem. 
15647
15648         * ToolBarButton.cs: 
15649         - Remove all propeties and methods that is now in ToolBarItem.
15650         - Rectangle propery now gets the rectangle from first ToolBarItem to
15651         mimic win32 behavior.
15652         - Size calculation and layout methods also removed.
15653
15654         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
15655         ToolBarItem instead of ToolBarButton to right drawing buttons when
15656         same button/separator was added more than one time to ToolBar.
15657
15658         * ThemeNice.cs: Same as above. 
15659
15660 2007-03-15  Andreia Gaita  <avidigal@novell.com>
15661
15662         * XplatUIX11.cs: Fire extra MouseMove events right after
15663         MouseDown and MouseUp, emulating win32's <censored> behaviour
15664         for apps that rely on it.
15665
15666 2007-03-15  Jackson Harper  <jackson@ximian.com>
15667
15668         * TextControl.cs:
15669         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
15670         it is drawn on the controls client window and there is no NC
15671         area.
15672         - Set the background color to gray on 2.0 when we are readonly.
15673
15674 2007-03-15  Chris Toshok  <toshok@ximian.com>
15675
15676         [ Fixes bug #81144 ]
15677         
15678         * XplatUIX11.cs: implement VirtualScreen independently of
15679         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
15680         property.
15681
15682 2007-03-15  Chris Toshok  <toshok@ximian.com>
15683
15684         * Hwnd.cs: add an internal field for the cached_window_state.
15685
15686         * XplatUIX11.cs: cache the window state, invalidating the cache
15687         (and thus re-querying the X server) only when we see an update to
15688         the _NET_WM_STATE property.
15689
15690 2007-03-15  Chris Toshok  <toshok@ximian.com>
15691
15692         * BindingSource.cs: get a lot of the unit tests working.
15693
15694 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
15695
15696         * Control.cs: Modify UpdateStyles to store distances when bounds >=
15697         0 instead of just bounds > 0.  [Fixes bug #80912]
15698
15699 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
15700
15701         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
15702         and methods.
15703
15704 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
15705         
15706         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
15707         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
15708         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
15709         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
15710
15711 2007-03-15  Chris Toshok  <toshok@ximian.com>
15712
15713         [ Fixes #81101 ]
15714         
15715         * Control.cs: add Ivan's fix for 81101, with a slight modification
15716         - you can set control.Target to null.
15717
15718 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
15719
15720         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
15721         HideDropDown, use Hide instead to prevent an NRE.
15722         [Fixes bug #81147]
15723
15724 2007-03-14  Jackson Harper  <jackson@ximian.com>
15725
15726         * TextBoxBase.cs: Mess with the creation stuff a little. We need
15727         to calculate the document before the handle is created, in some
15728         cases. (Actually just one case).
15729
15730 2007-03-14  Jackson Harper  <jackson@ximian.com>
15731
15732         * TextBoxBase.cs: Need to display the caret after letting the base
15733         wndproc handle the focus methods, because the caret display
15734         methods check the focus state.
15735         - Try to display the caret after updating it's position with SelectWord.
15736         - Don't need to do an immediate update on this recalc, since there
15737         will be an invalidate anyways.
15738
15739 2007-03-14  Jackson Harper  <jackson@ximian.com>
15740
15741         * TreeView.cs: Some workarounds so that we can match event order a
15742         little better.
15743
15744 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
15745
15746         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
15747         #80803. Avoid NullReferenceException when Control does not have
15748         parent. Fixed different blinkstyle issues. Only subscribe to Tick
15749         event a single time. Only draw error icon when control is created and
15750         visible. Fixes failing unit tests.
15751
15752 2007-03-14  Andreia Gaita  <avidigal@novell.com>
15753
15754         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
15755         Selecting events. Fire Leave and Enter events when changing tabs.
15756
15757 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
15758
15759         * TreeView.cs: Add TreeViewNodeSorter.
15760         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
15761
15762 2007-03-14  Chris Toshok  <toshok@ximian.com>
15763
15764         * Form.cs: go ahead and remove the RecreateHandles that jpobst
15765         removed earlier and I had him add back it.  It turns out metacity
15766         *does* in fact handle the MOTIF_WM_HINTS property changing, it
15767         just doesn't redraw the window titlebar until you resize the
15768         window.  This also means we aren't recreating the entire window
15769         hierarchy on X when you change this property.  And it looks better
15770         on windows, too.
15771
15772 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15773
15774         * ListViewItem.cs:
15775         * ListView.cs: Collecting selection information
15776         is now done in SelectedIndexCollection rather than in
15777         SelectedListViewItemCollection. This is done so we can
15778         have the selection information code in one single place
15779         (virtual mode selection information entirely depends on
15780         SelectedIndexCollection).
15781
15782 2007-03-13  Miguel de Icaza  <miguel@novell.com>
15783
15784         * ErrorProvider.cs: Add stubs for ISupportInitialize
15785
15786 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15787
15788         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
15789         in the right order with the right values, from the Checked property, 
15790         just as MS does (instead of triggering them from ListView).
15791
15792         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
15793
15794 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15795
15796         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
15797         the correct handler in OnItemCheck method (ItemCheckEventHandler 
15798         instead of EventHandler). This used to throw an InvalidCastException.
15799
15800 2007-03-13  Jackson Harper  <jackson@ximian.com>
15801
15802         * TextBoxBase.cs: Calculate the document before the handle is
15803         created, so there isn't an extra invalidate called.
15804
15805 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
15806
15807         * Form.cs: Don't set owner in ShowDialog until we are sure
15808         that we aren't going to throw an exception.  [Fixes bug #80773]
15809
15810 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
15811
15812         * TreeView.cs: Make it compile.
15813
15814 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15815
15816         * Control.cs: Another place we don't call SizeFromClientSize.
15817         * Form.cs: Another place we don't call SizeFromClientSize.
15818         [Fixes bug #81125]
15819
15820 2007-03-12  Jackson Harper  <jackson@ximian.com>
15821
15822         * TreeView.cs: Basically emulating some strangness here with
15823         exanding nodes and setting node positions when windows aren't
15824         created.
15825         - Also attempting to walk the node tree less than previously, and
15826         just use visible order calculations for determining offsets.
15827         - oops made scrolling backwards.
15828         * TreeNode.cs: We need to start nodes with a zero visible order,
15829         because the order calcs are based on the first nodes order.
15830
15831 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15832
15833         * Form.cs: Don't exit the program if RecreateHandle is called on
15834         the main form.
15835
15836 2007-03-12  Chris Toshok  <toshok@ximian.com>
15837
15838         * XEventQueue.cs: remove the use of PostQuitState.
15839
15840         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
15841         WM_QUIT message in GetMessage, return false (and if we're in the
15842         nested WaitForHwndMessage, repost the WM_QUIT message).
15843
15844 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15845
15846         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
15847         or the MaximizeBox properties.  [Part of bug #80640]
15848
15849 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
15850
15851         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
15852         no links.
15853
15854 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15855
15856         * ToolStripItem.cs: Fix some tests I broke by checking Visible
15857         instead of visible.
15858
15859 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
15860
15861         * FileDialog.cs: Use text of File name combobox to determine what
15862         files the user selected. Added tokenizer to parse the file names.
15863         Fixes bug #81123.
15864
15865 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15866
15867         * Control.cs: We can't call SizeFromClientSize in the constructor,
15868         but we still need to do the same work, so make an internal version.
15869         [Fixes bug #80621]
15870
15871 2007-03-12  Jackson Harper  <jackson@ximian.com>
15872
15873         * TreeView.cs:
15874         * TreeNode.cs:
15875         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
15876         IsExpanded.
15877
15878 2007-03-12  Jackson Harper  <jackson@ximian.com>
15879
15880         * TextBoxBase.cs: Now that the handles are being created a little
15881         later, we need to make sure that the document is recalculated when
15882         the handle is created.
15883
15884 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
15885
15886         * Theme.cs: GetLinkFont abstract method added.
15887         
15888         * LinkLabel.cs: 
15889         - Remove CalcTrimRectangle, no longer needed.
15890         - Factor also remove, position issues must be fixed in libgdiplus.
15891         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
15892         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
15893         care about font used to draw links.
15894         - Set TabStop to true when control is "Selectable", control is selectable
15895         when have one or more links. Fixes #80501 (test case is also added).
15896         - Set the LinkArea values after links change, LinkArea values must be
15897         based in first link position and size, a test case was created.
15898         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
15899         the attribute must be true LinkArea.Length > 0. The same was applied to
15900         TabStop.
15901         
15902         * ThemeWin32Classic.cs: 
15903         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
15904         in draw method.
15905         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
15906         color change.
15907         - Draw focus rectangle for every parts focused, including parts that 
15908         is on another line, its because regions returns various rectangles
15909         and not only one. Needed to mimic W32 look.
15910         - Uses Graphics.Clip to delimite region painted, it mean that now 
15911         complete text is passed to DrawString, with this we solve layout
15912         issues without create another text renderer.
15913         - Uses Region.Intersect to fix some flickers problems, now only needed
15914         parts will redrawed.
15915         - This changes fixes #79614 and some other unreported issues, on Linux 
15916         some layout problems still remain, the problem is under 
15917         MeasureCharacterRanges but it is an libgdiplus bug.
15918
15919 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
15920
15921         * TextBox.cs: Set for foreground color.
15922         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
15923         this is already done in Control.
15924
15925 2007-03-10  Jackson Harper  <jackson@ximian.com>
15926
15927         * TextBox.cs: Set the background color, but reset the
15928         backcolor_set flag which is just for the user setting the
15929         background color.
15930
15931 2007-03-09  Chris Toshok  <toshok@ximian.com>
15932
15933         * Control.cs: really remove the call to XplatUI.SetVisible from
15934         CreateHandle(), like I said I did when I merged the branch.
15935
15936         * BindingSource.cs: implement some more of this stuff.
15937
15938 2007-03-09  Jackson Harper  <jackson@ximian.com>
15939
15940         * TextBox.cs: Don't explicitly set our background colors.
15941         * TextControl.cs:
15942         * TextBoxBase.cs: Draw readonly text.
15943         - Need to invalidate when backcolor or readonly are changed.
15944         
15945 2007-03-09  Jackson Harper  <jackson@ximian.com>
15946
15947         * TextBoxBase.cs: Don't set the forecolor until the handle is
15948         created.
15949         - Do not raise OnPaint, and removed some old debug code.
15950
15951 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
15952
15953         * ScrollableControl.cs: Fix mouse wheel scrolling.
15954
15955 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
15956
15957         * Control.cs: Wire up MouseDoubleClick event.
15958
15959 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
15960
15961         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
15962         top or bottom.
15963         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
15964         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
15965         item is added.  This logic was moved to ToolStrip.OnItemAdded.
15966         [Fixes bug #81090]
15967
15968 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15969
15970         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
15971
15972 2007-03-08  Jackson Harper  <jackson@ximian.com>
15973
15974         * TreeView.cs: Show the correct image for selected node (this used
15975         to work, not sure how the code got deleted). Also implemented 2.0 feature
15976         SelectedImageKey.
15977
15978 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15979
15980         * ListView.cs:
15981         * ListViewItem.cs: Cache index in items when retrieving them
15982         in VirtualMode.
15983
15984 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
15985
15986         * ToolStripItem.cs: Don't return the explicit_size if we are using 
15987         AutoSize.  Fixes invalidation issue when user has explicitly set a
15988         size and has AutoSize = true.
15989
15990 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
15991
15992         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
15993
15994 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15995
15996         * DataGridView.cs: Remove event handler from DataView when a
15997         DataTable is used as DataSource.
15998
15999 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
16000
16001         * Control.cs: Create internal setter for client_size to allow it to be
16002         set without triggering resizing code.
16003         * Form.cs: Calculate client_size in constructor, only change client_size
16004         in FormBorderStyle property if Handle has been created.
16005         [Fixes #80574, #80791]
16006
16007 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
16008
16009         * SystemInformation.cs: Add TerminalServerSession.
16010
16011 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16012
16013         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
16014         TreeView code.
16015
16016 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16017
16018         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
16019         Handle before we were supposed to.  Now checks ActivateOnShow property
16020         in Control.
16021         * Control.cs: Add internal ActivateOnShow property.
16022         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
16023         for ActivateOnShow.
16024         * Hwnd.cs Remove no longer needed no_activate field.
16025
16026 2007-03-07  Jackson Harper  <jackson@ximian.com>
16027
16028         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
16029         2.0 properties
16030         * DrawTreeNodeEventHandler.cs: Add
16031         * DrawTreeNodeEventArgs.cs: Correct default value.
16032         
16033 2007-03-07  Chris Toshok  <toshok@ximian.com>
16034
16035         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
16036         to be called before NativeWindow.WndProc.  Put the HwndCreating
16037         magic there to hook up our Hwnd's to handles.
16038
16039 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
16040
16041         * DataGridView.cs: Comment out debug code.
16042
16043 2007-03-07  Chris Toshok  <toshok@ximian.com>
16044
16045         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
16046         to make the rest of the world happy]
16047
16048         * Control.cs (CreateHandle): there's no need to call
16049         XplatUI.SetVisible here, it's effectively done by
16050         XplatUI.CreateWindow on X now, and always was on windows.
16051
16052         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
16053         shortcircuit out of the loop if we have a message loop running on
16054         this thread.
16055
16056         [Changelog from merge]
16057
16058         2007-03-05  Chris Toshok  <toshok@ximian.com>
16059
16060                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
16061                 causes handle creation.
16062
16063         2007-02-28  Chris Toshok  <toshok@ximian.com>
16064
16065                 * ApplicationContext.cs: Add a flag to make sure we only raise the
16066                 ThreadExit event once (ExitThreadCore can be indirectly called
16067                 from a few places.)  I don't like the additional flag, but it
16068                 makes the event ordering/count correct.
16069
16070                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
16071                 without locking the collection.  An enumerator doesn't give us any
16072                 protection from modification anyway.  Lock the thread hash and
16073                 replace the complicated enumerator loop with a foreach.
16074                 (Application.CloseForms): make internal so it can be called from
16075                 ApplicationContext.  This should probably be moved to MWFThread.
16076                 (Application.ExitThread): don't call MWFThread.Current.Exit()
16077                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
16078                 when the runloop exits (in response to WM_QUIT.)
16079                 (Application.RunLoop): add a comment (and check) for
16080                 context.MainForm being null after setting context.MainForm.Visible
16081                 = true.  This is because you're perfectly free to dispose of a
16082                 form in VisibilityChanged.  Chalk this up to another case where we
16083                 need to synchronously generate WM_ACTIVATE from Control.Show.
16084                 Also, add handling for WM_QUIT here so we'll exit the loop.
16085                 
16086                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
16087                 fact that we don't wait if we're only unmapping the whole_window
16088                 makes me a bit nervous, but it doesn't seem to cause any problems
16089                 yet.
16090
16091                 also, add a comment about the stupid, broken and wrong resetting
16092                 of PostQuitState to false in GetMessage().
16093
16094                 In PostQuitMessage, we need to add a WM_QUIT message to the
16095                 thread's queue.  We use the FosterParent to get the right
16096                 handle/hwnd/queue.
16097
16098                 Lastly, in SetVisible, we need to unmap both windows, since the
16099                 waiting only happens when we're unmapping the client window.  So
16100                 now, the *only* time we unmap just the whole_window is in the hack
16101                 for resizing a control to 0,0.
16102                 
16103         2007-02-21  Chris Toshok  <toshok@ximian.com>
16104
16105                 * Application.cs (CloseForms): rewrite this so that we don't
16106                 modify the list while we're traversing it.
16107
16108         2007-02-20  Chris Toshok  <toshok@ximian.com>
16109
16110                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
16111                 of OnHandleCreated.
16112                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
16113                 handle is created.  otherwise we'll create it here.
16114                 (VerticalScrollEvent): same here.
16115
16116                 * Application.cs (CloseForms): call Form.Dispose, don't post
16117                 WM_CLOSE_INTERNAL.
16118
16119                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
16120                 here. Application should Dispose() of the Form's.
16121
16122                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
16123                 WM_DESTROY as well.
16124                 (MapWindow,UnmapWindow): only actually do the waiting for
16125                 SHOWWINDOW if the control we're dealing with is a Form.
16126                 (CreateWindow): if the control isn't a form, SendMessage
16127                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
16128
16129                 * Control.cs (SetVisibleCore): always use is_visible here, not
16130                 value.  If we use value, we can end up re-setting something
16131                 visible if, for instance, you do Control.Hide() in a delegate
16132                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
16133
16134         2007-02-20  Chris Toshok  <toshok@ximian.com>
16135
16136                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
16137                 the message we need.  PeekMessage returning false should not be a
16138                 condition under which we exit the loop.
16139
16140         2007-02-15  Chris Toshok  <toshok@ximian.com>
16141
16142                 * Control.cs (Refresh): only refresh if we've got a handle and are
16143                 visible.
16144                 (CreateAccessibilityInstance): CreateControl() here.
16145                 (UpdateChildrenZOrder): complicate the code loop even more by
16146                 taking into account controls that haven't had their handle
16147                 created, and those that aren't visible.  But on the flip side,
16148                 simplify the code by splitting it into two loops.  one which
16149                 builds up the list of child controls we're interested in, and the
16150                 other that sets the z order of those children.
16151
16152         2007-02-14  Chris Toshok  <toshok@ximian.com>
16153
16154                 * Control.cs: Control.AccessibilityObject causes the control to be
16155                 created, not just the handle.
16156
16157         2007-02-14  Chris Toshok  <toshok@ximian.com>
16158
16159                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
16160                 problem on X where a window might have its handle created (and be
16161                 visible) while the window is unmapped.  calling XConfigureWindow
16162                 on an unmapped window is bad, and generates X errors.
16163
16164         2007-02-13  Chris Toshok  <toshok@ximian.com>
16165
16166                 * Control.cs (CreateHandle): don't loop over our children setting
16167                 their parent here.  do it when in WndProc when we're shown.
16168                 (UpdateChildrenZOrder): make this internal so we can call it from
16169                 ScrollableControl.
16170                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
16171                 creating its handle.  Also, remove the calls to PerformLayout from
16172                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
16173                 OnVisibleChanged only seems to be called directly here for the
16174                 toplevel control.  It's propagated down the window hierarchy by
16175                 calls to child.OnParentVisibleChanged.
16176                 (OnVisibleChanged): don't do layout here - it's done (oddly
16177                 enough, according to a glance at stack traces on ms.net..) in
16178                 ScrollableControl.
16179                 
16180                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
16181                 z order of our children before calling PerformLayout.
16182
16183         2007-02-12  Chris Toshok  <toshok@ximian.com>
16184
16185                 [big change, fixes #80020]
16186                 
16187                 * AccessibleObject.cs: we need to make owner internal again to fix
16188                 some of ControlAccessibleObject.
16189
16190                 * Control.cs: lots of changes here.  add support for WM_CREATE,
16191                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
16192                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
16193                 we create child controls.  leave the MonoTODO's for the
16194                 accessibility calls, but fix the exceptions so the tests pass.
16195
16196                 Add the InvalidOperationExceptions to Invoke methods, and remove a
16197                 couple of InvokeInternal methods we aren't using.
16198                 
16199                 Also, add a couple of CreateHandle calls in places where we know
16200                 the handles are being created but our code doesn't reference
16201                 .Handle.
16202
16203                 Make SetVisibleCore call OnVisibleChange if the handle isn't
16204                 created.  If the handle is created, we rely on XplatUI.SetVisible
16205                 generating the event synchronously.
16206                 
16207                 Lastly, make sure we don't use this.Handle inside CreateHandle,
16208                 because we can call back into client (and that code can dispose of
16209                 the control).
16210
16211                 * XplatUIStructs.cs: misc/cleanup.
16212
16213                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
16214                 although we don't populate the wParam properly.
16215                 (CreateWindow): generate WM_CREATE.
16216                 (MapWindow,UnmapWindow): make these calls synchronous, at great
16217                 performance expense (particularly in the unmap case), to match
16218                 win32 behavior.
16219
16220                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
16221                 to call it.
16222                 (set_MdiParent): don't recreate the handle unless it's been
16223                 created already.
16224                 
16225                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
16226                 it's created.
16227
16228                 * NativeWindow.cs: this is probably the weirdest part of the
16229                 patch.  We need a way to link up the window being created to the
16230                 WM_CREATE message.  Since we can only be creating one window at a
16231                 time on a given thread, we keep track of a per-thread reference so
16232                 we can dispatch it properly.  We also need to keep track of the
16233                 Hwnd currently being created so that the win32 backend doesn't
16234                 have problems.
16235                 
16236                 * XplatUIWin32.cs: a similar change to the one we made in
16237                 NativeWindow.cs.
16238
16239 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16240
16241         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
16242         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
16243         to draw the menu shortcut string.
16244
16245 2007-03-07  Jackson Harper  <jackson@ximian.com>
16246
16247         * TreeNode.cs: Add the 2.0 collapse method.
16248
16249 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16250
16251         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
16252
16253 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16254
16255         * DataGridView.cs: Change DataSource will clear column and row
16256         lists. Call Invalidate() to reflect DataSource change.
16257
16258 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16259
16260         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
16261         and a new row is added to it.
16262
16263 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16264
16265         * DataGridView.cs: Add columns when DataSource is en empty list but
16266         is a System.Data.DataView (from a System.Data.DataTable).
16267
16268 2007-03-06  Andreia Gaita  <avidigal@novell.com>
16269
16270         * Label.cs: Implement AutoEllipsis (2.0)
16271
16272 2007-03-06  Jackson Harper  <jackson@ximian.com>
16273
16274         * TreeView.cs: Implement 2.0 TopNode setter property.
16275         - Use a local var instead of the skipped_nodes field for computing
16276         how many nodes to skip.  Otherwise we won't scroll because the
16277         valuechanged handler checks if skipped_nodes is equal to the new
16278         value.
16279         - Implement 2.0 Sort method.
16280         - Add useless 2.0 DoubleBuffer property
16281         - Implement 2.0 LineColors property.  Lets you change the color of
16282         the lines in the tree. Terribly useful for creating non cohesive
16283         desktops.
16284         - Implement 2.0 image key feature.
16285
16286 2007-03-06  Jackson Harper  <jackson@ximian.com>
16287
16288         * TreeView.cs: We can't get the bounds of the nodes before raising
16289         the AfterSelect event, because that event could change the node's
16290         bounds (scrolling, font change, etc).
16291
16292 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16293
16294         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
16295         * Form.cs: Don't recreate handle when creating FormWindowManager, just
16296           update window styles. In CreateParams us VisibleInternal instead of
16297           VIsible to get the actual visible flag set for this form.
16298         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
16299           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
16300           handle the case when the form is already maximized, in which case
16301           it should be restored. Fixes #81043.
16302
16303 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16304
16305         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
16306
16307 2007-03-05  Jackson Harper  <jackson@ximian.com>
16308
16309         * TreeViewHitTestInfo.cs: implement.
16310
16311 2007-03-05  Jackson Harper  <jackson@ximian.com>
16312
16313         * InternalWindowManager.cs: class status fix.
16314
16315 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16316
16317         * InternalWindowManager.cs: All windows that have a parent
16318         are confined to their parent when they're being moved.
16319         Fixes #80822.
16320
16321 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
16322
16323         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
16324         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
16325
16326 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16327
16328         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
16329           buttons invisible before deciding which ones should be visible
16330           (fixes minimize/maximize buttons showing up in toolwindows). Remove
16331           an unused variable.
16332         * InternalWindowManager.cs: Remove warning.
16333
16334 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16335
16336         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
16337         to throw an InvalidOperationException is virtual mode is being used.
16338
16339 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
16340
16341         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
16342         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
16343         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
16344         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
16345         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
16346         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
16347
16348 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16349
16350         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
16351           driver.KeyboardDelay from XplatUI.KeyboardDelay 
16352         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
16353           (patch by Sergey Volk)
16354
16355 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16356
16357         * ToolWindowManager.cs: Added, contains logic for
16358           tool windows.
16359         * CreateParams.cs: Add a few helper methods and an
16360           internal variable to know which control the CreateParams belongs
16361           to.
16362         * Control.cs: Call Form.ChangingParent when the
16363           parent is about to be changed.
16364         * XplatUIX11.cs: DeriveStyles (): Set
16365           caption_height for all windows that have captions and are children.
16366           Update to use ToolWindowManager instead of InternalWindowManager
16367           for ToolWindows.
16368         * XplatUIWin32.cs: Set fake window styles for all
16369           windows that have window managers.
16370         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
16371           now duplicated for mdi windows when they are
16372           maximized, first for the buttons the window itself has, then for
16373           the buttons that appear in the menu bar. Makes things a little
16374           easier). Updated UpdateWindowDecorations, SetWindowState and the
16375           mouse eventhandlers accordingly.
16376         * Form.cs: Add ChangingParent (), contains the
16377           logic of what should happen when the parent changes. In MdiParent
16378           don't set things that ChangingParent () is doing. When handling
16379           WM_CLOSE, we can close the form if there are any other modal forms
16380           and the current form is a descendent of the modal form.
16381         * InternalWindowManager.cs: A lot of refactoring,
16382           the title buttons are now extracted to a separate container class
16383           that takes care of all button code (clicks, tooltips, etc). Moved
16384           Iconic|Maximized|Normal Bounds properties to this class from
16385           MdiWindowManager, so that the window state logic can succeed for
16386           other than mdi wm's. Implemented general window state change logic.
16387           Moved CreateButtons to ThemeWin32Classic, since the theme might
16388           override which buttons are available when as well as the exact
16389           location.
16390         * FormWindowManager.cs: Added, contains logic for
16391           normal forms.
16392         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
16393           which buttons go where (and if they are at all visible). 
16394           Removed special handling of maximized windows, since they aren't special. 
16395           In DrawManagedWindowDecorations don't try to draw the text if it is
16396           empty.
16397         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
16398           use whatever the wm gives us.
16399
16400 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
16401
16402         * ButtonBase.cs: Add 2.0 properties.
16403         * Button.cs: Override Draw for 2.0.
16404         * Control.cs: Add Entered and Selected properties.
16405         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
16406         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
16407         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
16408         buttons.
16409         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
16410
16411 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
16412
16413         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
16414
16415 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
16416
16417         * XplatUIWin32.cs: Register a new class with Windows each time we get
16418         a new ClassStyle.  [Fixes bugs #79432, #80817]
16419         * Controls.cs: Set the correct ClassStyle in CreateParams.
16420         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
16421
16422 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
16423
16424         * ListView.cs: Add fireEvent argument to ReorderColumn since the
16425         ColumnReordered event must not be signaled when modifying DisplayIndex
16426         of a ColumnHeader. Added internal ReorderColumns method which takes
16427         care of drawing, and updating the internal DisplayIndex of the
16428         ColumnHeader. Added AddColumn method which is invoked from
16429         ColumnHeaderCollection when adding or inserting columns, and which
16430         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
16431         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
16432         Recalculated dispay indices after removing a ColumnHeader.
16433         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
16434         match MS. Allows last display index to be returned after ListView
16435         is disposed. Update actual location of ColumnHeader when DisplayIndex
16436         is modified.
16437
16438 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
16439
16440         * LinkLabel.cs: Improve CalcTrimRectangle.
16441         
16442         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
16443
16444 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
16445
16446         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
16447         get rectangle as a result value.
16448
16449 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
16450
16451         * LinkLabel.cs: Theres some diferences between rectangle return from 
16452         MeasureCharacterRanges and the area used for DrawString to fix this 
16453         CalcMeasurementFactor method was created, it calcules the diferences
16454         to be use later to adjust rectangle in draw operations. Fixes #80473.
16455         
16456         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
16457         to adjust draw rectangle.
16458
16459 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
16460
16461         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
16462         text and some other changes to reduce and optimize source code.
16463
16464 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
16465
16466         * RadioButton.cs: Implement 2.0 event.
16467         * RelatedImageListAttribute.cs: Implement new class.
16468
16469 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
16470
16471         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
16472
16473 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
16474
16475         * CheckBox.cs: Implement 2.0 functionality.
16476
16477 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16478
16479         * ListView.cs: Refactor Add and AddRange methods of
16480         ListViewItemCollection, to not update the ListView
16481         everytime an item is added in AddRange. Also move the update
16482         code to a new CollectionChanged method, and call it
16483         from other methods that need it as well (this should also fix some
16484         bugs when Sorting is used).
16485
16486 2007-02-27  Jackson Harper  <jackson@ximian.com>
16487
16488         * TextControl.cs: Try to never let the caret stay in a non-text
16489         tag.
16490         * TextBoxBase.cs: Update the caret.
16491
16492 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
16493
16494         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
16495         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
16496         delete POINT structure, duplicate of one in XplatUIStructs.
16497         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
16498
16499 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
16500
16501         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
16502         edit box since otherwise the Label would immediately be set (even if
16503         the user did not modify the label). In OnKeyDown set Handled to true
16504         if Return or Escape was pressed. In ColumnHeaderCollection unlink
16505         columns that are to be removed. In ListViewItemCollection unlink items
16506         that are to be removed.
16507
16508 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
16509
16510         * TextRenderer.cs: If we set a GDI clip region, we need to clear
16511         it when we are done.  [Fixes bug #80949]
16512
16513 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16514
16515         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
16516
16517 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16518
16519         * ListView.cs: I forgot to commit the changes for ListView 
16520         in my previous patch.
16521
16522 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16523
16524         * Clipboard.cs: Partially implement an overload of SetDataObject.
16525         * Form.cs: Implement ShowWithoutActivation.
16526         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
16527
16528 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16529
16530         This is a first set of changes to make the Virtual mode works,
16531         by avoiding the retrieval of ListViewItem instances until
16532         draw time.
16533
16534         * ListView.cs: Store item position in the ListView instead of the
16535         ListViewItem, this way we don't request the Bounds property of
16536         ListViewItem inside the ListView calculations, as well as cache the item
16537         size in item_size field. Store indexes instead of ListViewItem
16538         instances in the matrix used by icon view. Add a ItemMatrixLocation
16539         struct to hold the row and col info of the matrix info.
16540
16541         * ListViewItem.cs: Don't store the location anymore, and only cache
16542         the rectangles for GetBounds. Use the ListView.GetItemLocation
16543         method to retrieve the actual location.
16544
16545 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16546
16547         * TextRenderer.cs: Add clipping support, thanks to George.
16548         [Fixes bug #80949]
16549
16550 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16551
16552         * ListViewItem.cs: Cancel label edit when item is removed from 
16553         ListView.
16554         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
16555         event before the edit textbox is displayed.  Added CancelEdit method
16556         which is used end to editing while ignoring the value set by the
16557         user. In EndEdit, set focus to ListView to avoid losing focus to
16558         other controls. In ListViewItemCollection.Clear, cancel editing of
16559         any of the items.  In Remove, cancel editing of item being removed.
16560         Avoid udplicate code by modifing RemoveAt to invoke Remove.
16561
16562 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16563
16564         * FileDialog.cs: Update FSEntry when move is successful. Fixes
16565         bug #80948.  
16566
16567 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16568
16569         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
16570         compatible with non X11 systems. Fixes #80901.
16571
16572 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16573
16574         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
16575         whether the item should be unselected and reselect. We do no want this
16576         when we're starting to edit the label. Do not fire the 
16577         SelectedIndexChanged event from ListView when its already been fired
16578         by modifying ListViewItem.Selected. Fixes bug #80943.
16579
16580 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16581
16582         * TextRenderer.cs: Previos commit logic was backwards.
16583
16584 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16585
16586         * TextRenderer.cs: Don't add padding on MeasureText if we were
16587         sent the NoPadding flag.
16588
16589 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16590
16591         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
16592         after DrawButton. To prevent image overlaps button borders SetClip and 
16593         ResetClip added before and after draw image. Fixes #79129.
16594
16595 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16596
16597         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
16598         window size, it fix problem when you run under win32 that theres
16599         Size diferent than ClientSize. Also fix controls size and positions
16600         to mimic Win32. Fixes #80837.
16601
16602 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
16603
16604         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
16605         menu area to fix some problems for non X11 systems. Fixes #80613.
16606
16607 2007-02-22  Jackson Harper  <jackson@ximian.com>
16608
16609         * TreeNode.cs: When a node is expanded, set its is_expanded flag
16610         even if it doesn't have any children.
16611
16612 2007-02-22  Jackson Harper  <jackson@ximian.com>
16613
16614         * TreeView.cs: Calculate the top node 'on the fly', this
16615         eliminates issues where you need to click on the tree before
16616         scrolling it to get the top node computed correctly.
16617         * TreeNodeCollection.cs: We don't need to mess with the top node
16618         anymore.
16619
16620 2007-02-22  Jackson Harper  <jackson@ximian.com>
16621
16622         * DataGridViewRow.cs: Fix typo so height can actually be set.
16623         Patch by Peter Grimm.
16624
16625 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16626
16627         * FileDialog.cs: Fixed support for renaming files and directories.
16628         * ListView.cs: Do not lose focus when edit is canceled. Process
16629         Escape as regular key (to prevent closing of dialogs).
16630
16631 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16632
16633         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
16634         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
16635
16636 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16637
16638         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
16639         did not modify label.
16640         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
16641         modified the text. Reset Label when user presses Escape in edit mode.
16642         Move focus to ListView after having cancelled or finished editing the
16643         label.
16644
16645 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
16646
16647         * ComboBox.cs: Removed unnecessary initializations. Marked items field
16648         private. Clear textbox when Text is set to null and SelectedIndex is
16649         already -1.
16650         * FileDialog.cs: Removed unnecessary initializations. Removed 
16651         workarounds for ComboBox bugs that are now fixed. Modified
16652         DefaultExt, InitialDirectory and Title property to change null to
16653         zero-length string in getters. Avoid directly accessing fields.
16654
16655 2007-02-20  Jackson Harper  <jackson@ximian.com>
16656
16657         * TextControl.cs: Remove RecalAlignments call, that was some
16658         debugging leftovers.
16659         - Don't use the line indent when we shouldn't.
16660         * RichTextBox.cs: Add support for paragraph left indents.
16661
16662 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16663
16664         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
16665         Seems like the class status pages doesn't catch params differences.
16666
16667 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
16668
16669         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
16670
16671 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
16672
16673         * ComboBox.cs: Setting Text should have no effect if item text of
16674         selected item exactly matches value. First lookup text using
16675         case-sensitive comparison, and fallback to case-insensitive comparison.
16676         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
16677         allow startIndex to be last index. Changed ArgumentOutOfRangeException
16678         paramname to match MS. Restart from first item if string is not found
16679         after startIndex. Fixed paramname of ArgumentNullException that is
16680         thrown for null value in ObjectCollection.Contains.
16681
16682 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
16683
16684         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
16685
16686 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16687
16688         * ListControl.cs: In SelectedValue use value.Equals to compare for
16689         equality instead of ==, otherwise it will fail for strings.
16690         Fixes #80794.
16691
16692 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16693         
16694         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
16695         since the caret won't show up unless ShowSelection is true. 
16696         Fixes #80795.
16697
16698 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16699
16700         * Application.cs: When disabling all forms but the main form, do not
16701           disable any descendants of the main form (such as mdi children or
16702           other parented forms). Fixes #80822 on Windows.
16703         * Form.cs: If we have a parent, set the WS_CHILD style.
16704         * Control.cs: Update the window styles if the control whose parent has
16705           changed is a form (the WS_CHILD style has to be switched).
16706
16707 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
16708
16709         * XplatUIStructs.cs: MsgUIState structure added.
16710
16711 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
16712
16713         * FileDialog.cs: Removed need for separate fileName field. On 2.0
16714         profile, do not check filename(s) for illegal character if filename(s)
16715         were set non-interactively but always check on 1.0 profile. Fixed NRE
16716          in DefaultExt and only strip off first leading dot. Improve exception
16717         message when invalid Filter is set. Do not ignore InitialDirectory if
16718         it does no exist. Store specified Title, and if empty use default
16719         title (depending on type of dialog). Added an internal DialogTitle 
16720         property for retrieving dialog title. Fixed logic of displayed dir to
16721         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
16722         string as its buggy.
16723         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
16724         FileName is a zero-length string (it can never be null). Override 
16725         DialogTitle property to set default title of dialog box.
16726         * SaveFileDialog.cs: Override DialogTitle property to set default
16727         title of dialog box.
16728
16729 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
16730
16731         * FileDialog.cs: Modify default text of filename and filetype labels
16732         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
16733         after we've updated the SelectedIndex. Fixes part of bug #80887.
16734         * SaveFileDialog.cs: Set text of filetype label.
16735
16736 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16737
16738         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
16739         label field. Needed by latest Jackson's fixes for ListView.
16740
16741 2007-02-16  Andreia Gaita  <avidigal@novell.com>
16742
16743         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
16744         print preview images.
16745
16746 2007-02-16  Jackson Harper  <jackson@ximian.com>
16747
16748         * ListView.cs: Make AfterLabelEdit work correctly.
16749         * FileDialog.cs: After changing the name of the folder, we have to
16750         make sure that it is created, or that we pop up an error because
16751         it already exists.
16752
16753 2007-02-16  Jackson Harper  <jackson@ximian.com>
16754
16755         * X11Dnd.cs: Implement aliases on mime handlers, so things like
16756         System.String are mapped to text.
16757         - Handle dataobjects, getting all the possible formats out of them
16758         - We dont need the drag event args before we give feedback. This
16759         allows feedback cursors to be immediate before selections have
16760         been converted.
16761
16762 2007-02-16  Jackson Harper  <jackson@ximian.com>
16763
16764         * TextBoxBase.cs: Modified the method for inserting images to
16765         taking a line and position instead of tag and position.
16766         * RichTextBox.cs: Handle PngBlip data by inserting the png image
16767         into the RTF file.
16768         * TextControl.cs: Allow images to be inserted as the first tag of
16769         a line.
16770         - Fix some off by one issues when we assume the first tag is a
16771         text tag, not an image tag.
16772
16773 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16774
16775         * ListView.cs: Set focus to ListView when ItemControl gets a
16776         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
16777         Fixes part of #80467.
16778
16779 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16780
16781         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
16782           validate Text input (if null or empty string reset Value to default
16783           value). Fixes #80830.
16784
16785 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16786
16787         * ListView.cs: Set owner as null for columns and items when
16788         Dispose is invoked. Fixes #80607.
16789
16790 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
16791
16792         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
16793         showing DropDowns, don't show a Grip when doing Flow layout.
16794         [This fixes the toolbox in PDN 2.72.]
16795         * ToolStripItem.cs: Add Anchor property and some internal properties to
16796         reduces needed changes to FlowLayout.
16797         * ToolStripOverflow.cs: Remove unused variable.
16798         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
16799         use it in the layout calculations.
16800
16801 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16802
16803         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
16804         reported in #79640.
16805         
16806         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
16807         size calculation.
16808
16809 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16810
16811         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
16812         MeasureString format, it can make button very large in some cases, it is
16813         strange but is what win32 do.
16814
16815 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16816
16817         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
16818         size calculation.
16819
16820         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
16821         rendering, the value is based on MenuAccessKeysUnderlined.
16822
16823 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16824
16825         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
16826         for most themes.
16827         
16828         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
16829         
16830         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
16831         and use MenuAccessKeysUnderlined instead.
16832
16833 2007-02-13  Andreia Gaita  <avidigal@novell.com>
16834
16835         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
16836         A selected control would not get a Focus call if:
16837                 - the default active control of the container is the same as
16838                   the one that was selected
16839                 - we are switching from one container to another
16840         Under these conditions, the container being selected already has
16841         an active_control, which is the same as the one being activated, 
16842         so set_ActiveControl would always return and not send the Focus
16843         call. Fix to check if the currently active control of the container
16844         is actually focused.
16845
16846 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
16847
16848         * StatusStrip.cs: Implement the spring layout.
16849         * ToolStripControlHost.cs: Make sure the hosted control's visibility
16850         always matches the host.
16851         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
16852         and TextAfterImage.
16853
16854 2007-02-13  Andreia Gaita  <avidigal@novell.com>
16855
16856         * Control.cs: Code reorganization only.
16857           - Reorganize the WndProc cases so that each case has it's own handling method, 
16858           to help with the no-line-numbering stack traces.
16859           - Formatting changes (it's vstudio's fault, really :p)
16860
16861 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16862
16863         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
16864           Thread.CurrentUICulture to match DateTimePicker's (and MS)
16865           behaviour.
16866
16867 2007-02-12  Jackson Harper  <jackson@ximian.com>
16868
16869         * RichTextBox.cs:
16870         * TextBox.cs: By default we have a non multiline document
16871         - use the multiline property instead of the internal variable
16872         * TextBoxBase.cs: Treat multiline and non multiline the same in
16873         most places.
16874         - Use the documents multiline flag instead of tracking it ourself
16875         * TextControl.cs: Attempt at getting multiline to match MS
16876         behavior.  Lines now track an offset, which is either their X or Y
16877         offset depending on whether or not we are in multiline mode.
16878         - Update all the methods to understand that lines have an X value.
16879         - Fix crash in Undo::Duplicate when empty lines are deleted.
16880
16881 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
16882
16883         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
16884         code moved to properties PreferredHeight and PreferredWidth. It solve the
16885         all problems when preferred sizes must be recalculated. Fixes #80801.
16886
16887 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
16888
16889         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
16890         font height when compatible_text_rendering is false. Partially fix #80801.
16891
16892 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16893
16894         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
16895
16896 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16897
16898         * Form.cs: Improved exception messages in ShowDialog.
16899
16900 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16901
16902         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
16903         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
16904         if not set. Fixes bug #80764. Avoid accessing current_settings field
16905         directly.
16906
16907 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
16908
16909         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
16910         false.
16911
16912         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
16913         public in 2.0 and for easy maintenance and dont break compatibility it is 
16914         internal in 1.1.
16915         
16916 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16917
16918         * ToolStripItem.cs: Implement using images from ImageList.
16919
16920 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16921
16922         * DateTimePicker.cs: Change default date-formatting culture from
16923           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
16924           seems to be the way MS does it.
16925
16926 2007-02-08  Andreia Gaita  <avidigal@novell.com>
16927
16928         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
16929         (the 6 was cut off on the right side)
16930
16931 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16932
16933         * Form.cs: Tell MenuStrips to close when the form is clicked.
16934         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
16935         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
16936         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
16937         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
16938         support for Overflow, where items that do not fit are automatically
16939         reparented to a drop down menu.
16940         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
16941         Also: fixes bug #80747.
16942
16943 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16944
16945         * ComboBox.cs: Remove warning (unused code).
16946         * ScrollableControl.cs: Remove warning for 1.1 profile.
16947
16948 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16949
16950         * Form.cs: Remove a warning.
16951
16952 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16953
16954         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
16955           'g' specifier, not documented anywhere, but seems to always show up
16956           as a single space (might have something to do with the DateTime 'g'
16957           specifier, which is the era format, but since DateTimePicker can't
16958           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
16959           won't crash if the format has an unmatched quote. Now shows
16960           single-character formats correctly. Fixes #80744.
16961
16962 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16963
16964         * StatusStrip.cs: Stretch property needs to call base.Stretch,
16965         not this.Stretch to fix stack overflow. [Fixes bug #80760]
16966
16967 2007-02-07  Chris Toshok  <toshok@ximian.com>
16968
16969         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
16970         background color.  it overwrites the background image we've
16971         already painted.  Fixes #80599.
16972
16973 2007-02-07  Chris Toshok  <toshok@ximian.com>
16974
16975         * DataGrid.cs: return immediately from Edit() when there are no
16976         columns.  Fixes #80662.
16977
16978 2007-02-07  Chris Toshok  <toshok@ximian.com>
16979
16980         * MessageBox.cs: fix #80625.  don't always show the Help button in
16981         2.0.  use the displayHelpButton parameter to determine if we
16982         should show it. Also, make the internal show_help field private.
16983
16984 2007-02-07  Chris Toshok  <toshok@ximian.com>
16985
16986         * Control.cs (SetVisibleCore): check in the proposed patch for
16987         80604, and set is_visible before calling CreateControl.
16988
16989 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
16990
16991         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
16992         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
16993         on it.
16994
16995 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
16996
16997         * MenuAPI.cs: hotkey_active internal field added, it is required because
16998         we need to know when hotkeys must be draw, before this change a keystate
16999         Navigating was used but we can have menu in navigating state without
17000         hotkeys. Fixes #80694.
17001         
17002         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
17003
17004 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17005
17006         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
17007           corresponding events and methods to be internal for 1.1 profile and
17008           public for 2.0 profile (required by SizeGrip).
17009         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
17010           implicit control list). Don't set the size nor the location of the
17011           SizeGrip anymore as it's not needed.
17012         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
17013           draw directly on the captured control (fixes #80656). Removed
17014           ShowGrip (it wasn't used anywhere), redraw (always true), added
17015           GetDefaultSize and GetDefaultRectangle to calculate defaults.
17016         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
17017           be called from SizeGrip.
17018
17019 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17020
17021         * Timer.cs: Throw ArgumentException if Interval <= 0.
17022
17023 2007-02-05  Jackson Harper  <jackson@ximian.com>
17024
17025         * TreeView.cs: We need to check scrollbar visibility when window
17026         visibility is updated, because non visible trees don't ever add
17027         scrollbars.
17028         * Cursor.cs: We want the override cursor to be reset to NULL when
17029         we set current cursor to the default cursor.
17030
17031 2007-02-05  Jackson Harper  <jackson@ximian.com>
17032
17033         * TextControl.cs: Don't have crlfs when we are non multiline.
17034         - Consolidate the line position.
17035
17036 2007-02-05  Jackson Harper  <jackson@ximian.com>
17037
17038         * X11Keyboard.cs: BACK+CTRL gets a special char code.
17039
17040 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17041
17042         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
17043           handling LeaveNotify->NotifyUngrab in order to send
17044           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
17045           after calling XUngrabPointer, so we call WindowUngrabbed directly
17046           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
17047         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
17048           MouseCaptureChanged correctly. Also create handles if changing
17049           Capture (matches MS behaviour).
17050
17051 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17052
17053         * SizeGrip.cs: Make the last change 2.0 only.
17054
17055 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17056
17057         * SizeGrip.cs: If resizing and the capture is lost, revert any size
17058           changes to initial size (fixes #80597).
17059
17060 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17061
17062         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
17063
17064 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17065
17066         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
17067           background) and only allow dragging if enabled. This way the
17068           sizegrip can be used to fill the open square that otherwise would
17069           have been shown in the bottom right corner of ScrollableControl
17070           when ScrollableControl is not suppose to support sizing.
17071         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
17072           sizegrip is shown and enabled, and hook up with necessary events.
17073
17074 2007-02-01  Chris Toshok  <toshok@ximian.com>
17075
17076         * DataGridTextBoxColumn.cs: clean up the
17077         GetFormattedString/GetColumnValueAtRow combination of functions.
17078         Also fix UpdateUI, and the initial state of
17079         IsInEditOrNavigateMode.
17080
17081         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
17082         aren't supposed to scroll the textbox here, we're supposed to
17083         scroll the datagrid.
17084
17085 2007-02-01  Chris Toshok  <toshok@ximian.com>
17086
17087         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
17088         setting the position.
17089
17090 2007-02-01  Chris Toshok  <toshok@ximian.com>
17091
17092         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
17093         here, since the most recent focus fixes keep us from generating
17094         the Leave event when our textbox gets focus.
17095         (Edit): we should be passing null for the column style's
17096         instantText parameter.
17097         
17098 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
17099
17100         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
17101         raised.  Fixes menu text/icons not showing up in PDN.
17102
17103 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17104
17105         * Control.cs: Remove code in constructor that makes every
17106         control with WS_CHILD set have initial location -1, -1.
17107
17108 2007-01-31  Jackson Harper  <jackson@ximian.com>
17109
17110         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
17111         XplatUIX11.
17112         * XplatUIX11.cs: Give teh keyboard to teh dnd.
17113
17114 2007-01-31  Jackson Harper  <jackson@ximian.com>
17115
17116         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
17117         - Remove some debug code.
17118
17119 2007-01-31  Jackson Harper  <jackson@ximian.com>
17120
17121         * XplatUIX11.cs: If you set the override cursor during a grab, it
17122         should actually override the grab cursor.  This comes into play
17123         when you are setting custom cursors in a DND feedback method.
17124
17125 2007-01-31  Jackson Harper  <jackson@ximian.com>
17126
17127         * X11Dnd.cs: Add support for handling the QueryContinue and
17128         GiveFeedback events.
17129         - Cancel drag and drop actions when the escape key is clicked.
17130         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
17131         can handle the ESCAPE key.
17132         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
17133         done when dnd events are continued after the button is released.
17134         - Add a new helper method so that dnd can translate key events.
17135
17136 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
17137
17138         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
17139         make it more obvious what is happening.
17140
17141 2007-01-30  Jackson Harper  <jackson@ximian.com>
17142
17143         * XplatUIX11.cs: Don't break when handling button release in drag
17144         and drop operations. We need that BUTTONUP message to get through
17145         so capture is released.
17146         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
17147         this is handled automatically when the mouse is down.
17148
17149 2007-01-30  Jackson Harper  <jackson@ximian.com>
17150
17151         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
17152         is closed, so we need to make sure that we aren't changing the
17153         dialog result when the OK (Open or Save) button has been clicked
17154         and we are closing the window ourselves.  Note we don't need to
17155         worry about the cache being written in this case, because it was
17156         already done in the previous FilOk call.
17157
17158 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17159         
17160         * DateTimePicker.cs: Remove a warning.
17161         * ComboBox.cs: Remove a couple of warnings.
17162
17163 2007-01-29  Chris Toshok  <toshok@ximian.com>
17164
17165         * XplatUIX11.cs: don't crash, and remove the icon if the user has
17166         set one, if SetIcon is passed a null icon.
17167
17168 2007-01-29  Andreia Gaita  <avidigal@novell.com>
17169
17170         * TextBox.cs: Redraw when the password characters changes
17171         * TextControl.cs: Check if textbox has a password char and draw 
17172         a line of password chars instead of the text in the line. LineTag gets 
17173         an extra Draw() method which allows document.Draw to override the text 
17174         that will be drawn. Removes 1024 char limitation on length of passworded 
17175         lines.
17176
17177 2007-01-29  Jackson Harper  <jackson@ximian.com>
17178
17179         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
17180         single chars is not.
17181
17182 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
17183
17184         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
17185         one pixel.  Fix a StackOverflowException caused by an overload wrongly
17186         calling itself.
17187
17188 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
17189
17190         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
17191         also remove ProcessArrowKey and put the code inside ProcessKeys.
17192
17193 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
17194
17195         * PaddingConverter.cs: Added.
17196
17197 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17198         
17199         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
17200         ShowPanels is false (fixes #80600). Only draw up to 127 characters
17201         of text (fixes #80601). For panels clip the text to draw to the
17202         panel (fixes #80603).
17203
17204 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17205
17206         * ComboBox.cs: Fixed implementation of ResetText.
17207
17208 2007-01-25  Jackson Harper  <jackson@ximian.com>
17209
17210         * TextControl.cs: For the last char of a line we need to use the
17211         line size, not that chars width, since it won't actually be
17212         computed since the right side of a char is based on the start of
17213         the left side of the next char, and the next char does not exist.
17214
17215 2007-01-25  Chris Toshok  <toshok@ximian.com>
17216
17217         * Splitter.cs: fix the new unit tests, and reindent some switch
17218         statements.
17219
17220 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17221
17222         * ComboBox.cs: Implemented 2.0 methods and events.
17223         * TextBoxBase.cs: Added OnTextUpdate, so that
17224         ComboBox.ComboTextBox can inform ComboBox of it.
17225
17226 2007-01-25  Jackson Harper  <jackson@ximian.com>
17227
17228         * TextControl.cs: Respect ShowSelection when deciding whether or
17229         not to display the caret, this allows comboboxes to have carets
17230         when the combotextbox does not have focus.
17231
17232 2007-01-25  Jackson Harper  <jackson@ximian.com>
17233
17234         * TextControl.cs: Add a Suspend/Resume for updating, basically the
17235         same as the Suspend/Resume for recalc, except this will do actual
17236         Invalidates.
17237         - New Undo manager, works much like the MS version.
17238         - Implemented Redo
17239         * TextBoxBase.cs: The Cut operation is undoable.
17240
17241 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17242         
17243         * TextBoxBase.cs: Don't antialias text. Makes it look way better
17244         on Windows (no difference on Linux).    
17245
17246 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17247
17248         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
17249         we don't want to activate any windows. Fixes #79433.
17250
17251 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
17252
17253         - ButtonBase.cs: Fix capitalization of parameter: disposing.
17254         [Fixes bug #80609]
17255
17256 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
17257
17258         * FileDialog.cs:
17259         - Move to using System.ComponentModel.EventHandlerList
17260         - Replace Refresh with Invalidate
17261         - Clear the mime filecache on closing
17262         - Some other memory reducing work. After beeing closed FD now uses
17263           only about 300 KB for the fdo mime stuff plus the memory of the
17264           cached icons.
17265         * Mime.cs: Changed coding style and removed unnecessary commented
17266         code. Some more memory memory reducing work.
17267
17268 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17269
17270         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
17271         a few other missing 2.0 properties.
17272         * Theme.cs: Added DrawFlatStyleComboBox.
17273         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
17274
17275 2007-01-24  Chris Toshok  <toshok@ximian.com>
17276
17277         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
17278         wake_waiting flag, not just when there's data to be read.  if we
17279         don't, then future wakeup's won't reach us and we'll be doomed to
17280         wait for the entire 1 second timeout forever (unless there are X
17281         events to be had).
17282
17283 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
17284
17285         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
17286         until you pass Items.Count, not Items.Count - 1 like 1.1.
17287
17288 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
17289
17290         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
17291
17292 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
17293
17294         * ToolStripContainer.cs: The recent Dock fix exposed that I was
17295         adding the panels in the wrong order.
17296
17297 2007-01-24  Jackson Harper  <jackson@ximian.com>
17298
17299         * TextBoxBase.cs: When we move the caret we also need to move the
17300         selection, this fixes some random crashing after doing select
17301         text, unselect, delete a char, paste.
17302
17303 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17304
17305         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
17306
17307 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17308
17309         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
17310         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
17311         * ToolBar.cs: Force redraw in BackgroundImageChanged.
17312
17313 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17314
17315         * ToolBar.cs:
17316         - Implement support for vertical toolbars. Fixes #80539;
17317         - Call LayoutToolBar when resize, it fix some other problems in layout.
17318         - Rename requested_height to requested_size, as we can have width on it
17319         when toolbar is vertical.
17320         - Create a private property "Vertical" that uses Dock to verify when 
17321         toolbar is vertical or not.
17322         - Set ControlStyles when change Dock property.
17323         - Refactory in LayoutToolBar to have better variables names and to support
17324         vertical toolbars.
17325         - Fixes default value for ButtonSize when button count is equal zero, size
17326         must be (39, 36) test case writed.
17327
17328 2007-01-23  Chris Toshok  <toshok@ximian.com>
17329
17330         * Control.cs: fix the checks so that they work correctly for mdi
17331         parents/children.
17332
17333 2007-01-23  Chris Toshok  <toshok@ximian.com>
17334
17335         * Control.cs: ControlCollection seems to have super-secret
17336         abstraction breaking knowledge of Mdi containers.  allow MdiClient
17337         to add toplevel controls.
17338
17339 2007-01-23  Chris Toshok  <toshok@ximian.com>
17340
17341         * Control.cs: throw an ArgumentException if a toplevel control is
17342         added to our control collection from ControlCollection.Add, as
17343         well as from ControlCollection.IList.Add.  This fixes the
17344         ControlSetTopLevelTest.TestTopLevelAdd unit test.
17345
17346         Also, in ControlCollection.IList.Add, don't through an
17347         ArgumentNullException, throw an ArgumentException, when value ==
17348         null.  This matches MS.
17349
17350 2007-01-23  Chris Toshok  <toshok@ximian.com>
17351
17352         * BindingSource.cs: initial, incomplete, implementation of
17353         BindingSource.
17354
17355 2007-01-23  Jackson Harper  <jackson@ximian.com>
17356
17357         * TextControl.cs:
17358         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
17359         that I can fix a broken unit test (TextBoxTest::ClearUndo)
17360         
17361 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17362
17363         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
17364
17365 2007-01-23  Andreia Gaita  <avidigal@novell.com>
17366
17367         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
17368         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
17369         IndexOfKey() for 2.0
17370
17371 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17372
17373         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
17374         to prevent it from changing z-order.
17375         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
17376         leave UI updates in MdiWindowManager.
17377         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
17378         1 sized (NC handling goes weird on Linux otherwise).
17379         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
17380         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
17381         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
17382         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
17383         and SetWindowState(s) to allow for changing the size of an activated child
17384         before activating it (reduces a lot of flicker).
17385
17386 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
17387
17388         * Form.cs: Changing FormBorderStyle has different semantics based
17389         on whether the Form is visible or not.  If not visible, don't change
17390         the Size.  But InvalidateNC needs to be called to force the window
17391         to pick up the changes and redraw itself.  [Fixes bug #80574]
17392
17393 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
17394
17395         [Moma work]
17396         * ContainerControl.cs: ProcessCmdKey.
17397         * ErrorProvider.cs: new constructor.
17398         * Form.cs: fix AutoValidateEvent compiler warning.
17399         * Label.cs: fix OnAutoSizeChanged compiler warning.
17400         * MenuStrip.cs: fix CanOverflow compiler warning.
17401         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
17402         * TextBox.cs: Dispose.
17403         * ToolStrip.cs: CanOverflow, re-enable double buffering.
17404         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
17405         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
17406         * ToolStripItem.cs: Overflow, RightToLeft properties.
17407
17408 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17409
17410         * Form.cs: Move the layout of the main form to MdiWindowManager.
17411         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
17412         do a layout of the main window to update MdiClient's client area to
17413         the right area. Fixes #80533. Remove the calculation of nc size, 
17414         it was just wrong and the correct one is the same as for 
17415         InternalWindowManager. 
17416
17417 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
17418
17419         * Control.cs: Setting Anchor or Dock needs to reset the other
17420         to its default.  [Fixes bug #80556]
17421
17422 2007-01-20  Chris Toshok  <toshok@ximian.com>
17423
17424         * CheckedListBox.cs: class status changes.
17425
17426         * ScrollableControl.cs: same.
17427
17428         * RichTextBox.cs: same.
17429
17430         * ContainerControl.cs: same.
17431
17432         * ListView.cs: same.
17433
17434         * NotifyIcon.cs: same.
17435
17436         * MenuStrip.cs: same.
17437
17438         * RadioButton.cs: same.
17439
17440         * CheckBox.cs: same.
17441
17442         * PrintPreviewDialog.cs: same.
17443
17444         * Form.cs: same.
17445
17446 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
17447
17448         * TreeNode.cs: Apply Alan's patch for Name property.
17449
17450 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17451         
17452         * Form.cs: Implemented SizeGripStyle.
17453         * SizeGrip.cs: Check for minimum and maximum size for the
17454         control being resized and only resize if size has actually
17455         changed.
17456
17457 2007-01-19  Chris Toshok  <toshok@ximian.com>
17458
17459         * DataGridColumnStyle.cs: stop setting _readonly in the
17460         PropertyDescriptor setter.  fixes a unit test failure.
17461
17462         also, rename ParentReadOnly to TableStyleReadOnly, and have it
17463         just consult our table style (if we have one).  We don't need to
17464         consult the datagrid readonly attribute because that's passed in
17465         as the _ro arg to Edit.  this simplifies things a little.
17466         
17467         * DataGrid.cs: use CurrentColumn instead of
17468         current_cell.ColumnNumber just to simplify some of the code.
17469
17470         switch the order of some things in the CurrentCell setter to keep
17471         the previous cell from getting a textbox again -
17472         EnsureCellVisibility causes scrolling to happen, which calls Edit.
17473         So we need to set the new cell before calling it.
17474         
17475         call Edit in OnEnter, as does Microsoft.
17476         
17477         also, make sure the current table style isn't the one we create
17478         initially when checking to see if it's different than the one
17479         we're setting it to in BindColumns (this fixes #80421).
17480
17481         * GridTableStylesCollection.cs: table styles can have "" for a
17482         mapping name.  part of the fix for #80421.
17483
17484         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
17485         Edit significantly.
17486
17487 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17488
17489         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
17490         and less GDI object leaky-er.
17491
17492 2007-01-18  Andreia Gaita  <avidigal@novell.com>
17493
17494         * LinkLabel.cs: Add opaque control style
17495
17496 2007-01-18  Jackson Harper  <jackson@ximian.com>
17497
17498         * TextControl.cs: Calculate width properly.
17499         - Don't store the tag's X offset, this can be figured out very
17500         easily.
17501         - When getting the caret tag make sure to get the last empty tag.
17502
17503 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17504
17505         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
17506         [Fixes bug #79959]
17507
17508         * Control.cs: Color.Empty shouldn't count for previous transparent
17509         redraw changes.
17510
17511 2007-01-18  Jackson Harper  <jackson@ximian.com>
17512
17513         * TextBox.cs:
17514         * RichTextBox.cs:
17515         * TextControl.cs: Starting to merge in some pieces of my older
17516         undo work.  Basically just some slight cleanup of the undo API.
17517
17518 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17519
17520         * TrackBar.cs: Fix signature of RightToLeftLayout.
17521         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
17522         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
17523         * Application.cs: Implemented UseWaitCursor.
17524
17525 2007-01-18  Jackson Harper  <jackson@ximian.com>
17526
17527         * TextControl.cs: We can't skip tags if any part of the tag is
17528         visible.
17529
17530 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17531
17532         * ContainerControl.cs: Override OnLayout.
17533
17534 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17535
17536         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
17537
17538         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
17539         everything else.
17540
17541 2007-01-18  Chris Toshok  <toshok@ximian.com>
17542
17543         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
17544         (leftover from the container_selected days, I'd wager).  fixes bug
17545         #80546.
17546
17547 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17548
17549         * Control.cs: Apply patch from George to fix the new testcase on
17550         bug #80451.  We can't just check for Color.Transparent, we need 
17551         to check if the back color's alpha channel is < 255.
17552
17553 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17554
17555         * Form.cs: Move setting show_icon = true to before the constructor
17556         so that the base constructor has that information when it calculates
17557         the form's size.  Was causing forms to be (6, 6) bigger than they
17558         were supposed to be.  Thanks for catching this Rolf!
17559
17560 2007-01-18  Jackson Harper  <jackson@ximian.com>
17561
17562         * TextControl.cs: When replacing a selection we need to invalidate
17563         from the initial selection start, because selection start is moved
17564         to the end of the replacement.
17565
17566 2007-01-18  Andreia Gaita  <avidigal@novell.com>
17567
17568         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
17569
17570 2007-01-18  Chris Toshok  <toshok@ximian.com>
17571
17572         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
17573         I just added.
17574
17575 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
17576
17577         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
17578         layout methods and properties from ToolBarButton must be available
17579         into ToolBarButtonInfo.
17580
17581 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17582
17583         * Control.cs: If the control has a transparent background, we
17584         need to refresh it when it moves and when it's parent's background
17585         image changes.  [Fixes bug #80451]
17586
17587 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17588
17589         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
17590
17591 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17592
17593         * XplatUIWin32.cs: Implement proper double buffering for Windows.
17594         [Fixes bug #80447, and probably speeds up things as well]
17595
17596 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17597
17598         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
17599         * XplatUIWin32.cs: We need to recalculate NC size after changing 
17600         window style to toolwindow (otherwise the client rectangle will be
17601         3 pixels to small for some reason).
17602         * MdiWindowManager.cs: Revert NC size calculations to match how
17603         they are calculated only based on window styles (to match
17604         Win32AdjustWindowRectEx, since otherwise when setting size or 
17605         location, Control will call Win32AdjustWindowRectEx to update client 
17606         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
17607         calculate a different value of client size causing another paint 
17608         (and flickering))
17609         * InternalWindowManager.cs: When moving or resizing a window only
17610         update size or location if they actually changed.
17611         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
17612         (seems to match Windows behaviour better). Cleaned up 
17613         ManagedWindowDecorations to draw what's needed and nothing else
17614         (was drawing borders and lines where they shouldn't be)
17615         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
17616         (style = 0xFFFF) and takes into account caption height when 
17617         calculating window rectangle.   
17618
17619 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
17620
17621         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
17622         can be added to toolbar multiple times, we need to maintain a list of 
17623         button information for each positions.
17624
17625 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
17626
17627         * ToolBar.cs: Some small stetic changes.
17628
17629 2007-01-16  Jackson Harper  <jackson@ximian.com>
17630
17631         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
17632         that allow us to have nested recalc = false blocks.
17633         - Add paste support for images in the RichTextBox
17634         * RichTextBox.cs: flush the text after the color is changed, so
17635         the change takes effect.
17636         - Use SuspendRecalc
17637         - Some extra debugging info
17638         * TextControl.cs: Tags no longer track their length, it is just
17639         computed from the next tags length, this makes things a little
17640         simpler and reduces places that we have to track length changes.
17641         - Refactored the linetag class a little so we could make it
17642         a base class for different kinds of tags
17643         - Created a image tag, a tag that can have a single image inserted
17644         into it
17645         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
17646         that we can call suspend multiple times.
17647         - Add some debugging methods
17648
17649 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17650
17651         * MdiClient.cs: Add ActivatePreviousChild for 
17652         mdi child window navigation.
17653         * Form.cs: Use MdiClient.ActivateNextChild/
17654         ActivatePreviousChild instead of Form.SelectNextControl
17655         to select the next/previous child since 
17656         SelectNextControl doesn't do it in the same order
17657         as mdi children should do it.
17658
17659 2007-01-16  Chris Toshok  <toshok@ximian.com>
17660
17661         * Control.cs: remove container_selected field.
17662
17663 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17664
17665         * MdiClient.cs: Update main form's ActiveChild when
17666         updating keyboard focus for the mdi child.
17667
17668 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
17669
17670         * Control.cs: PreferredSize fix.
17671
17672         * Form.cs: Add several 2.0 events, properties, and methods.
17673
17674 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
17675
17676         * Form.cs: Provide meaningful message when MdiParent is assigned a
17677         Form that is not an MdiContainer.
17678
17679 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17680
17681         * MdiClient.cs: Update main form's ActiveChild when
17682         activating a mdi child.
17683
17684 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17685
17686         * MdiWindowManager.cs: Fix NRE when merging menus and main form
17687         doesn't have a menu.
17688
17689         * Form.cs: Request NCRecalc after creating a mdi child window.
17690         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
17691         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
17692         
17693         * MdiClient.cs: Add new method SendFocusToActiveChild that either
17694         sends keyboard focus to the active child, or to the MdiClient
17695         if there are no child forms.
17696         
17697 2007-01-15  Chris Toshok  <toshok@ximian.com>
17698
17699         * ListView.cs: drop the *Internal overrides, just do our work in
17700         ItemControl's WndProc instead.
17701
17702         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
17703         of the various controls, and forward the events properly (in the
17704         same manner as MS) from the textbox to the UpDown.  Also the
17705         ActiveControl of the UpDownBase gets set properly now.  Finally,
17706         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
17707
17708         * NumericUpDown.cs: set Text in the ctor.
17709
17710         * DomainUpDown.cs: call UpdateEditText in the ctor.
17711         
17712         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
17713         so even a Selectable = false textbox can be focused if you click
17714         in it.  Go figure.
17715
17716         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
17717         just add their handling in their respective WndProc's.  Also add
17718         an explicit FocusInternal method that doesn't consult CanFocus
17719         before calling Select(this).
17720
17721         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
17722         do our work in WndProc instead.
17723
17724         * TabControl.cs: same.
17725
17726         * ComboBox.cs: same.
17727
17728 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17729
17730         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
17731         Fixes #80006.
17732
17733 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17734
17735         * ListViewItem.cs:
17736         * ThemeWin32Classic.cs: Don't draw the item text outside
17737         item bounds in Details view, as well as use trimming.
17738         Fixes bug #80376.
17739
17740 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17741
17742         * Form.cs: Implement Form.ShowIcon.
17743         
17744         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
17745         null, which when combined with the DlgModalFrame window style removes
17746         the icon from the title bar.
17747
17748 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17749
17750         * Control.cs: Call OnMouseClick after OnClick. (2.0)
17751
17752 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17753
17754         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
17755         menu when mdi child windows theres a menu, uses insert to get icon
17756         at first position. Partially fix #80006.
17757
17758 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17759
17760         * Clipboard.cs: Implement 2.0 methods.
17761
17762 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17763
17764         * Menu.cs: Implement Insert method of MenuItemCollection class
17765         to fix MenuMerge.
17766
17767 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17768
17769         * ListView.cs: Implement 2.0 FindItemWithText method.
17770
17771 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17772
17773         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
17774         to calculate menu bar size. Fixes #80290.
17775
17776 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17777
17778         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
17779
17780 2007-01-11  Chris Toshok  <toshok@ximian.com>
17781
17782         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
17783         initial form.
17784
17785 2007-01-11  Chris Toshok  <toshok@ximian.com>
17786
17787         * LinkLabel.cs: make sure to call base.Select in our Select method
17788         if it turns out we're going to be selected (i.e. if we have a link
17789         that is going to receive focus).  That way our container's
17790         ActiveControl is updated properly.
17791
17792 2007-01-11  Chris Toshok  <toshok@ximian.com>
17793
17794         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
17795         they have 1 or more links.  this fixes the crash gert reported.
17796
17797 2007-01-11  Andreia Gaita  <avidigal@novell.com>
17798
17799         * ContainerControl.cs: Remove ContainerSelected flag, not needed
17800         anymore.
17801
17802         * Control.cs (Controls.Add): Check if control to be added to the collection
17803         is a top level control, and throw an ArgumentException if it is.
17804         Remove ContainerSelectedFlag, not needed anymore.
17805
17806         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
17807         top most control doesn't activate the form. This fixes a problem in the
17808         MessageBox, where the default button wouldn't get focus because the form
17809         was activated before being Loaded - when the Owner is set, SetTopMost is
17810         called, and it would activate it.
17811
17812 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
17813
17814         * Button.cs: When clicked and setting the parent form's DialogResult,
17815         use FindForm instead of Parent, since parent could be a container
17816         control and not the Form.  Fixes bug #80495.
17817
17818 2007-01-10  Chris Toshok  <toshok@ximian.com>
17819
17820         * Form.cs: move the call to SendControlFocus into the same
17821         is_loaded check.
17822
17823 2007-01-10  Chris Toshok  <toshok@ximian.com>
17824
17825         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
17826         It breaks in the face of the new ActiveControl stuff, and should
17827         be unnecessary.
17828
17829         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
17830         activecontrol's focus if it's not already set, after we set
17831         ActiveControl, but before we call OnActivated.  Re-fixes #79667
17832         after the previous focus/active control fixes regressed it.
17833
17834         * Control.cs: reindent some code.
17835         
17836 2007-01-10  Chris Toshok  <toshok@ximian.com>
17837
17838         * Splitter.cs: clearing some outstanding changes from my tree.
17839         Replace all accesses (not writes) to the internal dock_style field
17840         with the Dock property.
17841
17842 2007-01-10  Chris Toshok  <toshok@ximian.com>
17843
17844         * Control.cs: make FireEnter, FireLeave, FireValidating, and
17845         FireValidated virtual.
17846
17847         * Form.cs: override and don't chain up calls to FireEnter and
17848         FireLeave.
17849
17850 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17851
17852         * ListView.cs: Add more text padding space when using
17853         auto resize for columns (the previous value didn't work fine).
17854
17855         * ThemeWin32Classic.cs: Update text position inside columns,
17856         to match the appeareance of .Net.
17857
17858         * ColumnHeader.cs: When using auto resize, only the Width should
17859         depend on the sub items, not the Height. Also, set width after
17860         auto resizing (the value of Width should never remain as -1 or -2).
17861
17862 2007-01-10  Chris Toshok  <toshok@ximian.com>
17863
17864         * Application.cs: fix compilation errors when debug is enabled.
17865
17866 2007-01-10  Chris Toshok  <toshok@ximian.com>
17867
17868         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
17869         add some nice ascii art pictures and explanation of the process).
17870         (GetMostDeeplyNestedActiveControl): new utility function we need
17871         because our ActiveControl can refer to a child container with its
17872         own ActiveControl.
17873
17874         * Form.cs (OnActivated): remove the call to SelectActiveControl
17875         from here, since you can override this method and not chain up,
17876         and winforms still sets the active control.
17877         (OnCreateControl): also remove the unnecessary SelectActiveControl
17878         call from here.
17879         (WndProc): it's actually called from the WM_ACTIVATE block, just
17880         before calling OnActivated.
17881
17882         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
17883         inside the else.  the ActiveControl setter will end up setting
17884         focus on @control.  This keeps us from setting it again (and
17885         generating an extra LostFocus/GotFocus pair).
17886         (Select (bool, bool)): reindent.
17887
17888 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
17889
17890         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
17891         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
17892         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
17893         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
17894         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
17895         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
17896         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
17897         ToolStripTextBox.cs: Another wave of corcompare work.
17898
17899 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17900
17901         * ColumnHeader.cs: Implement 2.0 AutoResize method using
17902         the Width property.
17903
17904         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
17905         methods by callling Column.AutoResize method on columns.
17906
17907 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
17908
17909         * Control.cs: Provide proper implementations of PreferredSize
17910         and GetPreferredSize (2.0).
17911
17912 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
17913
17914         * Form.cs: Remove one character (!) to make my previous OnClosing
17915         stuff work for modal windows like MessageBox.
17916
17917 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17918
17919         * ListView.cs:
17920         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
17921         ListView.Columns to get the last displayed column. Fixes #80452.
17922
17923 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
17924
17925         * Label.cs, LinkLabel.cs: Source code identation fixes.
17926
17927 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
17928
17929         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
17930         we dont need to invalidate only borders because when we invalidate four
17931         border lines the invalidate's generates a complete redraw of button, 
17932         because it now invalidate a complete rect some other redraws operations
17933         are fixed. Fixes #80196.
17934         
17935         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
17936         Remove ToolBarInvalidateEntireButton as it is not used.
17937
17938 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
17939         
17940         * Form.cs: Make sure that both OnClosing and OnFormClosing are
17941         called for 2.0 profile.
17942         * CloseReason.cs: Make class internal for 1.1.
17943
17944 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
17945
17946         * ToolStripManager.cs: Implement FindToolStrip functionality.
17947         * ToolStrip.cs: Register and unregister with ToolStripManager.
17948
17949 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
17950
17951         * Control.cs: This was messy.  2.0 moves much of ControlCollection
17952         to ArrangedElementCollection.  Implemented this with as few #if's as 
17953         possible (which is still too many).
17954
17955 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
17956
17957         * Control.cs: Implement SizeFromClientSize() [2.0].
17958
17959 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
17960
17961         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
17962         use Theme.BorderSize to calculate area instead of static value 1, 
17963         by the way use new BorderStaticSize instead     Border3DSize when 
17964         border_static is true. Fixes #79537.
17965         
17966         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
17967         
17968         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
17969         it is not needed.
17970
17971 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
17972
17973         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
17974
17975 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
17976
17977         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
17978         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
17979         
17980         * Hwnd.cs: 
17981         - border_static field added, it will used to define when a control 
17982         theres 3D border but it must be static (thin).
17983         - In GetWindowRectangle use Theme.BorderSize to calculate area 
17984         instead of static value 1, by the way use new BorderStaticSize instead
17985         Border3DSize when border_static is true.
17986
17987         * XplatUIX11.cs, XplatUIOSX.cs: 
17988         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
17989         
17990         * Theme.cs: BorderStaticSize field added.
17991
17992 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
17993
17994         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
17995
17996 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
17997
17998         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
17999         mimic same behavior than win32 that set border only in CreateParams,
18000         it fix problems under CreateParams overrides. Fix #79442 and partial
18001         fix #79537.
18002         
18003         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
18004         of thi control you must call recreate handle. 
18005         
18006         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
18007         need to do anything as RecreateHangle will take care about borders.
18008
18009 2007-01-05  Mike Kestner  <mkestner@novell.com>
18010
18011         * ListView.cs: hack to eliminate Lost/Got focus notifications on
18012         cycles between the ItemControl and parent.  Fixes #80388.
18013
18014 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
18015
18016         * Control.cs: Lazy init layout engine. Do not directly use 
18017         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
18018
18019 2007-01-05  Chris Toshok  <toshok@ximian.com>
18020
18021         * DataGrid.cs: don't forceably rebind columns in SetDataSource
18022         unless our list manager has changed (i.e. unless we have reason to
18023         believe our columns have changed).  Fixes #80422.
18024         
18025         also, disable the call do BindColumns in
18026         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
18027         1.1 the event isn't raised in response to a column addition on a
18028         table.)
18029
18030 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
18031
18032         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
18033         that inheritors can not call it if they choose.  Fixes bug #80456.
18034
18035 2007-01-05  Andreia Gaita  <avidigal@novell.com>
18036
18037         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
18038         doesn't blow up with a null exception on marshalling.
18039         
18040 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
18041
18042         * Control.cs: Implement several 2.0 protected properties and methods.
18043         Ensure that all necessary events are being called when properties
18044         are set.
18045
18046 2007-01-05  Mike Kestner  <mkestner@novell.com>
18047
18048         * ListView.cs: implement PgUp/PgDn for Details view.  Also
18049         fixes First/LastVisibleIndex to use the item_control.ClientRect 
18050         instead of the parent control.  Fixes #80378.
18051
18052 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
18053
18054         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
18055           determine whether to use yard-pound or not (bug #78399).
18056
18057 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
18058
18059         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
18060         problems. So it is time to bring back the old popupbutton colors.
18061
18062 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18063
18064         * ColumnHeader.cs:
18065         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
18066         property by using the internal information of the
18067         columns order in ListView.
18068
18069 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
18070
18071         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
18072         Add 2.0 Tag properties.
18073
18074         * LinkArea.cs: Add 2.0 ToString method.
18075
18076 2007-01-03  Chris Toshok  <toshok@ximian.com>
18077
18078         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
18079         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
18080         when we're editing, which fixes #80047.
18081
18082 2007-01-03  Chris Toshok  <toshok@ximian.com>
18083
18084         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
18085         #80404.
18086
18087 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
18088
18089         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
18090         property and implementation.
18091
18092         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
18093         for MdiWindowListItem property.
18094
18095         * ToolStripDropDown.cs: Don't consider hidden menu items while
18096         laying out the menu.
18097
18098 2007-01-03  Andreia Gaita  <avidigal@novell.com>
18099
18100         * SendKeys.cs: window handle is not needed in win32, so just
18101         get the active window for X after parsing keys and don't use
18102         it when building the message; it is passed by parameter to the 
18103         Xplat method and used there to build the message instead. Also,
18104         wait for events to be processed on SendWait, as opposed to Send,
18105         which doesn't wait :) Playing with threads and Send() completely 
18106         hangs on ms.net, only SendWait() works.
18107         
18108         XplatUIX11.cs
18109         X11Display.cs: Check for valid window handle.
18110
18111 2007-01-03  Jackson Harper  <jackson@ximian.com>
18112
18113         * TextControl.cs: Need to prevent wrap calculations when replacing
18114         text (this was there before i removed it accidently).
18115         - Don't update the cursor during the positioning, just set it to
18116         selection_start at the end of the operaion.
18117
18118 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18119
18120         * Control.cs:
18121         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
18122         
18123 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18124
18125         * MonthCalendar.cs: Added Click and DoubleClick events again,
18126         but this time they only hide Control's Click and DoubleClick.
18127         
18128 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
18129
18130         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
18131         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
18132
18133 2007-01-02  Jackson Harper  <jackson@ximian.com>
18134
18135         * TextBoxBase.cs: We move the caret with the split now, so we
18136         don't need to explicitly move the caret after splitting.  This
18137         fixes the caret bumping down an extra line on Enter.
18138
18139 2007-01-02  Miguel de Icaza  <miguel@novell.com>
18140
18141         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
18142         2.72). 
18143
18144         * ScrollableControl.cs: Add Scroll event.
18145
18146 2007-01-02  Mike Kestner  <mkestner@novell.com>
18147
18148         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
18149         to fix all hdr height padding codepaths.  Fixes #80207.
18150
18151 2007-01-02  Chris Toshok  <toshok@ximian.com>
18152
18153         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
18154         setting it to the Control defaults anyway, and it being after the
18155         Dock set was screwing up layout.
18156         (set_Dock): don't short circuit out of setting base.Dock.  Also,
18157         no need to call UpdateStatusBar here, as it'll be re-layed out if
18158         it needs to be.
18159
18160 2007-01-02  Mike Kestner  <mkestner@novell.com>
18161
18162         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
18163         to header height for width == -1. Fixes the rest of #80207.
18164
18165 2007-01-02  Mike Kestner  <mkestner@novell.com>
18166
18167         * ListView.cs: rework the mouse event forwarding everaldo added
18168         to translate the coordinates to the parent control not
18169         raise the parent events until after we've done our work. Hover
18170         needs more work, in the case where HoverSelection is on, because
18171         the item control receives more than one MouseHover per Enter
18172         event, so we need to ensure only the "first" hover gets forwarded.
18173         Opening a minor bug for that.
18174
18175 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
18176
18177         * CheckedListBox.cs: Fixed SelectionMode to match MS.
18178         * ListControl.cs: Implemented AllowSelection property. Removed extra
18179         tabs.
18180         * ListBox.cs: Implemented AllowSelection property.
18181
18182 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18183
18184         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
18185         SelectedItem, it prevent for errors when you must disable item
18186         before perform click. Fixes #80409.
18187
18188 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18189
18190         * MenuAPI.cs: Prevent second level and beyond submenus to close
18191         until first level when move out side of popup.
18192         
18193 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18194
18195         * MenuAPI.cs:
18196         - Down submenu positin in three pixels.
18197         - Closes sub menu when mouse leaves from menu. Fixes #80402.
18198
18199 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18200
18201         * ThemeWin32Classic.cs:
18202         - Fix popup menu size adding one pixel on the top.
18203         - Down menu item border from two to one to mimic Win32.
18204         - Some source identation fixes. 
18205
18206 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
18207
18208         * ThemeWin32Classic.cs: Use float numbers to calculate size and
18209         position of menu arrows, it fix wrong arrow size.
18210
18211 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
18212
18213         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
18214         instead of line, it simplify draw operation and fix it using 3D
18215         borders to mimic Win32.
18216
18217 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
18218
18219         * StatusStrip.cs: Add implementation of the sizing grip.
18220
18221         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
18222         StatusStrip rendering.
18223
18224 2006-12-31  Chris Toshok  <toshok@ximian.com>
18225
18226         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
18227         override the layout style (anchor/dock) of the control.  assign to
18228         Dock instead.  Fixes bug #80416.
18229
18230         * ToolStrip.cs: same.
18231
18232 2006-12-31  Andreia Gaita  <avidigal@novell.com>
18233
18234         * ContainerControl.cs: Use ContainerSelected flag to check if 
18235         a Container is directly selected, or if Select is called on a 
18236         non-container. If a container is directly selected, focus events 
18237         should not be raised.
18238         Apply #80411 patch to throw exception on set_ActiveControl if 
18239         control is the same as the current one.
18240         
18241         * Control.cs: Use ContainerSelected flag (see above).
18242         Add invalidation check to raise event but not invalidate if 
18243         dimensions are 0.       
18244         Apply #80411 patch.
18245         
18246
18247 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
18248
18249         * MenuAPI.cs: After click, dont close popup menu when menu is
18250         ContextMenu. Fixes #80399.
18251
18252 2006-12-30  Chris Toshok  <toshok@ximian.com>
18253
18254         * ContainerControl.cs: make sure we throw the exception if the
18255         container control doesn't contain the control we're setting
18256         ActiveControl to.
18257
18258 2006-12-30  Chris Toshok  <toshok@ximian.com>
18259
18260         * Control.cs (SetTopLevel): fix the exception raised by
18261         SetTopLevel for child controls.
18262         (set_Anchor): call UpdateDistances when setting the anchor type.
18263         This fixes bug #80336.
18264
18265 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18266
18267         * Theme.cs: For now, revert back to 8pt font.
18268
18269 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
18270
18271         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
18272         Fixes #80395.
18273
18274 2006-12-29  Chris Toshok  <toshok@ximian.com>
18275
18276         * Control.cs: reorder the code in OnResize to give the same event
18277         ordering as MS.
18278
18279 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18280
18281         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
18282         TileHorizontally and TileVertically.
18283         
18284 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
18285
18286         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
18287         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
18288         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
18289         Corrected copyright and email adress.
18290
18291 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18292
18293         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
18294         of Exception in FullPath property if no TreeView is associated with
18295         the TreeNode.
18296
18297 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18298
18299         * Theme.cs: Marked default_font as private, and initialize it in ctor
18300         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
18301         on 2.0 profile.
18302         * ThemeGtk.cs: Removed default_font intialization.
18303         * ThemeWin32Classic.cs: Removed default_font initialization.
18304
18305 2006-12-28  Chris Toshok  <toshok@ximian.com>
18306
18307         * Control.cs: fix a couple of place where we were creating handles
18308         more aggressively than we should be.  Fixes ControlRefresh unit
18309         tests.
18310
18311 2006-12-28  Chris Toshok  <toshok@ximian.com>
18312
18313         * Control.cs: contrary to what the comment said, Control.Dock does
18314         not supercede Control.Anchor - the last one you assign to decides
18315         the layout behavior.  so we need to keep track of which was the
18316         last set.  Also, fix some of the affected property arguments in
18317         PerformLayout calls, and remove an redundant parent.PerformLayout
18318         call in OnResized.
18319
18320         Add a VisibleInternal property, which returns is_visible.  We
18321         can/should get rid of all the usage of this field elsewhere.
18322
18323 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18324         
18325         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
18326         control style, not DoubleBuffer. Added UseDoubleBuffering property
18327         that indicates whether doublebuffering is enabled and supported.
18328         (comment from and code based on Gert Driesen's patch in #80324).
18329         Fixes #80324.
18330
18331 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18332         
18333         * Control.cs: Fixed a NRE.
18334
18335 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18336
18337         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
18338         for 2.0.
18339
18340 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18341
18342         * Control.cs: Rewrote double buffering, now a seperate
18343         class handles all the buffering, no Graphics is disposed of
18344         until the painting is finished (earlier implementation 
18345         would crash if the control was resized in the OnPaint, 
18346         since it would cause the double buffer to be recreated
18347         and the old one disposed), a separate Graphics is 
18348         created for every paint (MS behaviour and anyways the state
18349         of the Graphics would have to be saved and restored otherwise)
18350         
18351         * XplatUIDriver.cs: 
18352         * XplatUIX11.cs:
18353         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
18354         so that we can get the graphics for the back buffer without
18355         having to create a new one and remove the offscreen_dc parameter
18356         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
18357         
18358 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18359
18360         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
18361         Also make virtual all the key-related methods.
18362
18363         * ListViewItem.cs: Make virtual the key related methods for
18364         ListViewSubItemCollection.
18365
18366 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18367
18368         * ListView.cs:
18369         * ListViewItem.cs:
18370         * ThemeWin32Classic.cs:
18371         * Theme.cs: Initial support for Tile view in ListView,
18372         as well as the implementation of the required bits for it (Item
18373         and Subitem).
18374
18375 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18376
18377         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
18378         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
18379         Provide useful exception messages.
18380
18381 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18382
18383         * TrackBar.cs: Remove a warning.
18384         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
18385         when used by DateTimePicker, fixes #80287. This also requires that 
18386         MonthCalendar implements it's own drawing for the yearly updown control,
18387         otherwise the Capture tracking would be too complicated. Removed the Click 
18388         and DoubleClick events (according to comments they were hiding the base class
18389         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
18390         raise these events, not that they cannot be raised. It is possible to raise 
18391         them by calling OnClick and OnDoubleClick). Added two internal fields in 
18392         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
18393         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
18394         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
18395         event, no longer needed.
18396         
18397 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18398
18399         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
18400         true if new value differs from current value.
18401
18402 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18403
18404         * Control.cs: ControlCollection.Count must be public. Fixed build of
18405         unit tests.
18406
18407 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18408
18409         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
18410
18411 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18412
18413         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
18414
18415 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
18416
18417         * Control.cs: Invalidates control including when Width and Height is 
18418         equal zero or is not visible, only Paint event must be care about 
18419         this. Fixes #79913.
18420
18421 2006-12-26  Chris Toshok  <toshok@ximian.com>
18422
18423         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
18424         more corcompare work.
18425
18426         * DataGridView.cs: fix compiler warning.
18427
18428         * ColumnHeader.cs: some corcompare work, and also take the
18429         opportunity to make the internal fields private.
18430
18431         * ListView.cs: fix the fallout from the above field change.
18432
18433 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
18434
18435         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
18436         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
18437         ToolStripTextBox.cs: Fixes to events and corcompare.
18438
18439 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
18440
18441         * ListView.cs: Call owner.OnMousexx event to propagate events from
18442         item to ListView. Fixes #80367.
18443
18444 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18445
18446         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
18447         if value is less than one. ItemHeight should not be set to a value
18448         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
18449         Removed extra tabs.
18450
18451 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
18452
18453         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
18454         * ToolStripStatusLabel.cs: Add Spring for Moma.
18455
18456 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18457
18458         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
18459         Fixed code formatting. Removed debug code.
18460         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
18461
18462 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18463
18464         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
18465         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
18466         ArgumentOutOfRangeException if ColumnCount is negative. In 
18467         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
18468         less than 4 or higher than 32768.
18469         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
18470         Fixed FormatProvider to return CurrentCulture unless explicitly set.
18471         Fixed IsFormatProviderDefault to return true if FormatProvider has
18472         not been explicitly set.
18473
18474 2006-12-25  Chris Toshok  <toshok@ximian.com>
18475
18476         * Application.cs: add a couple of 2.0 events.
18477
18478 2006-12-25  Chris Toshok  <toshok@ximian.com>
18479
18480         * Control.cs: fix compiler warning.
18481
18482         * AxHost.cs: corcompare fixes.
18483
18484         * ApplicationContext.cs: corcompare fixes.
18485
18486 2006-12-25  Chris Toshok  <toshok@ximian.com>
18487
18488         * Control.cs: only update dist_right/dist_bottom if the
18489         width/height is > 0.  this fixes anchored controls being resized
18490         smaller until they disappear and then resized larger again.
18491
18492 2006-12-25  Chris Toshok  <toshok@ximian.com>
18493
18494         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
18495         since they're nothing more than X/Left and Y/Top, respectively.
18496
18497         Also, move back to a per-control Bitmap/Graphics for
18498         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
18499         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
18500         Height.
18501
18502 2006-12-25  Miguel de Icaza  <miguel@novell.com>
18503
18504         * MessageBox.cs: Implemented overload that takes a new "bool
18505         displayHelpButton" by adding a new internal field "show_help".
18506         When clicked this will raise the HelpRequested on the owner or the
18507         main form. 
18508
18509         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
18510         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
18511
18512         * ListView.cs: Add support ColumnWidthChanged and
18513         ColumnWidthChanging. 
18514
18515         Add support for ColumnReordered event.
18516         (ReorderColumn): Add NET_2_0 specific support for cancelling the
18517         reorder.
18518
18519         Very nice codebase!
18520
18521         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
18522
18523         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
18524
18525 2006-12-24  Chris Toshok  <toshok@ximian.com>
18526
18527         * GridTablesFactory.cs: 2.0 corcompare work.
18528
18529         * ToolStripContainer.cs: add "override" to
18530         ContextMenuStripChanged, and remove the local event object.
18531
18532         * ToolStripDropDown.cs: same with a couple properties.
18533
18534         * ToolStripPanel.cs: same with AutoSizeChanged event.
18535
18536         * TextBoxBase.cs: add "override" to AutoSizeChanged.
18537
18538         * Form.cs: add the remaining 2.0 events, and do some corcompare
18539         attribute work.
18540
18541         * DateTimePicker.cs: add "new" to padding.
18542
18543         * ButtonBase.cs: use Control's use_compatible_text_rendering.
18544
18545         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
18546
18547         * DataGridView.cs: PaddingChanged is overridden.
18548
18549 2006-12-24  Chris Toshok  <toshok@ximian.com>
18550
18551         * Control.cs: corecompare work here too.
18552
18553         * DataGridViewElement.cs, DataGridView.cs,
18554         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
18555         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
18556         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
18557         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
18558         work.
18559
18560 2006-12-24  Miguel de Icaza  <miguel@novell.com>
18561
18562         * Control.cs: Switched the error message on the console for a
18563         todo.  A review of the code will have to cope with this anyways
18564         (since its a large feature, it is in our radar) and it was
18565         producing too much output when running PDN.
18566
18567         * ToolStripComboBox.cs: Set the text when the SelectedIndex
18568         changes.  Applications depend on this (PDN 2.72)
18569
18570 2006-12-23  Chris Toshok  <toshok@ximian.com>
18571
18572         * TableLayoutSettings.cs: finish up the corcompare work for this
18573         class.
18574
18575 2006-12-23  Chris Toshok  <toshok@ximian.com>
18576
18577         * Control.cs: make SetImplicitBounds internal, do some futzing
18578         with LayoutEngine so that it's available in 1.1, and remove the
18579         entire duplicated code mess from PerformLayout.  Use
18580         System.Windows.Forms.Layout.DefaultLayout instead.
18581
18582         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
18583
18584 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
18585
18586         * Form.cs: Add MainMenuStrip property.
18587
18588 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
18589
18590         * Control.cs: Add ContextMenuStrip property and implementation.
18591         Fix ContextMenu implementation to show menu centered on control when
18592         activated using the keyboard instead of showing at screen (0,0).
18593
18594         * ToolStripDropDown.cs: Fix needed overload of Show ().
18595
18596 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18597
18598         * Menu.cs: Name property added for 2.0 profile.
18599         
18600 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18601
18602         * Menu.cs: Update information about FindMenuItem, method to be
18603         implemented soon.
18604
18605 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18606
18607         * MenuAPI.cs: When deselect items deselect also selected subitems.
18608         
18609 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18610
18611         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
18612         FindSubItemByCoord to found itens that is not active, also an
18613         cheking added to FindSubItemByCoord to search for items only 
18614         in visible popup windows. Fixes #80274.
18615
18616 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
18617
18618         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
18619         internal property, it be care about change ExStyle. 
18620
18621 2006-12-22  Andreia Gaita  <avidigal@novell.com>
18622
18623         * ContainerControl.cs: set activeControl for parent forms up the 
18624         tree when the new activecontrol is a container.
18625         When validating the active control, if it is a container, also
18626         raise up the validation for it's active control. Fixes #80280
18627         
18628         * Control.cs: Add internal property flag and check to prevent
18629         Focus events from getting raised when Select() is called for
18630         a ContainerControl. There are still too many focus events being
18631         raised at the moment though.
18632         Cleaned up the code a bit.
18633
18634 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18635
18636         * Control.cs: Added all missing 2.0 events.and
18637         fixed a couple of corcompare issues.
18638         * TrackBar.cs: Implemented missing 2.0 bits.
18639         * MonthCalendar.cs, 
18640         * DateTimePicker.cs, 
18641         * MdiClient.cs: Fixed some corcompare issues.
18642
18643 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18644
18645         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
18646         SplitterPanel.cs: corecompare work.
18647
18648 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18649
18650         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
18651         Clean up warnings for BackgroundImageChanged and PaddingChanged
18652         events now that they are implemented in Control.cs.
18653
18654 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18655
18656         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
18657         
18658         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
18659         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
18660         of TableLayoutPanel and supporting cast.
18661
18662 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18663
18664         * XplatUIWin32.cs: 
18665         - GrabWindow now confines the mouse pointer to the confine window.
18666         - Added Win32ClipCursor and Win32GetClipCursor.
18667
18668         * Control.cs: 
18669         - Added CaptureWithConfine to be able to capture and confine 
18670         mouse pointer.
18671         
18672         * InternalWindowManager.cs: 
18673         - Call CaptureWithConfine instead of Capture if we're an
18674         MdiChild (fixes #79982).
18675
18676 2006-12-21  Chris Toshok  <toshok@ximian.com>
18677
18678         * DataGrid.cs: guard against the initial state of selection, where
18679         selection_start == -1.  make sure we only select from index >= 0.
18680         Fixes bug #80291.
18681
18682 2006-12-21  Chris Toshok  <toshok@ximian.com>
18683
18684         * Control.cs: we don't need to be so draconian with
18685         UpdateDistances, and we thusly don't need to call it before
18686         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
18687
18688 2006-12-21  Daniel Nauck  <dna@mono-project.de>
18689
18690         * ComboBox.cs,
18691         TextBox.cs: Implemented AutoComplete properties.
18692
18693 2006-12-20  Chris Toshok  <toshok@ximian.com>
18694
18695         * DataGridView*.cs: some corecompare work.
18696
18697 2006-12-20  Jackson Harper  <jackson@ximian.com>
18698
18699         * XplatUIX11.cs: We need to hide the caret when deleting it,
18700         otherwise you get carets left lying around everywhere.
18701         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
18702         prevents getting some weird half drawn caret tracers when
18703         scrolling.
18704         * TextControl.cs: Attempt to reduce the number of times we need to
18705         recreate the caret.
18706
18707 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
18708
18709         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
18710
18711 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18712
18713         * DateTimePicker.cs:
18714         - Implemented missing 2.0 bits.
18715         - Changed some default values to match MS.
18716         
18717 2006-12-20  Jackson Harper  <jackson@ximian.com>
18718
18719         * TextBoxBase.cs: When changing the font across the document we
18720         can't recalculate after changing each line, since that will cahnge
18721         the line count.
18722         - PreferredHeight is a little different than i thought.
18723         - When backspacing, move the caret before we do the actual char
18724         delete, because when that delete crosses a wrap boundary the
18725         positional information will change.
18726
18727 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18728
18729         * Control.cs: Added some missing 2.0 bits: 
18730         BackgroundImageLayout, BackgroundImageLayoutChanged, 
18731         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
18732         add IBindableComponent and IDropTarget implementation.
18733         
18734         * MonthCalendar.cs: 
18735         - Added all missing 2.0 features:
18736         BackgroundImageLayout, RightToLeftLayout, 
18737         OnHandleDestroyed, RightToLeftLayoutChanged, 
18738         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
18739         PaddingChanged.
18740         - Rewrote all the BoldDate code, it was completely broken.
18741         - Fixed all the tests (the tests can now be re-enabled, the
18742         problems were not with the tests, but with the control, it was
18743         mostly broken).
18744         
18745         * DateTimePicker.cs: Changed the location where the 
18746         MonthCalendar is shown.
18747         
18748 2006-12-19  Chris Toshok  <toshok@ximian.com>
18749
18750         * DataGridView.cs: add IDropTarget implementation.
18751
18752         * ToolStripPanel.cs: add IDropTarget implementation.
18753
18754 2006-12-19  Jackson Harper  <jackson@ximian.com>
18755
18756         * TextControl.cs: soft now means something different than what it
18757         used to mean, we want to move the caret regardless of whether or
18758         not this break was soft (would we really have wanted the caret
18759         to not move with the break in the old context?)
18760         * TreeView.cs: Make sure we factor in the vert scrollbar when
18761         calculating the horizontal scrollbar's maximum.
18762
18763 2006-12-19  Andreia Gaita  <avidigal@novell.org>
18764
18765         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
18766         check for keywords in alternate casing, close bug #80049.
18767
18768 2006-12-19  Chris Toshok  <toshok@ximian.com>
18769
18770         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
18771         methods (which all do nothing).
18772
18773         * IDropTarget.cs: add the 4 missing methods.
18774
18775 2006-12-19  Chris Toshok  <toshok@ximian.com>
18776
18777         * TableLayoutRowStyleCollection.cs: corcompare work.
18778         
18779         * TableLayoutSettings.cs: same.
18780
18781         * TableLayoutStyle.cs: same.
18782
18783         * TableLayoutColumnStyleCollection.cs: same.
18784
18785 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
18786
18787         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
18788         TableLayoutPanel I've had in my local tree for way too long.
18789
18790 2006-12-19  Miguel de Icaza  <miguel@novell.com>
18791
18792         * TableLayoutSettings.cs: Finish the public API (still needs all
18793         the logic to update on changes). 
18794
18795         * TableLayoutPanelCellPosition.cs: new file.
18796         
18797         * TableLayoutRowStyleCollection.cs,
18798         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
18799         TableLayoutSettings.cs: Track the final 2.0 table api.
18800
18801 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18802
18803         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
18804         and Image List 2.0 members for ColummnHeader.
18805         * ListView.cs: Add key-related 2.0 methods for
18806         ColumnHeaderCollection.
18807
18808 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
18809
18810         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
18811         ArgumentNullException if items argument is null. Ignore null item in
18812         arrays. Removed extra tabs.
18813
18814 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
18815
18816         * MonthCalendar.cs: Fixed InvalidCastException.
18817
18818 2006-12-19  Jackson Harper  <jackson@ximian.com>
18819
18820         * TextControl.cs: Don't increment the position here.
18821         - When calculating char positions only add in the line break size
18822         for hard line breaks.
18823
18824 2006-12-19  Andreia Gaita  <avidigal@novell.org>
18825
18826         * SendKeys.cs: Changed some things to match ms.net behaviour
18827         when parsing shifted capital letters.
18828         
18829         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
18830         Add window handle as parameter to SendInput. X11 needs the 
18831         window handle, and the handle being passed      to it in the keys 
18832         queue is the active control handle (which windows needs), not 
18833         the window handle.
18834         
18835         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
18836         to support SendKeys on X.       
18837         
18838         * X11Keyboard: Implement helper method to lookup a linux keycode
18839         given the virtual keycode. Added table of keycode-2-virtualkey
18840         values to support this.
18841
18842 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18843
18844         * ListView.cs: Add support for SelectedIndexCollection
18845         and SelectedItemCollection 2.0 methods. Implement support
18846         for ImageKey too.
18847         * ListViewItem.cs: Add support for ListViewSubItemCollection
18848         2.0 methods. Also, fix an incorrect behavior of AddRange method
18849         (it shouldn't call Clear).
18850         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
18851
18852 2006-12-19  Jackson Harper  <jackson@ximian.com>
18853
18854         * RichTextBox.cs: 
18855         * TextBoxBase.cs: New args for FormatText
18856         * TextControl.cs: Rewrote the main drawing method, this version
18857         feels a little easier to understand and debug to me.  Hopefully it
18858         does to others also
18859         - Fix FormatText to OR in the new formating values.  Added
18860         FormatSpecified param, basically this works in the same way as
18861         BoundsSpecified in Control.
18862         - Set the caret properties when the caret is positioned.
18863         - When wrapping text make sure that we calculate the width of the
18864         last character
18865         - when calculating alignments we might have wrapped down to the
18866         next line, so don't search for an individual tag, search for the
18867         end of the line
18868         - We need to invalidate the selection area when we replace the
18869         selection.
18870         
18871 2006-12-19  Daniel Nauck  <dna@mono-project.de>
18872
18873         * Application.cs: add Restart () 2.0 support
18874
18875 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18876
18877         * MenuItem.cs: Invalidate menu item rectangle after change Enable
18878         property. Fixes #80268.
18879         
18880 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18881
18882         * MenuAPI.cs: Dont trigger select event when closes top menu
18883         item. Fixes #80270.
18884
18885 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18886
18887         * MenuAPI.cs: When you click on menuitem only trigger onselect
18888         event for top menu itens. Fixes #80271.
18889         
18890 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18891
18892         * MdiWindowManager.cs: Make IconicBounds depend on
18893         the bottom of MdiClient, not the top (fixes #80267)
18894         
18895 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18896
18897         * MdiClient.cs: Added missing 2.0 attribute
18898
18899 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18900
18901         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
18902         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
18903
18904 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18905
18906         * MenuAPI.cs: Fix click when menuitem is not popup,
18907         this regression was caused by last commit (#80272).
18908
18909 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
18910
18911         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
18912         fire click event or close menu. Fixes #80272.
18913
18914 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18915
18916         * ListViewHitTestInfo.cs: add
18917
18918 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18919
18920         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
18921         * FlatButtonAppearance.cs: add
18922         * DockingAttribute.cs: add
18923
18924 2006-12-17  Chris Toshok  <toshok@ximian.com>
18925
18926         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
18927         and rebind our columns when it does - this way, if you make
18928         changes to the DataTable (or set the Table attribute on a DataView
18929         after setting it as the DataGrid's DataSource, the changes are
18930         made visible.)  Fixes bug #80107.
18931
18932 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18933
18934         * ListViewGroup.cs: add internal Location property for layouting.
18935         * Theme.cs: add abstract ListViewGroupHeight function.
18936         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
18937
18938 2006-12-16  Andreia Gaita  <avidigal@novell.com>
18939
18940         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
18941         Added reset of selected index to 0 when adding first tab page.
18942         Fixes #80264
18943         
18944         * NumericUpDown.cs: Fix NET_2_0 check
18945
18946 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18947
18948         * ListViewGroup.cs: fixed DefaultValueAttribute value
18949
18950 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18951
18952         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
18953
18954 2006-12-15  Miguel de Icaza  <miguel@novell.com>
18955
18956         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
18957         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
18958         ScrollableControl.cs: Add a handful of methods that are
18959         overwritten in 2.0 
18960
18961 2006-12-15  Chris Toshok  <toshok@ximian.com>
18962
18963         * XplatUIWin32.cs: initial implementation of the Reversible
18964         drawing functions.  there are some problems.  DrawReversibleFrame
18965         doesn't seem to work at all for Dashed FrameStyle, and in the
18966         Thick case there are drawing errors at the corners (we probably
18967         need to bind Rectangle instead of doing moveto/lineto's.)
18968
18969 2006-12-16  Andreia Gaita  <avidigal@novell.com>
18970         
18971         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
18972         to send blocks of key messages. Send accumulates keys to send with Flush, 
18973         while SendWait sends all keys immediately.
18974                 
18975         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
18976         XplatUIX11.cs,  XplatUIX11-new.cs:
18977         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
18978         to Win32 SendInput.
18979         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
18980         
18981         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
18982         testing for ms.net on this class is very tricky, as the tests run too fast 
18983         to allow the hook to release, essentially freezing the keyboard and the 
18984         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
18985         category :p
18986
18987 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18988
18989         * Padding.cs: fixed serialization compability to MS ("_var" field names),
18990                         added missing attributes.
18991  
18992 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18993
18994         * ListViewGroup.cs: Added missing attributes.
18995         * ListViewGroupCollection.cs: Added missing attributes.
18996
18997 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18998
18999         * ListViewItem.cs: fixed ListViewSubItem text property.
19000
19001 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19002         
19003         * Control.cs: Added missing 2.0 attributes
19004         
19005 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19006         
19007         * MdiClient.cs: Added missing 2.0 attribute.
19008         * MonthCalendar.cs: Added some missing 2.0 attributes 
19009         and properties.
19010         
19011 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19012
19013         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
19014
19015 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
19016
19017         * MainMenu.cs: Add the new 2.0 constructor to help out people
19018         using the MainMenu in VS2005.
19019
19020 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19021         
19022         * MdiChildContext.cs: Removed it, no longer used.
19023         * MdiClient.cs: Added missing 2.0 attributes.
19024         
19025 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19026         
19027         * InternalWindowManager.cs: Fix a NullRef with previous 
19028         changes for toolwindows.
19029         
19030 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19031
19032         * Control.cs: 
19033         - Added AfterTopMostControl to allow for certain controls 
19034         to always stay on top when normal controls are brought to 
19035         front.
19036         
19037         * XplatUIWin32.cs: 
19038         - (DrawInversibleRectangle): Get window rectangle from Win32 
19039         in stead of from control, since Win32 doesn't calculate
19040         screen coords correctly from control's Location if it 
19041         have docked siblings.
19042         
19043         * MdiWindowManager.cs:
19044         - Correct the control menu popup location when clicked on
19045         the maximized form icon. (fixes #80223.1)
19046         - Don't show moving rectangle if mouse hasn't moved from
19047         the original clicked point.
19048         - Removed FormGotFocus handler (not used).
19049         - Calculate the control buttons location from the main
19050         window's size and not client size (fixes #79770).
19051         - Form is now closed when the form icon is double-clicked
19052         (fixes #79775). 
19053         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
19054         
19055         * InternalWindowManager.cs:
19056         - Moved some MDI-only methods to MdiWindowManager.
19057         - Removed unused properties and methods.
19058         - Unified method naming for methods handling wm messages.
19059         - Moved all message handling to seperate methods for
19060         each message.
19061         
19062         * ThemeWin32Classic.cs:
19063         - DrawManagedWindowDecorations now draws the title bar 
19064         with a gradient brush.
19065         - Add a CPDrawButtonInternal that allows us to specify
19066         light, normal and dark colors for the buttons (control 
19067         buttons for MDI children were drawn with the same light
19068         color as the background, therefore loosing the 3D effect).
19069         
19070         * SizeGrip.cs:
19071         - Add a CapturedControl property that is used to 
19072         determine the control to resize (defaults to parent). 
19073         Needed for MdiClient, since its SizeGrip's parent is
19074         MdiClient, but the control to resize is the main form.
19075         
19076         * MdiClient.cs:
19077         - Set SizeGrip's CapturedControl to the main form in order
19078         to resize the main form and not the MdiClient.
19079         - Override AfterTopMostControl to leave the scrollbars 
19080         always on top.
19081
19082 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19083
19084         * ListView.cs: fixed ListViewItemCollection AddRange and
19085                         implemented ListViewItemCollection AddRange 2.0 support.
19086
19087 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19088
19089         * ListViewGroup.cs: Add.
19090         * ListViewGroupCollection.cs: Add
19091         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
19092         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
19093                                 stub for ImageKey 2.0 support.
19094
19095 2006-12-14  Mike Kestner  <mkestner@novell.com>
19096
19097         * ListView.cs: add text padding to the autocalculation for columns
19098         of width -2.  Fixes #80207.
19099  
19100 2006-12-14  Mike Kestner  <mkestner@novell.com>
19101
19102         * ListView.cs: add some index guarding for partial row navigation 
19103         logic.  Fixes #80250.
19104
19105 2006-12-14  Mike Kestner  <mkestner@novell.com>
19106
19107         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
19108         are added or inserted to the collection.  Fixes #81099.
19109
19110 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
19111
19112         * MenuAPI.cs: Closes menu when right click out side of popup
19113         it fix problem in ContextMenu and MainMenu. Fixes #80252.
19114
19115 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19116
19117         * ListViewItem.cs: Fix dumb error.
19118
19119         * ListView.cs: Add Find and ContainsKey methods in 
19120         ListViewItemCollection, and also return true for IsReadOnly
19121         and IsFixedSize (changes for 2.0). 
19122
19123 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
19124
19125         * Control.cs: Allow Region to be set to null.
19126
19127 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19128
19129         * MdiWindowManager.cs: Remove unused (commented out) code.
19130         * Form.cs: When the MdiChild is maximized, the form needs 
19131         WM_NCMOUSELEAVE, so request it.
19132         * InternalWindowManager.cs: 
19133         - Added tooltips to control buttons.
19134         - Removed duplicated control button handling code.
19135         - Removed unused (commented out) code.
19136         
19137 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
19138
19139         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
19140         was used because we must set cursor without trigger ChangeCursor event
19141         and without change Cursor control property. Fixes #79963.
19142
19143 2006-12-12  Andreia Gaita  <avidigal@novell.com>
19144         
19145         * Control.cs: Check if Region setter value is null, and ignore
19146
19147 2006-12-12  Jackson Harper  <jackson@ximian.com>
19148
19149         * TextControl.cs: We were almost always drawing one more line then
19150         needed, since the GetLineByPixel will return the last line found
19151         at that pixel. In most cases though, we were invalidating up to
19152         the junction between two lines.
19153         - Improve debug code.
19154
19155 2006-12-12  Chris Toshok  <toshok@ximian.com>
19156
19157         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
19158         and FillReversibleRectangle.
19159
19160         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
19161         and FillReversibleRectangle.
19162
19163         * XplatUIWin32.cs: add stubs which do nothing for
19164         DrawReversibleFrame, DrawReversibleLine, and
19165         FillReversibleRectangle.
19166
19167         * XplatUIOSX.cs: add stubs which raise NIE for
19168         DrawReversibleFrame, DrawReversibleLine, and
19169         FillReversibleRectangle.
19170
19171         * XplatUIX11.cs: add working implementation for
19172         DrawReversibleFrame, DrawReversibleLine, and
19173         FillReversibleRectangle.
19174         
19175         * ControlPaint.cs: implement DrawReversibleFrame,
19176         DrawReversibleLine, and FillReversibleRectangle, by calling into
19177         the appropriate XplatUI method.
19178
19179 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19180
19181         * Form.cs: Make MdiClient have the focus even if it's
19182         not selectable, since it should receive WM_KEY* and WM_MOUSE 
19183         messages. Fixes #79907.
19184         
19185 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19186
19187         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
19188         queried after the window is created.
19189         
19190         * XplatUIX11.cs: Added SendParentNotify to implement 
19191         WM_PARENTNOTIFY logic. Fixes #79965.
19192         
19193         * Control.cs: Added MakeParam.
19194         
19195 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19196
19197         * MdiClient.cs: Resume Layout before setting window
19198         states (fixes #80201).
19199
19200 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19201
19202         * MenuAPI.cs: Deselect a menu item after performing
19203         the click (fixes #80197).
19204
19205 2006-12-11  Jackson Harper  <jackson@ximian.com>
19206
19207         * TextBoxBase.cs: We need to cap this value, since Maximum -
19208         ViewPortHeight can be less than zero.
19209         - Only do selection with the left mouse button.
19210         * TextBox.cs: Don't tell the world that we have a context menu.
19211         * Control.cs: New method so that we can control whether or not the
19212         context menu is visible outside MWF.
19213
19214 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
19215
19216         * ToolBarButton.cs: Fix text positon. 
19217
19218 2006-12-11  Miguel de Icaza  <miguel@novell.com>
19219
19220         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
19221
19222         * Control.cs (DoubleBuffered): Add implementation.
19223
19224         * Application.cs (OpenForms): Add.
19225
19226 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
19227
19228         * Form.cs: Use opacity instead of Opactiy to determine if we need
19229         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
19230
19231 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
19232
19233         * Control.cs: Fix NRE if Control.Site was set to null.
19234
19235 2006-12-11  Chris Toshok  <toshok@ximian.com>
19236
19237         * Control.cs: ControlCollection.Remove should return if the arg is
19238         null, and ControlCollection.SetChildIndex should raise a ANE.
19239
19240 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
19241
19242         * Control.cs: Verify value set for Dock property. Code formatting
19243         updates.
19244
19245 2006-12-11  Jackson Harper  <jackson@ximian.com>
19246
19247         * TextControl.cs: Draw the caret and the selection when a flag is
19248         set on the owner.
19249         * TextBoxBase.cs: We want to draw the caret and the selection for
19250         TextBox but not for TextBoxBase.
19251         - If the window is resized and scrolling is no longer needed (the
19252         whole doc is visible) set the scroll position to zero.
19253         - The default SelectWord (the one TextBox uses) should move the
19254         caret to the end of the word.
19255         - SelectAll moves the caret to the end of the selection.
19256         * TextBox.cs: We don't selectall on focus, we just do it when the
19257         control is created.
19258         
19259 2006-12-11  Mike Kestner  <mkestner@novell.com>
19260
19261         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
19262
19263 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19264
19265         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
19266         2.0 support.
19267         * ListViewItem.cs: Add Name 2.0 property.
19268
19269 2006-12-11  Andreia Gaita  <avidigal@novell.com>
19270
19271         * TabControl.cs: Set visibility on selected or default tab 
19272         when tabcontrol handle is created, so that it's contents
19273         actually show up (duh). Fixes #80193
19274         Don't redraw the control if there is no handle created, as
19275         the selected index might be completely invalid. Added some tests
19276         to check for this.
19277
19278 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
19279
19280         * ToolBar.cs: Uses maximun width and height of all buttons as 
19281         button rectangle when ButtonSize specified, it looks strange but
19282         is what happens in Win32. Fixes #80189.
19283
19284 2006-12-11  Jackson Harper  <jackson@ximian.com>
19285
19286         * TextControl.cs: Need to track undo levels ourself, since
19287         compound actions will mess them up.
19288
19289 2006-12-10  Andreia Gaita  <avidigal@novell.com>
19290
19291         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
19292         SelectedIndex value is changed (even if it's not valid).
19293         Reset SelectedIndex to 0 when the handle is created and if
19294         the current index is invalid.
19295         Fixes SelectdeIndex unit tests and #80128
19296
19297 2006-12-08  Chris Toshok  <toshok@ximian.com>
19298
19299         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
19300         calls EndEdit, it needs to be called before we set current_cell to
19301         its new value.  Otherwise, we end up committing the value in the
19302         textbox to the new cell as well.  Fixes bug #80160.
19303
19304 2006-12-08  Chris Toshok  <toshok@ximian.com>
19305
19306         * Form.cs (set_CancelButton): if the button's DialogResult is
19307         None, set it to Cancel.  Fixes bug 80180.
19308
19309 2006-12-08  Jackson Harper  <jackson@ximian.com>
19310
19311         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
19312         to watch ourselves when setting the canvas size and setting the
19313         scrollbar values.
19314
19315 2006-12-08  Chris Toshok  <toshok@ximian.com>
19316
19317         * DataGrid.cs: comment out the two MakeTransparent calls for the
19318         time being so people using trunk (and not 1.2.2) on windows can
19319         actually use the datagrid.  This deals with bug #80151.
19320
19321 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
19322
19323         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
19324         Graphics.DrawImage (image, int, int, int, int) overload instead
19325         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
19326         the dpi difference and was blurring images it drew.
19327         [Fixes bug #79960]
19328
19329 2006-12-08  Chris Toshok  <toshok@ximian.com>
19330
19331         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
19332         rowcnt is 0 (such as with an empty datasource), and make sure we
19333         initialize not_usedarea.Y to cells.Y, so we don't draw over the
19334         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
19335
19336 2006-12-08  Chris Toshok  <toshok@ximian.com>
19337
19338         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
19339         grid.
19340
19341 2006-12-08  Chris Toshok  <toshok@ximian.com>
19342
19343         [ Fixes bug #80167 ]
19344         
19345         * ThemeWin32Classic.cs: don't draw the image if the button's flat
19346         style is FlatStyle.System.
19347
19348         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
19349         ButtonBase.flat_style private, and switch uses of it to the public
19350         property.
19351         
19352 2006-12-08  Chris Toshok  <toshok@ximian.com>
19353
19354         [ Fixes bug #80121 ]
19355         
19356         * ThemeWin32Classic.cs: center the caption text in the datagrid
19357         when we draw it.
19358
19359         * DataGrid.cs: lessen the amount we add to the caption height from
19360         6 to 2.  6 was making it huge.
19361
19362 2006-12-08  Andreia Gaita  <avidigal@novell.com>
19363
19364         * UpDownBase: Handle MouseWheel call directly instead of capturing
19365         the inner textbox's OnMouseWheel. Fixes #80166
19366
19367 2006-12-08  Jackson Harper  <jackson@ximian.com>
19368
19369         * TextControl.cs: We need to invalidate the textbox when we empty
19370         it (how had this not been discovered before?)
19371
19372 2006-12-08  Jackson Harper  <jackson@ximian.com>
19373
19374         * TextBoxBase.cs: Reworked the mouse down code so I could get it
19375         to behave like MS, we now ignore the eventargs.Click and just
19376         track state ourself, which we were already doing anyways.
19377         - Constrain the double click handler to the double click size.
19378         
19379 2006-12-08  Chris Toshok  <toshok@ximian.com>
19380
19381         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
19382         direction if that scrollbar isn't shown.  fixes bug #80158.
19383
19384 2006-12-08  Andreia Gaita  <avidigal@novell.com>
19385
19386         * NumericUpDown.cs: Update value on getter. Fixes #79950
19387
19388 2006-12-08  Chris Toshok  <toshok@ximian.com>
19389
19390         * MenuItem.cs: add back in the event cloning code.  I didn't know
19391         how to do it in the face of the EventHandlerList work i'd done
19392         last week.  Fixes bug #80183.
19393
19394 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
19395
19396         * Control.cs: Add an invalidate to the BackgroundImage setter.
19397         [Fixes 80184]
19398
19399 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
19400
19401         * ToolStrip*: Add some small properties reported by MoMA, fix event
19402         firing and default properties based off of unit tests, and add some
19403         attributes based off of the class status page.
19404
19405 2006-12-07  Jackson Harper  <jackson@ximian.com>
19406
19407         * TextBoxBase.cs: Take HideSelection into account when determining
19408         whether or not to show the selection.
19409         * RichTextBox.cs: After inserting the RTF into the document move
19410         the cursor to the beginning of the document.
19411
19412 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
19413
19414         * Control.cs: Remove static ArrayList "controls" which maintained
19415         a reference to every control created.
19416         * Application.cs: Create a static FormCollection to maintain a reference
19417         to every form created.  Use it in places that formerly enumerated through
19418         the controls one looking for forms.
19419         * Form.cs: Add and remove self from above FormCollection.
19420
19421 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
19422
19423         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
19424           not libgdk (though it makes me wonder why I didn't have any
19425           problems)
19426
19427 2006-12-07  Chris Toshok  <toshok@ximian.com>
19428
19429         [ you had to know this was coming after that last commit...]
19430         
19431         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
19432         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
19433         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
19434         XCopyArea).
19435
19436 2006-12-07  Chris Toshok  <toshok@ximian.com>
19437
19438         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
19439         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
19440         all the behavior we need for double buffering.
19441
19442         * XplatUIDriver.cs: implement the 3 double buffer methods using a
19443         client side Bitmap, just like the old Control-based double buffer
19444         code did.  The methods are virtual, so each XplatUI driver
19445         subclass can replace the implementation to use a faster, platform
19446         specific approach.
19447
19448         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
19449         double buffer code, and clean things up a bit in the process.
19450
19451 2006-12-06  Chris Toshok  <toshok@ximian.com>
19452
19453         * Control.cs: reindent WndProc.
19454
19455 2006-12-06  Chris Toshok  <toshok@ximian.com>
19456
19457         [ I wanna be like BenM when I grow up ]
19458         
19459         * Hwnd.cs: create a single static Graphics object on the static
19460         Bitmap we create.  use this for our text measurements.
19461
19462         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
19463         This was causing us to allocate a backbuffer for every control,
19464         even when it wasn't flagged as double buffered.  Instead use the
19465         single graphics instance.  This might have implications for
19466         multithreaded applications.  If we run into problems we can switch
19467         to creating 1 Graphics per control, on the static Hwnd bitmap.
19468
19469         this change nets us a 7M savings in private dirty mappings when
19470         running FormsTest.exe.
19471
19472 2006-12-06  Chris Toshok  <toshok@ximian.com>
19473
19474         * ListView.cs: the BackgroundImage override is just to set
19475         attributes.  chain up to base.BackgroundImage.
19476
19477         * RichTextBox.cs: same.
19478
19479         * ToolBar.cs: same, but we need to also redraw the toolbar when it
19480         changes, so instead a handler for BackgroundImageChanged.
19481         
19482         * Control.cs: make background_image private.
19483
19484 2006-12-06  Chris Toshok  <toshok@ximian.com>
19485
19486         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
19487         sure we even need this assignment, but roll with it for now.
19488
19489         * Control.cs: make the cursor field private.
19490
19491 2006-12-06  Chris Toshok  <toshok@ximian.com>
19492
19493         * Form.cs: we don't need to explicitly set ImeMode to
19494         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
19495         behavior in the face of ImeMode.Inherit.
19496
19497         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
19498         change the ctor's assignment to use ImeMode instead of ime_mode.
19499
19500         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
19501         ImeModeInherit.  Only check for the parent's imemode (and return
19502         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
19503         This fixes the button unit test, which sets both ImeMode and
19504         DefaultImeMode to ImeMode.Disable.
19505
19506         also make the ime_mode field private.
19507
19508 2006-12-06  Chris Toshok  <toshok@ximian.com>
19509
19510         * Control.cs: make control_style private.
19511
19512         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
19513         setting the styles to true, then setting them to false instead of
19514         reverting to their previous values.
19515
19516         also, call SetStyle on the scrollbars instead of using
19517         control_style directly.
19518
19519 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
19520
19521         * FormCollection.cs: Implement. [2.0]
19522
19523 2006-12-06  Chris Toshok  <toshok@ximian.com>
19524
19525         * Control.cs: make tab_stop private.
19526
19527         * Label.cs: set TabStop, not tab_stop.  reformat some event
19528         add/remove methods to make them more compact.
19529
19530 2006-12-06  Chris Toshok  <toshok@ximian.com>
19531
19532         * RadioButton.cs: fix TabStop handling.
19533
19534 2006-12-06  Chris Toshok  <toshok@ximian.com>
19535
19536         * TextBox.cs: remove the explicit assignments to has_focus.
19537         Control does that.
19538
19539         * ButtonBase.cs: remove the assignment to has_focus.  Control will
19540         manage that.
19541         
19542 2006-12-06  Chris Toshok  <toshok@ximian.com>
19543
19544         * ButtonBase.cs: remove all uses of is_enabled from this code.
19545         it's always true when any of the code containing the checks is
19546         executed.
19547
19548 2006-12-06  Chris Toshok  <toshok@ximian.com>
19549
19550         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
19551         with different semantics (some are present in both 1.1 and 2.0
19552         profiles) so that we match MS's behavior in our unit tests.
19553
19554 2006-12-06  Jackson Harper  <jackson@ximian.com>
19555
19556         * TextControl.cs: Make this operation undoable.
19557         * TextBoxBase.cs: Factor the border width into the preferred
19558         height.
19559         - implement Modified as per the spec.
19560
19561 2006-12-06  Chris Toshok  <toshok@ximian.com>
19562
19563         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
19564
19565 2006-12-06  Chris Toshok  <toshok@ximian.com>
19566
19567         * Control.cs: make right_to_left and context_menu fields private.
19568
19569 2006-12-06  Chris Toshok  <toshok@ximian.com>
19570
19571         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
19572         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
19573         Control.child_controls private.  switch all uses over to
19574         Control.Controls.
19575
19576 2006-12-06  Chris Toshok  <toshok@ximian.com>
19577
19578         * System.Windows.Forms/GroupBox.cs,
19579         System.Windows.Forms/AccessibleObject.cs,
19580         System.Windows.Forms/ErrorProvider.cs,
19581         System.Windows.Forms/Control.cs,
19582         System.Windows.Forms/UpDownBase.cs,
19583         System.Windows.Forms/ScrollBar.cs,
19584         System.Windows.Forms/DateTimePicker.cs,
19585         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
19586         System.Windows.Forms/ToolTip.cs,
19587         System.Windows.Forms/RadioButton.cs,
19588         System.Windows.Forms/LinkLabel.cs,
19589         System.Windows.Forms/Splitter.cs,
19590         System.Windows.Forms/TextBoxBase.cs,
19591         System.Windows.Forms/ToolStripTextBox.cs,
19592         System.Windows.Forms/ContainerControl.cs,
19593         System.Windows.Forms/ThemeWin32Classic.cs,
19594         System.Windows.Forms/SizeGrip.cs,
19595         System.Windows.Forms/ToolStripDropDown.cs,
19596         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
19597         private.  switch all uses over to Control.Parent.
19598
19599 2006-12-06  Chris Toshok  <toshok@ximian.com>
19600
19601         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
19602         Control does this before calling emitting these events.
19603
19604         * TabControl.cs: same.
19605
19606         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
19607         Control.client_rect.
19608
19609         * ButtonBase.cs: use the ClientSize property instead of the
19610         client_size field.
19611
19612         * ScrollableControl.cs: same.
19613
19614         * Control.cs: another pass at making properties private.  also,
19615         move the initialization of tab_stop to the ctor.
19616
19617 2006-12-05  Andreia Gaita <avidigal@novell.com>
19618
19619         * TabControl.cs: Let the selected index be set freely if the 
19620         control handle is not yet created.
19621
19622 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
19623
19624         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
19625         internal until I can rewrite DefaultLayout.
19626         * ToolStrip.cs: Fix build error and some general cleaning.
19627         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
19628         Fix build errors caused by making some of Control's fields private.
19629
19630 2006-12-05  Jackson Harper  <jackson@ximian.com>
19631
19632         * TextControl.cs: Redo Insert a little so that it use IndexOf
19633         instead of Split, this prevents it from messing up on things like
19634         \n\n\n. Also more effecient since the split array doesn't need to
19635         be created.
19636         * TextBoxBase.cs: AppendText doesnt handle multiline and non
19637         multiline text differently, this is the first of many fixes that
19638         will make multiline/non-multiline the same thing as far as the
19639         TextBoxBase is concerned.
19640         - Don't split the text and insert lines, this can lose some line
19641         endings (like is the last line a soft or hard break). Instead use
19642         the new Insert.
19643         - Fix an off by one when combining all the lines in the Text
19644         getter.
19645         - Remove separate multiline handling from the Text getter/setter.
19646
19647 2006-12-05  Chris Toshok  <toshok@ximian.com>
19648
19649         * ButtonBase.cs: a few changes:
19650
19651         - don't reinitialize internal Control fields in the ctor when they
19652         have the same values as Control sets them.
19653
19654         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
19655         this before calling those methods.
19656
19657         - we don't need to call Refresh for anything.  use Invalidate
19658         instead.
19659
19660         - OnEnabledChanged doesn't need to redraw at all - Control.cs
19661         calls Refresh in its OnEnabledChanged.
19662         
19663         - several of the events we were registered for in the ctor to
19664         redraw ourselves already include calls to Invalidate in the
19665         property setters that raise the events.  remove the extra
19666         invalidation.
19667
19668         - reformat a switch statement that was 83274658 columns wide.
19669         
19670 2006-12-05  Mike Kestner  <mkestner@novell.com>
19671
19672         * ComboBox.cs: fix a unit test regression from a TextBox
19673         SelectionLength return of -1 when there's no selection.  
19674
19675 2006-12-05  Chris Toshok  <toshok@ximian.com>
19676
19677         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
19678         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
19679         cleaning up some of the internal Control fields being used by
19680         subclasses.
19681
19682 2006-12-05  Mike Kestner  <mkestner@novell.com>
19683
19684         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
19685         listbox after AddImplicit calls since it defaults to hidden. Add a 
19686         hack to preserve requested heights across DropDownStyle changes.
19687
19688 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
19689
19690         * PropertyGrid.cs: Hide FindFirstItem method from public API.
19691
19692 2006-12-05  Chris Toshok  <toshok@ximian.com>
19693
19694         * DataGridView.cs: fix compiler warnings.
19695
19696         * PrintControllerWithStatusDialog.cs: same.
19697
19698         * ToolBar.cs: same.
19699
19700         * FolderBrowserDialog.cs: same.
19701
19702         * Splitter.cs: same.
19703
19704         * DataGridViewComboBoxCell.cs: same.
19705
19706         * XplatUIWin32.cs: same.
19707
19708         * PictureBox.cs: same.
19709
19710         * Win32DnD.cs: same.
19711
19712         * PageSetupDialog.cs: same.
19713
19714         * FileDialog.cs: same.
19715
19716         * PrintDialog.cs: same.
19717
19718         * DataGridTextBoxColumn.cs: same.
19719
19720         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
19721
19722 2006-12-05  Chris Toshok  <toshok@ximian.com>
19723
19724         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
19725         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
19726         System.ComponentModel.EventHandlerList work.
19727
19728 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
19729
19730         * DrawTreeNodeEventArgs.cs: Added.
19731
19732 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19733         
19734         * InternalWindowManager.cs: Remove an unused field.
19735         
19736 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19737
19738         * InternalWindowManager.cs:
19739         - Save the point where the title bar is clicked.
19740         
19741         * MdiWindowManager.cs:
19742         - Only allow moving of the window as long as the 
19743         clicked point on the title bar does not get out of
19744         MdiClient's rectangle. Fixes #79982.
19745         
19746         * MdiClient.cs:
19747         - Added Horizontal/VerticalScrollbarVisible.
19748         - Simplified the scrollbar sizing algorithm.
19749         - Cache the difference in scrolled value in
19750         H/VBarValueChanged and move the calculation out
19751         of the for loop.
19752
19753 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19754
19755         * Control.cs: Make the Console.WriteLine in WndProc 
19756         write more info.
19757
19758 2006-12-05  Chris Toshok  <toshok@ximian.com>
19759
19760         * ToolStripManager.cs, ToolStripButton.cs,
19761         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
19762         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
19763         ToolStripSplitButton.cs, ToolStripSeparator.cs,
19764         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
19765         ToolStripProgressBar.cs, ToolStripContainer.cs,
19766         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
19767         to using System.ComponentModel.EventHandlerList.
19768
19769 2006-12-04  Chris Toshok  <toshok@ximian.com>
19770
19771         * LinkLabel.cs: fix up compiler warnings.
19772
19773         * TableLayoutSettings.cs: same.
19774
19775         * TreeView.cs: same.
19776
19777         * ToolBar.cs: same.
19778
19779         * TabControl.cs: same.
19780
19781         * RichTextBox.cs: same.
19782
19783         * ListViewItem.cs: same.
19784
19785         * PropertyGrid.cs: same.
19786
19787         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
19788
19789         * ToolTip.cs same.
19790
19791         * TextRenderer.cs: fix up compiler warnings.
19792
19793         * Label.cs: same.
19794
19795         * Form.cs: corcompare fixes.
19796
19797         * PictureBox.cs: fix up compiler warnings.
19798
19799         * ImageListStreamer.cs: same.
19800
19801         * TrackBar.cs: corcompare fix.
19802
19803         * Control.cs: fix up compiler warnings.
19804
19805         * SplitterPanel.cs: same.
19806
19807         * NumericTextBox.cs: same.
19808
19809         * ImageList.cs: same.
19810
19811         * StatusStrip.cs: same.
19812
19813         * ProgressBar.cs: corcompare fix.
19814
19815         * ToolStripButton.cs: fix up compiler warnings.
19816
19817         * ToolStripStatusLabel.cs: same.
19818
19819         * ToolStripSplitButton.cs: same.
19820
19821         * ToolStripSeparator.cs: same.
19822
19823         * ToolStripProgressBar.cs: same.
19824
19825         * ToolStripDropDownMenu.cs: same
19826
19827         * ToolStripDropDown.cs: same.
19828
19829         * ToolStripDropDownButton.cs: same.
19830
19831         * ToolStrip.cs: same.
19832
19833         * ToolStripControlHost.cs: same.
19834
19835         * ToolStripContentPanel.cs: same.
19836
19837         * ToolStripDropDown.cs: same.
19838
19839         * ToolStripContainer.cs: same.
19840
19841         * ToolStripPanel.cs: same, and add "new" where we need it to work
19842         with the new ArrangedElementCollection.
19843
19844         * ToolStripItemCollection.cs: add "new" where we need it to work
19845         with the new ArrangedElementCollection.
19846
19847 2006-12-04  Andreia Gaita <avidigal@novell.com>
19848
19849         * TabControl.cs: Fix default tab selection to after TabControl
19850         gets focus and not before. Fixes #80128
19851
19852 2006-12-04  Chris Toshok  <toshok@ximian.com>
19853
19854         * DataGridTableStyle.cs: remove the gross calling of
19855         datagrid.Refresh from here.  It's a broken idea and it doesn't
19856         work anyway.
19857
19858         * DataGrid.cs: instead, just register/unregister from the
19859         DataGridTableStyle events in CurrentTableStyle.  we play it
19860         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
19861         even though some would most likely not require it.  Fixes bug
19862         #80115 (and one portion of #80117 as a side effect).
19863
19864 2006-12-04  Chris Toshok  <toshok@ximian.com>
19865
19866         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
19867         so the textbox (if any) goes away.  Fixes bug #80117.
19868
19869 2006-12-04  Chris Toshok  <toshok@ximian.com>
19870
19871         * DataGridColumnStyle.cs: set the column's readonly property
19872         initially based on the property descriptor's IsReadOnly.  Fixes
19873         bug #80044.
19874
19875 2006-12-04  Chris Toshok  <toshok@ximian.com>
19876
19877         * ComboBox.cs: wrap the dropdown style changing work in
19878         SuspendLayout/ResumeLayout.  Fixes bug #79968.
19879
19880 2006-12-04  Jackson Harper  <jackson@ximian.com>
19881
19882         * TextBoxBase.cs: Fix off by one, since these are one-based.
19883         * TextBox.cs: Select all the text when we get focus.  The TextBox
19884         does this but the RTB does not.
19885
19886 2006-12-04  Chris Toshok  <toshok@ximian.com>
19887
19888         * DataGridTextBoxColumn.cs: remove some spew.
19889
19890         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
19891         but some part of me is saying "it shouldn't be here.."  At any
19892         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
19893         setting the value.
19894
19895 2006-12-04  Chris Toshok  <toshok@ximian.com>
19896
19897         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
19898         to reassign the propertydescriptor.
19899
19900 2006-12-04  Jackson Harper  <jackson@ximian.com>
19901
19902         * TextBoxBase.cs:
19903         * TextControl.cs: Remove some unused variables.  Maybe this will
19904         patch things up between mike and I.
19905         - don't split lines less then one char wide, if the viewport is
19906         that small text won't be visible anyways.
19907         
19908 2006-12-04  Jackson Harper  <jackson@ximian.com>
19909
19910         * TextBoxBase.cs: Default selection length is -1, need to do some
19911         more testing on windows to see when this is used for the property.
19912         - Redid the Lines [] property to that we properly remove soft line
19913         breaks
19914         - added support for preserving carriage returns
19915         -  CanUndo is not a variable like 'is undo enabled' it just returns
19916         true if there is undo operations available.
19917         - AppendText doesn't need to grab the last tag itself anymore,
19918         this happens automatically when we move the cursor.
19919         * TextControl.cs: Add CompoundActions to the undo class. This
19920         allows combining the other operations into one big option.  ie a
19921         paste will combine { delete old, insert new, move cursor }
19922         - Add InsertString undo operation
19923         - New method for deleting multiline text
19924         - Add carriage returns to lines. So we can preserve carriage
19925         returns when text is 'roundtripped'
19926
19927 2006-12-04  Chris Toshok  <toshok@ximian.com>
19928
19929         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
19930         minimum 0.  Fixes the scrollbar exception in bug #80136.
19931
19932 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19933
19934         * MdiClient.cs: 
19935         * MdiWindowManager: Removed unused fields and methods.
19936         
19937 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19938         
19939         * StatusBar.cs: Update all panels when a AutoSize=Contents
19940         panel needs updating.
19941         
19942         * StatusBarPanel.cs: Remove twidth and only use initialize.
19943         Fixes #80031.
19944                 
19945 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19946
19947         * Form.cs: When a form's MdiParent is set add it directly
19948         on top of the z-order in stead of relying on MdiClient's
19949         ActivateChild to do it. Fixes #80135.
19950         
19951         * MdiClient.cs: 
19952         - Remove original_order, mdi_child_list is already doing
19953         the same thing.
19954         - Create mdi_child_list on construction in
19955         stead of first use (avoids a few null checks).
19956
19957         * MenuItem.cs: Use an already existing list of mdi children
19958         to get the correct order of children and remove the other
19959         redundant list.
19960
19961 2006-12-04  Chris Toshok  <toshok@ximian.com>
19962
19963         * PropertyGridView.cs: cached_splitter_location is only used in
19964         !DOUBLEBUFFER code.
19965
19966         * PropertyGrid.cs: implement the ComComponentNameChanged event
19967         using Events, hoping that would fix the warning.  Looks like a
19968         compiler bug instead (#80144).
19969
19970         * PropertyManager.cs: remove unused method.
19971
19972 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
19973
19974         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
19975         include parentesis to fix expression evaluation. Fixes #79634.
19976
19977 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
19978         
19979         * MenuAPI.cs:
19980         - Changes to fix behavior in Menu control, some reported in #80097
19981         and other detected during behavior refactory like a select event
19982         problems.
19983         - Remove unneded "if's" conditions.
19984         - Created an internal to flag when popup is active in control, we need 
19985         it because in .NET you can have menu active but without popup active
19986         when you active menu using popup without visible items.
19987         - Mimic win32 behavior for Select and Popup events.  
19988         - Dont open popup menu when you dont have visible subitems.
19989         - Do nothing when click on disabled menu item.
19990         - Some small changes to follow the coding style guidelines.
19991         - Unselect menu only when another control gives focus. Fixes #80097.
19992         - Remove unused code.
19993         
19994         * MenuItem.cs: internal VisibleItems method to check if menu
19995         theres visible subitems, it will be usefull to fix some 
19996         behavior in Menu control.
19997         
19998 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
19999         
20000         * Timer.cs: Tag property for 2.0 profile.
20001         
20002 2006-12-01  Chris Toshok  <toshok@ximian.com>
20003
20004         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
20005         
20006         * Win32DnD.cs: comment out some unused fields.
20007
20008         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
20009         some unused properties/methods.
20010
20011         * XplatUIX11.cs: fix MousePosition so we override the base class's
20012         property instead of conflicting with it.
20013
20014         * PictureBox.cs: comment out some unused fields
20015
20016         * OSXStructs.cs: make some struct fields public.
20017
20018         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
20019         MousePosition so we override the base class's property instead of
20020         conflicting with it.
20021
20022         * X11Dnd.cs: comment out some unused fields
20023
20024         * X11DesktopColors.cs: fix some struct field visibility to quiet
20025         the compiler.
20026
20027         * X11Dnd.cs: remove some debug code.
20028
20029         * ThemeClearlooks.cs: comment out unused field.
20030
20031         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
20032
20033         * ThemeGtk.cs: comment out some unused pinvokes.
20034
20035         * Timer.cs: remove some unused fields.
20036
20037         * ThemeClearlooks.cs: comment out unused field.
20038
20039         * UpDownBase.cs: comment out unused field.
20040
20041         * DataObject.cs: comment out unused field.
20042
20043         * DataGridBoolColumn.cs: reomve unused field.
20044
20045         * DataGrid.cs: remove unused field.
20046
20047         * Cursor.cs: remove old ToBitmap code.
20048
20049         * ControlPaint.cs: remove unused method.
20050
20051         * ScrollBar.cs: remove unused fields.
20052
20053         * ComboBox.cs: remove unused field, and chain up to
20054         AccessibleObject ctor.
20055
20056         * ListBox.cs: remove unused field.
20057
20058         * ButtonBase.cs: wrap a couple fields in NET_2_0.
20059
20060         * GridEntry.cs: remove unused fields.
20061
20062         * Binding.cs: remove unused fields.
20063
20064         * AxHost.cs: remove unused method.
20065
20066         * ContainerControl.cs: remove unused field.
20067
20068         * ScrollableControl.cs: remove unused fields.
20069
20070 2006-12-01  Chris Toshok  <toshok@ximian.com>
20071
20072         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
20073         the Where/WhereString stuff.  it's easy enough to CWL
20074         Environment.StackTrace.
20075
20076         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
20077         unused private fields.
20078
20079 2006-12-01  Jackson Harper  <jackson@ximian.com>
20080
20081         * TextControl.cs: Do not update the view while inserting multiline
20082         text. If we update the view we might wrap lines, before entering
20083         the new lines, which causes the new line insertion calculations to
20084         be totally fubared.
20085         - Remove an old TODO
20086         - Make debug output a little nicer
20087         
20088 2006-12-01  Chris Toshok  <toshok@ximian.com>
20089
20090         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
20091
20092 2006-12-01  Chris Toshok  <toshok@ximian.com>
20093
20094         [ fix the majority of the CS0108 warnings we've been suppressing ]
20095         
20096         * TreeView.cs: mark BackgroundImageChanged as 'new'.
20097
20098         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
20099         to "LayoutToolBar" to quiet mcs.
20100         
20101         * TabControl.cs: mark our ControlCollection class as 'new'.
20102
20103         * TextBoxBase.cs: mark some events as 'new'.
20104
20105         * Splitter.cs: TabStop is 'new'.
20106
20107         * ControlBindingsCollection.cs: mark a few methods as new since
20108         they change the visibility from protected to public.
20109
20110         * RadioButton.cs: DoubleClick -> base class, and remove unused
20111         HaveDoubleClick.
20112
20113         * MonthCalendar.cs: ImeMode property -> base class, and mark many
20114         events as new.
20115
20116         * NumericUpDown.cs: TextChanged -> base class.
20117
20118         * CheckedListBox.cs: mark our ObjectCollection class as new to
20119         quiet mcs.
20120
20121         * FolderBrowserDialog.cs: make HelpRequest event new and have it
20122         muck with the base class.
20123
20124         * StatusBar.cs: fix some mcs warnings about Update being the same
20125         name as a base class method.
20126
20127         * RichTextBox.cs: mark some events as new, and make them do things
20128         to the base class impl.
20129
20130         * UserControl.cs: mark TextChanged as new, and have it manipulate
20131         base.TextChanged.
20132
20133         * UpDownBase.cs: mark some things new.
20134
20135         * CheckBox.cs: mark DoubleClick "new", and add some text about
20136         what we need to look at.
20137
20138         * Panel.cs: make the events "new", and manipulate the base
20139         version.  these are just here for attributes.
20140
20141         * AccessibleObject.cs: make owner private.
20142
20143         * Control.cs: deal with AccessibleObject.owner being private.
20144         cache our own copy if we need it.
20145
20146         * Button.cs: add "new" to the DoubleClickEvent.
20147
20148         * ListBox.cs: no need to track our own has_focus here.  let
20149         Control.has_focus do it for us.  Also some other work to clear up
20150         warnings about not overriding base class methods of the same name.
20151         
20152         * ComboBox.cs: clear up some warnings about not override base
20153         class methods of the same name.
20154
20155 2006-12-01  Chris Toshok  <toshok@ximian.com>
20156
20157         * Form.cs: flag a few things as "new" to quiet some of the mcs
20158         warnings.
20159
20160         * AxHost.cs: same.
20161
20162         * PrintPreviewDialog.cs: same.
20163
20164         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
20165         now DGV isn't so horrible on the class status page.  also, move
20166         all events to using System.ComponentModel.EventHandlerList.  my
20167         wrists hurt.
20168
20169 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20170
20171         * MdiWindowManager.cs:
20172         - Set form to active mdi child if shown,
20173         and update the active mdi child to the next 
20174         remaining child in the z-order if the form is hidden.
20175
20176         * Form.cs: 
20177         - Track if the form has been visible and if its 
20178         visibility is beeing changed, so that the MdiClient
20179         can properly decide the ActiveMdiChild. The MdiClient 
20180         cannot track this since the form can change visibility 
20181         before MdiClient is created.
20182
20183         * MdiClient.cs:
20184         - Don't activate anything of the parent form is changing
20185         its visibility.
20186         - Rework ActiveMdiChild to only return visible mdi 
20187         children and take into account several other corner 
20188         cases.
20189
20190 2006-12-01  Chris Toshok  <toshok@ximian.com>
20191
20192         * IBindableComponent.cs: new 2.0 interface.
20193
20194 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
20195
20196         * DataGrid.cs: Font for caption area is bold by default.
20197
20198 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
20199
20200         * Menu.cs: Tag property for 2.0.
20201         
20202 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
20203
20204         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
20205         
20206 2006-12-01  Chris Toshok  <toshok@ximian.com>
20207
20208         * TreeView.cs: doh, the Begin* events should be
20209         TreeViewCancelEventHandler.
20210
20211 2006-12-01  Chris Toshok  <toshok@ximian.com>
20212
20213         * Form.cs: Form.ControlCollection already stores off the
20214         form_owner field.  don't access the base class's internal "owner"
20215         field.
20216
20217         * Control.cs: make all the fields in Control.ControlCollection
20218         private.  there's no need for any internal fields here.
20219
20220 2006-12-01  Chris Toshok  <toshok@ximian.com>
20221
20222         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
20223         OnHandleCreated.  Fixes bug #80109.
20224
20225 2006-12-01  Chris Toshok  <toshok@ximian.com>
20226
20227         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
20228         SplitContainer.cs, Control.cs, StatusStrip.cs,
20229         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
20230         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
20231         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
20232         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
20233         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
20234         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
20235         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
20236         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
20237         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
20238         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
20239
20240         do most of the work to convert our code over to use
20241         System.ComponentModel.Component.Events for
20242         adding/removing/dispatching events.
20243
20244
20245 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
20246
20247         * DataGridView.cs: Fix an ArgumentNullException reported 
20248         twice today in IRC.
20249
20250 2006-11-30  Mike Kestner  <mkestner@novell.com>
20251
20252         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
20253         grabbed listbox.  Fixes #80036 and #80101.
20254
20255 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
20256
20257         * Message.cs: Changed ToString() to match MS.
20258         
20259 2006-11-30  Jackson Harper  <jackson@ximian.com>
20260
20261         * TextBoxBase.cs: You can still change the selected text on a read
20262         only textbox.
20263         * TextControl.cs: Lower magic number for wrap calculations. This
20264         lets text get closer to the right (far) edge.
20265
20266 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
20267
20268         * Control.cs: Tweak 2.0 layout properties.
20269         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
20270         * TextRenderer.cs: Add a new overload.
20271         * ToolStrip*: Huge amount of changes and new features.
20272
20273 2006-11-30  Mike Kestner  <mkestner@novell.com>
20274
20275         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
20276         scroll range correct.  Fixes #79994.
20277
20278 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
20279
20280         * MdiWindowManager.cs: Update main form's text when
20281         a form is closed. (fixes #80038)
20282         
20283 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
20284
20285         * ToolBar.cs:
20286         - Fix an regression in ButtonSize.
20287         - Get ImeMode default value change to "Disable".
20288         - Get ShowTooltips default value change to true, default value is 
20289         "false" but after make a test in .NET we get "true" result as default.
20290         
20291 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
20292
20293         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
20294
20295 2006-11-29  Chris Toshok  <toshok@ximian.com>
20296
20297         * XplatUIWin32.cs (GetWindowTransparency): check return value of
20298         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
20299         SetWindowTransparency hasn't been called.
20300
20301 2006-11-29  Chris Toshok  <toshok@ximian.com>
20302
20303         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
20304         if it's supported.
20305         (set_AllowTransparency): reorder things a little so that the
20306         WS_EX_LAYERED style is removed properly.
20307
20308 2006-11-29  Chris Toshok  <toshok@ximian.com>
20309
20310         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
20311         
20312         * Form.cs: only call the XplatUI transparency method (get/set) if
20313         SupportsTransparency says it's supported. Otherwise fallback to
20314         doing nothing (in the set case) or returning the instance field we
20315         cache (in the get case).
20316
20317         * XplatUIStructs.cs: add TransparencySupport flag enum.
20318         
20319         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
20320         change to SupportsTransparency.
20321
20322         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
20323         TransparencySupport.None from SupportsTransparency.
20324
20325         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
20326         TransparencySupport.Set from SupportsTransparency.
20327
20328         * XplatUIWin32.cs: implement GetWindowTransparency calling
20329         GetLayeredWindowAttributes, and implement SupportsTransparency by
20330         checking whether or not both
20331         GetWindowTransparency/SetWindowTransparency are available
20332         entrypoints.  We need to do this since SetWindowTransparency is
20333         available as of win2k, but GetWindowTransparency requires winxp.
20334         yay win32 api.
20335
20336         * XplatUI.cs: Add GetWindowTransparency, and change
20337         SupportsTransparency to allow for either/both Get/Set.
20338
20339 2006-11-29  Chris Toshok  <toshok@ximian.com>
20340
20341         * DataGrid.cs: keep from going into an infinite loop redrawing a
20342         datagrid that has no datasource.  Fixes bug #80033.
20343
20344 2006-11-29  Chris Toshok  <toshok@ximian.com>
20345
20346         * MenuItem.cs: fix the NRE when we assign text (and therefore call
20347         Invalidate) before the mainmenu has been assigned to a control.
20348
20349 2006-11-29  Chris Toshok  <toshok@ximian.com>
20350
20351         * DataGrid.cs: detect when we should be double the double click
20352         row/column autosize stuff, although that codepath has yet to be
20353         written.  part of the work for bug #79891.
20354
20355 2006-11-29  Chris Toshok  <toshok@ximian.com>
20356
20357         * Binding.cs (SetControl): fix unit test.
20358
20359 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20360
20361         * PageSetupDialog.cs: Validate the margins and set them in
20362         PageSettings. 
20363         * NumericTextBox.cs: New class to mimic the behavior of the
20364         textboxes used in the printing dialogs.
20365
20366 2006-11-29  Andreia Gaita  <avidigal@novell.com>
20367         
20368         * Form.cs: Revert previous change (remove call UpdateBounds
20369         from form constructor), because it messes with the handle creation
20370         order, and that one needs lots and lots of love.
20371         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
20372         for valid printer and throw InvalidPrinterException if document
20373         is set but printer not valid), adding a MonoTODO. Once 
20374         handle creation is done properly, we can put this back in.
20375
20376 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20377
20378         * MenuItem.cs: Create a invalidate method for menu item, to be
20379         calling from set text, it make text changes to imadiate update
20380         on screen. Fixes #80013. 
20381         
20382 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20383
20384         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
20385         fixes bug #80070 and some other problem on toolbar buttons
20386         layout.
20387
20388 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20389
20390         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
20391         with dotted brush.      Fixes #79564
20392         
20393 2006-11-28  Andreia Gaita  <avidigal@novell.com>
20394
20395         * Form.cs: Removed call to UpdateBounds on Form
20396         constructor, it was causing a call to CreateHandle
20397         before it was supposed to.
20398         * PrintControllerWithStatusDialog: Applied patch
20399         by Chris Toshok to hide controller when there are
20400         no printers available.
20401         PrintDialog.cs: initialize printer settings to 
20402         null - correct DefaultValues test #5
20403         * PrintPreviewControl.cs: Move PrintController
20404         initialization to GeneratePreview
20405         * PrintPreviewDialog.cs: 
20406         - Remove Preview generation     from Document_set(). It is 
20407         called on OnPaint
20408         - Throw InvalidPrinterException on CreateHandle if
20409         a Document is set but there are no printers or 
20410         printer is not valid.
20411         * ThemeWin32Classic: don't paint PrintPreviewControl
20412         if there is nothing to paint    
20413
20414 2006-11-28  Miguel de Icaza  <miguel@novell.com>
20415
20416         * Form.cs: Add another popular method.
20417
20418         * TabPage.cs: ditto.
20419
20420 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20421
20422         * MenuItem.cs: Fixed a warning.
20423         * InternalWindowManager: Fixed a warning.
20424
20425 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20426
20427         * MenuItem.cs:
20428         - When cloning a menu also clone MdiList and clone the 
20429           window menu items properly (as the forms and menuitems
20430           are kept in an internal hashtable, these need updating 
20431           as well)
20432         - Rewrote the window menu code, menu items are added in the
20433           order the forms were added to their parent, and they are
20434           updated every time the window menu is shown (before the
20435           list was only generated once, in the current order of the
20436           forms, and would never be updated). A checkmark is shown
20437           next to the item corresponding to the active mdi child.
20438
20439 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20440
20441         * XplatUIStructs.cs: 
20442         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
20443         
20444         * XplatUIWin32.cs: 
20445         - Added TME_NONCLIENT to TMEFlags.
20446         - Handles WM_NCMOUSEMOVE in GetMessage to 
20447           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
20448
20449         * MdiWindowManager:
20450         - Now merges mdi child menu to parent menu when maximized.
20451         - Recalculate NC areas of both mdi child and mdi parent. 
20452           Fixes #79757 (4).
20453           on window state and size changes.Fixes #79844 (3).
20454         - Handle WM_NCCALCSIZE to properly calculate borders.
20455
20456         * Form.cs:
20457         - Add/remove to the mdi containers list of mdi children 
20458           in the order they are added.
20459         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
20460           to the maximized mdi child.
20461         
20462         * InternalWindowManager.cs:
20463         - Only execute a click on the control buttons on the mouse up,
20464           not on the mouse down. Show the state of the button 
20465           (was only showing Normal state, never Pressed state). The
20466           pressed button now follows the mouse (if you click the Close 
20467           button and move the mouse over the Maximize button, the 
20468           Maximize button will be shown as pressed). Since Win32 does
20469           not generate WM_NCLBUTTONUP if you release the button outside
20470           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
20471           it as a mouse up.
20472         
20473         * ThemeWin32Classic.cs:
20474         - Draw a missing border around mdi child forms. Fixes #79844 (2).
20475
20476         * MdiClient.cs:
20477         - Added a list of forms which contains the order the forms are
20478           added to the mdi parent.
20479         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
20480         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
20481         - If the active form changes set the scrollbars to the top
20482           of the Z order, otherwise the form could hide them.
20483         - Scrollbars are now sized according to ClientSize, not 
20484           to Size, and they take into account the other scrollbar
20485           to determine maximum.
20486         
20487 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
20488         
20489         * XplatUI.cs:
20490         * XplatUIDriver.cs:
20491         * XplatUIX11.cs:
20492         * XplatUIWin32.cs:
20493         * XplatUIOSX.cs:
20494         - Added RequestAdditionalWM_NCMessages for windows to 
20495           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
20496           Currently only implemented in XplatUIWin32.
20497
20498 2006-11-27  Chris Toshok  <toshok@ximian.com>
20499
20500         * Hwnd.cs: only add the hwnd to the windows hash in
20501         set_WholeWindow and set_ClientWindow if whole_window/client_window
20502         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
20503
20504 2006-11-27  Mike Kestner  <mkestner@novell.com>
20505
20506         * ComboBox.cs: remove redundant OnDropDown call.  It is called
20507         from the ComboListBox.ShowWindow code. Fixes #79969.
20508
20509 2006-11-27  Chris Toshok  <toshok@ximian.com>
20510
20511         * Hwnd.cs: remove the setters for ExposePending and
20512         NCExposePending - noone uses them.
20513
20514 2006-11-27  Jackson Harper  <jackson@ximian.com>
20515
20516         * TextControl.cs: new param for ReplaceSelection which determines
20517         whether we select the new selection, or set the cursor to the end
20518         of the new selection.
20519         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
20520         pasting, select the new text.
20521         * RichTextBox.cs: Use new param for ReplaceSelection.
20522
20523 2006-11-27  Jackson Harper  <jackson@ximian.com>
20524
20525         * TextBoxBase.cs: Set the selection to the caret after the caret
20526         is moved, otherwise they get out of sync.
20527
20528 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
20529
20530         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
20531         it fixes #80015
20532
20533 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
20534
20535         * ThemeWin32Classic.cs: 
20536         - Fix toolbar drop down arrow position.
20537         - Fix drop down appearance when ToolBar.Appearance is normal,
20538         it fixes #80018.
20539         
20540 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
20541
20542         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
20543         * Control.cs: Same.
20544         * UpDownBase.cs: Same.
20545         * ButtonBase.cs: Same.
20546         * ScrollBar.cs: Same.
20547         * TrackBar.cs: Same.
20548         * PictureBox.cs: Same.
20549         * UserControl.cs: Same.
20550         * Label.cs: Same.
20551         * ListControl.cs: Same.
20552         * TextBoxBase.cs: Same.
20553         * ListView.cs: Same.
20554         * RichTextBox.cs: Same.
20555         * TreeView.cs: Same.
20556
20557 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
20558
20559         * PrintDialog.cs:
20560         - Text label for where 
20561         - Text label comment was not shown
20562
20563 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
20564
20565         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
20566
20567 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20568
20569         * InternalWindowManager.cs: 
20570         - Handle WM_PARENTNOTIFY to activate the form
20571         if any child control is clicked.
20572         - The form is only sizable if not minimized.
20573
20574         * MdiWindowManager.cs:
20575         - Save the IconicBounds if the form is moved.
20576         - Rework SetWindowState, now the window bounds 
20577         are stored only if the old window state is Normal.
20578         
20579         * MdiClient.cs:
20580         - In SetWindowStates store the old window state if 
20581         the window is maximized and restore window state if
20582         the window looses focus.
20583         - Don't handle any scrollbar value changes if 
20584         initializing the scroll bars. Fixes #79771.
20585         - Reworked ArrangeIconicWindows. Current algorithm
20586         tests bounds agains all other minimized windows, if
20587         any intersections create new bounds (going left to 
20588         right, bottom to top) and then test again. When 
20589         successful the bounds are saved and never computed
20590         again. Fixes #79774.
20591
20592 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20593
20594         * InternalWindowManager.cs: Added HandleTitleBarUp.
20595
20596 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20597
20598         * NumericUpDown.cs: In .NET 1.1, user entered text is still
20599         hexadecimal in ParseUserEdit.
20600
20601         
20602 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20603
20604         * MdiWindowManager.cs: 
20605         - Handle a click on the form's icon to show the 
20606         system menu (when maximized). Fixes #79775.
20607         - Change the existing click handler for the form's
20608         icon when not maximized to show on MouseUp.
20609         Fixes #79776.
20610
20611         * Form.cs: In OnResize only layout the mdi child's
20612         parent if it actually has a parent. Might not if
20613         the window is closing.
20614
20615
20616 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20617
20618         * MdiClient.cs: Ignore active MDI client for text of parent, if
20619         child has no text set.
20620
20621 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20622
20623         * ToolBar.cs: Fixed ToString to match MS.
20624
20625 2006-11-22  Andreia Gaita  <avidigal@novell.com>
20626
20627         * NumericUpDown: 
20628         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
20629         update inner values on set. Fixes #79966.
20630         - Override OnLostFocus to update value on NET 2. Fixes #79950.
20631         - Fix hexadecimal parsing.
20632         
20633         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
20634         parent. Fixes #79957
20635
20636 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20637
20638         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
20639         the actual size has to be queried, since if height /
20640         width is negative Win32 changes it to 0. 
20641         Fixes #79999 on Windows.
20642         
20643         * XplatUIX11.cs: Set height / width to 0 if negative
20644         in SetWindowPos. Fixes #79999 on Linux.
20645         
20646 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
20647
20648         * ThemeWin32Classic.cs: Fix text redenring when button is
20649         pressed.
20650
20651 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
20652
20653         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
20654         and later navigate by mouse. Fixes #79528.
20655
20656 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
20657
20658         * ToolBar.cs: Set default value for TabStop to false in
20659         constructor, it fixes remaining behavior of bug #79863.
20660
20661 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20662
20663         * MdiWindowManager.cs:
20664         * InternalWindowManager.cs:
20665         - Moved a few methods specific to Mdi from 
20666         InternalWindowManager to MdiWindowManager.
20667         Fixes #79996.
20668         
20669 2006-11-21  Chris Toshok  <toshok@ximian.com>
20670
20671         * XplatUIOSX.cs: stub out InvalidateNC.
20672
20673         * XplatUIWin32.cs: implement InvalidateNC using the call I found
20674         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
20675
20676         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
20677
20678         * XplatUIDriver.cs: add InvalidateNC abstract method.
20679
20680         * XplatUI.cs: add InvalidateNC.
20681
20682 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
20683
20684         * ToolBar.cs: Invalidate complete button area when pressed status 
20685         was changed.
20686         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
20687         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
20688         by 1 when button is pressed.
20689
20690 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20691
20692         * ToolButton.cs: Invalidate middle of DropDown button when
20693         ToolBar theres DropDownArrows.
20694         * ThemeWin32Classic.cs: Change position of DropDown arrow and
20695         fix DropDown drawing operations.
20696
20697 2006-11-20  Chris Toshok  <toshok@ximian.com>
20698
20699         * NativeWindow.cs: fix the formatting of functions ('{' on the
20700         following line), and enable the thread exception dialog.
20701
20702         * Application.cs: remove the duplicate exception catching from
20703         here.
20704
20705 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20706
20707         * Toolbar.cs: Triggers button click event when click on icon
20708         of dropdown ToolBarButton. Fixes #79912.
20709         
20710 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20711
20712         * Theme.cs:
20713         * ThemeWin32Classic.cs:
20714         - Added a property WindowBorderFont to enable themeing
20715           of mdi child windows' Text.
20716           
20717 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20718
20719         * InternalWindowManager.cs:
20720         * Form.cs:
20721         * MdiClient.cs:
20722         * MdiWindowManager.cs: 
20723         - If mdi child is maximized, set mdi parent's
20724           text to "Parent - [Child]". Fixes #79770.
20725         - If there is any maximized mdi child windows, only the active 
20726           window (and any new windows) is maximized, the rest are normal.
20727         - On a WindowState change only save mdi child's window bounds 
20728           if the old window state was normal. Fixes #79774.
20729         - The scroll bars are now calculated on hopefully all
20730           necessary events. Fixed #79771 / #79844->6 / #79906.
20731         - MdiClient.SizeScrollBars() now takes into account docked 
20732           controls in the parent when calculating available space.
20733         - InternalWindowManager now always repaints the entire title
20734           area. Fixes #79844->1/4/5.
20735         - Added RequestNCRecalc on mdi child windowstate changes.
20736           Fixes #79772.
20737
20738 2006-11-20  Mike Kestner  <mkestner@novell.com>
20739
20740         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
20741         in the MouseUp handler of the listbox and move the return handling
20742         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
20743
20744 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20745
20746         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
20747
20748 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20749
20750         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
20751           working in 1.2.x anymore. So, updated.
20752
20753 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
20754
20755         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
20756         NumberGroupSeparator of current culture instead of assuming en-US.
20757         Fixed bug #79967.
20758
20759 2006-11-17  Mike Kestner  <mkestner@novell.com>
20760
20761         * Control.cs: Add the concept of implicit bounds setting so that
20762         dock/undock round trips preserve explicitly set size/locations.
20763         Fixes #79313.
20764
20765 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20766
20767         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
20768           can't handle those filters. (Fixes bug #79961)
20769
20770 2006-11-17  Chris Toshok  <toshok@ximian.com>
20771
20772         [ fixes the exit/crashes associated with #79835.  it's clearly
20773         suboptimal though, we need to figure out a better way to solve
20774         this. ]
20775         
20776         * PrintPreviewControl.cs: deal with the new invalid printer
20777         exceptions.
20778
20779         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
20780         and return false (so CommonDialog.ShowDialog doesn't actually show
20781         the form.)
20782
20783         * PrintDialog.cs: enable/disable the Ok button depending on
20784         whether or not the printer is valid.
20785
20786         * CommonDialog.cs (ShowDialog): only actually show the form if
20787         RunDialog returns true.
20788
20789 2006-11-17  Jackson Harper  <jackson@ximian.com>
20790
20791         * TextControl.cs: When soft splitting a line, mark it as a soft
20792         split line. Also carry over the current line break to the next
20793         line.
20794
20795 2006-11-17  Chris Toshok  <toshok@ximian.com>
20796
20797         * XplatUIX11.cs: when scrolling a window with an invalid area, we
20798         only want to shift the part of the invalid area that overlaps the
20799         area we're scrolling.  we also don't want to clear the invalid
20800         area unless the invalid area was entirely contained within the
20801         scrolling area.
20802
20803 2006-11-16  Chris Toshok  <toshok@ximian.com>
20804
20805         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
20806         also make sure to free the memory returned by XGetWindowProperty
20807         in GetText().
20808
20809         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
20810
20811 2006-11-16  Chris Toshok  <toshok@ximian.com>
20812
20813         * XplatUI.cs: add a new super secret way to get at the totally
20814         unsupported X11 backend.
20815
20816 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
20817
20818         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
20819
20820 2006-11-16  Jackson Harper  <jackson@ximian.com>
20821
20822         * TreeView.cs: Allow more explicit setting of top node position
20823         for scrollbars. Slower algo, but more accurate.
20824         - CollapseAll should maintain the current top node.
20825         * TextBoxBase.cs: When positioning the caret, use the line, pos
20826         method, since the x, y method does not grab the correct tag, and
20827         the caret height never gets set correctly. (Maybe I should just do
20828         away with the caret having its own height, and always use the
20829         carets current tag for height).
20830
20831 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
20832
20833         [Fixes 79778, 79923]
20834
20835         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
20836         Parent to the FosterParent instead.
20837
20838 2006-11-16  Jackson Harper  <jackson@ximian.com>
20839
20840         * TreeView.cs: Need to recalc the topnode when we expand or
20841         collapse. The scrolling methods can't handle this on their own,
20842         since they use differences between the last scroll position, and
20843         those difference get completely messed up since we are expanding
20844         nodes.  This problem should probably be fixed in the scrolling
20845         methods, so they can figure out exactly where they are, but this
20846         will slow things down a little.
20847         * ThemeWin32Classic.cs: Special case for groupboxes with empty
20848         strings, makes nunit-gui look a lot nicer.
20849
20850 2006-11-16  Chris Toshok  <toshok@ximian.com>
20851
20852         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
20853         the broken multithreaded event handling we have in here.  File
20854         this entry under "Why we should move to the new X11 backend".
20855
20856         Any thread can make it into UpdateMessageQueue, which gets events
20857         from the X socket - some of which could belong to hwnds being
20858         managed by a different thread.  We can also have multiple threads
20859         in UpdateMessageQueue at the same time, with each one reading from
20860         the X socket.  This leads to many problems, with the following
20861         solutions:
20862
20863         We can't use hwnd.Queue.Enqueue anywhere in here and must use
20864         EnqueueLocked.
20865
20866         The MotionNotify compression we do can't work across threads
20867         (without locking the entire queue, perhaps) since we call
20868         hwnd.Queue.Peek, so we just punt and don't compress motion events
20869         unless the owning thread is the one which got the X event.
20870
20871         ConfigureNotify is another fun one, since it modifies the hwnd's
20872         bounds and then enqueues the event.  We add a lock to Hwnd which
20873         is held when setting configure_pending to true (and enqueuing the
20874         event).
20875
20876         There is a race wrt the wake socket.  we need to make sure that
20877         only 1 thread is waiting on that socket, or else a thread could
20878         sleep waiting for data that never comes.  It's difficult (but not
20879         impossible) to make happen, because it seems to require something
20880         like the following:
20881
20882             1. Thread 1 polls on wake_receive
20883         
20884             2. poll returns saying there's data to be read on
20885                wake_receive.
20886         
20887             3. Thread 2 polls on wake_receive and immediately returns
20888                saying there's data to be read.
20889
20890             4. Thread 2 reads the wakeup byte from wake_receive
20891
20892             5. Thread 1 attempts to read the wakeup byte from
20893                wake_receive.
20894
20895             6. Thread 2 exits (due to a form closing, perhaps).
20896
20897             7. Thread 1 blocks forever.
20898         
20899         Fun, eh?
20900
20901         Fixing the Expose handling isn't done yet, and the races inherent
20902         in that piece of code are responsible for the drawing mistakes you
20903         see when generating expose events in a MT app (like NPlot).  This
20904         one is the likely to be the hardest to bandaid, and it doesn't
20905         appear to cause anything but drawing problems.  The other issues
20906         caused apps to exit or hang.
20907
20908         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
20909         called from a different thread than the one that should be calling
20910         these functions.
20911
20912         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
20913
20914 2006-11-15  Chris Toshok  <toshok@ximian.com>
20915
20916         * Application.cs: null out the context's MainForm when we exit
20917         RunLoop.  Fixes a newly checked in unit test as well as the last
20918         ODE from bug #79933.
20919
20920 2006-11-15  Chris Toshok  <toshok@ximian.com>
20921
20922         * Form.cs (set_Owner): allow a null value so we can clear the
20923         form's owner.
20924         (Dispose): set all our owned_form's Owner properties to null, and
20925         clear the owned_forms collection.
20926         (WM_CLOSE): clean up this a little bit.. still not right though.
20927
20928         * ApplicationContext.cs: OnMainFormClosed should only call
20929         ExitThreadCore if the main form isn't recreating.  Fixes unit
20930         test.
20931
20932 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20933
20934         [Fixes 78346]
20935
20936         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
20937
20938 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20939
20940         [Fixes 79433]
20941
20942         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
20943         keep popup window types from stealing focus from the main form
20944         on Windows.
20945
20946         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
20947
20948         * MenuAPI.cs: Set above flag to true.
20949
20950 2006-11-15  Chris Toshok  <toshok@ximian.com>
20951
20952         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
20953         the button being released is not in wParam.
20954
20955 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20956
20957         * Form.cs: Add the released button to MouseEventArgs.Button
20958         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
20959         on Win32.
20960
20961 2006-11-15  Chris Toshok  <toshok@ximian.com>
20962
20963         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
20964         GetText().  untested because it's unused in our implementation.
20965         Control.Text always caches the text, even if
20966         ControlStyles.CacheText is not set.
20967
20968         fixes bug #79939.
20969
20970 2006-11-15  Chris Toshok  <toshok@ximian.com>
20971
20972         [ fixes #79933 ]
20973         
20974         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
20975         message.  no hiding, no disposing.
20976
20977         in the WM_CLOSE handler, hide the form if it's modal.
20978
20979 2006-11-15  Chris Toshok  <toshok@ximian.com>
20980
20981         * XplatUIX11.cs: use AddExpose instead of sending a message.
20982         fixes textbox border drawing.
20983
20984 2006-11-15  Chris Toshok  <toshok@ximian.com>
20985
20986         * PropertyGridView.cs: keep from crashing on mouse move/down when
20987         the property grid is empty.
20988
20989 2006-11-14  Jackson Harper  <jackson@ximian.com>
20990
20991         * TextControl.cs: Make PageUp and PageDown more like the MS
20992         versions.
20993         * TextBoxBase.cs: When we set the text property position the
20994         cursor at the beginning of the document.
20995
20996 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20997
20998         * Form.cs: if a mdi child's WindowState has changed
20999         before it's creation, it would display wrong control
21000         buttons.
21001         
21002 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
21003
21004         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
21005           (Fixes bug #79927)
21006
21007 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
21008
21009         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
21010         the window gets to paint its borders even if the window is
21011         getting smaller.
21012         
21013         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
21014         otherwise the old control buttons would still be painted 
21015         if the window gets bigger.
21016         
21017         * PaintEventArgs.cs: add an internal method so that the clip 
21018         rectangle can be changed.
21019         
21020 2006-11-13  Chris Toshok  <toshok@ximian.com>
21021
21022         [ fixes bug #79745 ]
21023         
21024         * NotifyIcon.cs: lots of cleanup.
21025
21026         * X11Structs.cs: add an enum for XEMBED messages.
21027
21028         * XplatUIX11.cs: reindent one of the giant switch statements, it
21029         was taking up an additional tab stop, and this file is already way
21030         too wide for my laptop's screen.
21031
21032         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
21033         we get it, resize the hwnd to the WMNormalHints max_width/height.
21034
21035 2006-11-13  Jackson Harper  <jackson@ximian.com>
21036
21037         * TextBoxBase.cs: Compute the value changes for the mouse wheel
21038         teh simple way.
21039
21040 2006-11-13  Chris Toshok  <toshok@ximian.com>
21041
21042         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
21043         #79898.  force a reference to the Region to stick around so the
21044         unmanaged object isn't collected (rendering our handle in the MSG
21045         stale).
21046
21047 2006-11-13  Chris Toshok  <toshok@ximian.com>
21048
21049         * XplatUIX11.cs: fix #79917 for window managers which support
21050
21051         using XStoreName on the raw utf8, and we need to convert to
21052         COMPOUND_TEXT if it's non-latin1.
21053
21054 2006-11-13  Chris Toshok  <toshok@ximian.com>
21055
21056         * Form.cs (set_DialogResult): we need to set closing to false if
21057         we're setting our result to None.  fixes bug #79908.
21058
21059 2006-11-13  Jackson Harper  <jackson@ximian.com>
21060
21061         * TextControl.cs: When formatting text, compute the adjusted tag
21062         lengths correctly, using FindTag for the end tag instead of trying
21063         to figure it out outselves.
21064         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
21065         the item, ItemHeight doesn't work, because trees with large
21066         imagelists use those for their height
21067         * TreeView.cs: ActualItemHeight factors in the image height
21068         - compute left edge of checkboxes correctly
21069         - when expanding/collapsing move the bottom down one pixel, so we
21070         aren't moving part of the node
21071
21072 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21073
21074         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
21075         stack in PaintEventStart so that it won't get disposed by the gc
21076         before reaching PaintEventEnd.
21077
21078 2006-11-13  Jackson Harper  <jackson@ximian.com>
21079
21080         * TextBoxBase.cs: Don't select the word if we are on a line with
21081         no text.
21082         - We don't need to position the caret on mouse up, since the mouse
21083         move handler should be doing this
21084         - When double clicking a blank line, the caret is advanced to the
21085         next line.
21086
21087 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
21088
21089         * TreeNodeCollection.cs: Avoid duplicating indexer code.
21090
21091 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
21092
21093         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
21094         Fixes part of bug #79910.
21095
21096 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
21097
21098         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
21099           (bug #79903). Some minor string updates to match ms.
21100
21101 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21102
21103         * FileDialog.cs: Don't add an extension if the filename
21104           already ends with that extension.
21105
21106 2006-11-10  Jackson Harper  <jackson@ximian.com>
21107
21108         * TreeView.cs: Use the currently highlighted node for the
21109         BeforeSelect event.
21110         * TextBoxBase.cs: There is no need to expand selection on
21111         MouseMove.
21112         - CanUndo means 'is there any undo operations', not 'is undo
21113         allowed on this textcontrol. Fixed ClearUndo unit test.
21114
21115 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
21116
21117         * Button.cs: only perform click when button is Selectable (so as 
21118         not to activate default buttons when they're disabled)
21119         
21120         * Control.cs: Rewrite of the SelectNextControl and related 
21121         methods. HandleClick now selects next control if the current one
21122         is being disabled.
21123         
21124         * Form.cs: OnActivated selects next active control only if Load 
21125         has already occurred. If Load hasn't run, there's no point in 
21126         selecting here, Load might change the state of controls.
21127         
21128         * FocusTest.cs: Tests marked as working again for these fixes
21129
21130 2006-11-10  Chris Toshok  <toshok@ximian.com>
21131
21132         * XplatUIX11.cs: a couple of fixes.
21133
21134         - use XInternAtoms with almost all the atoms we need to register,
21135         instead of many, many calls to XInternAtom.  should help a bit on
21136         startup time, at the expense of making the code look a little
21137         worse.
21138
21139         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
21140         isn't reparented (which seems to be a clue that we're running fon
21141         compiz) and they have an Owner form.  This fixes the tool windows
21142         in paint.net when running under compiz.
21143
21144         - when setting the opacity of a window, support both the case
21145         where the window has been reparented and also when it hasn't been.
21146         Since compiz/beryl doesn't seem to reparent windows, and these are
21147         the only window managers which support translucency, I'm not sure
21148         why we need the hwnd.reparented case at all.. but leave it in.
21149         now we get translucent windows in paint.net under compiz/beryl.
21150
21151 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21152
21153         * FileDialog.cs: Always return the value for FilterIndex that
21154           was set. Internally convert it to values that make sense.
21155
21156 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
21157         
21158         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
21159
21160 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
21161
21162         * Toolbar.cs: Change default value of DropDownArrows to true, the 
21163         signature still using false to make it compatible with MS but the 
21164         initial value is true. Fixes #79855.
21165
21166 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21167
21168         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
21169           only available on Linux.
21170
21171 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
21172
21173         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
21174         reduce number of calls to redraw method during toolbar creation.
21175
21176 2006-11-09  Mike Kestner  <mkestner@novell.com>
21177
21178         * ListView.cs : raise SelectedIndexChanged when an item is selected
21179         programmatically via the Item.Selected property.  Gert's nice 
21180         ListViewSelectedIndexChanged test fixture now runs clean.
21181
21182 2006-11-09  Mike Kestner  <mkestner@novell.com>
21183
21184         * ListView.cs : raise SelectedIndexChanged when a selected item is
21185         removed from the item collection using Remove or RemoveAt.
21186
21187 2006-11-09  Mike Kestner  <mkestner@novell.com>
21188
21189         * ListView.cs : raise SelectedIndexChanged once per selected item
21190         for compat with MS.  Fixes #79849+.
21191
21192 2006-11-09  Chris Toshok  <toshok@ximian.com>
21193
21194         * TabControl.cs: initialize row_count to 0, and set it to 1 when
21195         we need to (if we have any tab pages).  Fixes unit test.
21196
21197 2006-11-09  Chris Toshok  <toshok@ximian.com>
21198
21199         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
21200         width is 0, not 3.  Fixes a unit test.
21201
21202 2006-11-09  Mike Kestner  <mkestner@novell.com>
21203
21204         * ListView.cs : use Implicit scrollbars so that focus isn't 
21205         stolen from the listview when they are clicked. Fixes #79850.
21206
21207 2006-11-09  Chris Toshok  <toshok@ximian.com>
21208
21209         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
21210         have a root item.  Fixes #79879.
21211
21212 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
21213
21214         * FileDialog.cs:
21215           - Fix ToString ()
21216           - An ArgumentException is now thrown if a wrong filter
21217             is applied (matches ms). The previous filter doesn't change
21218             anymore if an exception is thrown.
21219           - Changing the FileName property also affects FileNames
21220         * ColorDialog.cs: The length of the CustomColors array is always
21221           16. It doesn't matter if we use a smaller array or null to update
21222           or change the custom colors property.
21223         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
21224           for RootFolder if we get a undefined value.
21225
21226 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21227
21228         * StatusBarPanel.cs: 
21229         - Width is set to MinWidth if Width is smaller than
21230         MinWidth. Fixes #79842.
21231         - MinWidth now always overrides Width (MSDN says MinWidth
21232         is set to Width when AutoSize = None, but they do not 
21233         behave like that).
21234         - Style has now the the correct default value.
21235         
21236 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21237  
21238         * TrackBar.cs: 
21239         - The control is completely invalidated on 
21240         Got/LostFocus to draw the focus rectangle correctly.
21241         - When AutoSize then height is always 45 (width for 
21242         vertical controls).
21243         
21244         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
21245         on the mouse when moved and it doesn't move when grabbed
21246         until the mouse moves as well. Also fixed some wrong 
21247         calculations when clicking on the thumb (control thought
21248         click was outside of thumb and didn't grab it).
21249         Fixes some of the issues in #79718.
21250
21251 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
21252
21253         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
21254
21255 2006-11-08  Chris Toshok  <toshok@ximian.com>
21256
21257         * PropertyGridView.cs: only call ToggleValue if the item is not
21258         readonly.
21259
21260 2006-11-08  Jackson Harper  <jackson@ximian.com>
21261
21262         * TextBoxBase.cs: The RichTextBox and textbox have very different
21263         word selection methods.  Implement the textbox's simple word
21264         selection here, and let the RichTextBox override and provide it's
21265         own.
21266         - Don't do extra selection on mouseup
21267         * RichTextBox.cs: Use the documents word selection algorithm, I
21268         think ideally, this function will be pulled into the
21269         RichTextBox.cs code someday.
21270
21271 2006-11-08  Chris Toshok  <toshok@ximian.com>
21272
21273         * RootGridEntry.cs: new class to represent GridItemType.Root.
21274
21275         * CategoryGridEntry.cs: reformat, and add boilerplate.
21276         
21277         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
21278         returns the UI parent anyway, and we need special handling to
21279         implement the GetTarget method in the face of it.  Also, implement
21280         Select().
21281
21282         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
21283         a root grid item, and use that instead of PropertyGrid.grid_items.
21284         Also, make use of TypeConverters (and add limitted support for
21285         ICustomTypeDescriptors) when initially populating the grid.
21286         Arrays now show up more or less properly.
21287
21288 2006-11-08  Chris Toshok  <toshok@ximian.com>
21289
21290         * Application.cs: set the modal dialog to non modal after we close
21291         it.  Fixes bug #79866.
21292
21293 2006-11-08  Jackson Harper  <jackson@ximian.com>
21294
21295         * TextControl.cs: When combining lines carry over the line end
21296         style from the end line.
21297         - Invalidate the selected area when setting it, if it is visible.
21298         * TextBoxBase.cs: Only rich text box can do full line selects.
21299         - Make sure to set the cursor position when there is a click,
21300         otherwise two clicks in separate areas could cause a large chunk
21301         to be selected.
21302
21303 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21304
21305         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
21306         Fixes #79863.
21307
21308 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21309
21310         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
21311         time. Remove tooltips when ToolButton click events.  Fixes #79856.
21312
21313 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21314
21315         * MenuAPI.cs: Ignore right click for menu actions and fixes
21316         menu border when clicked.  Fixes #79846.
21317
21318 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21319
21320         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
21321         MouseState after create wParam for message, this fixes mouse button 
21322         equal none in mouse up events.
21323         
21324 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
21325
21326         * Control.cs : Focus() now calls Select to set the Container's
21327         Active Control and to give it focus. To avoid infinite recursion
21328         (because ActiveControl also calls Focus at one point), a check 
21329         is made in Focus with the help of a new internal variable
21330         is_focusing.
21331
21332 2006-11-07  Mike Kestner  <mkestner@novell.com>
21333
21334         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
21335         if there's a selection.  Fixes #79849.
21336
21337 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
21338
21339         * PropertyGrid.cs: Avoid fixed height of help description label.
21340         Fixes part of bug #79829.
21341
21342 2006-11-07  Chris Toshok  <toshok@ximian.com>
21343
21344         * XplatUIX11.cs: fix #79790 again, by using the
21345         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
21346
21347 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21348
21349         * ToolBar.cs: Fix left click checking.
21350
21351 2006-11-07  Chris Toshok  <toshok@ximian.com>
21352
21353         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
21354
21355 2006-11-07  Chris Toshok  <toshok@ximian.com>
21356
21357         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
21358         PropertyManager unit tests.
21359
21360         * PropertyManager.cs: make property_name internal.
21361
21362 2006-11-07  Chris Toshok  <toshok@ximian.com>
21363
21364         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
21365         pass a unit test.  Also, don't set image_index to anything in
21366         response to setting the ImageList property.
21367
21368 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21369
21370         * ToolBar.cs: Ignore click events when mouse button is not a
21371         left button, only accepts other button for dropdown menus.  
21372         Fixes #79854.
21373
21374 2006-11-07  Chris Toshok  <toshok@ximian.com>
21375
21376         * DataGrid.cs: make the back and parent row buttons a little less
21377         ugly.
21378
21379 2006-11-07  Jackson Harper  <jackson@ximian.com>
21380
21381         * TextBoxBase.cs: When converting to Text don't put line breaks in
21382         for soft line breaks.
21383         * TextControl.cs: There is an initial "fake" line in the document,
21384         this is now a soft break line, so that an extra line feed doesn't
21385         get added to the end of documents.
21386
21387 2006-11-07  Chris Toshok  <toshok@ximian.com>
21388
21389         [ fix bug #79778 ]
21390         
21391         * CurrencyManager.cs: if the list is readonly, don't bother
21392         checking if IBindingList.AllowNew is true.
21393
21394         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
21395         for non-DataRowView datasources..  or rather, make it not crash.
21396         (DataGridPaintRelationRow): make sure we limit the row painting to
21397         the area not covered by the row header, and make our cell width at
21398         least large enough to cover the relation area.  This allows grids
21399         that have relations but no rows to render correctly.
21400         (DataGridPaintRowContents): same type of changes here.
21401         (SetDataSource): move back to always calling
21402         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
21403         navigating back through relations.
21404         (HitTest): handle the case where we have no cells but have
21405         relations.  Right now we generate a hit in cell 0 of whatever the
21406         row is, not sure if this is strictly correct, but it works for our
21407         purposes.
21408         
21409         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
21410         bother doing anything.
21411
21412 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
21413
21414         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
21415         early version of StatusStrip.  Not responsible for eaten
21416         application or firstborn children.
21417
21418 2006-11-06  Chris Toshok  <toshok@ximian.com>
21419
21420         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
21421         call GetTabRect with a -1 index.  Fixes #79847.
21422
21423 2006-11-06  Jackson Harper  <jackson@ximian.com>
21424
21425         * TreeNodeCollection.cs: Update scrollbars after clearing.
21426
21427 2006-11-06  Chris Toshok  <toshok@ximian.com>
21428
21429         * NumericUpDown.cs: fix the ToString method for some unit test
21430         love.
21431
21432 2006-11-06  Chris Toshok  <toshok@ximian.com>
21433
21434         * PropertyGrid.cs:
21435         - set the initial SelectedGridItem if we can.
21436
21437         - Exclude non-mergable properties only if we're merging > 1
21438         object.  Merging 1 object isn't really merging, obviously.
21439
21440         - Handle PropertySort.NoSort just like Alphabetical, which is
21441         wrong of course, but at least gets things on the screen.
21442         
21443         * PropertyGridView.cs:
21444         - Add method "FindFirstItem" which finds the first property grid
21445         item, so we can select it by default.
21446
21447         - make use of GridEntry.CanResetValue.
21448
21449         - Don't call RedrawBelowItemOnExpansion here anymore, the
21450         individual GridEntry's will do that.
21451
21452         - Remove the ITypeDescriptorContextImpl internal class.
21453         
21454         * GridEntry.cs:
21455         - this class needs to implement ITypeDescriptorContext, as it's
21456         what MS's PropertyDescriptorGridEntry does, which means we can
21457         remove the ITypeDescriptorContextImpl internal class from
21458         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
21459
21460         - keep a reference to our PropertyGridView, and move the call to
21461         RedrawBelowItemOnExpansion here from PGV.  This means
21462         programmaticly setting Expanded actually does something visible.
21463
21464         - add a CanResetValue() function which takes into account our
21465         possibly multiple "selected_objects" in the merged case.  Shifting
21466         PropertyGridView to use this method fixes another unreported
21467         crasher found running the test for #79829.
21468
21469         - when Top or Bounds is updated, make sure the PropertyGridTextBox
21470         is updated to reflect this.
21471
21472         * CategoryGridEntry.cs: the ctor takes the PGV now.
21473         
21474 2006-11-06  Jackson Harper  <jackson@ximian.com>
21475
21476         * TextControl.cs: These are 1 based.
21477         * TextBoxBase.cs: When setting the selected text, don't change the
21478         selected text tags, this is done by ReplaceText, just position the
21479         cursor at the end of the new text.
21480
21481 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
21482
21483         * ListView.cs: Allow label edit only when, when LabelEdit is
21484           set to true.
21485
21486 2006-11-06  Jackson Harper  <jackson@ximian.com>
21487
21488         * TextControl.cs: If a suitable wrapping position isn't found,
21489         just wrap right in the middle of a word.
21490
21491 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
21492
21493         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
21494           bug #79820.
21495
21496 2006-11-06  Jackson Harper  <jackson@ximian.com>
21497
21498         * TreeView.cs: Can't use the VisibleCount property when setting
21499         scrollbar heights, because this doesn't take into account whether
21500         or not the horz scrollbar just came visible.
21501
21502 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
21503
21504         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
21505         activated.  Fixes #79369, #79832.
21506
21507 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
21508
21509         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
21510           had to remove support for links that point to a directory. FileInfo
21511           returns no usefull information (means, the directory they point to)
21512           for such links. Replaced some empty string ("") with String.Empty.
21513
21514 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
21515
21516         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
21517         NullReferenceException when attempting to remove node that is not in
21518         collection. Throw NullReferenceException when null is passed to 
21519         Remove. Allow first element of the collection to be removed. Fixes
21520         bug #79831.  In GetEnumerator ().Current return null if positioned 
21521         before the first element of the collection. In GetEnumerator ().Reset,
21522         position before first element of the collection.
21523
21524 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
21525
21526         * PropertyGrid.cs: To match MS, remove default title and description
21527         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
21528         buttons.
21529
21530 2006-11-04  Chris Toshok  <toshok@ximian.com>
21531
21532         * Theme.cs: add a Clamp method, just for kicks.
21533
21534         * ThemeWin32Classic.cs: clamp all color components to [0..255].
21535
21536 2006-11-04  Chris Toshok  <toshok@ximian.com>
21537
21538         * Form.cs: if the form isn't visible, Close() does nothing.
21539
21540 2006-11-03  Chris Toshok  <toshok@ximian.com>
21541
21542         * Form.cs (Close): if the form is modal, don't Dispose of it, only
21543         Hide it.
21544         (WndProc): don't Dispose after handling the WM_CLOSE message.
21545
21546         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
21547         them as such, instead of using casts from Control to Form.  Also,
21548         don't Dispose of the modal dialog when we fall out of the loop -
21549         Close() it instead.
21550
21551         fixes bug #79813.
21552
21553 2006-11-03  Chris Toshok  <toshok@ximian.com>
21554
21555         * Control.cs (Dispose): only go through the dispose thing if we're
21556         @disposing, and we haven't already been disposed.  Fixes bug
21557         #79814.
21558
21559         * Form.cs: no reason to call "base.Dispose()" here instead of
21560         "Dispose()".
21561
21562 2006-11-03  Mike Kestner  <mkestner@novell.com>
21563
21564         * ComboBox.cs : use ToString instead of casts in AddItem for
21565         sorting functionality.  Fixes #79812.
21566
21567 2006-11-03  Chris Toshok  <toshok@ximian.com>
21568
21569         * Application.cs: pave the way for actually using the thread
21570         exception dialog.  it's ifdefed out at the moment.
21571
21572 2006-11-03  Chris Toshok  <toshok@ximian.com>
21573
21574         * ThreadExceptionDialog.cs: until we get a better layout, actually
21575         hide the details textbox and label when we shouldn't see them.
21576
21577 2006-11-03  Jackson Harper  <jackson@ximian.com>
21578
21579         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
21580         multiline textboxes anymore.  This method also determines the
21581         width/height of a textboxes canvas area.
21582         - Sorta a revert of the last patch.  For multiline just position
21583         the controls, then bail.  This way the scrollbar width won't be
21584         altered.
21585
21586 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
21587
21588         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
21589         it dont need.  Fixes #79537.
21590
21591 2006-11-02  Jackson Harper  <jackson@ximian.com>
21592
21593         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
21594         send the status after firing the DndOver event.
21595
21596 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21597
21598         * TrackBar.cs: Now orientation only switches height / width if
21599         the control's handle is created (Win32 does it like this). Also 
21600         fixed a typo in ToString() for a test to pass, changed the 
21601         exception thrown in set_LargeChange and set_SmallChange to 
21602         match Win32 behaviour, and added TrackBar tests to the unit 
21603         tests.
21604
21605 2006-11-02  Chris Toshok  <toshok@ximian.com>
21606
21607         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
21608         not _NET_WM_STATE_NO_TASKBAR.
21609
21610 2006-11-02  Jackson Harper  <jackson@ximian.com>
21611
21612         * TextControl.cs: Increment count by one, since in the update view
21613         count - 1 is used.
21614
21615 2006-11-02  Jackson Harper  <jackson@ximian.com>
21616
21617         * TextBoxBase.cs: Use client rectangle not bounds for checking if
21618         the mouse is in the client rectangle (duh).
21619
21620 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21621         
21622         * TrackBar.cs: Fixed trackbar jumping around when clicking
21623         on it - the trackbar was not detecting correctly at which
21624         side of the thumb the click was done. (fixes #79718)
21625
21626 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
21627
21628         * ListBox.cs: scroll visible area when change SelectedIndex to
21629         a non visible area.  Fixes #79481.
21630
21631 2006-11-01  Jackson Harper  <jackson@ximian.com>
21632
21633         * TextControl.cs: When replacing the selection move the selection
21634         start/end/anchor to the end of the new text.
21635
21636 2006-11-01  Jackson Harper  <jackson@ximian.com>
21637
21638         * XplatUIWin32.cs: When setting the parent change the controls
21639         visibility to it's visibility flag, not to it's old parents
21640         visibility (.Visible walks the parent chain).
21641
21642 2006-11-01  Chris Toshok  <toshok@ximian.com>
21643
21644         * XplatUIX11.cs: revert the #79790 fix, as the simple.
21645         XSetTransientForHint fix breaks paint .net's tool windows.  more
21646         work needed for that one.
21647
21648 2006-11-01  Chris Toshok  <toshok@ximian.com>
21649
21650         * ScrollBar.cs: throw ArgumentException instead of Exception in
21651         LargeChange/SmallChange setters.  fixes unit tests.
21652
21653 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
21654
21655         * ContainerControl.cs: reverted rev.67183 (which was itself
21656         a reversion of rev.66853... eh).
21657         
21658         * Control.cs: Fixes Reflector hang by changing Focus() call
21659         to what it was before rev.66643 (calling Select() here sets 
21660         ActiveControl, which in some situations calls back Focus and 
21661         eventually does a stack overflow). Temp fix.    
21662         Changes to GetNextControl() to not look for children to select when
21663         parent cannot be selectable (so it looks for siblings instead)  
21664         
21665 2006-10-31  Mike Kestner  <mkestner@novell.com>
21666
21667         * CheckedListBox.cs : off by one error in returned index from
21668         ObjectCollection.Add.  Fixes #79758.
21669
21670 2006-10-31  Chris Toshok  <toshok@ximian.com>
21671
21672         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
21673         calls for the textbox/spinner, to keep from recursing to the point
21674         where we crash.  Fixes #79760.
21675
21676 2006-10-31  Chris Toshok  <toshok@ximian.com>
21677
21678         * ListControl.cs (set_SelectedValue): don't throw exceptions on
21679         null/"" value, just return.  matches ms's behavior and fixes some
21680         failing tests.
21681
21682 2006-10-31  Chris Toshok  <toshok@ximian.com>
21683
21684         * Control.cs (set_Capture): make a logic a little easier to
21685         follow.
21686
21687         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
21688         if it's being destroyed.  A necessary fix surely, but a bandaid
21689         also, to fix the stuck capture problem in bug #78413.
21690
21691 2006-10-31  Chris Toshok  <toshok@ximian.com>
21692
21693         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
21694         convention of clearing hwnd.ClientRect when we set the
21695         width/height (so it'll be recalculated by Hwnd).
21696
21697 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
21698
21699         * ContainerControl.cs: reversed Contains check from
21700         ActiveControl due to hanging problems. This fix
21701         partly regresses #79667 (button does not have
21702         initial focus), so this might be a symptom for 
21703         a larger parenting problem (set_ActiveControl
21704         is being called but the child control does
21705         not have the parent set yet?)   
21706         
21707 2006-10-31  Mike Kestner  <mkestner@novell.com>
21708
21709         * MenuAPI.cs : fix keynav when menu is click activated.
21710
21711 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
21712
21713         * ToolStrip*: Version 0.2.
21714
21715         * MenuStrip.cs: Version 0.1.
21716
21717         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
21718
21719 2006-10-30  Chris Toshok  <toshok@ximian.com>
21720
21721         [ fixes the oversized notify icon issue in bug #79745 ]
21722         
21723         * NotifyIcon.cs: scale the icon down to the size we're given by
21724         the XplatUI layer (this would be faster if we did it once instead
21725         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
21726         since it's never invoked.
21727
21728         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
21729         pixels high by default, so let's hardcode our systray icon to that
21730         size.  The SYSTEM_TRAY protocol should really have a way for
21731         client apps to query for the correct icon size.. but oh well.  A
21732         couple of patches to deal with the screwy client_window ==
21733         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
21734         instance, and also make sure we don't XSelectInput twice).
21735
21736 2006-10-30  Chris Toshok  <toshok@ximian.com>
21737
21738         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
21739         recreating forms.  Control recreation is the bane of my existence.
21740         Fix it in a way that keeps everyone happy.
21741
21742 2006-10-30  Chris Toshok  <toshok@ximian.com>
21743
21744         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
21745         just non-CHILD ones.  otherwise sometimes scrollbars end up with
21746         client_windows not being resized to the proper size (ReportBuilder
21747         shows this extremely well).
21748
21749 2006-10-30  Chris Toshok  <toshok@ximian.com>
21750
21751         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
21752         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
21753         showing up in the gnome taskbar.  Fixes bug #79790.
21754
21755 2006-10-30  Chris Toshok  <toshok@ximian.com>
21756
21757         * ApplicationContext.cs: guard against a NRE.
21758
21759         * Application.cs: null out the old MainForm for the context, so we
21760         don't try to use it again once it's disposed.  Fixes bug #79783.
21761
21762 2006-10-30  Chris Toshok  <toshok@ximian.com>
21763
21764         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
21765         BindingContext, set the data source directly, otherwise do the
21766         lazy approach - the actual ListManager will be created when we get
21767         a BindingContext. Fixes bug #79700.
21768
21769 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21770
21771         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
21772           XplatUIX11.cs: Remove old 2 parameter SetVisible.
21773
21774         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
21775
21776 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21777
21778         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
21779         of SetVisible that allows a window to be shown, but not activated.
21780         This is needed on Windows for MenuStrip, and can probably be used
21781         with MainMenu and ComboBox to fix the focus stealing issues on
21782         Windows.
21783
21784         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
21785
21786 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
21787
21788         * PictureBox.cs: Fix the output of the ToString method.
21789
21790 2006-10-29  Chris Toshok  <toshok@ximian.com>
21791
21792         * Control.cs (get_TopLevelControl): fix bug #79781.
21793
21794 2006-10-29  Chris Toshok  <toshok@ximian.com>
21795
21796         * ListControl.cs (set_DataSource): throw Exception here, not
21797         ArgumentException, to match MS behavior.
21798
21799 2006-10-29  Chris Toshok  <toshok@ximian.com>
21800
21801         * Form.cs: remove the try-catch's around calls to GetWindowState.
21802         We can just check the return value.
21803
21804         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
21805         Instead return -1.
21806
21807         * XplatUI.cs: Add note about additional return value for
21808         GetWindowState.
21809
21810 2006-10-29  Chris Toshok  <toshok@ximian.com>
21811
21812         * Control.cs (CreateHandle): when we create our handle, we also
21813         create the handles of our child controls.  Fixes one of the
21814         Control unit tests (CH11).
21815
21816 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
21817
21818         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
21819
21820 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
21821
21822         * ThemeClearlooks.cs: A little speedup.
21823
21824 2006-10-27  Chris Toshok  <toshok@ximian.com>
21825
21826         * Control.cs: implement Control.FromChildHandle in a way that
21827         matches the docs (and fixes the failed test.)
21828
21829 2006-10-27  Chris Toshok  <toshok@ximian.com>
21830
21831         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
21832         comments).
21833
21834         * DataGrid.cs: implement ResetForeColor such that the tests
21835         succeed.
21836         
21837 2006-10-27  Chris Toshok  <toshok@ximian.com>
21838
21839         * ToolBarButton.cs: setting text/tooltiptext to null results in it
21840         being set to "".  Fixes bug #79759.
21841
21842 2006-10-27  Jackson Harper  <jackson@ximian.com>
21843
21844         * TextControl.cs: We need to clear the entire selection area when
21845         setting the start, otherwise multiline selections are still
21846         visible.
21847
21848 2006-10-26  Chris Toshok  <toshok@ximian.com>
21849
21850         * PropertyGridView.cs: 
21851
21852         - ifdef all the code specific to the double
21853         buffer case, and provide some alternatives in the non-doublebuffer
21854         code, which makes heavy use of XplatUI.ScrollWindow to move things
21855         around without having to invalidate (and cause flicker).  There
21856         are still some drawing problems in the non-doublebuffered case, so
21857         DOUBLEBUFFER is defined by default.
21858
21859         - Fix the way dropdowns are handled.  now we explicitly watch for
21860         the events which might cause the dropdown to close, and break out
21861         of the nested event loop there.  This gets rid of all Capture
21862         code, at the expense of the Msg special casing.  Seems to work,
21863         though, and fixes bug #79743.
21864
21865 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
21866         * Control.cs: SetIsRecreating now recreates implicitly added
21867         child controls as well. Finally fixes #79629. The flag passed to 
21868         SetIsRecreating has also been removed since it wasn't used.
21869         
21870 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21871
21872         * PageSetupDialog.cs: Clean some code, fix some bits, 
21873         add some checks, and add a printer sub-dialog.
21874
21875 2006-10-26  Chris Toshok  <toshok@ximian.com>
21876
21877         * PropertyGrid.cs: make set_SelectedObject call
21878         set_SelectedObjects, and move the duplicate logic to the
21879         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
21880
21881         * PropertyGridView.cs: hide the textbox when we get a
21882         SelectedObjectsChanged event.
21883
21884         Fixes bug #79748.
21885
21886 2006-10-26  Chris Toshok  <toshok@ximian.com>
21887
21888         * PropertyGridView.cs: deal with the type converter not supporting
21889         GetStandardValues() or GetStandardValues() returning null, which
21890         is does in the default case.  Fixes #79742.
21891
21892 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
21893
21894         * CheckedListBox.cs: nunit no longer crashes when selecting 
21895         Project/Edit menu option
21896         
21897 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
21898
21899         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
21900         is no menu selected. fixes #79739
21901
21902 2006-10-25  Chris Toshok  <toshok@ximian.com>
21903
21904         * PropertyGridView.cs: factor out the splitter invalidation code
21905         into the SplitterPercent setter, and for kicks implement the
21906         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
21907         amount in either direction.
21908
21909 2006-10-25  Chris Toshok  <toshok@ximian.com>
21910
21911         * PropertyGridView.cs: do some cleanup of the brush used to draw
21912         text - read only fields should be grayed out.  not sure how to do
21913         this with the textbox, though.  but the textbox's should also be
21914         readonly now at least.  Also, hide/show the textbox when resizing
21915         the control.
21916         
21917         * CursorConverter.cs: use System.Reflection when getting the
21918         properties of Cursors, as TypeDescriptor.GetProperties isn't
21919         returning static properties.
21920
21921 2006-10-25  Chris Toshok  <toshok@ximian.com>
21922
21923         * PropertyGridView.cs: factor out the up/down handling, and reuse
21924         it for page up/down.  also add End/Home support.
21925
21926 2006-10-25  Chris Toshok  <toshok@ximian.com>
21927
21928         * PropertyGridView.cs:
21929
21930         - ensure the selected grid item is visible in the scrolled area,
21931         fixes bug #79572.
21932
21933         - fix Keys.Down handling when you're on the last item in the
21934         propertygrid.
21935
21936 2006-10-25  Mike Kestner  <mkestner@novell.com>
21937
21938         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
21939         clicks too.  Fixes #79725.
21940
21941 2006-10-24  Chris Toshok  <toshok@ximian.com>
21942
21943         * PropertyGrid.cs: use property.Converter instead of
21944         TypeDescriptor.GetConverter(property.PropertyType), so we catch
21945         TypeConverters declared on the property as well as on the
21946         PropertyType.  Fixes bug #79678.
21947
21948 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
21949
21950         * MimeIcon.cs, Mime.cs:
21951           Fallback to the default platform handler if no shared mime info
21952           stuff exists (fixes #79693).
21953
21954 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21955         * ContainerControl.cs: Incorrect contains check in ActiveControl 
21956         from previous fix (duh).
21957
21958 2006-10-20  Chris Toshok  <toshok@ximian.com>
21959
21960         * PropertyGridView.cs: the dropdown should be MIN(number of items
21961         in list, 15).  Fixes #79551.
21962
21963 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21964         Fixes #79384, #79394, #79652, #79667
21965         * Application.cs: 
21966         
21967         - Modal windows are now destroyed in the proper order for windows
21968         
21969         * ContainerControl.cs:
21970         
21971         - ActiveControl setter has more conditions on when to return:
21972                 - if we're reselecting the active control, but it actually
21973                 didn't have focus (window hidden or some such), it runs
21974                 - if the active control being selected doesn't actually 
21975                 exist in the container, it returns
21976         
21977         * Form.cs
21978         
21979         - The ShowDialog now gets the current form as the owner when
21980         invoking without parameters, and correctly activates the owner 
21981         when returning
21982         
21983         * MessageBox.cs
21984         
21985         - MessageBox now catches the Escape key to exit
21986
21987 2006-10-20  Chris Toshok  <toshok@ximian.com>
21988
21989         * PropertyGridView.cs: fix a number of issues (bug #78565, and
21990         most of bug #79676):
21991
21992         - you can navigate around the property grid with the arrow keys.
21993
21994         - the dropdown is sized properly when the pg has a vertical
21995         scrollbar.
21996
21997         - fix the indentation for subentries, and properly select the
21998         entire label rect.
21999
22000         - fix the gray bar's drawing (only draw it to the last element,
22001         not for the height of the control.  Also make sure we draw that
22002         last horizontal grid line.
22003
22004         - use the same mechanism the datagrid uses wrt the editing textbox
22005         when scrolling/resizing/etc.  Namely, we hide it first, do the
22006         operation, then show it again (if it's still visible).
22007         
22008         - aggressively remove a lot of unnecessary refreshes (and also
22009         calls to Invalidate(). call more limited variants, and only redraw
22010         what we need.)
22011         
22012         * PropertyGrid.cs:
22013
22014         - when we're populating the merged collection, fill in the UI
22015         parent with either the passed in item, or the category item we
22016         create.
22017
22018         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
22019
22020         * GridItem.cs: drop some fully qualified names.
22021         
22022         * GridEntry.cs: add a "UIParent", which is basically the parent
22023         treenode.
22024
22025         * GridItemCollection.cs: add an IndexOf method.
22026
22027 2006-10-20  Mike Kestner  <mkestner@novell.com>
22028
22029         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
22030         a working win32 NC invalidation mechanism, we can't invalidate
22031         menus.  [Fixes #79705]
22032
22033 2006-10-20  Mike Kestner  <mkestner@novell.com>
22034
22035         * ListBox.cs : don't update the VScrollbar if the list is empty,
22036         just hide it.  [Fixes #79692]
22037
22038 2006-10-20  Jackson Harper  <jackson@ximian.com>
22039
22040         * RichTextBox.cs: Handle some special chars better, and don't skip
22041         the entire group when we encounter a special char that we don't
22042         handle correctly.
22043
22044 2006-10-18  Chris Toshok  <toshok@ximian.com>
22045
22046         * PropertyGridView.cs: address a number of issues from bug #79676,
22047         mostly of the cosmetic variety.
22048
22049         - The highlight rectangle for indented items not extends all the
22050         way to the left.
22051
22052         - Indented items aren't indented so much.
22053
22054         - the dropdown is properly sized width-wise if the pg has a
22055         vertical scrollbar.
22056
22057 2006-10-18  Chris Toshok  <toshok@ximian.com>
22058
22059         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
22060         systray stuff is rather convoluted to begin with.
22061
22062         systray icons are a single window for some reason (that I haven't
22063         figured out yet), and for them, client_window == whole_window.
22064         Given the way the tests are structured elsewhere to determine
22065         which paints are pending (client vs. nc), that situation will
22066         always yield PAINT, not NCPAINT.  So, if we have a pending
22067         nc_expose and no pending expose, remove the hwnd from the paint
22068         queue, and also set nc_expose_pending to false, to keep us from
22069         blocking further expose's adding the hwnd to the paint queue.
22070
22071         phew.  like i said, a rather convoluted change.  Fixes the
22072         notifyicon repaint issues in bug #79645.
22073
22074 2006-10-18  Chris Toshok  <toshok@ximian.com>
22075
22076         * Form.cs: when getting the backcolor of the form, don't get
22077         base.BackColor, as this allows parents to influence the background
22078         color.  This breaks mdi forms.  Instead, if the background_color
22079         is empty, return the default.
22080
22081 2006-10-18  Chris Toshok  <toshok@ximian.com>
22082
22083         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
22084         to being private instead of internal static.
22085
22086         * Control.cs: remove all the stupid ParentWaitingOnRecreation
22087         crap, it wasn't working for more deeply nested controls anyway,
22088         and we already have the is_recreating flag - use that instead.
22089         Before calling DestroyHandle in RecreateHandle, recurse through
22090         the control tree setting it to true.  this returns the recreate
22091         code to much of its original simplicity, while now guaranteeing we
22092         actually recreate everything we're supposed to.  This change gets
22093         fyireporting actually showing mdi children.
22094
22095 2006-10-17  Chris Toshok  <toshok@ximian.com>
22096
22097         * Form.cs: remove some debug spew, and collapse some duplicate
22098         code at the end of SetClientSizeCore.
22099
22100         * XplatUIX11.cs: 
22101         - add some more debug spew here too wrt Destroy handling.
22102         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
22103         in Control's handling of WM_DESTROY.
22104         - Remove the handling of zombie window DestroyNotifies from the
22105         event loop - we don't need it.  Now the only DestroyNotifies we
22106         actually handle are ones generated by X.
22107         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
22108         match gtk's (functioning) handling of this. This keep metacity
22109         from leaving droppings in the form of wm borders with no window
22110         contents all over the place.
22111
22112         * Control.cs:
22113         - add a bunch of debug spew wrt control recreation.
22114         - fix a bug where we weren't tracking Visible properly on
22115         recreated hwnds.
22116         - fixed the WM_PAINT double buffer handling to support re-entrant
22117         calls (yes, i know it's gross, but it's happening to us).
22118
22119 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22120         * ThemeWin32Classic.cs: changed drawing of selected days
22121         to make them look better.
22122
22123 2006-10-16  Chris Toshok  <toshok@ximian.com>
22124
22125         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
22126         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
22127
22128         * XplatUIX11.cs: move away from using hwnd.client_dc and
22129         hwnd.non_client_dc and on to a stack of dc's (and in window's
22130         case, PAINTSTRUCT's), so we can deal with nested Paint calls
22131         without puking or not disposing of Graphics objects.
22132
22133         * XplatUIOSX.cs: same.
22134
22135         * XplatUIWin32.cs: same.
22136
22137 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
22138
22139         * FileDialog.cs: Don't call on_directory_changed inside
22140           OnSelectedIndexChanged (it changes the SelectedIndex too).
22141           Instead move it to OnSelectionChangeCommitted.
22142
22143 2006-10-13  Chris Toshok  <toshok@ximian.com>
22144
22145         * XplatUIX11.cs: more Destroy work.  the current code does the
22146         following things, in order:
22147
22148         1. Enumerates all handles of all controls at or below the one
22149         being destroyed, in pre-order.  As it is doing this, it marks the
22150         handles as zombie and clears all references to them.
22151         
22152         2. calls XDestroyWindow on the window passed in.
22153
22154         3. SendMessage's WM_DESTROY to all he handles in the accumulated
22155         list.
22156
22157 2006-10-13  Chris Toshok  <toshok@ximian.com>
22158
22159         * XplatUIX11.cs: set hwnd.zombie to true before calling
22160         SendMessage (WM_DESTROY).  this keeps us from marking the new
22161         window a zombie, and also keeps us from calling sendmessage at
22162         all.
22163
22164 2006-10-13  Jackson Harper  <jackson@ximian.com>
22165
22166         * TextControl.cs: Do not show the caret and selection at the same
22167         time.  Reduces ugliness by 35%.
22168
22169 2006-10-13  Chris Toshok  <toshok@ximian.com>
22170
22171         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
22172         zombie after we do the recursive call, so we actually do call
22173         SendMessage on the children controls.
22174         (GetMessage): if we find a pending paint event for a zombie hwnd,
22175         remove the hwnd from the paint queue, or else it will always be
22176         there (and we'll effectively loop infinitely)
22177
22178 2006-10-13  Mike Kestner  <mkestner@novell.com>
22179
22180         * MenuItem.cs : add Selected format under keynav too.
22181         Fixes #79528.
22182
22183 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
22184
22185         * PropertyGrid.cs: Fixed some NRE's and small difference between our
22186         implementation and that of MS.
22187
22188 2006-10-13  Chris Toshok  <toshok@ximian.com>
22189
22190         * Control.cs (OnInvalidated) only futz with the invalid_region if
22191         the control is double buffered.  this fixes the apparent hang in
22192         the ListView unit tests.  Someone needs to make the
22193         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
22194
22195 2006-10-13  Chris Toshok  <toshok@ximian.com>
22196
22197         * PropertyGridView.cs:
22198
22199         - do a little refactoring so that only one place calls
22200         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
22201         else call that.  Also make it Refresh, since there are redraw bugs
22202         otherwise (we should take a look at that...)
22203
22204         - do a little more refactoring work to share the body of code
22205         involved with the drop down.  it was duplicated in the code
22206         dealing with the listbox handling and in the code dealing with the
22207         UITypeEditors.
22208
22209         - add a Capture to the dropdown form's control once it's
22210         displayed, and add a MouseDown handler that checks to make sure
22211         the position is inside the control.  If it's not, close the
22212         dropdown.  This fixes #78190.
22213
22214         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
22215         if the value is different than the initial value.
22216         
22217 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
22218
22219         * Control.cs: see #78650
22220         - Fixed GetNextControl for several cases:
22221                 - Changed FindFlatForward to return 
22222                 correct sibling control when more than one
22223                 control has same TabIndex as the currently 
22224                 focused one.
22225                 - Changed FindFlatBackward to loop children
22226                 from last to first and apply same logic as in
22227                 FindFlatForward
22228                 - Changed FindControlForward to search for
22229                 children when control is not a container
22230                 but has children, or search for siblings if
22231                 control is a container...
22232                 - Changed FindControlBackward   to continue
22233                 searching for child controls when hitting 
22234                 Panel-like parents
22235                 
22236         - Fixed Focus method to update ActiveControl
22237         (FocusTest.FocusSetsActive failure)
22238         
22239         * TabControl.cs:
22240         - Focus rectangle now refreshes when gaining
22241         or losing focus
22242         - Removed grab for Tab key on IsInputKey that 
22243         was keeping tab navigation from working (#78650)
22244
22245 2006-10-13  Chris Toshok  <toshok@ximian.com>
22246
22247         * PropertyGridView.cs:
22248         - Rewrite SetPropertyValue to loop over SelectedGridItem's
22249         SelectedObjects.
22250
22251         - Deal with GridItem.Value == null a few places.
22252
22253         * PropertyGrid.cs: 
22254         - replace the PopulateGridItemCollection with a pair of methods
22255         which compute the intersection of all the properties in the
22256         SelectedObjects array.  Fixes #79615.
22257
22258         - Throw ArgumentException from set_SelectedObjects if there's a
22259         null in the array.
22260
22261         - Add GetTarget method which can be used to traverse up the
22262         GridItem.Parent chain.  It depends on the assumption that
22263         selected_objects for different GridEntries are always in the same
22264         order (a safe assumption).  Use this method and loop over all the
22265         selected objects in the entry when calling RemoveValueChanged and
22266         AddValueChanged.
22267         
22268         * GridEntry.cs: Make this handle multiple selected objects.
22269         .Value returns null if not all the selected objects share the same
22270         value.
22271
22272 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
22273         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
22274           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
22275           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
22276           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
22277           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
22278         add additional functionality.
22279
22280 2006-10-12  Mike Kestner  <mkestner@novell.com>
22281
22282         * ErrorProvider.cs : new ToolTipWindow ctor sig.
22283         * HelpProvider.cs : new ToolTipWindow ctor sig.
22284         * ToolTip.cs : remove ToolTip param from Window sig since it is
22285         not used.
22286         * ToolBar.cs : add tooltip support.  Fixes #79565.
22287
22288 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22289
22290         * ComboBox.cs: move the events in set_SelectedIndex to 
22291         after the call to HighlightIndex in order to avoid 
22292         possible recursion and subsequent problems with the call
22293         to HighlightIndex and include a range check in 
22294         set_HighlightIndex. Fixes #79588
22295         
22296 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22297
22298         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
22299         to ui thread's settings instead of sunday. 
22300         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
22301
22302 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22303
22304         * DateTimePicker.cs
22305         * MonthCalendar.cs
22306         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
22307         and implement missing functionality (selecting different parts 
22308         of the date and edit them individually with the keyboard).
22309         
22310 2006-10-11  Chris Toshok  <toshok@ximian.com>
22311
22312         * Control.cs (OnInvalidated): fix NRE relating to last change.
22313
22314 2006-10-11  Chris Toshok  <toshok@ximian.com>
22315
22316         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
22317         atoms in _NET_WM_STATE here if the window is maximized.  We need
22318         to do this because we're *replacing* the existing _NET_WM_STATE
22319         property, so those atoms will be lost otherwise, and any further
22320         call to GetWindowState will return Normal for a window which is
22321         actually maximized.  Fixes #79338.
22322
22323 2006-10-11  Jackson Harper  <jackson@ximian.com>
22324
22325         * TextControl.cs: Special case for setting selection end to
22326         selection start, we basically kill the anchor.
22327         - some todo comments.
22328
22329 2006-10-11  Chris Toshok  <toshok@ximian.com>
22330
22331         * Control.cs: switch to using an "invalid_region" to track which
22332         parts of the image buffer need updating.  This is more code than
22333         the simple fix from r66532.  That version just attempted to always
22334         fill the entire buffer on redraw, which turns out to be
22335         inefficient when invalidating small rectangles.  This version
22336         simply adds the invalid rectangle to the invalid region.  When we
22337         get any WM_PAINT message we see if it can be filled using the
22338         image buffer, and if it can't (if the paint event's clip rectangle
22339         is visible in the invalid region) we first fill the image buffer.
22340         So, the image buffer is still a cache, we just fill it lazily.
22341
22342         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
22343         need it any longer.
22344
22345 2006-10-11  Chris Toshok  <toshok@ximian.com>
22346
22347         * XplatUIX11.cs (SetWindowPos): we need to update both position as
22348         well as size after calling XMoveResizeWindow.  This keeps us from
22349         ignoring future SetWindowPos calls.  Fixes the disappearing
22350         DateTimePicker in the ToolBarDockExample from bug #72499.
22351
22352 2006-10-11  Chris Toshok  <toshok@ximian.com>
22353
22354         * TextBoxBase.cs: reorder things a bit when it comes to
22355         resizing-causing-recalculation.  we were recalculating the
22356         document when our position was changed, which shouldn't happen.
22357         We only care about size changes.  Clear up some more redundant
22358         recalculation calls while I'm at it.  This makes the toolbar dock
22359         example snappy when you're just dragging toolbars around (since it
22360         causes a relayout whenever you move one.)
22361
22362 2006-10-11  Chris Toshok  <toshok@ximian.com>
22363
22364         * ToolBarButton.cs (get_Rectangle): this only returns
22365         Rectangle.Empty if Visible == false, or Parent == null.
22366         Parent.Visible doesn't matter.
22367
22368 2006-10-10  Chris Toshok  <toshok@ximian.com>
22369
22370         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
22371         by .net 1.1, so switch to an internal method instead.
22372
22373 2006-10-10  Chris Toshok  <toshok@ximian.com>
22374
22375         * Control.cs (WM_PAINT): when a control is double buffered we draw
22376         initially to the ImageBuffer and then copy from there.  But when a
22377         parent control which has child controls is double buffered, the
22378         initial drawing doesn't encompass the entire ClientRectangle of
22379         the parent control, so we end up with uninitialized bits (this is
22380         easily seen by dragging the top toolbar in
22381         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
22382         manually set the ClipRectangle of the paint_event (only the one we
22383         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
22384         of the nastiness in bug #72499.
22385
22386         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
22387         which we use in Control.cs's WM_PAINT handling.
22388
22389 2006-10-10  Jackson Harper  <jackson@ximian.com>
22390
22391         * TextBoxBase.cs: Finish off the autoscrolling stuff.
22392
22393 2006-10-10  Chris Toshok  <toshok@ximian.com>
22394
22395         * Cursor.cs: Apply a slightly different patch to the one suggested
22396         in #79609.
22397
22398 2006-10-10  Jackson Harper  <jackson@ximian.com>
22399
22400         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
22401         not the parent form.
22402         * TextControl.cs: use difference in old line count vs new count to
22403         calculate how many lines were added, this takes into account soft
22404         line breaks properly.
22405
22406 2006-10-10  Chris Toshok  <toshok@ximian.com>
22407
22408         * LinkLabel.cs: don't call MeasureCharacterRanges against a
22409         rectangle located at 0,0 and the size of the text.  Use
22410         ClientRectangle instead.  This fixes rendering of non-left aligned
22411         link labels.
22412
22413 2006-10-10  Jackson Harper  <jackson@ximian.com>
22414
22415         * TextBoxBase.cs: When we set the selection start position the
22416         caret.
22417         * TextControl.cs: Need to update the caret when we decrement it to
22418         zero.
22419         - Make sure that the selection_visible flag gets reset to false if
22420         the selection isn't visible.  Before this you could get it set to
22421         visible by changing the selection start, then changing the end to
22422         equal the start.
22423
22424 2006-10-09  Jackson Harper  <jackson@ximian.com>
22425
22426         * TreeView.cs: Don't update scrollbars when we aren't visible.
22427         * TreeNodeCollection.cs: Only need to update scrollbars if being
22428         added to an expanded visible node or the root node.
22429
22430 2006-10-09  Chris Toshok  <toshok@ximian.com>
22431
22432         * XplatUIX11.cs (SendMessage): fix NRE.
22433
22434 2006-10-09  Jackson Harper  <jackson@ximian.com>
22435
22436         * TextBoxBase.cs: Implement horizontal autoscrolling.
22437         * TextControl.cs: Add a movement types that allows moving forward
22438         and backwards without wrapping.
22439
22440 2006-10-09  Mike Kestner  <mkestner@novell.com>
22441
22442         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
22443         with focus "expansion" of labels.  Fixes #79532 and then some.
22444         * ThemeWin32Classic.cs : add LineLimit to ListView label format
22445         when wrapping.
22446
22447 2006-10-09  Jackson Harper  <jackson@ximian.com>
22448
22449         * TextBoxBase.cs: Set the default max values to MaxValue since
22450         we use the scrollbar for autoscrolling and the default value is
22451         100.  If we don't do this the caret won't keep up with typing
22452         after about 18 characters.
22453         * TextControl.cs: Make sure the selection is offset by the
22454         viewport x.  This fixes selection when using auto scrolling.
22455
22456 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
22457         
22458         * Form.cs: The active control should be selected after the 
22459         OnLoad so that any child control initialization that affects
22460         the selection is done. Fixes #79406
22461
22462 2006-10-06  Chris Toshok  <toshok@ximian.com>
22463
22464         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
22465         to have no evil effects.
22466
22467         - Stop selecting StructureNotifyMask on non-toplevel windows.
22468
22469           The only way children should be resized is by using the SWF api,
22470           and we already send WM_WINDOWPOSCHANGED messages in those cases.
22471           Toplevel windows can be interacted with via the window manager,
22472           and so we keep the input mask there.
22473
22474           The other event StructureNotifyMask gives us (that we care
22475           about) is DestroyNotify.  The code is already structured such
22476           that it assumes we won't be getting a DestroyNotify event for
22477           the window we pass to XDestroyWindow (which is what
22478           StructureNotifyMask is supposed to guarantee.)  So, that code
22479           shouldn't be affected by this either.
22480
22481         - Stop selecting VisibilityChangeMask altogether.
22482
22483           We weren't doing anything with the resulting events anyway.
22484         
22485         This vastly reduces the number of X requests and events we see
22486         when resizing/laying out a large ui.
22487
22488 2006-10-06  Chris Toshok  <toshok@ximian.com>
22489
22490         * ScrollableControl.cs (DisplayRectangle): we need to take into
22491         account the DockPadding regardless of whether or not auto_scroll
22492         == true.  rework this slightly to this effect, and fix bug #79606,
22493         and part of #72499 (you can now see the drag handles and drag
22494         toolbars around).
22495
22496 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
22497
22498         * ListViewItem.cs: Collections of selected and checked items are now
22499         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
22500         we mark the collection "dirty".
22501         * ListView.cs: Marked collections readonly. Modified UpdateSelection
22502         to only clear SelectedItems when a new item is selected and MultiSelect
22503         is enabled. CheckedItems and SelectedItems now subscribe to Changed
22504         event of ListViewItemCollection, and mark its list dirty whenever
22505         that event is fire. This allows us to return selected/checked items 
22506         in the same order as they are in the Items collection. This matches
22507         the MS behavior.
22508
22509 2006-10-06  Chris Toshok  <toshok@ximian.com>
22510
22511         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
22512         right mouse clicks.  Fixes bug #79593.
22513
22514 2006-10-06  Chris Toshok  <toshok@ximian.com>
22515
22516         * Splitter.cs: doh, fix splitters that don't want to cancel the
22517         movement when you drag them.  Also, impose the limits on the
22518         values we send to the SplitterMovingEvent.  Fixes #79598.
22519
22520 2006-10-06  Jackson Harper  <jackson@ximian.com>
22521
22522         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
22523         since we use this for auto scrolling also.
22524
22525 2006-10-05  Chris Toshok  <toshok@ximian.com>
22526
22527         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
22528         beginning to think that most datagrid column types don't need this
22529         method.  Fixes bug #79392.
22530
22531 2006-10-05  Chris Toshok  <toshok@ximian.com>
22532
22533         * DataGrid.cs: move back to a more lazy scheme for creating the
22534         CurrencyManager, so we aren't updating it every time you set
22535         either DataSource or DataMember.  Also, don't call
22536         RecreateDataGridRows if the currency manager hasn't changed.
22537
22538 2006-10-05  Chris Toshok  <toshok@ximian.com>
22539
22540         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
22541         emitted, SelectedIndex should already be updated.  Fixes bug
22542         #78929.
22543
22544 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
22545
22546         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
22547           ToolStripTextBox.cs: Initial commit.
22548         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
22549
22550 2006-10-05  Jackson Harper  <jackson@ximian.com>
22551
22552         * TabControl.cs: We need to invalidate the tab control area when
22553         new ones are added (duh).
22554
22555 2006-10-03  Chris Toshok  <toshok@ximian.com>
22556
22557         * Form.cs (ProcessDialogKey): if the focused control is in this
22558         form and is a button, call its PerformClick method here.  Fixes
22559         #79534.
22560
22561 2006-10-04  Jackson Harper  <jackson@ximian.com>
22562
22563         * TabPage.cs: Ignore setting of Visible, and add an internal
22564         method for setting the controls visibility.  TabPage's Visible
22565         property is a little strange on MS, this seems to make us
22566         compatible, and fixes cases where people set all the tab pages to
22567         visible.
22568         * TabControl.cs: Use the new internal setting on tab pages
22569         visibility.
22570
22571 2006-10-03  Mike Kestner  <mkestner@novell.com>
22572
22573         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
22574
22575 2006-10-03  Mike Kestner  <mkestner@novell.com>
22576
22577         * ListView.cs : use is_visible instead of Visible to check if 
22578         scrollbars should be placed/sized.  Also some max_wrap_width
22579         love for LargeIcon view.  [Fixes #79533]
22580
22581 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
22582
22583         * TextControl.cs :
22584           Make set_TextAlign() do actually update the align. Fixed #78403.
22585
22586 2006-10-03  Chris Toshok  <toshok@ximian.com>
22587
22588         * DataGrid.cs: fix a crash when switching datasources if the
22589         vertical scrollbar is at someplace other than Value = 0.  Also,
22590         reduce the number of recalculation passes we do in SetDataSource
22591         from 2 to 1.
22592
22593 2006-10-03  Jackson Harper  <jackson@ximian.com>
22594
22595         * TextBoxBase.cs: Move the if value the same bail check up, we
22596         don't want to empty the document if it is already empty, this
22597         seems to severly mess up the caret.  TODO: I should probably fix
22598         the empty statement to update teh caret somehow.
22599
22600 2006-10-03  Chris Toshok  <toshok@ximian.com>
22601
22602         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
22603         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
22604         reflection, an internal row type, properties on said type, etc.)
22605         will work with our datagrid.  Fixes #79531.
22606
22607 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
22608
22609         * FileDialog.cs: Don't crash if a path is not accessible
22610           (System.UnauthorizedAccessException). Fixes #79569.
22611         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
22612           a ':' too. Return unknown icon for those paths/files.
22613
22614 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
22615
22616         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
22617         GetContainerControl returns null.
22618
22619 2006-10-02  Chris Toshok  <toshok@ximian.com>
22620
22621         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
22622         call to XGetWindowAttributes instead of "handle".  fixes an X
22623         error using notifyicon after the NotifyIconWindow to Form base
22624         class switch.
22625
22626 2006-10-02  Chris Toshok  <toshok@ximian.com>
22627
22628         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
22629         server grab and looping we need to do to get down to the most
22630         deeply nested child window.
22631         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
22632         QueryPointer again after the WarpPointer so we can generate a
22633         proper (fake) MotionNotify event to be enqueued in the destination
22634         window's queue.
22635         (GetCursorPos): call QueryPointer.
22636
22637         Fixes #79556.
22638
22639 2006-10-02  Jackson Harper  <jackson@ximian.com>
22640
22641         * NotifyIcon.cs: Derive the notify icon from a form, so things
22642         like FindForm work on it.
22643         - Swallow the WM_CONTEXTMENU message, since that is generated on
22644         mouse down, and context menu is a mouse up kinda guy.  I believe
22645         the correct fix here is probably to make the notify icon entirely
22646         NC area, but this seems to work fine for anyone not manipulating
22647         WndProc.
22648
22649 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
22650
22651         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
22652           ToolStripItemCollection.cs, ToolStripLabel.cs,
22653           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
22654           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
22655           Initial implementation.
22656         * TextRenderer.cs: Provide padding to MeasureText.
22657
22658 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
22659
22660         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
22661         of ButtonBaseAccessibleObject. Fix bug #79552.
22662
22663 2006-10-02  Jackson Harper  <jackson@ximian.com>
22664
22665         * MdiWindowManager.cs: When maximizing use the containers client
22666         rect, not it's bounds, so nc area is accounted correctly.
22667         - Use the parent form's size for the menu position, since the
22668         client isn't always the full form size.
22669
22670 2006-10-01  Chris Toshok  <toshok@ximian.com>
22671
22672         * ScrollableControl.cs: make sure neither right_edge or
22673         bottom_edge are < 0, since they're used as LargeChange for the
22674         horiz/vert scrollbars respectively.  Fixes #79539.
22675
22676 2006-10-01  Chris Toshok  <toshok@ximian.com>
22677
22678         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
22679         the xplatuix11 code can cause us to destroy/recreate our handle.
22680
22681         * XplatUIX11.cs
22682         (SystrayAdd):
22683         - this code can be invoked many times for the same Hwnd.  Make
22684           sure we only destroy the client window once (the first time this
22685           method is called).  This fixes bug #79544.
22686         - Remove the call to the improperly bound XSync.  why we had two
22687           bindings to this, I will never know, but this call resulted in
22688           events being discarded from the queue(!).
22689         - correct a misunderstanding of _XEMBED_INFO - the second atom is
22690           not our current state but the state we wish to be in.  So, 0 if
22691           we don't want to be mapped.  Change it to 1.
22692         (SystrayRemove): The XEMBED spec makes mention of the fact that
22693         gtk doesn't support the reparent of client windows away from the
22694         embedder.  Looking at gtksocket-x11.c seems to agree with this.
22695         The only avenue we have for removing systray icons is to destroy
22696         them.  We don't want the handle to go away for good, though, so
22697         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
22698         #79545.
22699         
22700 2006-10-01  Chris Toshok  <toshok@ximian.com>
22701
22702         * Form.cs (WndProc): inline the native_enabled variable usage into
22703         the cases in which it's used.  Fixes #79536.
22704
22705 2006-09-29  Mike Kestner  <mkestner@novell.com>
22706
22707         * ListView.cs : toggle the selection state for ctrl clicks in 
22708         multiselect mode. [Fixes #79417]
22709
22710 2006-09-29  Mike Kestner  <mkestner@novell.com>
22711
22712         * ListView.cs : kill CanMultiSelect and refactor the selection
22713         code to support multiselection in the absence of mod keys. Steal
22714         arrow/home/end keys by overriding InternalPreProcessMessage to
22715         restore regressed keynav behavior.
22716         [Fixes #79416]
22717
22718 2006-09-29  Jackson Harper  <jackson@ximian.com>
22719
22720         * MdiClient.cs: Repaint the titlebars when the active window is
22721         changed.
22722
22723 2006-09-29  Chris Toshok  <toshok@ximian.com>
22724
22725         * Application.cs: when entering a runloop with a modal, make sure
22726         the hwnd is enabled.  Fixes #79480.
22727
22728 2006-09-29  Chris Toshok  <toshok@ximian.com>
22729
22730         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
22731         when ListManager.CanAddRows == false, bump us back one.
22732
22733         * DataGridColumnStyle.cs (ParentReadOnly): remove the
22734         listmanager.CanAddRows check.  This makes ArrayLists uneditable
22735         using a datagrid, which is not right.
22736         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
22737         is an IEditable, but call property_descriptor.SetValue regardless.
22738         fixes #79435.
22739
22740 2006-09-29  Chris Toshok  <toshok@ximian.com>
22741
22742         * DataGridBoolColumn.cs: we need to test equality in the face of
22743         possible null values (as is the case with the default NullValue).
22744         This patch keeps us from crashing in that case.
22745
22746 2006-09-29  Jackson Harper  <jackson@ximian.com>
22747
22748         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
22749         here, since it will get called for every node collection in the
22750         tree. This is now done in the treeview once the sorting is
22751         finished.
22752         * TreeView.cs: Recalculate the visible order, and update the
22753         scrollbars after sorting, set the top nope to the root so that the
22754         recalc actually works.
22755
22756 2006-09-29  Chris Toshok  <toshok@ximian.com>
22757
22758         * LinkLabel.cs: more handling of the default link collection in
22759         the face of LinkArea manipulation.  The default link collection
22760         contains 1 element (start=0,length=-1).  If the user sets LinkArea
22761         to anything and the links collection is the default, clear it.
22762         Then only add the link if its nonempty.  Fixes #79518.
22763
22764 2006-09-29  Chris Toshok  <toshok@ximian.com>
22765
22766         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
22767         piece correctly when we hit a '\n'.  Fixes #79517.
22768
22769 2006-09-29  Chris Toshok  <toshok@ximian.com>
22770
22771         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
22772         change the binding of gdk_init_check to take two IntPtr's, and
22773         pass IntPtr.Zero for both of them.  Fixes #79520.
22774
22775 2006-09-29  Mike Kestner  <mkestner@novell.com>
22776
22777         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
22778         [Fixes #78779]
22779
22780 2006-09-28  Jackson Harper  <jackson@ximian.com>
22781
22782         * XplatUIX11.cs: When translating NC messages make sure we go from
22783         whole window to screen, not client window to screen.
22784         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
22785         method doesn't exist
22786         - Skip over controls that aren't forms when arranging.
22787
22788 2006-09-28  Jackson Harper  <jackson@ximian.com>
22789
22790         * XplatUIWin32.cs: Clip the rect to the parent window.
22791         * XplatUIStructs.cs: Add clipping modes struct.
22792         * InternalWindowManager.cs: New private method that factors title
22793         bar heights in when calculating the pos of an NC mouse message.
22794         - Use SendMessage to force a paint when the form's size is changed
22795         instead of painting the decorations immediately.
22796         - Don't let the NC button click messages get to DefWndProc,
22797         because they will attempt to handle windowing themself, and this
22798         messes up z-order (it will put them in front of the scrollbars).
22799         * XplatUIX11.cs: Make sure that we don't reset window managers if
22800         we already have one (ie the window is an MDI window).
22801
22802 2006-09-28  Chris Toshok  <toshok@ximian.com>
22803
22804         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
22805         menu code really needs going over.
22806
22807 2006-09-27  Chris Toshok  <toshok@ximian.com>
22808
22809         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
22810         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
22811         window is maximizable.  So, we need to make sure that even if we
22812         clear the border/wm frame of those functions, they're still
22813         available (basically, we remove the decoration without removing
22814         the function).  Half the fix for #79338.
22815
22816 2006-09-27  Chris Toshok  <toshok@ximian.com>
22817
22818         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
22819         Fixes bug #79515.
22820
22821 2006-09-27  Chris Toshok  <toshok@ximian.com>
22822
22823         * Splitter.cs: reorder things a bit so that we don't actually
22824         draw/move the splitter until after calling OnSplitterMoving.  This
22825         lets users cancel/disallow the movement by explicitly setting
22826         event.SplitX/SplitY.  Fixes #79372.
22827
22828 2006-09-27  Jackson Harper  <jackson@ximian.com>
22829
22830         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
22831         because it is most likely on a window being destroyed, and that
22832         will give us an X11 error.
22833
22834 2006-09-27  Chris Toshok  <toshok@ximian.com>
22835
22836         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
22837         the dropdown button now toggles between showing and hiding the
22838         dropdown.  Also, get rid of dropdown_form_showing and just use
22839         dropdown_form.Visible.  We still don't do a grab, but I'll leave
22840         that part to someone who has handled Capture-fu before.
22841
22842 2006-09-27  Chris Toshok  <toshok@ximian.com>
22843
22844         * DataGrid.cs: return false if alt isn't pressed when '0' is
22845         pressed.  this keeps the '0' key from being swallowed, and fixes
22846         bug #79350.
22847
22848 2006-09-27  Chris Toshok  <toshok@ximian.com>
22849
22850         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
22851         Calling Refresh (in response to a scrollbar event) screws up the
22852         scrollbar painting.  Fixes bug #78923.
22853
22854 2006-09-27  Chris Toshok  <toshok@ximian.com>
22855
22856         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
22857         then insert into hashtable" blocks threadsafe.
22858
22859 2006-09-27  Chris Toshok  <toshok@ximian.com>
22860
22861         * MessageBox.cs (CreateParams): the styles should be |'ed with our
22862         baseclass's, since otherwise the
22863         ControlBox/MinimizeBox/MaximizeBox assignments above have no
22864         effect.  This gets the close button back in messageboxes.
22865
22866 2006-09-27  Chris Toshok  <toshok@ximian.com>
22867
22868         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
22869         flag, not just != 0.  this makes flags that are actually multiple
22870         bits (like WS_CAPTION) work.  fixes bug #79508.
22871
22872 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
22873
22874         * PageSetupDialog.cs: add support for getting and settings the 
22875         paper size, source and orientation.
22876
22877 2006-09-26  Chris Toshok  <toshok@ximian.com>
22878
22879         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
22880         and caption == "", we need to remove the resize handles as well as
22881         the title bar.
22882
22883         * Control.cs (set_Text): turns out that setting Text on a form
22884         should change the WM styles on the window, since if ControlBox ==
22885         false, the only way to get a window border is to have a non-""
22886         Text property.  check winforms/forms/text.cs for an example.  so,
22887         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
22888         update both window styles and title.  This fixes a lot of dialogs
22889         (including the preferences dialog in MonoCalendar.)
22890
22891 2006-09-26  Chris Toshok  <toshok@ximian.com>
22892
22893         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
22894         control isn't a Form), call Win32ShowWindow to hide the window,
22895         but don't update the control Visible property.  When we reparent
22896         back to a parent control, call SetVisible in order for the
22897         window's visibility to be reinstated.
22898
22899         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
22900         the FosterParent.
22901
22902         * Control.cs (ControlCollection.Remove): remove that value.Hide()
22903         call for good, since it breaks MonoCalendar (and other things I'm
22904         sure.) Also, set all_controls to null *after* the owner calls,
22905         which end up regenerating it.
22906         (ChangeParent): allow new_parent to be == null, passing
22907         IntPtr.Zero down to XplatUI.
22908
22909         this fixes #79294 the right way.
22910
22911 2006-09-26  Mike Kestner  <mkestner@novell.com>
22912
22913         * GridEntry.cs : internal SetParent method.
22914         * PropertyGrid.cs : attach to property changed on the proper
22915         target if we have a hierarchical grid with subobjects. Setup
22916         GridItem.Parent for hierarchical items.
22917         * PropertyGridView.cs : Set value on the correct target for
22918         hierarchical grids. [Fixes #78903]
22919
22920 2006-09-26  Chris Toshok  <toshok@ximian.com>
22921
22922         * Control.cs (ChildNeedsRecreating): this should return true if
22923         either we're being recreated and the child is in our list, or our
22924         parent is waiting for our recreation.
22925
22926 2006-09-26  Chris Toshok  <toshok@ximian.com>
22927
22928         * Control.cs (ControlCollection.Remove): reinstate the
22929         value.Hide() call as suggested in bug #79294.
22930
22931 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
22932
22933         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
22934         coordinates (versus a relative move).
22935
22936 2006-09-26  Chris Toshok  <toshok@ximian.com>
22937
22938         * Control.cs: rework child recreation a little bit.  It turns out
22939         that we race between the DestroyNotify the WM_DESTROY message.  If
22940         the parent gets its DestroyNotify before the child gets the
22941         WM_DESTROY message, the child ends up not recreating (since the
22942         parent finishes its recreation on DestroyNotify, and the child
22943         checks ParentIsRecreating.)
22944
22945         So, instead we store off a list of all the child controls which
22946         need to be recreated when the parent control starts to recreate
22947         itself.  Then, when child controls get their WM_DESTROY message we
22948         check to see if they're in the parent's pending recreation list,
22949         and if so, we recreate.  This removes all dependency on ordering
22950         from the code and fixes the initial MonoCalendar upgrade dialog.
22951         
22952 2006-09-26  Jackson Harper  <jackson@ximian.com>
22953
22954         * TextControl.cs: Use the Line to get the length of the line,
22955         since soft line breaks can change the end line.
22956
22957 2006-09-26  Chris Toshok  <toshok@ximian.com>
22958
22959         * Control.cs (ControlCollection.AddImplicit): don't add the
22960         control again if it's already in one of our lists.  This keeps us
22961         from adding controls over and over again for comboboxes when their
22962         handle gets recreated (as the combobox adds implicit controls in
22963         OnHandleCreated).  Fixes the X11 errors in bug #79480.
22964
22965 2006-09-26  Jackson Harper  <jackson@ximian.com>
22966
22967         * TextControl.cs: When deleting characters make sure that any
22968         orphaned zero lengthed tags get deleted.
22969         - Fix ToString for zero lengthed tags.
22970
22971 2006-09-25  Jackson Harper  <jackson@ximian.com>
22972
22973         * TextControl.cs: When getting a tag at the location there can be
22974         multiple tags at the same spot, these are 0-lengthed tags that
22975         appear when extra formatting has been stuck in a location.  We
22976         need to pull out the last of these 0 lengthed tags.
22977
22978 2006-09-25  Jackson Harper  <jackson@ximian.com>
22979
22980         * TextControl.cs: Fix print out in debug method.
22981         * TextBoxBase.cs: When text is set bail if we are setting to the
22982         previous value.
22983         
22984 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
22985
22986         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
22987           It is now possible to change the selected index in a FontXXXListBox
22988           with the up and down arrow keys from the FontXXXTextBoxes.
22989           Also, send the FontXXXTextBox mouse wheel event to the corresponding
22990           FontXXXListBoxes to match ms.
22991
22992 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
22993
22994         * SystemInformation.cs: Return a clone of the theme's MenuFont because
22995         anyone can dispose it, anytime. All other properties returns enums, 
22996         structs or basic types so they don't need such tricks.
22997
22998 2006-09-22  Jackson Harper  <jackson@ximian.com>
22999
23000         * XplatUI.cs:
23001         * XplatUIWin32.cs:
23002         * Clipboard.cs:
23003         * DataFormats.cs:
23004         * XplatUIOSX.cs:
23005         * XplatUIDriver.cs: Update interface to add a primary selection
23006         flag, so the driver can use the primary selection buffer if
23007         needed.
23008         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
23009
23010         * RichTextBox.cs: We need to supply the data object to paste now
23011         (so we can choose to supply CLIPBOARD or PRIMARY).
23012         * TextBoxBase.cs: Supply data object to paste (see above).
23013         - Middle click uses the primary selection data object.
23014         
23015 2006-09-21  Chris Toshok  <toshok@ximian.com>
23016
23017         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
23018         of SetWMStyles.  It's still a rat's nest and is largely
23019         order-dependent which I dislike immensely.  This also fixes the X
23020         button disappearing from toplevel forms.
23021
23022 2006-09-21  Mike Kestner <mkestner@novell.com>
23023
23024         * ListBox.cs: move Jordi's click/dblclick raising code to the
23025         mouse up handler.
23026
23027 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
23028
23029         * ListBox.cs: Fixes 79450
23030
23031 2006-09-21  Mike Kestner <mkestner@novell.com>
23032
23033         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
23034         to deal with people updating the TreeNodeCollection after the tree
23035         is disposed.  "Fixes" 79330.
23036
23037 2006-09-20  Jackson Harper <jackson@ximian.com>
23038
23039         * TextControl.cs: Push the cursor record onto the undo stack
23040         before the delete action. This fixes 78651.
23041
23042 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
23043
23044         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
23045         CreateParams. Fixes 79329.
23046
23047 2006-09-19  Chris Toshok  <toshok@ximian.com>
23048
23049         * XplatUIX11.cs: a couple of blanket code massage passes to clean
23050         things up a bit.  First, get rid of the NetAtoms array (and the NA
23051         enum), and just embed the atoms as static fields.  Also, add a
23052         couple of functions (StyleSet and ExStyleSet) to clean up all the
23053         bitmask testing of styles.
23054
23055         * X11Structs.cs: remove the NA enum, not needed anymore.
23056         
23057 2006-09-19  Chris Toshok  <toshok@ximian.com>
23058
23059         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
23060         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
23061         added cleanup to get MessageBox titles appearing again, which were
23062         broken by my earlier fix for caption-less/ControlBox-less windows.
23063
23064 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
23065
23066         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
23067           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
23068           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
23069           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
23070           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
23071           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
23072           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
23073           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
23074           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
23075           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
23076           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
23077             Inital import.
23078         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
23079           ToolStripButton.cs: Stubs needed for above.
23080         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
23081
23082 2006-09-15  Chris Toshok  <toshok@ximian.com>
23083
23084         * XplatUIX11.cs:
23085         - make the MessageQueues hashtable Synchronized.
23086         
23087         - SendMessage: if the Hwnd is owned by a different thread, use the
23088         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
23089         thread.  Fixes bug #79201.
23090
23091 2006-09-15  Chris Toshok  <toshok@ximian.com>
23092
23093         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
23094         ControlBox == false, we disallow maximize/minimize/close.  If the
23095         form Caption is "" we also disallow move (and get rid of the Title
23096         decoration).  Unfortunately, regardless of how things are set,
23097         we're stuck with the Title and WM menu.
23098
23099 2006-09-15  Chris Toshok  <toshok@ximian.com>
23100
23101         * Application.cs: add locking around the static message_filters
23102         ArrayList, part of #79196.
23103
23104 2006-09-15  Chris Toshok  <toshok@ximian.com>
23105
23106         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
23107         Form.ControlBox == false, the window has no titlebar nor resize
23108         handles.  fixes bug #79368.
23109
23110 2006-09-15  Chris Toshok  <toshok@ximian.com>
23111
23112         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
23113         >= 0.  Fixes bug #79370.
23114
23115 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
23116         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
23117         * Control.cs:
23118             Add properties: LayoutEngine, Margin, DefaultMargin.
23119             Add method: GetPreferredSize.
23120             Move layout logic from PerformLayout to layout engines. 
23121
23122 2006-09-13  Chris Toshok  <toshok@ximian.com>
23123
23124         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
23125         fix for #79326 broke #78718, so this change addresses that.
23126
23127         - in SendWMDestroyMessages remove the call to
23128         CleanupCachedWindows, since we might be recreating the control and
23129         need to maintain the references to right Hwnd handles.  Also, set
23130         the zombie flag to true for each of the children in the hierarchy
23131         instead of calling hwnd.Dispose.  This will cause GetMessage to
23132         ignore all events for the window except for DestroyNotify.
23133
23134         - In GetMessage, ignore messages except for DestroyNotify for
23135         zombie hwnds.
23136         
23137         * Control.cs: revert the is_recreating fix from the last
23138         ChangeLog.  It's definitely "right", but it breaks switching from
23139         an MDI form to a non-MDI form.  Will need to revisit that.
23140
23141         * Hwnd.cs: add a zombie flag, which means "the
23142         client_window/whole_window handles are invalid, but we're waiting
23143         for the DestroyNotify event to come in for them".  Set the flag to
23144         false explicitly if setting WholeWindow/ClientWindow, and also
23145         when Disposing.
23146         
23147 2006-09-13  Chris Toshok  <toshok@ximian.com>
23148
23149         * XplatUIX11.cs: rework window destruction slightly.
23150
23151         - when destroying the windows associated with a control, we don't
23152         need 2 separate XDestroyWindow calls.  Just the one for the
23153         whole_window (or for client_window if whole_window is somehow
23154         IntPtr.Zero -- can this happen?) is enough.
23155
23156         - reworked SendWMDestroyMessages slightly, so we always dispose
23157         the child control hwnd's after sending the messages.
23158         
23159         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
23160         the two places it was used (one was even using hwnd.Handle and the
23161         other hwnd.client_window.  ugh), adding another call in
23162         SendWMDestroyMessages.  We need this new call because now the
23163         DestroyNotify events in the queue will be ignored for the child
23164         controls (as their hwnd's were disposed, and the window id's
23165         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
23166
23167         - this fixes bug #79326.
23168
23169 2006-09-13  Chris Toshok  <toshok@ximian.com>
23170
23171         * Control.cs: don't always set is_recreating to false at the end
23172         of RecreateHandle, since sometimes we're not done (and won't be
23173         until WndProc handles the WM_DESTROY message).  Also, set
23174         is_recreating to false in the WM_DESTROY handling code.  Part of
23175         the fix for bug #79326.
23176
23177 2006-09-13  Miguel de Icaza  <miguel@novell.com>
23178
23179         * X11DesktopColors.cs: Start the droppage of debugging messages.
23180
23181         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
23182
23183 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
23184
23185         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
23186
23187 2006-09-12  Chris Toshok  <toshok@ximian.com>
23188
23189         * DataGrid.cs (get_ListManager): if the list_manager is null, try
23190         to create it using SetDataSource.  Fixes bug #79151.
23191
23192 2006-09-11  Chris Toshok  <toshok@ximian.com>
23193
23194         * XEventQueue.cs: add a DispatchIdle property.
23195
23196         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
23197         either the queue is null, or the queue has DispatchIdle set to
23198         true.
23199         (DoEvents): set queue.DispatchIdle to false around the
23200         peek/translate/dispatch message loop in this method.  This keeps
23201         Application.Doevents from emitting idle events.  Part of the fix
23202         for #78823.
23203
23204 2006-09-11  Chris Toshok  <toshok@ximian.com>
23205
23206         * DataGrid.cs (set_DataSource): make this work for both the
23207         winforms/datagrid test and ReportBuilder.  It seems as though when
23208         we've created a ListManager (or maybe it's if we have a
23209         BindingContext?), when we set the DataSource it clears the
23210         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
23211         #79333.
23212
23213 2006-09-11  Chris Toshok  <toshok@ximian.com>
23214
23215         * XplatUIX11.cs: deal with queue being null, which happens in all
23216         the Clipboard functions.  Fixes one of the two problems mentioned
23217         in #78612.
23218
23219 2006-09-11  Chris Toshok  <toshok@ximian.com>
23220
23221         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
23222         button on various spots (including outside the menu) works closer
23223         to MS, and doesn't crash.  Fixes #79343.
23224
23225 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
23226
23227         * ListView.cs: Do not initialize item_sorter in init. To match MS,
23228         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
23229         and the internal comparer is set. When a new ListViewItemSorter is set,
23230         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
23231         was specified. No further processing is necessary if SortOrder is set
23232         to it's current value. If Sorting is modified to None, and View is
23233         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
23234         (either custom or our internal ItemComparer) to null, on 1.0 profile
23235         only set item_sorter to null if its our internal IComparer. If Sorting
23236         is modified to Ascending or Descending, then use our internal IComparer
23237         if none is set, and if the current IComparer is our internal one then:
23238         on 2.0 profile always replace it with one for new Sorting, and on 1.0
23239         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
23240         Enum.IsDefined to verify whether a valid View value is specified in
23241         its setter. Automatically sort listview items when listview is
23242         created. In Sort, do nothing if ListView is not yet created, or if
23243         no item_sorter is set (no Sorting was set, Sorting was explicitly set
23244         to None or ListViewItemSorter was set to null). Added Sort overload
23245         taking a bool to indicate whether the ListView should be redrawn when
23246         items are sorted (we use this in ListViewItemCollection to avoid double
23247         redraws). Modified our internal IComparer to take the sort order into
23248         account. In Add and AddRange methods of ListViewItemCollection, also
23249         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
23250         view), but use overload with noredraw option to avoid double redraw.
23251         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
23252         true when View is Tile, and do the same when attempting to set View to
23253         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
23254         for selected/checked indices, as it involves overhead when sorting is
23255         done while these collections are not used all that often. Instead
23256         we'll build the indices on demand. Modified IList implementation of
23257         CheckedIndexCollection to use public methods if object is int.
23258         Modified CheckedListViewItemCollection to hide checked items if
23259         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
23260         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
23261         IList implementation in SelectedIndexCollection to use public methods
23262         if object is int. Modified SelectedListViewItemCollection to hide
23263         selected items if listview is not yet created.
23264         * ListViewItem.cs: CheckedIndices list no longer needs to be
23265         maintained separately (see ListView changes). Also clone font, fixes
23266         test failure.
23267
23268 2006-09-11  Mike Kestner  <mkestner@novell.com>
23269
23270         * ComboBox.cs: if we are updating the contents of the currently
23271         selected index, refresh the control or the textbox selection.
23272         [Fixes #79066]
23273
23274 2006-09-11  Mike Kestner  <mkestner@novell.com>
23275
23276         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
23277         the 'specified' logic has been moved there.  This seems like a bug 
23278         in Control.cs, since our current SetBoundsCore completely ignores 
23279         the specified parameter.  Peter's commit seems to indicate that is 
23280         the way the MS control implementation works.  [Fixes #79325]
23281
23282 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
23283
23284         * XplatUI.cs: Set default_class_name to be composed
23285         of current domain id. This allows MWF to be loaded in multiple
23286         domains on Win32.
23287
23288 2006-09-09  Miguel de Icaza  <miguel@novell.com>
23289
23290         * X11Keyboard.cs: If we are unable to obtain the input method, do
23291         not call CreateXic to create the input context.   Should fix
23292         #78944/79276.
23293
23294 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
23295
23296         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
23297           Simplified gnome support by adding more pinvokes to get the
23298           icon for a file or mime type.
23299
23300 2006-09-08  Jackson Harper  <jackson@ximian.com>
23301
23302         * MenuAPI.cs: Deslect popup context menu items before closing the
23303         window, so that you don't see the previously selected item
23304         selected when you reopen the menu.
23305         * TextControl.cs: Update the cursor position even if we don't have
23306         focus.  This fixes typing in things like the ComboBox.  I'm not
23307         totally sure we should always set the visibility if we don't have
23308         focus, but couldn't find any corner cases where the cursor showed
23309         up when it shouldn't.
23310
23311 2006-09-08  Chris Toshok  <toshok@ximian.com>
23312
23313         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
23314         our arrays are length 256.  & 0xff before indexing.  Fixes the
23315         crash in bug #78077.
23316         
23317 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23318
23319         * ThemeWin32Classic.cs: 
23320         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
23321         is true. Handle that check box too.
23322
23323 2006-09-07  Chris Toshok  <toshok@ximian.com>
23324
23325         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
23326         79244.
23327
23328 2006-09-07  Chris Toshok  <toshok@ximian.com>
23329
23330         * Control.cs: in set_BackColor only do the work if
23331         background_color != value.
23332
23333         * XplatUIX11.cs: move the clearing of invalid areas (both client
23334         and nc) to the same block of code where we set (nc_)expose_pending
23335         to false.  That is, move it from PaintEventEnd to PaintEventStart,
23336         so things that cause invalidates from within OnPaint will trigger
23337         another call to OnPaint.  Fixes bug #79262.
23338
23339 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
23340
23341         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
23342         * FileDialog.cs: Fix typo
23343
23344 2006-09-07  Jackson Harper  <jackson@ximian.com>
23345
23346         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
23347         for tab pages if they have any.
23348
23349 2006-09-06  Mike Kestner  <mkestner@novell.com>
23350
23351         * Splitter.cs: use the "current" rect when finishing drag handle
23352         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
23353
23354 2006-09-06  Mike Kestner  <mkestner@novell.com>
23355
23356         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
23357         support offset splitters. [Fixes #79298]
23358
23359 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
23360
23361         * Mime.cs: Fixed a bug that could override the global mime type
23362           result.
23363
23364 2006-09-05  Jackson Harper  <jackson@ximian.com>
23365
23366         * TabControl.cs: Better calculation method for setting the slider
23367         pos. Prevents crashes on really wide tabs.
23368         - Draw Image on tab pages if an image list is used.
23369
23370 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23371
23372         * MonthCalendar.cs: When Font changes, the Size should be
23373         updated to fit the new font's space requirements.
23374
23375 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
23376
23377         * ListBox.cs: If the items are cleared with Items.Clear set
23378           top_index to 0.
23379
23380 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23381
23382         * MonthCalendar.cs: Handle arrow keys as input keys. Also
23383         fire DateChanged event instead of DateSelected event when
23384         the date was changed by keyboard interaction.
23385
23386 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23387
23388         * DateTimePicker.cs: Handle DateChanged for the associated
23389         month_calendar control, and set month_calendar.Font from 
23390         OnFontChanged method, as well as resize the height of the
23391         control when needed. Make PreferredHeight proportional.
23392
23393 2006-09-01  Chris Toshok  <toshok@ximian.com>
23394
23395         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
23396         properties.
23397
23398         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
23399
23400 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
23401
23402         * FileDialog.cs: Set ClientSize instead of window size, to allow space
23403           for decorations (Fixes #79219)
23404
23405 2006-09-01  Mike Kestner  <mkestner@novell.com>
23406
23407         * ComboBox.cs: first stab at sorting plus some selection handling
23408         fixes to bring us more in line with MS behavior.  Also switches back
23409         to index based selection.  Alternative patches for index-based 
23410         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
23411         and latency@gmx.de on bug 78848.  I assume they were similar to this
23412         code I've had simmering in my tree forever.
23413         [Fixes #78848]
23414
23415 2006-09-01  Chris Toshok  <toshok@ximian.com>
23416
23417         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
23418         when setting list position guard against ending up with a -1 index
23419         (the other part of the fix for #78812).  Should probably make sure
23420         we don't need the analogous fix in the ItemDeleted case.
23421
23422         * DataGrid.cs:
23423         - in SetDataSource, work around the fact that the way
23424         OnBindingContextChanged is invoked will cause us to re-enter this
23425         method.  I'll remove the hack once I investigate
23426         OnBindingContextChanged.
23427
23428         - fix the logic in set_DataSource and set_DataMember (basically
23429         what to do if the other of the two is null.)
23430         
23431         - in OnListManagerItemChanged, we need to take into account the
23432         edit row when deciding whether or not to call RecreateDataGridRows
23433         (part of the fix for #78812).
23434
23435 2006-09-01  Jackson Harper  <jackson@ximian.com>
23436
23437         * Splitter.cs: Don't do anything if there is no control to affect
23438         (prevents us from crashing in weird tet cases).
23439         * TreeView.cs: Bounding box for the mouse movement reverting
23440         focus/selection back to previously selected node.  This matches
23441         MS, and makes the tree a lot more useable.
23442         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
23443         use clipping so they are not drawn.  This fixes when the control
23444         is set to have a transparent background, or if it was over an
23445         image.
23446
23447 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
23448
23449         * MimeIcon.cs: Improved handling for reading default icons when
23450           using gnome (2.16 made it necessary). Check and read svg icons
23451           first, then 48x48 and then 32x32 icons.
23452
23453 2006-08-31  Chris Toshok  <toshok@ximian.com>
23454
23455         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
23456         visible.
23457
23458         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
23459         ProcessKeyPreview.  Fixes part of #77806.
23460
23461         * DataGrid.cs: big patch.
23462
23463         - revert the queueing up of DataSource/DataMember if inside
23464         BeginInit/EndInit calls.  That's not the way the datagrid achieves
23465         its delayed databinding.  Instead, call SetDataSource in
23466         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
23467         #78811.
23468
23469         - Also, it wasn't mentioned in #78811, but the test case exhibits
23470         behavior that was lacking in our datagrid implementation - Columns
23471         that have mapping names that don't exist in the datasource's
23472         properties aren't shown.  Yuck.  To fix this I added the bound
23473         field to the column style, and basically any calculation to figure
23474         out anything about columns uses a loop to find the bound columns.
23475         still need to investigate if I can cache an array of the bound
23476         columns or if the indices must be the same.
23477
23478         - When setting CurrentCell, we no longer abort if the cell being
23479         edited was in the add row.  This fixes the other part of #77806.
23480
23481         - The new code also fixes #78807.
23482         
23483         * ThemeWin32Classic.cs: perpetrate the same disgusting
23484         column.bound field hack, and only render bound fields.
23485
23486 2006-08-31  Chris Toshok  <toshok@ximian.com>
23487
23488         * DataGridColumnStyle.cs: add bound field.  this field is true if
23489         the datasource has a property corresponding to the mapping name.
23490
23491         * DataGridTableStyle.cs: set the bound field on the column styles
23492         depending on whether or not we have a column for that property.
23493
23494 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
23495
23496         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
23497           splitter control (fixes #79228)
23498
23499 2006-08-31  Chris Toshok  <toshok@ximian.com>
23500
23501         * DataGridColumnStyle.cs: we need to delay the assignment of
23502         property descriptor until the last possible moment due to the lazy
23503         databinding stuff in the datagrid.  Also, fix the exceptions
23504         thrown by CheckValidDataSource to match MS.
23505
23506 2006-08-31  Jackson Harper  <jackson@ximian.com>
23507
23508         * Form.cs: When activated select the active control, if there is
23509         no active control, we select the first control.
23510         * XplatUIX11.cs: If there is no focus control when we get a
23511         FocusIn event, find the toplevel form and activate it.  This
23512         occurs when you popup a window, it becomes the focus window, then
23513         you close that window, giving focus back to the main window.
23514
23515 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23516
23517         * MonthCalendar.cs: 
23518         * ThemeWin32Classic.cs: Cache Font in bold style, as well
23519         as StringFormat with Center alignments in MonthCalendar,
23520         instead of creating new ones when drawing the control. 
23521         Also, draw the month name in bold style.
23522
23523 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
23524
23525         * Control.cs:
23526           - PerformLayout(): It would seem MS performs the fill even if the 
23527             control is not visible (part of #79218 fix)
23528           - ResetBackColor(): Use the setter to reset the color, to allow
23529             overriders to catch the change.
23530         * Form.cs:
23531           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
23532           - CreateHandle(): dito (part of $79218 fix)
23533           - Don't set an icon if we have a dialog
23534         * ScrollableControl.cs:
23535           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
23536           - ScrollIntoView(): No need to scroll if control is already visible
23537             (resolves fixme and fixes #79218)
23538
23539 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23540
23541         * MonthCalendar.cs: Change proportions in SingleMonthSize
23542         to match the aspect of the original control.
23543
23544 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
23545
23546         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
23547           get updated when they get maximized.
23548
23549 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
23550
23551         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
23552
23553 2006-08-29  Chris Toshok  <toshok@ximian.com>
23554
23555         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
23556
23557 2006-08-29  Jackson Harper  <jackson@ximian.com>
23558
23559         * TreeView.cs: Need to track selected node and highlighted node,
23560         they aren't always the same thing, when the mouse is down on a
23561         node it is hilighted, but not selected yet.
23562         - Do the HideSelection stuff right
23563         - Need to focus on rbutton mouse down. And redraw selection when
23564         right click is mouse upped.
23565
23566 2006-08-29  Mike Kestner  <mkestner@novell.com>
23567
23568         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
23569         when SubItems.Count < Columns.Count.  [Fixes #79167]
23570
23571 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
23572
23573         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
23574
23575 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
23576
23577         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
23578           from X. Only send based on ConfigureNotify if we don't have the
23579           correct location in hwnd (if the window manager moved us)
23580
23581 2006-08-28  Mike Kestner  <mkestner@novell.com>
23582
23583         * ListView.cs: remove a TODO. 
23584         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
23585         [Fixes ListView part of #79166]
23586
23587 2006-08-28  Mike Kestner  <mkestner@novell.com>
23588
23589         * ListView.cs: move wheel handler to parent since it is focused
23590         instead of the item_control now.  [Fixes #79177]
23591
23592 2006-08-28  Mike Kestner  <mkestner@novell.com>
23593
23594         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
23595         when the control is focused. [Fixes #79171]
23596
23597 2006-08-28  Mike Kestner  <mkestner@novell.com>
23598
23599         * ListView.cs: size the item and header controls for empty and
23600         unscrollable views.
23601         * ThemeWin32Classic.cs: draw disabled backgrounds.
23602         [Fixes #79187]
23603
23604 2006-08-28  Chris Toshok  <toshok@ximian.com>
23605
23606         * Form.cs: remove unused "active_form" static field.
23607
23608         * Hwnd.cs: lock around accesses to static windows collection.
23609
23610         * Application.cs: lock threads in Exit ().
23611
23612 2006-08-28  Chris Toshok  <toshok@ximian.com>
23613
23614         * NativeWindow.cs: lock around accesses to window_collection.
23615         
23616 2006-08-28  Chris Toshok  <toshok@ximian.com>
23617
23618         * Control.cs: err, fix this the right way, by locking on controls
23619         when using it.  not by making it synchronized.
23620
23621 2006-08-28  Chris Toshok  <toshok@ximian.com>
23622
23623         * Control.cs: make the static "controls" field synchronized, as it
23624         gets updated from multiple threads.
23625
23626 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
23627
23628         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
23629           Prevent other threads from exiting when calling thread sets quit state.
23630         * XEventQueue.cs: Added PostQuitState property
23631
23632 2006-08-27  Chris Toshok  <toshok@ximian.com>
23633
23634         * AsyncMethodData.cs: add a slot for the window handle.
23635
23636         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
23637         window (the destination control's window, not the foster window).
23638
23639         * Control.cs (BeginInvokeInternal): store the window's handle in
23640         the AsyncMethodData.
23641         
23642
23643 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
23644
23645         * XplatUIX11.cs:
23646           - PostQuitMessage: Removed resetting S.D display handle, we might have
23647             another loop started after calling PostQuitMessage (Fixes #79119)
23648           - Created destructor to reset S.D handle
23649
23650 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
23651
23652         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
23653
23654 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23655
23656         * TextControl.cs (Insert): Update the caret position even if we don't
23657           have a handle yet, just don't call the driver in that case.
23658         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
23659           to the end of the new selection text (Fixes #79184)
23660
23661 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23662
23663         * Form.cs (Activate): Only activate if the handle is created)
23664         * Control.c:
23665           - Mark window as invisible when it's disposed
23666           - Check if window handle is created when setting window visible, 
23667             instead of relying just on the is_created variable
23668           - Check if object is disposed when creating the control (Fixes #79155)
23669
23670 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23671
23672         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
23673           when allowing layout again. Otherwise we re-generate the anchoring 
23674           distance to the border again and actually alter what the user wanted
23675           This is ugly, it'd be better if we used DisplayRectangle instead of
23676           ClientRectangle for Control.UpdateDistances, but that causes us to
23677           have other problems (initial anchoring positons would be wrong)
23678           (Fixes #78835)
23679
23680 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23681
23682         * Control.cs:
23683           - The size and location setters shouldn't go directly to 
23684             SetBoundsCore, but to SetBounds, which triggers layout on the
23685             parent, then calls SetBoundsCore. (Related to fix for #78835)
23686           - SetBounds: Moved actual location update code into this function
23687             from SetBoundsCore, to match MS. Added call to PerformLayout if
23688             we have a parent (to trigger resizing of anchored parents if the 
23689             child size has changed (see testcase for #78835) 
23690         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
23691           new control code
23692         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
23693
23694 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23695
23696         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
23697           System.Drawing when a toplevel window gets closed; there might
23698           be other toplevel windows belonging to the same app (Fixes #78052)
23699
23700 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
23701
23702         * FileDialog.cs: After reading FileDialog settings from mwf_config
23703           use Desktop prefix only if a real folder doesn't exist anymore.
23704         * FontDialog.cs: Added char sets.
23705           It is now possible to select the font, size or style with the
23706           textboxes.
23707
23708 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
23709
23710         * PrintPreviewDialog.cs: Use assembly name constants.
23711
23712 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23713
23714         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
23715           scrollbar from whacking it's buttons)
23716
23717 2006-08-24  Chris Toshok  <toshok@ximian.com>
23718
23719         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
23720         in this patch (aggregating setting Left/Top/Width/Height to
23721         setting Bounds on the scrollbars), but the crux of the fix is in
23722         Recalculate, where we scroll by the remaining scroll_position if
23723         we're hiding a scrollbar.  The 2*$5 reward in the comment is
23724         serious.
23725
23726 2006-08-24  Jackson Harper  <jackson@ximian.com>
23727
23728         * MdiClient.cs:
23729         * MdiWindowManager.cs: If the form is made a non-mdi window we
23730         need to remove the form closed event so that closing forms works
23731         correctly.
23732
23733 2006-08-24  Jackson Harper  <jackson@ximian.com>
23734
23735         * Control.cs: Make IsRecreating internal so that the driver can
23736         check it
23737         - Temporarily remove the Hide when controls are removed, its
23738         making a whole bunch of things not work because visibility isn't
23739         getting reset elsewhere correctly
23740         * Form.cs: Need to do a full handle recreation when the mdi parent
23741         is set.
23742         * XplatUIX11.cs: If we are recreating handles don't dispose the
23743         HWNDs.  What was happening is the handles were being recreated in
23744         SendWMDestroyMessages, but then flow continued on in that method
23745         and destroyed the new handles.
23746
23747 2006-08-23  Jackson Harper  <jackson@ximian.com>
23748
23749         * Form.cs: MdiClient is always at the back of the bus
23750         * Control.cs: When the order of items in the collection is changed
23751         we need to reset the all_controls array
23752         - do the same sorta setup thats done when adding a control when a
23753         control is set on the collection.
23754
23755 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23756
23757         * TextBoxBase.cs (get_Text): Return an empty array if our document
23758           is empty (fixes #79052)
23759
23760 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23761
23762         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
23763           on WM_SYSCHAR messages (fixes #79053)
23764
23765 2006-08-23  Chris Toshok  <toshok@ximian.com>
23766
23767         * DataGrid.cs: fix flickering when scrolling vertically.
23768
23769 2006-08-23  Chris Toshok  <toshok@ximian.com>
23770
23771         * DataGrid.cs (EndEdit): only invalidate the row header when we
23772         need to.
23773
23774 2006-08-23  Chris Toshok  <toshok@ximian.com>
23775
23776         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
23777         methods.  fixes the flicker when scrolling around.
23778
23779 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23780
23781         * FileDialog.cs: Making sure the control is created before we get a 
23782           chance to use it with BeginInvoke (Fixes #79096)
23783
23784 2006-08-23  Chris Toshok  <toshok@ximian.com>
23785
23786         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
23787         width to use when painting the rows.
23788
23789 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23790
23791         * TextBoxBase.cs:
23792           - Throw ArgumentException if a negative value is passed to SelectionLength
23793           - Update the selection end if start is moved. end needs to be always
23794             after start. (Fixes #79095)
23795           - Track selection length; MS keeps the selection length even if start
23796             is changed; reset on all other operations affection selection
23797
23798 2006-08-22  Jackson Harper  <jackson@ximian.com>
23799
23800         * TreeView.cs: Make sure both scrollbars get displayed and sized
23801         correctly when the other bar is visible.
23802         - Use the original clip rectangle for checking if the area between
23803         the two scrollbars is visible, not the viewport adjusted clipping
23804         rectangle.
23805
23806 2006-08-22  Jackson Harper  <jackson@ximian.com>
23807
23808         * Binding.cs: We don't use IsBinding because it requires the
23809         control to be created, which really shouldn't be necessary just to
23810         set a property on the control.
23811
23812 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23813
23814         * ComboBox.cs: Some CB.ObjectCollection methods must throw
23815         ArgumentNullReferenceException when the argument is null.
23816
23817 2006-08-21  Jackson Harper  <jackson@ximian.com>
23818
23819         * Timer.cs: Track the thread that the timer is started in (NOT
23820         CREATED), this way messages for it will only be triggered on its
23821         queue.
23822         * XEventQueue.cs: Track the timers here, this makes timers per
23823         thread, like MS.
23824         * XplatUIX11.cs: The timers are moved to the XEventQueue.
23825
23826 2006-08-19  Chris Toshok  <toshok@ximian.com>
23827
23828         * XplatUIX11.cs: after further communication with pdb, we get the
23829         best of both worlds.  SetZOrder working for un-Mapped windows, and
23830         no X errors for un-mapped windows.
23831
23832 2006-08-19  Chris Toshok  <toshok@ximian.com>
23833
23834         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
23835         as it was causing pdn toolbars to not have the correct stacking.
23836
23837 2006-08-18  Mike Kestner  <mkestner@novell.com> 
23838
23839         * ListView.cs : guard against negative ClientArea.Width in scrollbar
23840         calculation.  Not sure why control should ever be setting a negative
23841         width though.  Fixes #78931.
23842
23843 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23844
23845         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
23846         null items in ObjectCollection class.
23847         * ListBox.cs.: Likewise.
23848
23849 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
23850
23851         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
23852           as the base method in ThemeWin32Classic should work fine.
23853           Fixed bug #78607.
23854
23855 2006-08-18  Jackson Harper  <jackson@ximian.com>
23856
23857         * Binding.cs: When validating if the value entered doesn't convert
23858         properly reset to the old value.
23859         * RadioButton.cs: Don't fire click when we get focus.
23860
23861 2006-08-18  Jackson Harper  <jackson@ximian.com>
23862
23863         * FileDialog.cs: Paint the selection on the directory combobox the
23864         same way as on MS. 
23865
23866 2006-08-17  Jackson Harper  <jackson@ximian.com>
23867
23868         * ErrorProvider.cs: Don't allow the error control to be selected.
23869         * Control.cs: Don't send the SetFocus messages, the control
23870         activation will do this, and if we do it blindly here validation
23871         does not work.
23872
23873 2006-08-17  Jackson Harper  <jackson@ximian.com>
23874
23875         * Control.cs:
23876         * ContainerControl.cs: Make validation events fire in the correct
23877         order.  TODO: For some reason the first validation event is not
23878         getting fired.
23879
23880 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23881
23882         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
23883
23884 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23885
23886         * ComboBox.cs : implement scroll wheel support for popped-down
23887         state. Fixes #78945. 
23888
23889 2006-08-17  Jackson Harper  <jackson@ximian.com>
23890
23891         * TreeView.cs: Specify treeview actions (old patch that didn't get
23892         committed for some reason).
23893         - Don't let the mouse wheel scroll us too far.  Just want to make
23894         the bottom node visible, not scroll it all the ways to the top.
23895
23896 2006-08-17  Jackson Harper  <jackson@ximian.com>
23897
23898         * XplatUIX11.cs: Mouse wheel events go to the focused window.
23899
23900 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23901
23902         * ComboBox.cs : don't do mouseover selection in simple mode.
23903
23904 2006-08-16  Jackson Harper  <jackson@ximian.com>
23905
23906         * Form.cs: Fire the closing events for all the mdi child windows
23907         when a window is closed.  If the cancel args are set to true, the
23908         main window still gets the event fired, but it doesn't not close.
23909         * MdiWindowManager.cs: Do this closing cleanup in a Closed
23910         handler, instead of when the button is clicked, so cancelling the
23911         close works correctly.
23912         * ComboBox.cs: Send the mouse down to the scrollbar.
23913
23914 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23915
23916         * ListBox.cs: When passing 'null' to SelectedItem,
23917         set SelectedIndex to -1, to unselect items. This is the
23918         observed behaviour in .Net.
23919
23920 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
23921
23922         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
23923           MS flags saying there won't be any. (fixes #78800)
23924         * Control.cs (HandleClick): Made virtual
23925
23926 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
23927
23928         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
23929           cultures. Fixed bug #78399.
23930
23931 2006-08-16  Jackson Harper  <jackson@ximian.com>
23932
23933         * Form.cs: Use the MdiClients MdiChildren property to access
23934         MdiChildren instead of creating the array from the child controls.
23935         * MdiClient.cs: Maintain a separate array of the mdi children, so
23936         that insertion order is maintained when the Z-order is changed.
23937
23938 2006-08-16  Mike Kestner  <mkestner@novell.com> 
23939
23940         * ListView.cs : add an ItemComparer and default to it for sorting.
23941         Fixes #79076, but sorting needs a complete overhaul to be compat with
23942         MS.
23943
23944 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
23945
23946         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
23947
23948 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23949
23950         * Hwnd.cs (Mapped): Properly traverse the tree
23951
23952 2006-08-15  Chris Toshok  <toshok@ximian.com>
23953
23954         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
23955         pass manager.Current.GetType() to ParseData.  It has to be the
23956         property type.  So, hold off doing the ParseData until we're in
23957         SetPropertyValue where we know the type.  This fixes the crash in
23958         #78821 but the textbox is still empty.
23959
23960 2006-08-15  Chris Toshok  <toshok@ximian.com>
23961
23962         * DataGrid.cs:
23963         - when we're scrolling, only call Edit() again if the
23964         current cell is still unobscured. Fixes bug #78927.
23965         - when handling mousedown on a cell, ensure the cell is visible
23966         before calling Edit.
23967         - remove the properties from DataGridRow, and remove the
23968         DataGridParentRow class altogether.
23969         
23970
23971 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23972
23973         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
23974           fire OnTextChanged by ourselves. There's no point calling base,
23975           we don't set the base value anywhere else. Fixes #78773.
23976
23977 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23978
23979         * ListBox.cs: Call CollectionChanged when modifying
23980         an item from Items indexer, to update the actual items
23981         in the list box.
23982
23983 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23984
23985         * PrintDialog.cs: Small fixes for focus and a pair of checks,
23986         to match .Net behaviour.
23987
23988 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23989
23990         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
23991
23992 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
23993
23994         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
23995
23996 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23997
23998         * MessageBox.cs: Prevent potential NRE exception.
23999         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
24000
24001 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
24002
24003         * MessageBox.cs: Calculate the owner of a messagebox, also make
24004           it topmost. Fixes #78753
24005
24006 2006-08-14  Chris Toshok  <toshok@ximian.com>
24007
24008         * XplatUIX11.cs: A couple of fixes so that metacity will let us
24009         programmatically move windows.  first, set the PPosition hint as
24010         well as the USPosition hint.  Second include some code from pdb
24011         that sets the window type to NORMAL when we set the transient for
24012         hint.  This is because, in the absence of a window type, metacity
24013         thinks any window with TransientFor set is a dialog, and refuses
24014         to let us move it programmatically.  fascists.
24015
24016 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
24017
24018         * XplatUIX11.cs: When setting normal hints, take into consideration
24019           an different hints previously set so we don't delete them (fixes #78866)
24020
24021 2006-08-12  Chris Toshok  <toshok@ximian.com>
24022
24023         * ToolBarButton.cs: make Layout return a boolean, if something to
24024         do with the button's layout changed.
24025
24026         * ToolBar.cs:
24027         - add another parameter to Redraw, @force, which all existing
24028           calls set to true.
24029         - make the Layout function return a boolean which is true if the
24030           layout has actually changed.  Redraw now uses this (and @force)
24031           to determine when to invalidate.  At present the only place
24032           where @force can be false is the call from OnResize, when
24033           background_image == null.  So, resizing a toolbar when the
24034           layout doesn't change results in no drawing.
24035
24036 2006-08-12  Chris Toshok  <toshok@ximian.com>
24037
24038         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
24039         the VScrollBar and HScrollbar reversed.  oops.
24040
24041         * DataGrid.cs: fix the logic that assigns sizes to the implicit
24042         scrollbars.  we were assigning them twice (once in
24043         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
24044         therefore causing two scrollbar resizes (and redraws?) to happen
24045         per grid resize.
24046
24047 2006-08-12  Chris Toshok  <toshok@ximian.com>
24048
24049         * ToolBarButton.cs: redraw the entire button if the theme tells us
24050         to.
24051
24052         * Theme.cs: add ToolBarInvalidateEntireButton.
24053
24054         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
24055         buttons, just the border.
24056
24057         * ThemeNice.cs: redraw the entire toolbar button since we need to
24058         draw the highlight image.
24059
24060         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
24061         we need to redraw the entire button (not just the border).
24062
24063 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
24064
24065         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
24066           for vertical bars. Fixes the mismatches shown by #78513
24067
24068 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
24069
24070         * FileDialog.cs: If a saved/remembered path doesn't exist
24071           anymore, fall back to "Desktop".
24072
24073 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
24074
24075         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
24076           parent. It's apparently legal to not have one
24077         * XplatUIX11.cs:
24078           - SetZOrder: Don't try to set Z-Order on an unmapped window
24079           - CreateWindow: 0,0 are legal coordinates for a window. don't move
24080             it unless the coordinates are negative
24081
24082 2006-08-10  Mike Kestner  <mkestner@novell.com>
24083
24084         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
24085         when setting to null per msdn docs.  Fixes #78854.
24086
24087 2006-08-10  Chris Toshok  <toshok@ximian.com>
24088
24089         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
24090         flickering by setting a clip rectangle on the Graphics when we
24091         need to redraw just a particular menuitem.  Also, rename "OnClick"
24092         to "OnMouseDown" to reflect what it actually is.
24093         
24094         * Form.cs: track the OnMouseDown change.
24095
24096 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
24097
24098         * CommonDialog.cs: Properly inherit the CreateParams from the form
24099           and only change what we need. Fixes #78865
24100
24101 2006-08-10  Chris Toshok  <toshok@ximian.com>
24102
24103         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
24104         flickering in flat mode (and most of the flickering in general) by
24105         only invalidating the button border (and not the entire rectangle)
24106         when the state changes.  A couple of cases still flicker:
24107         ToggleButtons, and the dropdown arrow case when the user mouse
24108         ups.
24109
24110 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
24111
24112         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
24113           for german keyboards. Numlock state shouldn't affect the behaviour
24114           of the Del key. Fixes bug #78291.
24115
24116 2006-08-10  Chris Toshok  <toshok@ximian.com>
24117
24118         * ListControl.cs: remove the items.Clear line from BindDataItems,
24119         as this is the first thing done by both subclasses in their
24120         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
24121         passed -1, refresh the list.  This gets databinding working when
24122         the datasource is set on the list before the datasource is
24123         populated (as in wf-apps/ReportBuilder.)
24124
24125         * ComboBox.cs: remove the argument to BindDataItems.  This call
24126         should really go away, and be initiated by the ListControl code.
24127
24128         * ListBox.cs: same.
24129
24130 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
24131
24132         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
24133           if no data is in the document when the control is displayed
24134
24135 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
24136
24137         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
24138           yes (fixes #78806)
24139         * TextControl.cs: 
24140           - PositionCaret: Allow positioning of caret but don't call methods 
24141             requiring a handle if the window isn't created yet
24142           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
24143           - owner_HandleCreated: Don't position the caret, just update it's 
24144             location. User might have already set a different position
24145
24146 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
24147
24148         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
24149           windows. Screws up the returned coordinates for child windows. 
24150           Fixes #78825. I'm hoping this doesn't break something, since the
24151           code was explicitly put in 8 months ago, but no bug was attached.
24152           Menus still seem to work properly.
24153
24154 2006-08-08  Chris Toshok  <toshok@ximian.com>
24155
24156         * DataGrid.cs: make BeginInit/EndInit actually do what they're
24157         supposed to do - delay data binding until the EndInit call.  Also,
24158         make the table style collection's CollectionChangeAction.Refresh
24159         work properly.
24160
24161         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
24162         (with action = Refresh) when a consituent table's MappingName is
24163         changed.
24164
24165 2006-08-08  Chris Toshok  <toshok@ximian.com>
24166
24167         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
24168         Invalidate, since changing the text can change the size of the all
24169         toolbar buttons.
24170
24171 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
24172
24173         * Form.cs (AddOwnedForm): Still need to add the form to our listif
24174           we don't have it yet
24175
24176 2006-08-08  Chris Toshok  <toshok@ximian.com>
24177
24178         * PrintControllerWithStatusDialog.cs: don't .Close() the status
24179         dialog, as this causes X errors later on, since we actually
24180         destroy the window.  Instead, .Hide() it.
24181
24182 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
24183
24184         * ComboBox.cs: Added focus reflection for popup window
24185         * XplatUIX11.cs: 
24186           - Removed transient setting for non-app windows for now, not sure it
24187             was needed
24188           - Fixed logic checking if we have captions when deciding 
24189             override_redirect, WS_CAPTION is two bits and a 0 check was not
24190             sufficient
24191           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
24192             complicated
24193         * Form.cs: 
24194           - AddOwnedForm: Don't just add the form to the list, call the property
24195             to ensure the driver is informed about the ownership as well
24196           - CreateHandle: Set the TopMost status in the driver if we have an owner
24197         * XplatUI.cs: Fixed debug statement
24198
24199 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
24200         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24201           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
24202           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
24203           TrackBarRenderer.cs: Make constructor private.
24204         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
24205         * ProfessionalColorTable.cs: Make properties virtual.
24206
24207 2006-08-06  Duncan Mak  <duncan@novell.com>
24208
24209         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
24210         is not changing.
24211
24212 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24213         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24214           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
24215           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
24216           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
24217           Initial import of new 2.0 classes.
24218
24219 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24220         * Application.cs: Add 2.0 VisualStyles properties.
24221
24222 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24223         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
24224           XplatUIX11.cs: Create property to allow access to existing private
24225           variable "themes_enabled"
24226
24227 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24228
24229         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
24230         file size, as otherwise our class libraries fail using windows. Fixes
24231         bug #78759.
24232
24233 2006-08-04  Jackson Harper  <jackson@ximian.com>
24234
24235         * Form.cs:
24236         * XplatUIX11.cs: Move the toolwindow window manager creation into
24237         the X11 driver, this way on win32 we can let windows create/handle
24238         the toolwindows.
24239
24240 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24241
24242         * PrintDialog.cs: Remove some redundant checks, add some others,
24243         clean some code, and move the focus to the text boxes when the
24244         values are incorrect.
24245
24246 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
24247
24248         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
24249
24250 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
24251
24252         * NumericUpDown.cs: Setting the Minimum and Maximum is now
24253           handled correctly. Fixes bug #79001.
24254
24255 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24256
24257         * PrintDialog.cs: The "Copies" numeric up down must have
24258         set the Minimum property to 1; only if the value is bigger
24259         than 1, activate "Collate" check box. This is the behaviour of .Net.
24260         Also modify the Document elements only if it is not null.
24261
24262 2006-08-03  Jackson Harper  <jackson@ximian.com>
24263
24264         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
24265         length. (We have a larger array then actual node count).
24266                 
24267 2006-08-03  Jackson Harper  <jackson@ximian.com>
24268
24269         * ComboBox.cs: Don't show selection by default.
24270         - The SelectAll isn't needed here, since the focus code should do
24271         that
24272         - DDL style lists to manual selection drawing, so when they
24273         get/lose focus they have to invalidate.
24274
24275 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
24276
24277         * TextBoxBase.cs: Don't always show all selections by default.
24278
24279 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
24280         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
24281           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
24282           Fixed various typos.
24283
24284 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
24285
24286         * Control.cs: Removing the controls in a ControlCollection with
24287           Clear now hides the controls as expected. Fixes bug #78804. 
24288
24289 2006-08-03  Jackson Harper  <jackson@ximian.com>
24290
24291         * Control.cs: Revert previous focus patch, it breaks reflector.
24292
24293 2006-08-03  Jackson Harper  <jackson@ximian.com>
24294
24295         * ComboBox.cs: Cleanup selection and focus with the combobox.
24296         This also eliminates some duplicated keyboard code, since now
24297         everything is handled by the main class.
24298         - Make list selection work on mouse up instead of down, to match
24299         MS.
24300
24301 2006-08-02  Jackson Harper  <jackson@ximian.com>
24302
24303         * Control.cs: Setting focus needs to go through the whole
24304         selection mechanism.
24305
24306 2006-08-02  Chris Toshok  <toshok@ximian.com>
24307
24308         * PrintPreviewDialog.cs: change MinimumSize to use
24309         base.MinimumSize so it works.
24310
24311 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
24312
24313         * TextControl.cs:
24314           - UpdateCaret: Added sanity check in case caret isn't defined yet
24315           - Line.Delete: Now updating selection and caret markers if we're
24316             transfering a node (Properly fixes #78323)
24317           - SetSelectionEnd: Added sanity check
24318         * TextBoxBase.cs: Removed broken attempt to fix #78323
24319
24320 2006-08-01  Chris Toshok  <toshok@ximian.com>
24321
24322         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
24323         Close() call is handled in Form, not here.
24324
24325 2006-08-01  Chris Toshok  <toshok@ximian.com>
24326
24327         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
24328         layout/rendering.
24329
24330         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
24331         for sizes < 100% zoom.  The code now aggressively attempts to keep
24332         from calling document.Print (), and tries not to use the scaling
24333         g.DrawImage whenever possible (it still does if you scale to >
24334         100%, since usually that involves huge images).
24335
24336         * PrintPreviewControl.cs: hook up the close button.
24337
24338 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
24339         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
24340           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
24341           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
24342           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
24343           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
24344           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
24345           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
24346           Removed [Serializable] for 2.0 Event Handlers.
24347
24348 2006-07-31  Jackson Harper  <jackson@ximian.com>
24349
24350         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
24351         * TextControl.cs: Uncomment out the body of this method.
24352
24353 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
24354
24355         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
24356           standard cursors.
24357
24358 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24359
24360         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
24361           that embed TextBox and need selections visible even if textbox is not
24362           focused to enforce that behaviour.
24363         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
24364           selection drawing
24365
24366 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24367
24368         * TextControl.cs:
24369           - Added new SetSelectionStart/SetSelectionEnd overloads
24370           - Fixed viewport width assignment to be accurate
24371           - Adjusted alignment line shift calculations to allow cursor on right
24372             aligned lines to be always visible at the right border (like MS)
24373         * TextBoxBase.cs:
24374           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
24375           - TextBoxBase_SizeChanged: recalculating canvas on size changes
24376           - CalculateScrollBars: Use ViewPort size instead of window size, to
24377             properly consider space occupied by the border and scrollbars 
24378             (Fixes #78661)
24379           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
24380             calculations; no longer leaves artifacts
24381           - CaretMoved: Adjusted window scrolling to match MS and fixed several
24382             calculation bugs (Still missing right/center align calculations)
24383
24384 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
24385
24386         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
24387           use of both scroll rect and clip rect, as they do the same.
24388
24389 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24390
24391         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
24392           in the event handler (fixes #78912)
24393
24394 2006-07-31  Chris Toshok  <toshok@ximian.com>
24395
24396         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
24397         grid.ListManager.Count, since grid.ListManager might be null.
24398         This of course begs the question "why are we drawing rows for a
24399         grid with no list manager (and therefor no rows)?"  Fixes the
24400         crash in bug #78929.
24401
24402 2006-07-31  Chris Toshok  <toshok@ximian.com>
24403
24404         * RelatedPropertyManager.cs: Don't always chain up to the parent
24405         ctor.  instead, call SetDataSource if the parent's position is !=
24406         -1.  Fixes the crash in #78822.
24407
24408 2006-07-31  Chris Toshok  <toshok@ximian.com>
24409
24410         * DataGrid.cs (get_ListManager): use field instead of property
24411         accessors for datasource and datamember.
24412         (RowsCount): make internal again.
24413         (OnMouseDown): end edits before resizing columns/rows.
24414         (OnMouseUp): restart edits after resizing columns/rows.
24415
24416 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
24417
24418         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
24419           This fixes the situation where the last set cursor is displayed
24420           whenever the mouse is over scrollbars.
24421
24422 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24423
24424         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
24425         Document properties, as well as initial values.
24426
24427 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
24428
24429         * XplatUIWin32.cs (SetBorderStyle): Setting both border
24430           and ClientEdge results in a 3-pixel border, which is
24431           wrong.
24432
24433 2006-07-28  Jackson Harper  <jackson@ximian.com>
24434
24435         * TreeNodeCollection.cs: Fix the clear method.
24436         - Fix the Shrink also
24437
24438 2006-07-27  Jackson Harper  <jackson@ximian.com>
24439
24440         * TreeView.cs: Make sure the visible order is computed when we
24441         attempt to size the scrollbars (for trees that mess with the
24442         scrolling when they shouldn't.
24443         - Make sure to give the scrollbars valid values.
24444
24445 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
24446
24447         * XplatUIX11.cs: Move motion compression code to where it
24448           has less performance impact
24449
24450 2006-07-26  Jackson Harper  <jackson@ximian.com>
24451
24452         * UpDownBase.cs: When the control is selected make the child
24453         controls non selectable, so that a click on them won't do a
24454         focus/unfocus cycle.
24455         - Don't give focus to the text box when the spinner is selected.
24456         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
24457
24458 2006-07-26  Chris Toshok  <toshok@ximian.com>
24459
24460         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
24461         satisfied with this solution.  If the bitmaps are small, we should
24462         just cache them in the PrintPreviewDialog and draw them here.
24463         Also, the layout is broken for the 2-up and 3-up cases.
24464
24465         * Theme.cs: add PrintPReviewControlPaint.
24466
24467         * PrintPreviewDialog.cs: first pass implementation.
24468
24469         * PrintPreviewControl.cs: first pass implementation.  No
24470         scrollbars yet.
24471
24472         * PrintDialog.cs: only validate fields if that particular portion
24473         of the UI is enabled.  Also, set the document's controller to a
24474         PrintControllerWithStatusDialog wrapping the document's print
24475         controller.
24476
24477         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
24478         bring up a SaveFileDialog (i hope we don't want to match the
24479         behavior of the crappy windows file entry) and set the
24480         PrinterSettings.PrintFileName accordingly.
24481
24482 2006-07-26  Jackson Harper  <jackson@ximian.com>
24483
24484         * ContainerControl.cs: Add a field that disables auto selecting
24485         the next control in a container when the container is activated.
24486         * UpDownBase.cs: Don't select the text box when the up down is
24487         selected.
24488
24489 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
24490
24491         * XEventQueue.cs: Added methods for peeking (used for compression
24492           of successive events)
24493         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
24494           mouse move events (fixes #78732)
24495
24496 2006-07-25  Jackson Harper  <jackson@ximian.com>
24497
24498         * UpDownBase.cs: Use an internal class for the textbox so that we
24499         can control focus.  the updown control should always have focus,
24500         if either the text area or the buttons are clicked.
24501         - Send the key messages to the textbox, since it never actually
24502         has focus
24503         - Activate and decativate the textbox caret.
24504
24505 2006-07-24  Jackson Harper  <jackson@ximian.com>
24506
24507         * Control.cs: Use the directed select when selecting a control,
24508         this way the container controls override will get called and the
24509         whole ActiveControl chain will get triggered.  TODO: probably need
24510         to make sure this gets done everywhere instead of the old
24511         Select(Control).
24512         * ContainerControl.cs: Implement the directed Select method to
24513         find and activate the correct child control.    
24514         
24515 2006-07-22  Mike Kestner  <mkestner@novell.com>
24516
24517         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
24518         menu handling code so that clicks without a grab work too.
24519         [Fixes #78914]
24520
24521 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
24522
24523         * FileDialog.cs: Enable the BackButton when dirstack has one element.
24524           Added some small optimizations.
24525
24526 2006-07-21  Matt Hargett  <matt@use.net>
24527
24528         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
24529
24530 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
24531
24532         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
24533           tests pass and match MS in some strange border cases.
24534
24535 2006-07-21  Chris Toshok  <toshok@ximian.com>
24536
24537         * ThemeWin32Classic.cs: handle drawing of the relation links and
24538         parent row buttons.
24539
24540         * Theme.cs: change args to DataGridPaintParentRow.
24541
24542         * DataGrid.cs: Don't use controls for the relation links and
24543         parent buttons, so we have to handle all their interactions in
24544         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
24545         when we're navigating through child tables, so we can reinstate
24546         selection, expanded state, current cell, etc.
24547
24548 2006-07-20  Chris Toshok  <toshok@ximian.com>
24549
24550         * ToolBar.cs: When we redraw a button, for whatever reason,
24551         there's no reason to redraw the entire toolbar.  Also, don't call
24552         Control.Refresh from within Redraw, as it's much heavier than
24553         Invalidate (which is really what we want).
24554
24555 2006-07-20  Chris Toshok  <toshok@ximian.com>
24556
24557         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
24558         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
24559         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
24560         traces from within a debug IBindingList datasource
24561         (in mono/winforms/datagrid) for *days*, I've finally gotten things
24562         to work in a similar fashion.
24563
24564 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24565
24566         * ListBox.cs: Don't call Sort () when setting 
24567         the Sorted property to false (avoid an unnecessary sort).
24568
24569 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24570
24571         * ListControl.cs: DataSource should throw an ArgumentException
24572         instead of a normal exception when the argument is not of the 
24573         correct type.
24574
24575 2006-07-20  Mike Kestner  <mkestner@novell.com>
24576
24577         * Control.cs: add InternalPreProcessMessage to allow us to steal
24578         key events before MWF gets its paws on them.  Adapted from a
24579         suggestion by eno.
24580         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
24581         up/down/left/right navigation. Override the new internal control
24582         method to steal the events since they never make it to WndProc.
24583         * ToolBarButton.cs: don't worry about pushed when setting hilight
24584         since the drawing code prefers pushed to hilight. Invalidate on 
24585         Hilight changes. Fixes #78547 and #78525.
24586
24587 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
24588
24589         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
24590           the canvas size. Fixes #78868
24591
24592 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
24593
24594         * Splitter.cs: Track requested split position until first layout
24595           is performed. Fixes #78871
24596
24597 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
24598
24599         * Application.cs: Removed code that forces 1.x for the version
24600           number if the version started with 0. Not sure why that code was
24601           there and I couldn't find any bugs that indicated we needed it.
24602           Fixes #78869
24603
24604 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
24605
24606         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
24607           ResetDefaults(), just write some output to the console until it's
24608           implemented. Fixes bug #78907 for now. Eliminated two warnings.
24609
24610 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
24611
24612         * PropertyGridView.cs: set StartPosition of drop down forms
24613         so they appear in correct initial spot.  Fixes #78190.
24614
24615 2006-07-19  Mike Kestner  <mkestner@novell.com>
24616
24617         * ThemeWin32Classic.cs: use parent background color when drawing
24618         flat toolbars.  Restructure the conditionals to make sure non-flat
24619         non-Divider toolbars are filled too.  Fixes #78837.
24620
24621 2006-07-19  Mike Kestner  <mkestner@novell.com>
24622
24623         * ListBox.cs: Sort on collection changes even if the handle
24624         isn't created yet.  Fixes #78813.
24625
24626 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24627
24628         * ListControl.cs: DisplayMember should never be null,
24629         and now we assign String.Empty when null is passed to it (this
24630         is the .Net way).
24631
24632 2006-07-17  Mike Kestner  <mkestner@novell.com>
24633
24634         * ListViewItem.cs: restructure Font and subitem Font handling 
24635         to hold a specific font and refer back to owner on null.
24636         Fixes #78761.
24637
24638 2006-07-17  Mike Kestner  <mkestner@novell.com>
24639
24640         * ToolBar.cs: bandaid for side-effect of previous patch which was
24641         discarding explicit heights for non-AutoSize toolbars.  Need to
24642         extend my format tester to deal with AutoSize=false. Fixes #78864.
24643
24644 2006-07-15  Jackson Harper  <jackson@ximian.com>
24645
24646         * LabelEditTextBox.cs:
24647         * TreeView.cs: Use a new LabelEdit class for node editing, this
24648         class automatically 'closes' itself when it gets the enter key or
24649         loses focus.
24650         - Use the client rectangle when setting the trees scrollbars, so
24651         border style is taken into account.
24652         
24653 2006-07-14  Jackson Harper  <jackson@ximian.com>
24654
24655         * TreeNode.cs:
24656         * TreeView.cs: Make the editing work similar to MSs, firing the
24657         events correctly and ending edits correctly.
24658
24659 2006-07-14  Mike Kestner  <mkestner@novell.com>
24660
24661         * ToolBarButton.cs:
24662         * ToolBar.cs: layout restructuring and redraw enhancements to support
24663         formatting changes gracefully, like setting TextAlign, ImageList, 
24664         ButtonSize, and Appearance.  Handles explicit button sizing quirks
24665         of the MS controls.  Things like flat toolbars ignoring button size
24666         but becoming constant sized at the largest button's size.  Normal
24667         toolbars with an image set cannot be shrunk smaller than the image,
24668         but text can be clipped/ignored.
24669         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
24670         is zero.  Seems like DrawString should be smart enough to not put
24671         anything on screen though. Also trim labels and ellipsize at the char
24672         boundary, not word.
24673         Fixes #78711 and #78483.
24674
24675 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24676
24677         * FolderBrowserDialog.cs: Disable "New Folder" button and
24678           "New Folder" contextmenu menuitem if a folder like "My Computer"
24679           is selected.
24680
24681 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24682
24683         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
24684         * FolderBrowserDialog.cs:
24685           - Use MWFConfig to store and read size and position settings
24686           - Added code to create a new folder (button or context menu).
24687             Use TreeView labeledit to change the name of the new folder.
24688
24689 2006-07-14  Jackson Harper  <jackson@ximian.com>
24690
24691         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
24692         when the tree is scrolled we end editing.
24693
24694 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24695
24696         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
24697           Down arrows
24698
24699 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
24700
24701         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
24702         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
24703         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
24704         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
24705         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
24706         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
24707         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
24708         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
24709         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
24710         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
24711         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
24712         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
24713         ListViewItemSelectionChangedEventHandler.cs,
24714         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
24715         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
24716         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
24717         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
24718         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
24719         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
24720         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
24721         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
24722         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
24723         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
24724         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
24725         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
24726         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
24727         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
24728         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
24729         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
24730         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
24731         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
24732         WebBrowserNavigatingEventHandler.cs, 
24733         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
24734
24735 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
24736
24737         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
24738         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
24739         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
24740         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
24741         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
24742         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
24743         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
24744         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
24745         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
24746         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
24747         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
24748         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
24749         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
24750         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
24751         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
24752         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
24753         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
24754         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
24755         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
24756         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
24757         ListViewItemStates.cs, MaskFormat.cs: Added
24758
24759 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
24760
24761         * PropertyGridView.cs: Fix keyboard navigation of drop down.
24762         Patch from eno for bug 78558.
24763         
24764 2006-07-13  Jackson Harper  <jackson@ximian.com>
24765
24766         * TreeView.cs: When an edit is finished make sure that the
24767         selected node is visible.
24768         - When setting the top/bottom use the scrollbars is_visible, so
24769         everything will be set correctly even if the tree isn't visible
24770         yet.
24771
24772 2006-07-13  Jackson Harper  <jackson@ximian.com>
24773
24774         * ComboBox.cs: Revert the item->index part of my previous patch.
24775         * TreeView.cs: Use LostFocus instead of Leave for detecting when
24776         the edit box has lost focus (duh).
24777         - Just make the edit box not visible when we get return, that will
24778         take the focus, which will call EndEdit
24779         * TreeNode.cs When we start editing, notify the treeview.
24780
24781 2006-07-12  Jackson Harper  <jackson@ximian.com>
24782
24783         * ComboBox.cs: Clear out old items before setting the item list.
24784         This prevents databound controls from having their items added
24785         twice.
24786         - Switch the combobox to use indices whereever possible instead of
24787         using Item's.  This allows usto navigate through lists that have
24788         more then one item with the same string value (ie a, b, b, a).
24789         - Scroll the listboxes scrollbar when a non visible item is
24790         highlighted
24791         - Allow keypress to cycle through all the possible values. For
24792         example if you have b1, b2, b3 and hold down the B key all the
24793         values will be cycled through.
24794         
24795 2006-07-12  Jackson Harper  <jackson@ximian.com>
24796
24797         * TextBoxBase.cs:
24798         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
24799         this using the internal methods.
24800         * Control.cs: Add OnGotFocusInternal.  A new method that allows
24801         controls to "override" OnGotFocus and change focus behavior if
24802         needed.
24803         - Same thing for LostFocus
24804         * ComboBox.cs: Pass off focus to the text control properly.
24805
24806 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
24807
24808         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
24809         * FolderBrowserDialog.cs: Almost a complete rewrite.
24810           - Better support for Environment.Specialfolders
24811           - Added support for MWFVFS
24812           - Made setting SelectedPath work
24813
24814 2006-07-12  Jackson Harper  <jackson@ximian.com>
24815
24816         * Control.cs: Optimze getting all the controls.
24817
24818 2006-07-11  Jackson Harper  <jackson@ximian.com>
24819
24820         * ContainerControl.cs: Override SETFOCUS in the container control,
24821         so that it is not selected on mouse click.
24822
24823 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
24824
24825         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
24826           Hopefully we will have a better way once all of focus is complete.
24827
24828 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
24829
24830         * ThemeWin32Classic.cs: Commented out some debug code and fixed
24831           a compile error with csc.
24832
24833 2006-07-11  Jackson Harper  <jackson@ximian.com>
24834
24835         * Control.cs: When hiding a control only select the next control
24836         if the current control was focused.
24837         - Don't handle enter/leave when setting/killing focus, this is
24838         done by the container control.
24839         - Remove is_selected, it's not needed anymore.
24840         - Add utility methods for selecting a child control, and for
24841         firing the Enter/Leave events.
24842         * ContainerControl.cs: When a control is activated fire the
24843         enter/leave events.
24844         - Don't wrap when processing the tab key, so that focus can be
24845         moved outside of the container.
24846         - Use the correct active control
24847
24848 2006-07-11  Jackson Harper  <jackson@ximian.com>
24849
24850         * ComboBox.cs: Remove some debug code that was blinding me.
24851         * UpDownBase.cs: These controls actually aren't implicit, they are
24852         visible to the user.
24853
24854 2006-07-10  Chris Toshok  <toshok@ximian.com>
24855
24856         * DataGrid.cs: move back to the is_adding boolean field.  god i
24857         hate this is_editing/is_adding/is_changing stuff.
24858
24859 2006-07-10  Chris Toshok  <toshok@ximian.com>
24860
24861         * DataGridTableStyle.cs: just check if the property type is bool.
24862         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
24863         Don't use CanRenderType.
24864
24865         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
24866         if our text == NullText.  Remove CanRenderType.
24867
24868         * DataGridBoolColumn.cs: nuke CanRenderType.
24869
24870         * DataGrid.cs: reenable some code to end the current edit inside
24871         of set_CurrentCell.  This fixes the other 1.1.16 regression.
24872         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
24873         Also, remove the visible_row_count arg from CalcRowHeaders, since
24874         we don't need to worry about the actual height of the area.
24875
24876 2006-07-10  Chris Toshok  <toshok@ximian.com>
24877
24878         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
24879         mode, just return.
24880
24881         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
24882         the real sense of the IsInEditOrNavigateMode property (true =
24883         navigate, false = edit).  Also, update OnKeyPress to reflect this.
24884
24885         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
24886         column style exists, we still need to set its property descriptor
24887         to match up with our list manager.
24888
24889 2006-07-10  Chris Toshok  <toshok@ximian.com>
24890
24891         * ThemeWin32Classic.cs: implement the new row/header painting
24892         approach.  The parent row painting will likely go away and
24893         replaced with label controls, but the rest seems to work ok (and
24894         efficiently).
24895
24896         * Theme.cs: change the way we draw datagrid rows.  we don't draw
24897         the row headers as a block now.  Instead we draw them in the
24898         normal draw-row loop.  Add some calls for drawing parent rows and
24899         relation rows.
24900
24901         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
24902         a default table style.  Set the defaults from ThemeEngine.Current,
24903         not SystemColors.  Fix lots of misc issues with property setters.
24904
24905         * DataGrid.cs: move loads of style information out of this class
24906         as it's being duplicated with DataGridTableStyle.  keep track of a
24907         special DataGridTableStyle for the properties we used to mirror
24908         here.  Switch all the style properties to access this table style
24909         instead of instance fields of this class.  Also add a internal
24910         class to represent parent rows (more needs to be stored here, like
24911         the selection state from the parent table, as well as the
24912         expansion state.)  Also, for datasources with relations, do the
24913         right thing for collapse/expand, and add support for the
24914         navigation/parent row buttons.
24915
24916         Lastly, fix the crash in the 1.1.16 build.
24917
24918         * GridTableStylesCollection.cs: make the explicit interface
24919         implementations call the class's methods as opposed to duplicating
24920         them.
24921
24922         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
24923         0 so the text doesn't jump around when we move the cursor.
24924
24925 2006-07-10  Jackson Harper  <jackson@ximian.com>
24926
24927         * TextBoxBase.cs:
24928         * ListBox.cs: Match MS's ToString (this makes debugging focus
24929         stuff infinitely easier).
24930
24931 2006-07-10  Jackson Harper  <jackson@ximian.com>
24932
24933         * Control.cs (SelectNextControl): When checking the control's
24934         parent use this instead of ctrl.parent so that null can be passed
24935         to SelectNextControl. (I have unit tests for this).
24936         - Remove unused var.
24937
24938 2006-07-10  Chris Toshok  <toshok@ximian.com>
24939
24940         * CurrencyManager.cs: correct one regression, the removal of the
24941         finalType field.  Also, add a MonoTODO on CanAddRows, implement
24942         Refresh() correctly, and fix some event emission in
24943         ListChangedHandler.
24944
24945 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
24946
24947         * FileDialog.cs: Don't use brackets for new folders if they exist
24948           under *nix. Instead use -(number of existing folders +1).
24949
24950 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
24951
24952         * FileDialog.cs:
24953           - Fixed really nasty bug #78771
24954           - Don't block the whole GUI when reading directories with a lot of
24955             entries. Use an other thread instead and call BeginInvoke to
24956             update the ListView in MWFFileView
24957
24958 2006-07-07  Chris Toshok  <toshok@ximian.com>
24959
24960         * Control.cs (Dispose): release any Capture when disposing.
24961
24962 2006-07-07  Chris Toshok  <toshok@ximian.com>
24963
24964         * LinkLabel.cs (Select): if we chain up to the parent, set
24965         focused_index to -1 so we'll search for the first available link
24966         the next time the user tabs into us.  Also, if the direction is
24967         backward and focused_index == -1, start the search from the last
24968         element.
24969
24970 2006-07-07  Chris Toshok  <toshok@ximian.com>
24971
24972         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
24973         is beyond the end of the text, don't do anything.
24974         (CreateLinkPieces): set our ControlStyles.Selectable based on
24975         whether or not we have any links.
24976         (Link.Invalidate): use a loop instead of foreach.
24977         (Link.set_Start): null out owner.sorted_links so it'll be
24978         recreated by CreateLinkPieces.
24979
24980 2006-07-06  Chris Toshok  <toshok@ximian.com>
24981
24982         * LinkLabel.cs: revert the SetStyle change.
24983
24984 2006-07-06  Chris Toshok  <toshok@ximian.com>
24985
24986         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
24987         (OnEnableChanged): s/Refresh/Invalidate
24988         (OnGotFocus): if we have a focused index already, refocus it (so
24989         if we mouse out/in to the window it'll focus the right link).
24990         (OnKeyDown): move the tab handling out of here.
24991         (OnLostFocus): don't set focused_index to -1, so we can refocus it
24992         when we lose focus.
24993         (OnMouseDown): don't Capture here - Control handles it.  Also,
24994         focus the active link.
24995         (OnMouseUp): don't deal with Capture.
24996         (OnPaintBackgroundInternal): remove.
24997         (OnTextAlignChanged): CreateLinkPieces before calling the
24998         superclass's method.
24999         (OnTextChanged): call CreateLinkPieces before calling superclass's
25000         method.
25001         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
25002         move around.
25003         (Select): implement this, moving the selection between different
25004         links, and call parent.SelectNextControl if we don't have another
25005         link to focus in the given direction.
25006         (CreateLinkPieces): call Invalidate instead of Refresh.
25007         
25008 2006-07-06  Chris Toshok  <toshok@ximian.com>
25009
25010         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
25011         new LinkLabel internals.
25012
25013         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
25014         over pieces looking for active/focused/etc links.  also, deal with
25015         runs of text (and links) with embedded \n's in them, and use
25016         MeasureCharacterRanges instead of MeasureString to figure out the
25017         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
25018         two-step.
25019
25020 2006-07-04  Jackson Harper  <jackson@ximian.com>
25021
25022         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
25023         XKB or key auto repeat, do it manually.  Without key auto repeat,
25024         when a key is held down we get key press, key release, key press,
25025         key release, ... with auto repeat we get key press, key press, key
25026         press ..., and then a release when the key is actually released.
25027
25028 2006-07-03  Jackson Harper  <jackson@ximian.com>
25029
25030         * TabControl.cs:
25031         * ThemeWin32Classic.cs: Tabs do not obey normal background color
25032         rules, they are always control color regardless of the background
25033         color.
25034
25035 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
25036
25037         * FileDialog.cs: Added internal class MWFConfig.
25038           Removed Registry support and replaced it with support for the new
25039           MWFConfig class. See MWFConfig comments for more information.
25040
25041 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
25042
25043         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
25044           rectangle. Added some patches from eno from bug #78490 and fixed
25045           the arrow position for small up and down CPDrawScrollButtons.
25046
25047 2006-06-30  Jackson Harper  <jackson@ximian.com>
25048
25049         * InternalWindowManager.cs: Remove some debug code.
25050         * Form.cs: When an MdiParent is set to null, the window is
25051         "detatched" and becomes a normal window.
25052         * MdiClient.cs: Don't bring the new child form to the front until
25053         it is activated (setting it as active does this), this makes the
25054         previously active forms titlebar get redrawn as inactive.
25055
25056 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
25057
25058         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
25059           with later controls
25060
25061 2006-06-29  Mike Kestner  <mkestner@novell.com>
25062
25063         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
25064         arrow in keynav state.  Fixes #78682.
25065
25066 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
25067
25068         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
25069           order (fixes #78393)
25070
25071 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
25072
25073         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
25074           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
25075           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
25076           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
25077           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
25078           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
25079           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
25080           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
25081           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
25082           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
25083           enumerations (FlagsAttribute, SerializableAttribute, added/removed
25084           values)
25085
25086 2006-06-28  Mike Kestner  <mkestner@novell.com>
25087
25088         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
25089
25090 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
25091
25092         * PropertyGrid.cs,
25093           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
25094           item lines from other area (It also makes BackColor consistent and
25095           compatible with .NET). Fixed bug #78564.
25096
25097 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
25098
25099         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
25100         Patch from Eno for #78555.
25101
25102 2006-06-27  Chris Toshok  <toshok@ximian.com>
25103
25104         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
25105
25106         * DataGridColumnStyle.cs: same.
25107
25108         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
25109         
25110         * DataGridDrawingLogic.cs: nuke.
25111
25112 2006-06-27  Chris Toshok  <toshok@ximian.com>
25113
25114         * DataGridTableStyle.cs: clean up the constructors, and build the
25115         list of child relations for this table.  I have no idea if this is
25116         where we should be doing it (it probably isn't), but since we're
25117         already iterating over the properties..
25118
25119         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
25120         struct and array for keeping track of row information, similar to
25121         what's shown in a hack on
25122         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
25123
25124         * Theme.cs: be consistent about the naming of DataGrid methods,
25125         prefering ColumnWidths and RowHeights over columnsWidths and
25126         RowsHeights.
25127
25128         * ThemeWin32Classic.cs: same, and also add support for variable
25129         sized rows (and the +/- expansion icons for related rows).
25130
25131 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
25132
25133         * TextBoxBase.cs: Applied Eno's patch from #78660
25134
25135 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
25136
25137         * Form.cs (ScaleCore): We don't want to scale our form if it's
25138           state is minimized or maximized, but we still need to scale our
25139           child windows. Also, added try/finally block to ensure layout
25140           gets reset (Fixes #78697)
25141
25142 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
25143
25144         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
25145
25146 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
25147
25148         * Form.cs: Fixed c+p error and added check to resize form if minimum
25149           size is bigger than current size (Fixes #78709)
25150
25151 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
25152
25153         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
25154
25155 2006-06-26  Mike Kestner  <mkestner@novell.com>
25156
25157         * ComboBox.cs: only do Keypress handling in the combo when there  
25158         are items in the collection. Fixes #78710.
25159
25160 2006-06-26  Chris Toshok  <toshok@ximian.com>
25161
25162         * Binding.cs: make this work bi-directionally.  also, clear up
25163         other mixups between Push/Pull Data (e.g. we're supposed to pull
25164         data when validating).
25165
25166         * BindingManagerBase.cs: trim some fully qualified collection
25167         types.
25168
25169         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
25170
25171 2006-06-23  Chris Toshok  <toshok@ximian.com>
25172
25173         * PropertyManager.cs: It appears (according to the unit tests)
25174         that PropertyManager doesn't use
25175         PropertyDescriptor.AddValueChanged to track propery value changes
25176         in its datasource, but uses the same scheme as Binding, where it
25177         looks for a <Property>Changed event and binds to it.
25178
25179         Also, according to the docs, IsSuspended always returns false for
25180         a property manager with a non-null datasource.
25181
25182 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
25183
25184         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
25185           need to update the actual DialogResult. (Fixes #78613)
25186
25187 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
25188
25189         * Form.cs (ShowDialog): Release any captures before running the
25190           new message pump (fixes #78680)
25191
25192 2006-06-22  Mike Kestner  <mkestner@novell.com>
25193
25194         * ListView.cs: Layout column widths properly in details mode even 
25195         if HeaderStyle.None is set.  Fixes #78691.
25196
25197 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
25198
25199         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
25200
25201 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
25202
25203         * Control.cs (ContainsFocus): Using new driver method to get focused
25204           window, instead of trying to use internal tracking var, which can
25205           recursion issues (Fixes #78685)
25206         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
25207           XplatUIWin32.cs: Added GetFocus method to return focused window
25208
25209 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25210
25211         * ColorDialog.cs: when the mouse button is pressed inside the color
25212         matrix, don't let the cursor move out of it until the button is
25213         released, which is the behavior on windows. Changed 'colours' by
25214         'colors' to use the same word consistently.
25215
25216 2006-06-21  Chris Toshok  <toshok@ximian.com>
25217
25218         * DataGrid.cs: add in some basic navigation stuff (navigating to a
25219         child relation and back, using a stack).  Also, remove
25220         GetDataSource and the code that calls it - it's not needed.  Also,
25221         track CurrencyManager.ListName's removal.
25222
25223 2006-06-21  Chris Toshok  <toshok@ximian.com>
25224
25225         * CurrencyManager.cs: push some of the original type checking from
25226         BindingContext.CreateBindingManager to here, and remove some of
25227         the finalType stuff.  Need more tests to make sure I've got the
25228         ListName part right, and we might need more in SetDataSource.
25229
25230         * PropertyManager.cs: add a ctor that takes just the datasource,
25231         and no property name.  Make SetDataSource work with a null
25232         property_name, and make Current return the data_source if the
25233         property descriptor is null.  this makes 'string foo = "hi";
25234         BindingContext[foo].Current' return "hi" as it should.
25235
25236         * RelatedCurrencyManager.cs: make this code more generic - there's
25237         no reason the parent manager has to be CurrencyManager, and
25238         there's no reason to pass the DataRelation.  It suffices to use a
25239         BindingManagerBase and PropetyDescriptor.
25240
25241         * RelatedPropertyManager.cs: make a similar change here.
25242         
25243         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
25244         flower I knew it could be.
25245
25246 2006-06-20  Chris Toshok  <toshok@ximian.com>
25247
25248         * PropertyManager.cs: the PropertyChangedHandler is invoked when
25249         data in the source has changed and we need to update the control,
25250         so s/PullData/PushData.
25251
25252         * CurrencyManager.cs: Refresh is meant to update the control from
25253         data in the datasource.  So, s/PullData/PushData.
25254
25255         * BindingContext.cs: add more ugliness (we weren't handling the
25256         case where data_source = DataTable and data_member = column_name).
25257
25258         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
25259         from the perspective of the datasource.  PullData pulls from the
25260         control, PushData pushes to the control.
25261
25262 2006-06-20  Chris Toshok  <toshok@ximian.com>
25263
25264         * BindingContext.cs: rewrite the CreateBindingManager code to
25265         handle navigation paths more or less properly.  This could
25266         definitely stand some more work, in particular to push the
25267         recursion up to the toplevel.  But that relies on fixes in other
25268         places (System.Data comes to mind).
25269
25270         Also, move to a flat hashtable (and encode the twolevel nature of
25271         the dictionary into the hash key).  This lets us implement the
25272         IEnumerable.GetEnumerator method.
25273
25274         * RelatedCurrencyManager.cs: new class.  Update our view based on
25275         our relation and our parent CurrencyManager's position.
25276
25277         * CurrencyManager.cs: split out some logic from the ctor into
25278         SetView, so it can be called from the new RelatedCurrencyManager
25279         subclass.
25280
25281         * RelatedPropertyManager.cs: new class.  Update our datasource
25282         based on the position of our parent CurrencyManager.
25283
25284         * PropertyManager.cs: split out some logic from the ctor into
25285         SetDataSource, so it can be called from the new RelatedDataSource
25286         subclass.  Also, make the Current getter return the value
25287         of the PropertyDescriptor, not the data_source.
25288
25289         * Binding.cs: no need to duplicate the string splitting code here.
25290
25291 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
25292
25293         * Control.cs:
25294           - set_Enabled: OnEnabledChanged is not called if the inherited state 
25295             of the control is not altered, even though  we might be changing the
25296             internal state of the control (#78458)
25297           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
25298             OnEnabledChanged, to allow easy altering of any child window state
25299           - OnEnabledChanged: Added code to enable/disable driver window state
25300           - OnParentEnabledChanged: Instead of firing the event, call 
25301             OnEnabledChanged, which will fire the event and also a) set driver
25302             window state and pass the enabled state to any grandchildren (#78458)
25303
25304 2006-06-19  Jackson Harper  <jackson@ximian.com>
25305
25306         * InternalWindowManager.cs: We don't set the cursor explicitly
25307         thats done via the response to NCHITTESTs.
25308         - Don't need to adjust for titlebar heights anymore, the
25309         coordinates are coming in the correct coordinates now (see peters
25310         last patch).
25311
25312
25313 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
25314
25315         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
25316           being translated relative to whole window, instead of client window.
25317           That caused broken offsets on mouseclick (and caused gas for our
25318           InternalWindowManager)
25319
25320 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
25321
25322         * TextControl.cs:
25323           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
25324           - Undo(): Added replay of cursor move on DeleteChars action; added
25325             calling Undo() again if a recorded cursor move is invalid (to
25326             ensure that some action is performed on Undo)
25327         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
25328
25329 2006-06-16  Jackson Harper  <jackson@ximian.com>
25330
25331         * MdiClient.cs: Instead of just sizing maximized windows when
25332         there is a resize we also have to adjust the Y of minimized
25333         windows, so they stay pinned to the bottom of the mdi container.
25334         - Eliminate separate tracking of the active control, we can just
25335         get this from the controls collection.
25336         - Paint the decorations for the newly activated titlebar so we get
25337         a pretty blue bar.
25338         * InternalWindowManager.cs:
25339         * ThemeWin32Classic.cs: Minimized windows get all three buttons
25340         even if they are a tool window.
25341         
25342 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
25343
25344         * TextControl.cs (Undo): Handle non-existent cursor locations in the
25345           undo buffer, these can happen when text was deleted and the cursor
25346           was recorded first. Since we will also have a recorded cursor
25347           after the delete this is not an issue. (Fixes #78651)
25348
25349 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
25350
25351         * AccessibleObject.cs: Remove dependence on Control.is_selected;
25352           instead properly track control states internally (allows us to
25353           remove is_selected from Control)
25354
25355 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25356
25357         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
25358         whose width is not a multiple of 8.
25359
25360 2006-06-13  Jackson Harper  <jackson@ximian.com>
25361
25362         * MdiClient.cs:  Only maximize the next child if the current one
25363         is maximized.
25364
25365 2006-06-13  Chris Toshok  <toshok@ximian.com>
25366
25367         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
25368         modified.  Also, guard against grid or grid_drawing being null in
25369         Invalidate.
25370
25371         * DataGrid.cs: Reformat tons of getters/setters.  In the
25372         DataMember setter, just call SetNewDataSource instead of
25373         duplicating some of its functionality.  In SetNewDataSource, don't
25374         check ListManager for null, since the property getter creates the
25375         object if needed.
25376
25377         * DataGridTableStyle.cs: don't set TableStyle or call
25378         SetDataGridInternal on the column here, it's done in
25379         GridColumnStylesCollection.Add.
25380
25381         * GridColumnStylesCollection.cs: fix all the explicit interface
25382         implementations to just call our methods.  Nuke AddInternal() and
25383         move the body of it to Add().  Also, add a call to
25384         column.SetDataGridInternal to Add().
25385
25386         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
25387         base()+duplicate code.  Also, use the Format property instead of
25388         format to generate an Invalidate ala MS.  Lastly, create the
25389         textbox here, unconditionally.
25390         (set_Format): call Invalidate.
25391         (get_TextBox): no need to call EnsureTextBox.
25392         (Commit): remove the message box.
25393         (Edit) remove the call to EnsureTextBox.
25394         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
25395         (EnterNullValue): no need to check textbox for null.
25396         (HideEditBox): no need to check textbox for null.
25397         (SetDataGridInColumn): add the textbox to the grid's controls.
25398         (EnsureTextBox): nuke.
25399         
25400 2006-06-13  Jackson Harper  <jackson@ximian.com>
25401
25402         * MdiWindowManager.cs: Hook up to the maximized menus paint event
25403         and redraw the buttons when needed. Unhook when the window is
25404         unmaximized.
25405         * MainMenu.cs: Add an internal Paint event, the mdi window manager
25406         needs this so that it can redraw its buttons when the menu is
25407         repainted.
25408         * InternalWindowManager.cs:
25409         * Form.cs: The method order has changed for DrawMaximizedButtons,
25410         so that it can be a PaintEventHandler.
25411         
25412 2006-06-13  Jackson Harper  <jackson@ximian.com>
25413
25414         * MdiClient.cs: When we close a maximized mdi window, the next mdi
25415         window is activated and maximized, even if it wasn't before.
25416         - When  a new window is activated repaint the decorations of the
25417         old one, so that it no longer has the Active "look" (the blue
25418         titlebar).
25419         * InternalWindowManager.cs: Open up CreateButtons to base classes
25420         so they can recreate the buttons on state changes.
25421         - If a window is maximized give it all three buttons
25422         * MdiWindowManager.cs: Create the titlebar buttons when the state
25423         is changed, this is needed because a toolwindow will not have all
25424         three buttons until it is maximized.
25425
25426 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
25427
25428         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
25429           Fixed bug #78609.
25430
25431 2006-06-12  Jackson Harper  <jackson@ximian.com>
25432
25433         * KeysConverter.cs: Make sure we handle the Ctrl special case
25434         if its the only key.
25435         
25436 2006-06-12  Jackson Harper  <jackson@ximian.com>
25437
25438         * Theme.cs: Add a method to get the size of a managed window
25439         toolbar button.
25440         * InternalWindowManager.cs: Remove the ButtonSize property, this
25441         should be retrieved from the theme.
25442         * MdiWindowManager.cs: Get the button size from the theme
25443         * ThemeWin32Classic.cs: Make the method to get the managed window
25444         titlebar button size public.
25445         - Handle the different button sizes of maximized toolwindows
25446         (should match any maximized window).
25447         - Get the titlebar height from the theme, not the WM (which gets
25448         it from the theme).
25449
25450 2006-06-12  Jackson Harper  <jackson@ximian.com>
25451
25452         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
25453         event down to the mdi window manager.
25454         - Expose some extra stuff to base classes
25455         - Make sure to end the Capture on an NC Mouse up, so that we can
25456         get double clicks properly, and the sizing doens't stick.
25457         - When doing PointToClient contain it in the workable desktop
25458         area, this prevents windows from changing size when the cursor is
25459         pulled outside of the working area while sizing.
25460         * MdiWindowManager.cs: When we get a double click maximize the
25461         window.
25462         - Reset the cursor after handling mode changes.
25463
25464 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
25465
25466         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
25467           current desktop, instead of just assuming a 0, 0 origin. This
25468           is needed for our internal window manager, to know the top
25469           margin of the desktop
25470
25471 2006-06-12  Chris Toshok  <toshok@ximian.com>
25472
25473         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
25474         we need this to get rid of the selected background in the bool
25475         column.
25476         (CancelEditing): move the ConcedeFocus call to above the Abort
25477         call.  Also, set is_changing to false and invalidate the row
25478         header if we were changing before.
25479         (ProcessKeyPreviewInternal): remove, since noone outside this
25480         class calls it anymore.  Roll the code into ProcessKeyPreview.
25481         (EndEdit): remove the internal version.
25482         (InvalidateCurrentRowHeader): make private.
25483
25484         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
25485         Keys.Escape handling (and with it the last call to
25486         DataGrid.EndEdit from outside the class.)
25487
25488
25489 2006-06-12  Chris Toshok  <toshok@ximian.com>
25490
25491         * DataGridTextBox.cs (.ctor): isedit defaults to false.
25492         (OnKeyPress): set isedit to true.
25493         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
25494         already handled by the grid.
25495
25496         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
25497         right.  ugh.
25498         (set_DataSource): SetDataSource always returns true, so stop
25499         putting it in an if statement.
25500         (EndEdit): get rid of some {}'s
25501         (ProcessGridKey): return true in case Keys.Escape.
25502         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
25503         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
25504         PositionChanged, stopped connecting to CurrentChanged.
25505         (GetDataSource): simplify this a bunch.
25506         (SetDataSource): change return type from bool to void.
25507         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
25508         to this, and make sure we don't set ListManager.Position inside
25509         set_CurrentCell.
25510         (OnListManagerItemChanged): if we're passed an actual index,
25511         redraw that row.
25512
25513         * CurrencyManager.cs (set_Position): don't call PullData here.
25514
25515 2006-06-09  Jackson Harper  <jackson@ximian.com>
25516
25517         * TreeNode.cs:  Recalculate the visible order before doing the
25518         Expand/Collapse Below calls, because those calls generate an
25519         expose.
25520         - Reduce calls to the TreeView property, which is mildly expensive
25521         by using a local var.
25522         * Form.cs: Layout the MDI child windows when creating the parent
25523         form.
25524         - Don't use the internal constructor anymore
25525         * MdiClient.cs: use the parent form width/height (if available)
25526         when laying out the child windows, we do this because the
25527         mdiclient isn't docked yet when the initial layout is done.
25528         - Don't need an internal constructor anymore.
25529
25530 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25531
25532         * FileDialog.cs: handle access errors when trying to create a folder
25533         or changing to a directory. No need to initialize out parameters.
25534
25535 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25536
25537         * FileDialog.cs: Append a number when creating a new folder if the
25538           folder already exists (use parenthesis instead of square brackets)
25539
25540 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25541
25542         * FileDialog.cs:
25543           - Disabled registry support for windows and added better registry
25544             error checking for other systems (need to investigate why it
25545             works perfectly on my system)
25546           - If a folder already exist show an error MessageBox instead of
25547             trying to create an indexed name.
25548           - Fixed a non intentional typo.
25549
25550 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25551
25552         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
25553
25554 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25555
25556         * FileDialog.cs: When creating a new folder don't crash if the
25557           folder already exists.
25558
25559 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25560
25561         * FileDialog.cs: Allmost a complete rewrite.
25562           - added a "virtual" file system that handles the differences
25563             between unix and windows file systems (especially the directory
25564             structure). Moved most of the directory and file handling code
25565             into the vfs.
25566             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
25567             UnixFileSystem and FSEntry.
25568           - Recently used folder/directory, size, location and used file names
25569             (file name ComboBox) are now stored in the registry and get read
25570             before the dialog shows up (fixes part 6 of bug #78446).
25571           - Creation of new folders/directories is now possible (context menu
25572             or ToolBar). Added TextEntryDialog for this that fills in the gap
25573             until ListView.LabelEdit works.
25574           - Fixed cursor handling (bug #78527) and focus handling for
25575             PopupButtonPanel
25576           - Various "Search in" ComboBox enhancements. The content of the
25577             dropdown listbox now almost matches ms.
25578           - Changed the behaviour when the user switches to SpecialFolder
25579             Recent to show the ListView in View.Details.
25580           - Beside using the ToolBar to change the View property of the
25581             file ListView it is now possible to use the context menu too.
25582
25583 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25584
25585         * ComboBox.cs: Don't create a new ObjectCollection when an item
25586           gets inserted. Just insert the item in the existing object_items
25587           ArrayList.
25588
25589 2006-06-08  Jackson Harper  <jackson@ximian.com>
25590
25591         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
25592         that the treeview and root node checks are done also, this fixes a
25593         regression i caused in the unit tests.
25594
25595 2006-06-07  Wade Berrier <wberrier@novell.com> 
25596
25597         * RichTextBox.cs: More ISO8859-1 -> unicode
25598
25599 2006-06-07  Mike Kestner  <mkestner@novell.com>
25600
25601         * ComboBox.cs : use items to hold highlight/selection so that
25602         collection insertions don't require synchronization.
25603
25604 2006-06-07  Jackson Harper  <jackson@ximian.com>
25605
25606         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
25607         routine.  We now always keep the sized edge at the cursor instead
25608         of computing movement and adjusting rects.  There is one buglet
25609         with this method though when the cursor is moved over area that
25610         the window can not expand too (such as the toolbars on the desktop).
25611
25612 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25613
25614         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
25615         here. Fixes crash on startup in AlbumSurfer.
25616
25617 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
25618
25619         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
25620           values
25621
25622 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25623
25624         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
25625         statement to avoid calling XNextEvent which will block if another thread
25626         took the event that we were expecting. Fixes bug #78605.
25627
25628 2006-06-07  Mike Kestner  <mkestner@novell.com>
25629
25630         * ListView.cs : isolated checkbox clicking from the selection logic.
25631         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
25632
25633 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
25634
25635         * Form.cs: Check that the value passed to Form.DialogResult
25636         is a valid enum value.
25637
25638 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25639
25640         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
25641         Computer'. Clicking it in the network view goes to 'My Computer'.
25642         Added CIFS filesystem type. Display the mount point of filesystems.
25643         Avoid duplicate mount points (happens for me with CIFS);
25644
25645 2006-06-06  Jackson Harper  <jackson@ximian.com>
25646
25647         * InternalWindowManager.cs: Draw the maximized windows buttons
25648         when resizing.
25649
25650 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25651
25652         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
25653         all other dialogs. Fixes bug #78585.
25654
25655 2006-06-06  Mike Kestner  <mkestner@novell.com>
25656
25657         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
25658         Only invalidate checkbox on checkstate changes to avoid flicker.
25659         * ListBox.cs : avoid unselect/select when clicking selected item.
25660         avoid reselection flicker for already multiselected items.
25661         Fixes #78382.
25662
25663 2006-06-06  Jackson Harper  <jackson@ximian.com>
25664
25665         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
25666         the parent form so that the menu is removed if needed.
25667
25668 2006-06-06  Mike Kestner  <mkestner@novell.com>
25669
25670         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
25671         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
25672
25673 2006-06-06  Mike Kestner  <mkestner@novell.com>
25674
25675         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
25676
25677
25678 2006-06-06  Jackson Harper  <jackson@ximian.com>
25679
25680         * Control.cs: Use the property (instead of the field) to get the
25681         default cursor so it is instantiated correctly.
25682         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
25683         resizes so we need to manually repaint the window decorations here.
25684         - Set the titlebar button locations as soon as they are created,
25685         otherwise they are not set correctly on win32.
25686         
25687 2006-06-06  Chris Toshok  <toshok@ximian.com>
25688
25689         * CurrencyManager.cs (set_Position): call PullData before
25690         OnCurrentChanged.
25691         (AddNew): after calling IBindingList.AddNew, update our
25692         listposition, and call OnCurrentChanged/OnPositionChanged (without
25693         calling PullData).
25694         (OnCurrentChanged): remove the call to PullData from here.
25695         (OnItemChanged): remove the call to PushData from here.
25696         (OnPositionChanged): change the test from == null to != null to
25697         match the other methods.
25698         (ListChangedHandler): the grossest part of the patch.  Implement
25699         this such that it passes the unit tests in CurrencyManagerTest and
25700         the output more or less matches that of MS's implementation.
25701  
25702 2006-06-06  Mike Kestner  <mkestner@novell.com>
25703
25704         * ListView.cs : only update check state on single click.
25705         * ThemeWin32Classic.cs : fix focus drawing for details view without
25706         fullrowselect.  Fixes #78454.
25707         * XplatUIX11.cs : fix for double click emission.
25708
25709 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
25710
25711         * PropertyGridView.cs : Applied Atsushi's patch to fix
25712         font dialog bug  (#78197).
25713
25714 2006-06-05  Jackson Harper  <jackson@ximian.com>
25715
25716         * TreeNode.cs: Compute the next node for expanding/collapsing
25717         correctly. We now factor in nodes without a NextNode
25718         correctly. (Fixes somes cases in nunit-gui).
25719         * InternalWindowManager.cs: Set the bounds when updating the
25720         virtual position of a tool window.
25721         
25722 2006-06-05  Chris Toshok  <toshok@ximian.com>
25723
25724         * DataGrid.cs: rename cached_currencymgr to list_manager.
25725         (set_CurrentCell): move SetCurrentCell code here, and clean it up
25726         some.
25727         (CurrentRow, CurrentColumn): single accessors so we can make the
25728         cursor movement code a lot easier to understand.
25729         (CurrentRowIndex): implement this in terms of CurrentRow.
25730         (BeginEdit): clean this up a bit.
25731         (CancelEditing): sort out the is_editing/is_changing/is_adding
25732         stuff a little.
25733         (EndEdit): minor changes.
25734         (OnKeyDown): add a comment about a (most likely) unnecessary
25735         check.
25736         (OnMouseDown): cancel editing when we click on a row header.  And
25737         use the CurrentRow setter, not CurrentCell.
25738         (ProcessDialogKey): directly call ProcessGridKey.
25739         (UpdateSelectionAfterCursorMove): factor out this common block of
25740         code (it's used everywhere that we move the cursor by updating row
25741         or column).
25742         (ProcessGridKey): pretty substantial overhaul.  Use the
25743         CurrentRow/CurrentColumn properties to make the code a lot more
25744         readable.  Only use the CurrentCell property when we have to
25745         modify both row and column at once.  Tab behavior is still broken,
25746         and Delete is untested.
25747         (Select): if we have no selected rows, set selection_start to
25748         @row.
25749         (EditCurrentCell): rename EditCell this.  It was only ever invoked
25750         with CurrentCell as the arg, so drop the arg and rename it.
25751
25752         * DataGridColumnStyle.cs: clean up the constructors a little, and
25753         drop CommonConstructor().
25754
25755         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
25756         actually get notified when the user hits it.
25757         (ProcessKeyMessage): *substantially* simplify this method.
25758         There's no reason (that I can see) for the textbox to be making
25759         calls into the datagrid at all.  Remove all of them but the ones
25760         for Enter handling.  those will take some more work.
25761
25762         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
25763         calling HideEditBox.
25764         (HideEditBox): if we have an active textbox, render it invisible
25765         without causing a re-layout of the datagrid.
25766
25767 2006-06-05  Mike Kestner  <mkestner@novell.com>
25768
25769         * ListView.cs : fix NRE crasher when focuseditem is cleared by
25770         collection changes by resetting it to Items[0].  Fixes #78587.
25771
25772 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25773
25774         * MessageBox.cs: if the height of the text is larger than the icon_size,
25775         use that. Fixes bug #78575.
25776
25777 2006-06-05  Jackson Harper  <jackson@ximian.com>
25778
25779         * TreeView.cs: Fix line drawing when scrolling.  To do this each
25780         node is basically responsible for drawing its entire horizontal
25781         area.  When drawing a node it draws its parent node lines if
25782         needed.
25783         - Adjust the clip area to the viewport rectangle
25784         - Fix Left/Right key handling to match MS. (It expand/collapses
25785         and moves to parents/first child but does not move selection to
25786         sibling nodes).
25787         - Fix SetTop to work with new bound calculation code
25788         - When scrollbars are no longer needed we need to reset scrolling
25789         vars and recalculate the visible order so the redraw is correct
25790         * TreeNode.cs: We can't expand/collapse nodes with no children.
25791
25792 2006-06-03  John Luke  <john.luke@gmail.com> 
25793
25794         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
25795         so the colors work without dev packages
25796         
25797 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
25798
25799         * Control.cs 
25800           - Select: Implemented to just use activate. Seems to match MS 
25801             behaviour closest. Documented to only do actual control walking 
25802             based on it's parameters if in a container control so I moved 
25803             the code there.
25804           - Removed selection check logic from our internal Select() method
25805         * ContainerControl.cs:
25806           - Select: Moved selection logic from Control here, since MS documents
25807             that containers obey the bool arguments. No longer calling base
25808
25809 2006-06-02  Jackson Harper  <jackson@ximian.com>
25810
25811         * TreeView.cs: If the selected node isn't changed when we get
25812         focus update the previously selected node so that we see the
25813         selection box.
25814
25815 2006-06-02  Mike Kestner  <mkestner@novell.com>
25816
25817         * ComboBox.cs: restructure grab and general mouse event handling.
25818         Make the composite control raise mouse events like it was a single
25819         control for leaves/enters/motion/up/down events.  fix dropdown list
25820         coordinate mangling and refactor it into the scrollbar subclass to
25821         reduce code duplication.  Fixes #78282 #78361 and #78457.
25822
25823 2006-06-02  Mike Kestner  <mkestner@novell.com>
25824
25825         * ScrollBar.cs: remove Capture setting/clearing, as it happens
25826         automatically in the Control.WndProc.
25827
25828 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25829
25830         * FileDialog.cs: fix crash when running SharpChess, which sets the
25831         FilterIndex to 2 with only one Filter.
25832
25833 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25834
25835         * ToolBar.cs: add SizeSpecified property.
25836         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
25837         try to figure out our real size, otherwise fallback to what the
25838         container says.
25839
25840 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
25841
25842         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
25843         * Control.cs (WndProc): MS always calls the DefWndProc to pass
25844           up the event
25845
25846 2006-06-01  Mike Kestner  <mkestner@novell.com>
25847
25848         * ListView.cs: revamp the focus management in ListView.  It still
25849         causes churn of LostFocus/GotFocus emissions on clicks, but it's
25850         better than not handling focus at all.  Will revisit when pdb feels
25851         the general focus handling is solid.  Fixes #78526.
25852
25853 2006-06-01  Jackson Harper  <jackson@ximian.com>
25854
25855         * TreeView.cs: Set the default border style in the constructor.
25856         - Move painting to use OnPaintInternal instead of capturing
25857         WM_PAINT, this is the correct way of doing things
25858         - UpdateBelow shouldn't invalidate the scrollbar area
25859         - Cap the top on update below in case the node was above the top
25860         of the viewport rectangle.
25861         - ExpandBelow and Collapse below need to obey Begin/End Update.
25862         * TreeNode.cs: Make is_expanded internal so the treenode
25863         collection can change it without firing the whole event chain.
25864         * TreeNodeCollection.cs: When clearing all the child nodes make
25865         sure to recalc the visible order.
25866         - Improve algo for remove the top node
25867
25868 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
25869
25870         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
25871           SendMessage directly calling window procedures, which in turn might
25872           call SetFocus()
25873
25874 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
25875
25876         * Control.cs: Don't handle WM_SETFOCUS if the same window already
25877           has focus (works around X11 sending a FocusIn after our SetFocus)
25878         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
25879
25880 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
25881
25882         * Mime.cs: Fix for the NET_2_0 build.
25883           NameValueCollection needs StringComparer now.
25884
25885 2006-05-31  Chris Toshok  <toshok@ximian.com>
25886
25887         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
25888         return (via an out parameter) the starting X of the column.
25889         (UpdateVisibleColumn): track change to FromPixelToColumn.
25890         (HitTest): add a ColumnResize case here.
25891         (DrawResizeLine): new function, probably poorly named.
25892
25893         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
25894         only need to keep one reference.
25895         (set_ListManager): same.
25896         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
25897         Also, add support for HitTestType.ColumnResize.
25898         (OnMouseMove): add column resize behavior here, and change the
25899         cursor to the correct one as we move around the datagrid.
25900         (OnMouseUp): terminate the column resize if we're resizing.
25901         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
25902         for the current cell.
25903         (ConnectListManagerEvents): use cached_currencymgr.
25904         (DisconnectListManagerEvents): fill this in, using
25905         cached_currencymgr.
25906         (SetCurrentCell): remove cached_currencymgr_events handling.
25907         (SetDataMember): only call DisconnectListManagerEvents if
25908         cached_currencymgr is != null.
25909         (SetDataSource): same.
25910         (OnListManagerCurrentChanged): cached_currencymgr_events ->
25911         cached_currencymgr.
25912
25913 2006-05-31  Jackson Harper  <jackson@ximian.com>
25914
25915         * BindingManagerBase.cs: Remove somedebug code that creeped into
25916         SVN.
25917         * TreeNode.cs: We get the indent level dynamically right now, so
25918         don't track it as a member.
25919         * TreeNodeCollection.cs: Make sure all nodes added to the list
25920         have parents, treeviews/topnodes setup properly.
25921         - Don't attempt to track indent level.
25922
25923 2006-05-30  Jackson Harper  <jackson@ximian.com>
25924
25925         * BindingContext.cs: Create the currency manager tables here.
25926         This allows us to more easily create null tables (when bad data
25927         members are used), and more easily create related currency
25928         managers.
25929         * CurrencyManager.cs: All the table creation stuff is done by the
25930         binding context now.
25931         - Current should throw an exception if listposition is -1.
25932         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
25933         been bound yet.
25934
25935 2006-05-30  Mike Kestner  <mkestner@novell.com>
25936
25937         * ListView.cs: allow reexpansion of zero-width column headers.
25938         Fixes #78528.
25939
25940 2006-05-28  Chris Toshok  <toshok@ximian.com>
25941
25942         * CurrencyManager.cs (get_Current): after the late binding
25943         listposition = -1 fix, we need to guard against it here and return
25944         null, otherwise we raise an exception (which is swallowed
25945         elsewhere, and breaks datagrid databinding.)
25946
25947 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
25948
25949         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
25950           than WM_SYSKEY, don't throw if get something unexpected (#78507)
25951
25952 2006-05-26  Jackson Harper  <jackson@ximian.com>
25953
25954         * ControlPaint.cs:
25955         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
25956         values, it's faster and it's all we care about (we don't care if
25957         the names aren't equal).
25958         * KeyboardLayouts.cs: Eliminate some dead code.
25959         - Lazy init things
25960         * X11Keyboard.cs: Lazy init keyboard detection.
25961         - Cleanup access modifiers a little.
25962
25963 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
25964
25965         * XplatUIX11.cs: Once again, attempting to get layout just right.
25966
25967 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
25968
25969         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
25970           the sizes of each link section, that will result in sizes that
25971           match DrawString's layout (Fixes #78391)
25972
25973 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
25974
25975         * FileDialog.cs: If AddExtension property is true autocomplete the
25976           extensions in SaveFileDialog correctly. Fixes bug #78453.
25977           Set MyNetwork and MyComputer to "C:\" for windows. This should
25978           fix part 8 of bug #78446 for now.
25979
25980 2006-05-26  Chris Toshok  <toshok@ximian.com>
25981
25982         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
25983         invalidate the current row header if we need to, but presumably
25984         we'll invalidate the row corrsponding to the bounds or
25985         editingControl.
25986         (GridHScrolled): switch back to this method, as it's part of the
25987         public api.  *sigh*.
25988         (GridVScrolled): same.
25989         (OnMouseWheel): hack up something that more or less works.  Call
25990         GridHScrolled/GridVScrolled directly, instead of duplicating much
25991         of their code here.
25992         (EnsureCellVisibility): reinstate a bunch of this code, since we
25993         can't just set the scrollbar Value and expect to do all the work
25994         in the ValueChanged handler.  Also, Call Update() after scrolling
25995         in one direction so the other XplatX11.ScrollWindow call has the
25996         proper stuff in the proper places.
25997         (EditCell): set is_editing to true before calling .Edit.
25998
25999         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
26000         don't bother comparing first.
26001         (OnKeyPress): call grid.ColumnStartedEditing before calling
26002         base.OnKeyPress.  this will set is_changing and invalidate the row
26003         header if necessary.
26004         (ProcessKeyMessage): for WM_CHAR messages, call
26005         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
26006         and WM_KEYDOWN.
26007         
26008         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
26009         it's done in the DataGrid.
26010         (NextState): call grid.ColumnStartedEditing, which takes care of
26011         invalidating the row header (and setting is_changing).
26012
26013         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
26014         here.  it's done in the DataGrid.
26015
26016 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26017
26018         * Control.cs: allow changing the cursor when the mouse position is
26019         out of bounds but Capture is set.
26020         * LinkLabel.cs: handle the case when the mouse button is pressed on the
26021         linklabel but released somewhere else.
26022
26023 2006-05-25  Jackson Harper  <jackson@ximian.com>
26024
26025         * TreeView.cs: When we get focus if there is no selected node make
26026         it the top node
26027         - Remove some uneeded setup code from Draw.
26028         * TreeNodeCollection.cs: If the tree doesn't have a top node when
26029         a new node is inserted make the new node the top.
26030         * XplatUIX11.cs:
26031         * Timer.cs: Use Utc time so that no local time zone stuff needs to
26032         be used (should be faster).
26033         
26034 2006-05-25  Chris Toshok  <toshok@ximian.com>
26035
26036         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
26037         problem with the last commit.
26038
26039 2006-05-25  Chris Toshok  <toshok@ximian.com>
26040
26041         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
26042         need the invalidate call here, while scrolling right-to-left via
26043         the left arrow key (i.e. moving the editing cell while scrolling).
26044
26045         * DataGrid.cs (.ctor): remove the initialization of
26046         ctrl_pressed/shift_pressed.  We no longer track them using key
26047         up/down handlers, but by using Control.ModifierKeys.  Also, switch
26048         to using ValueChanged handlers on the scrollbars instead of
26049         Scrolled event handlers.  This simplifies a bunch of the scrolling
26050         code.
26051         (GridHValueChanged): rename from GridHScrolled, and change it to
26052         work with the new event args.
26053         (GridVValueChanged): same.
26054         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
26055         (OnMouseWheel): actually scroll the datagrid.  Don't change the
26056         selected cell.
26057         (ProcessGridKey): correct all the keyboard navigation stuff I
26058         could find.  Ctrl up/down/left/right/home/end work now.
26059         (EnsureCellVisibility): correct method name spelling.  Also,
26060         simplify this a touch by not explicitly calling the
26061         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
26062         scrollbar value.
26063         (OnKeyUpDG): no need for this method now.
26064         
26065 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26066
26067         * LinkLabel.cs: display the OverrideCursor when hovering the label.
26068         Fixes bug #78392.
26069
26070 2006-05-25  Chris Toshok  <toshok@ximian.com>
26071
26072         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
26073         r61019.
26074
26075 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
26076
26077         * Application.cs: Moved setting of is_modal and closing to before
26078           we create the control, to allow the event handlers called as a
26079           result of creation affect closing. Also removed Gonzalo's previous
26080           change to setting DialogResult, the behaviour has been moved to 
26081           Form.ShowDialog()
26082         * Form.cs: 
26083           - ShowDialog(): Removed explicit creation of the form, let RunLoop
26084             handle it instead
26085           - ShowDialog(): If no dialog result is set, we need to return Cancel
26086           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
26087             the close is cancelled
26088
26089 2006-05-25  Jackson Harper  <jackson@ximian.com>
26090
26091         * StatusBar.cs: We only need to update the sizes of the other
26092         panels when we have auto size contents.  Also we are only updating
26093         the contents of the panel, not the borders, so compensate for the
26094         border width (TODO: get this width from the theme somehow).
26095         * TreeView.cs: Scrollable is true by default
26096         - Use invalidate instead of refresh where needed
26097         - Factor the scrollable value into scrollbar updating
26098         - Update the scrollbars if the Scrollable property is altered
26099         - Update the selected node if its ImageIndex is changed
26100         - Handle null nodes in UpdateNode (mainly so we don't have to
26101         check if selected is null when updating it
26102         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
26103         are factored into the visible count
26104         - Use VisibleCount for clarity in the code
26105         - When the font is changed we need to recurse through all the
26106         nodes and invalidate their sizes
26107         
26108 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26109
26110         * Application.cs: set the DialogResult to fixed when the main form is
26111         hidden or destroyed while being modal.
26112
26113 2006-05-25  Miguel de Icaza  <miguel@novell.com>
26114
26115         * Theme.cs: Use Tangoified messagebox icons. 
26116
26117         (GetSizedResourceImage): Also cope with width = 0 and do not
26118         trigger a warning in that case (0 means "give me your icon from
26119         the resouce, no special size needed).
26120
26121 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
26122
26123         * Application.cs: Leave runloop if the the main modal form is 
26124           hidden (fixes #78484)
26125
26126 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
26127
26128         * BindingContext.cs : reject null datasource in Contains() and
26129           Item[].
26130         * CurrencyManager.cs : check data_member validity when data_source
26131           is dataset. When it is late binding, the initial position is -1.
26132
26133 2006-05-24  Jackson Harper  <jackson@ximian.com>
26134
26135         * TreeNodeCollection.cs: Dont't recalculate the visible order on
26136         inserted nodes that aren't visible.  This changes the
26137         max_visible_order which confuses scrollbar settings.
26138         - Use the enumerator to get the prev node instead of duplicating
26139         code.
26140         * TreeView.cs: Use new method for setting scrollbar values
26141         - Don't set the bounds every time the scrollbar is updated
26142         - When updating below the root node use an invalidate instead of a
26143         refresh to prevent the child controls (scrollbars) from being
26144         refreshed. (UpdateBelow still needs to be reworked anyways).
26145         - Reenable SetBottom now that visible orders are set correctly,
26146         added some debug code incase we ever get bad values there again.
26147         - Set the scrollbar max to 2 less then the max value, this
26148         compensates for the max value being one above the node count, and
26149         for scrollbars adding one extra "notch".
26150         - When drawing image nodes if there is an imagelist we draw the
26151         first image in the list if the supplied image index is out of the
26152         image list's bounds.
26153         
26154 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
26155
26156         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
26157           we receive a size change from the WM (Fixes #78503)
26158
26159 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
26160
26161         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
26162           rectangle (Fixes #78501)
26163
26164 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
26165
26166         * ButtonBase.cs: 
26167           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
26168             as a bitfield.
26169           - Fixed MouseMove to no longer switch pressed state unless the left
26170             mouse button is pressed. Atsushi provided the original patch (#78485)
26171           
26172 2006-05-24  Jackson Harper  <jackson@ximian.com>
26173
26174         * ScrollBar.cs: New internal methods that allow us to change a
26175         couple values on the scrollbar (the most common case is maximum
26176         and large change) without getting multiple invalidates.
26177
26178 2006-05-24  Chris Toshok  <toshok@ximian.com>
26179
26180         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
26181         (Edit): save off the original state in oldState, and set
26182         grid.is_editing to true.
26183         (OnKeyDown): abort editing if escape is pressed.  also, call
26184         NextState if space is pressed.
26185         (OnMouseDown): call NextState.
26186         (NextState): factor out shared code from OnKeyDown and OnMouseDown
26187         here.  Also, only invalidate the row header once (on the initial
26188         is_changing switch) to save on redraws.
26189
26190 2006-05-24  Chris Toshok  <toshok@ximian.com>
26191
26192         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
26193         if the value in the cell is different than it was before.  This
26194         keeps us from triggering a layout when we move around a datarid
26195         with a highlighted cell.
26196         (Edit): suspend layout when creating/positining the text box, and
26197         resume passing false so we don't ever actually re-layout.
26198         (ReleaseHostedControl): same.
26199         (EnsureTextBox): reformat slightly, and set WordWrap to false.
26200
26201         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
26202         control-key sequences should go to the datagrid - remove that
26203         lock.  Also, modify the conditions under which we move between
26204         cells when moving the cursor within a cell, and remove the "this"
26205         and "base" from field accesses.  We weren't even consistent, given
26206         they all were in the base class.
26207
26208 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
26209
26210         * Binding.cs : (.ctor)
26211           An obvious NRE fix for BindingTest.CtorNullTest().
26212
26213 2006-05-23  Chris Toshok  <toshok@ximian.com>
26214
26215         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
26216         them between lines.  This fixes some quirks editing cells in the
26217         datagrid.
26218
26219 2006-05-23  Jackson Harper  <jackson@ximian.com>
26220
26221         * TreeView.cs: Use begin/end update when doing expand/collapse all
26222         so that we don't get flicker on the scrollbar.
26223
26224 2006-05-23  Jackson Harper  <jackson@ximian.com>
26225
26226         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
26227         treenode calculations to be independant of the painting code. To
26228         do this nodes track a visible order which is calculated by the
26229         treeview.
26230         - Call new methods for expanding/collapsing nodes.  These methods
26231         use scrollwindow so we don't have to update everything below the
26232         node.
26233         * TreeView.cs: Refactored drawing and scrolling code.  We don't
26234         need to update nodes when drawing anymore or calculate scrollbar
26235         stuff.
26236         - Added new methods for expanding/collapsing nodes. These methods
26237         use ScrollWindow so as to not have to redraw all the nodes below.
26238         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
26239         we add/remove nodes or sort.
26240         - Handle removing the selected and the top node properly.
26241
26242 2006-05-23  Chris Toshok  <toshok@ximian.com>
26243
26244         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
26245         maybe this should actually happen in the datagrid code?
26246         (EndEdit): no need to invalidate anything, given that
26247         ReleaseHostedControl causes the datagrid to relayout, which
26248         invalidates everything anyway.
26249
26250         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
26251         in SetCurrentCell).
26252         (set_SelectionBackColor): call InvalidateSelection instead of
26253         Refresh.
26254         (set_SelectionForeColor): same.
26255         (BeginEdit): Flesh this out a bit.
26256         (CancelEditing): only do any of this if we're editing/adding.
26257         (EndEdit): same.
26258         (OnMouseDown): there's no need to cancel editing here, it's done
26259         in SetCurrentCell.
26260         (SetCurrentCell): only invalidate the current row header if it's a
26261         different row than the new one.
26262         (ShiftSelection): fix this to work like MS does.
26263         (ResetSelection): factor out the invalidation of selected_rows to
26264         InvalidateSelection.
26265         (SetDataSource): cancel any editing that's going on.
26266
26267         * DataGridColumnStyle.cs
26268         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
26269         call the non-interface version.
26270
26271         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
26272         header rectangle with the clip rectangle so we don't redraw the
26273         entire header for just a small area.  Gets rid of the last flicker
26274         when horizontally scrolling.
26275         (DataGridPaintRow): same.
26276
26277 2006-05-23  Mike Kestner  <mkestner@novell.com>
26278
26279         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
26280         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
26281         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
26282         Critical bug report.
26283
26284 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
26285
26286         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
26287           and this fixes #78493
26288
26289 2006-05-23  Miguel de Icaza  <miguel@novell.com>
26290
26291         * Theme.cs (GetSizedResourceImage): Scale images if the proper
26292         size is not found.  
26293         
26294         * FileDialog.cs: Do not change the background for the side bar as
26295         it wont work nicely with the theme, and also reduces the artifacts
26296         in rendering the icons (which I want to fix too).
26297
26298         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
26299         resources, not resgen resources. 
26300
26301         (PlatformDefaultHandler): Pull images using the new API.
26302
26303 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
26304
26305         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
26306           a reference to the hwnd and will not remove it unless there are
26307           no pending exposures (fixes #78341)
26308         * XplatUI.cs: Improved debug
26309
26310 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
26311
26312         * MenuAPI.cs : don't handle OnClick event when it was not the left
26313           button. Fixed bug #78487.
26314
26315 2006-05-23  Mike Kestner  <mkestner@novell.com>
26316
26317         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
26318         prefer submenus to the top menu for item lookup, to avoid popping down
26319         top-row items.
26320
26321 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
26322
26323         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
26324           Graphics.FillRectangle as the visual results are really bad (even
26325           on win). We now draw perfect arrows (and perfect shadows when the
26326           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
26327           Pen.DashPattern to draw the dots of each line.
26328
26329 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
26330
26331         * FileDialog.cs: Update the filename combobox when navigating through
26332           the ListView with the cursor keys. Fixes part 7 of bug #78446.
26333
26334 2006-05-22  Mike Kestner  <mkestner@novell.com>
26335
26336         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
26337         Fixes #78463.
26338
26339 2006-05-22  Mike Kestner  <mkestner@novell.com>
26340
26341         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
26342         requests. Fix a misspelled parameter and a copy paste exception error
26343         in Select.
26344
26345 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
26346
26347         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
26348           to get the same width/height (5/13) on X11 as the default font has on
26349           win32. This means that our DefaultFont emSize is smaller than the 
26350           the MS SWF equivalent (even thought the width/height stays the same)
26351
26352 2006-05-20  Jackson Harper  <jackson@ximian.com>
26353
26354         * MdiClient.cs:
26355         * MdiWindowManager.cs:
26356         * InternalWindowManager.cs: Make sure to use the border width from
26357         the theme.
26358
26359 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
26360
26361         * PrintDialog.cs: Implements printer details
26362
26363 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
26364
26365         * FileDialog.cs: Added focus handling for PopupButtonPanel.
26366           Fixes part 1 and 2 of bug #78446
26367
26368 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
26369
26370         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
26371           instead of sticking to the first ever calculated value
26372
26373 2006-05-19  Mike Kestner  <mkestner@novell.com>
26374
26375         * ComboBox.cs: fix mouse motion selection to use MousePosition and
26376         PointToClient, since Capture is set. Fixes #78344.
26377
26378 2006-05-19  Mike Kestner  <mkestner@novell.com>
26379
26380         * ListView.cs: match MS behavior in Details view where items are not
26381         drawn if Columns.Count == 0. 
26382         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
26383         Use a separate pen to draw the check, since changing the width affects
26384         the box as well.  Fixes #78454.
26385
26386 2006-05-18  Miguel de Icaza  <miguel@novell.com>
26387
26388         * ListView.cs: ArgumentOutOfRangeException, single versions of the
26389         exception should throw the name of the invalid argument.
26390
26391         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
26392         there are no files listed. 
26393
26394 2006-05-18  Jackson Harper  <jackson@ximian.com>
26395
26396         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
26397         up.
26398
26399 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
26400
26401         * Control.cs: Brought back our old UpdateZOrder method as a private
26402           function and switched our calls from UpdateZOrder to the new one.
26403           This fixes the Paint.Net canvas disappearing bug.
26404
26405 2006-05-18  Jackson Harper  <jackson@ximian.com>
26406
26407         * Theme.cs:
26408         * ThemeWin32Classic.cs:
26409         * InternalWindowManager.cs: Move the drawing into the theme,
26410         expose everything the theme should need from the window manager.
26411
26412 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
26413
26414         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
26415           from the call to NativeWindow to avoid walking up the parent chain
26416           further than needed (speeds up setting cursors and avoids setting
26417           the wrong cursor if a parent has another cursor defined)
26418         * Cursor.cs: When loading an icon as cursor, MS uses the center of
26419           the icon as hotspot, not what's contained as hotspot in the icon
26420           file. This fixes the perceived drawing offset seen with Paint.Net
26421         
26422 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
26423
26424         * XplatUIX11.cs: 
26425           - Store the calculated rectangle in Hwnd object and use it when 
26426             setting the client size
26427           - Force Toolwindows to always be type Dock, to ensure they're on top
26428
26429 2006-05-18  Mike Kestner  <mkestner@novell.com>
26430
26431         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
26432         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
26433         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
26434         Substantial refactoring to remove confusing nested classes. Coding
26435         standard and Get+Set->property refactorings.  Shift to index based
26436         highlighting in ComboListBox instead of constantly using IndexOf and
26437         Items[]. Add invalidations on resize for DropDownList to fix ugliness
26438         in FileDialog growth.  Draw borders manually since Simple mode needs
26439         to look like two independent controls.  Make listbox border
26440         conditional to DropDownStyle.  Improved OwnerDraw support.
26441
26442 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
26443
26444         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
26445         Don't set the disposed graphics to null, so we can throw the "right"
26446         exception if the graphics is reused later (added a flag to avoid 
26447         double disposing). Some behaviours are different under 2.0 and are
26448         filled under bug #78448.
26449
26450 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
26451
26452         * Control.cs: When double-buffering is enabled, we need to reset
26453           our graphics context between paint calls. Otherwise, any 
26454           transformations and other alterations on the context will 
26455           become cumulative (#77734)
26456
26457 2006-05-18  Mike Kestner  <mkestner@novell.com>
26458
26459         * ListView.cs: do focused item selection like MS on clicks. 
26460         Rework focus handling for ItemControl so LostFocus invalidates as
26461         well.
26462         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
26463         the ListView ItemControl has focus.
26464
26465 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
26466
26467         * XplatUIX11.cs: If client_window ends up being width or height zero
26468           due to border settings, move it off window inside whole_window (#78433)
26469
26470 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
26471
26472         * Mime.cs: Shrink the mime file cache correctly.
26473
26474 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
26475
26476         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
26477
26478 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26479
26480         * XplatUIX11.cs (AddExpose): More sanity checks
26481
26482 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26483
26484         * XplatUIX11.cs:
26485           - AddExpose: Don't add expose ranges outside the size of our
26486             window
26487           - Cast opacity values to Int32 to avoid crashes with certain
26488             values
26489           - Added disabled code paths that protect against illegal cross-
26490             thread painting (Developers.exe)
26491
26492 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26493
26494         * ProgressBar.cs: Invalidate the control when it's resized
26495           since block size is based on control size. (#78388)
26496
26497 2006-05-16  Miguel de Icaza  <miguel@novell.com>
26498
26499         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
26500         of setting the incoming argument to the "reset" value, we set the
26501         this.datamember to string.empty (before we were invalidating the
26502         incoming data).   
26503
26504         Fixes 78420
26505
26506 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26507
26508         * Form.cs: Only apply transparency settings after the form
26509           is created. (Fixes #77800)
26510
26511 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26512
26513         * ApplicationContext.cs: Grab the HandleDestroyed event so
26514           we know when to fire OnMainFormClosed 
26515
26516 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26517
26518         * Application.cs: Introduced sub-class to allow tracking of
26519           threads and centralized triggering of the event mess for
26520           ThreadExit, AppExit, etc..  (#76156)
26521
26522 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
26523
26524         * MimeIcon.cs:
26525           - Do not return a null icon index value for a mime subclass.
26526             Instead try the main mime type class too.
26527           - Seems that some newer distributions don't have a link to some
26528             gnome default icons anymore. So check the default gnome dir too.
26529           
26530
26531 2006-05-16  Jackson Harper  <jackson@ximian.com>
26532
26533         * MdiClient.cs: Don't paint the parent background image if we have
26534         our own background image.
26535
26536 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26537
26538         * Control.cs:
26539           - PerformLayout: Do not shrink space filled by DockStyle.Fill
26540             controls, all filled controls are supposed to overlap (#78080)
26541           - UpdateZOrder is supposed to update the control's z-order in the
26542             parent's z-order chain. Fixed to behave like that
26543           - BringToFront: Removed obsolete code
26544           - SendToBack: Simplyfied
26545           - SetChildIndex: Trigger layout calculations when Z-order changes
26546             since layout is done by z-order
26547
26548 2006-05-16  Chris Toshok  <toshok@ximian.com>
26549
26550         [ fixes bug #78410 ]
26551         * DataGrid.cs (set_AlternatingBackColor): use
26552         grid_drawing.InvalidateCells instead of Refresh().
26553         (set_BackColor): call grid_drawing.InvalidateCells.
26554         (set_BackgroundColor): use Invalidate instead of Refresh.
26555
26556         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
26557         invalidate the cell area.
26558
26559 2006-05-15  Chris Toshok  <toshok@ximian.com>
26560
26561         [ fixes bug #78011 ]
26562         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
26563         on to DataGridPaintRow.
26564         (DataGridPaintRow): take a clip argument, and only draw the cells
26565         which intersect it.  same with the not_usedarea.
26566
26567         * Theme.cs (DataGridPaintRow) add @clip parameter.
26568
26569         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
26570         XplatUI.ScrollWindow.
26571         (ScrollToRow): same.
26572
26573         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
26574         with last column which was causing a gray swath to appear with the
26575         XplatUI.ScrollWindow code.
26576
26577 2006-05-15  Chris Toshok  <toshok@ximian.com>
26578
26579         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
26580         use XplatUI.ScrollWindow.
26581         (VerticalScrollEvent): use XplatUI.ScrollWindow.
26582
26583 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
26584
26585         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
26586
26587 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
26588
26589         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
26590           file since there are no equivalent X11 cursors
26591
26592 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
26593
26594         * MonthCalendar.cs : DateTimePicker should reflect selected date
26595           on mouse*up*, not mouse*down*. Fixed originally reported part of
26596           bug #76474.
26597
26598 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
26599
26600         * TabControl.cs : When argument index is equal or more than tab
26601           count, just ignore. Fixed bug #78395.
26602
26603 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
26604
26605         * Control.cs: Dispose all child controls when control is diposed (#78394)
26606
26607 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26608
26609         * ColorDialog.cs: Finally it is possible to select the color with
26610           the text boxes
26611
26612 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26613
26614         * PrintDialog.cs: Fix typo
26615
26616 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26617
26618         * PrintDialog.cs: PrintDialog is not resizable
26619         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
26620           color. Made some ToolBar drawing methods protected virtual.
26621
26622 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
26623
26624         * PrintDialog.cs: Implementation of the PrintDialog
26625
26626 2006-05-12  Chris Toshok  <toshok@ximian.com>
26627
26628         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
26629         thumb, instead use MoveThumb.  This has the side effect of making
26630         most of the other thumb moving machinery use MoveThumb as well.
26631         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
26632         need to actually invalidate the rectangle where the new thumb will
26633         go.
26634         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
26635         We force an Update() after, so it's not as fast as it could be,
26636         but at least there's zero flicker and no droppings.
26637         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
26638         (UpdateThumbPos): add another argument (dirty), which says whether
26639         or not to calculate/add dirty regions which we later invalidate.
26640         For cases where we know we're going to use MoveThumb, we pass
26641         false for this.  Otherwise, pass true.
26642
26643 2006-05-12  Jackson Harper  <jackson@ximian.com>
26644
26645         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
26646         the status bar.
26647         
26648 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
26649
26650         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
26651           and GetClipRegion methods and UserClipWontExposeParent property.
26652         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
26653           overriding UserClipWontExposeParent property, setting to false, since
26654           Win32 handles the required expose messages to draw our clipped parent
26655           areas internally
26656         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
26657           PaintEventStart to set the user clip region if set.
26658         * Control.cs: 
26659           - Now internally tracking the Region for the control since we need to
26660             store it if the handle is not yet created and only set it when it
26661             becomes created. Before setting the region forced handle creation
26662           - Added code to draw the parents underneath a user-clipped region
26663         * Hwnd.cs: Added UserClip property
26664
26665 2006-05-12  Chris Toshok  <toshok@ximian.com>
26666
26667         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
26668         (set_Maximum): same.
26669         (set_Minimum): same.
26670         (set_SmallChange): same.
26671         (OnMouseUpSB): remove the call to refresh when releasing the
26672         thumb.  We shouldn't need it.
26673         
26674 2006-05-12  Miguel de Icaza  <miguel@novell.com>
26675
26676         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
26677         AutoSize set to None, we do not need to relayout everything, we
26678         just need to invalidate the current region.
26679
26680         (Draw): Do not draw the entire ClientArea, just redraw the
26681         clip area being passed.
26682
26683         * MdiClient.cs: Make MdiClient constructor with the Form argument
26684         internal. 
26685
26686 2006-05-12  Jackson Harper  <jackson@ximian.com>
26687
26688         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
26689         parents background image,  but strangely not their own.
26690         - (DrawStatusBarPanel): Take into account horizontal alignment
26691         when drawing the strings and icons.
26692
26693 2006-05-12  Mike Kestner  <mkestner@novell.com>
26694
26695         * ListBox.cs: avoid invalidations for focus when the collection is
26696         empty. 
26697
26698 2006-05-12  Chris Toshok  <toshok@ximian.com>
26699
26700         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
26701         invalidate the entire thumb area.  Call InvalidateDirty which
26702         limits the redraw to the thumb itself and surrounding pixels.
26703
26704         * XplatUIX11.cs (ScrollWindow): optimize copying.
26705         
26706 2006-05-12  Chris Toshok  <toshok@ximian.com>
26707
26708         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
26709         Figure out the positioning/layout in a single pass instead of
26710         multiple recursive invocations.  Speeds up the initial display of
26711         the data grid.  Also, make many things private that were
26712         originally public but unused outside this class.
26713
26714 2006-05-11  Jackson Harper  <jackson@ximian.com>
26715
26716         * MdiClient.cs: Improved layout code.
26717
26718 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
26719
26720         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
26721           not SelectedObject.
26722
26723 2006-05-11  Chris Toshok  <toshok@ximian.com>
26724
26725         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
26726         union of that will always be {0,0,width,height}.
26727
26728 2006-05-11  Jackson Harper  <jackson@ximian.com>
26729
26730         * Form.cs: Match MS's DefaultSize for forms (they must have
26731         changed the size in sp2).
26732
26733 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
26734
26735         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
26736
26737 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
26738
26739         * TextControl.cs : Fixed bug #78109. This incorrect position
26740           comparison caused crash on automatic line split.
26741         * TextBoxBase.cs : reduce duplicate code.
26742
26743 2006-05-10  Jackson Harper  <jackson@ximian.com>
26744
26745         * MdiClient.cs: Active form is only sent to the back when using
26746         the Next form functionality, when a form is clicked the current
26747         active shouldn't be sent to the back.
26748         - Layout the mdi windows when the container is first made visible.
26749         * Form.cs: Give the MdiClient a ref to the containing form when we
26750         create it.
26751         
26752 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26753
26754         * LinkLabel.cs : link_font could be uninitialized, so populate one
26755           before actual use. Fixed bug #78340.
26756
26757 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26758
26759         * XplatUIX11.cs : clipboard format native value is IntPtr.
26760           Fixed bug #78283.
26761
26762 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26763
26764         * Control.cs: 
26765           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
26766             which is passed up the parent chain by DefWndProc
26767           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
26768             to DefWndProc (#77956)
26769         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
26770
26771 2006-05-10  Jackson Harper  <jackson@ximian.com>
26772
26773         * MdiClient.cs: We need to remove the controls from the mdi
26774         collection, when we close the window.
26775         * MdiWindowManager.cs: Special handling of closing mdi windows.
26776         * InternalWindowManager.cs: Make the close method virtual so the
26777         mdi window manager can handle it specially.
26778
26779 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
26780
26781         * DataGrid.cs:
26782           - Recalculate grid when the data source has changed
26783           - Matches styles provided by user from all data sources types
26784         * DataGridTableStyle.cs: For columns that provided by the user set the
26785         with the preferred value is there was unassigned.
26786         * CurrencyManager.cs: throw OnItemChanged event
26787
26788 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
26789
26790         * PictureBox.cs: Don't animate until handle is created. Start animation
26791           when handle is created.
26792
26793 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26794
26795         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
26796           current codebase.
26797         * XEventQueue.cs: We don't need to provide the extra info
26798
26799 2006-05-10  Jackson Harper  <jackson@ximian.com>
26800
26801         * MdiClient.cs: If the mdi clients parent form has a background
26802         image set, we draw that background image for the mdi area's
26803         background.
26804
26805 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26806
26807         * TextBoxBase.cs: Set IBeam cursor (#78347)
26808
26809 2006-05-10  Mike Kestner  <mkestner@novell.com>
26810
26811         * ToolBar.cs: fix some text padding issues with ButtonSize
26812         calculation. Update the default size to match MS documentation.
26813         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
26814         button size. Fixes #78296.
26815
26816 2006-05-10  Mike Kestner  <mkestner@novell.com>
26817
26818         * ListBox.cs: use is_visible for scrollbar positioning in case the
26819         control isn't on screen yet.  Fix off by one with Right vs Width
26820         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
26821         
26822 2006-05-10  Jackson Harper  <jackson@ximian.com>
26823
26824         * X11Dnd.cs: Drop to a control with another control on top of it.
26825         * ToolBar.cs: Work on a copy of the buttons list, so that it can
26826         be modified in click handlers. TODO: Look for similar problems in
26827         other controls.
26828
26829 2006-05-09  Jackson Harper  <jackson@ximian.com>
26830
26831         * Form.cs: Window managers need the old window state when setting
26832         window state now.
26833         * InternalWindowManager.cs: Allow the base mdi window manager to
26834         handle more of the MDI only stuff (like maximize buttons).
26835         * MdiWindowManager.cs: Fix some snafus in changing the window
26836         state.  Add all the menu functionality, for both popup and
26837         maximized menus.
26838         * MdiClient.cs: When a new form is selected the currently
26839         activated form is sent to the back, this matches MS.
26840         - Implement a new method to activate the next mdi child window.
26841
26842 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
26843
26844         * Control.cs: 
26845           - Added new InternalCapture method to allow controls to prevent
26846             the capture behaviour on the click handlers
26847           - Switched to use InternalCapture
26848         * ComboBox.cs:
26849           - Using InternalCapture to prevent mouse captures from being released
26850             on mouse button release (Fixes #78100)
26851         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
26852           returns Form borders if a caption is present. (Fixes #78310)
26853
26854 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
26855
26856         * TreeNode.cs: Changed serialization .ctor to not require every field
26857           to be present. (#78265)
26858         * OwnerDrawPropertyBag.cs: Added serialization .ctor
26859
26860 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
26861
26862         * MimeIcon.cs: for is faster than foreach for strings.
26863
26864 2006-05-05  Mike Kestner  <mkestner@novell.com>
26865
26866         * CheckedListBox.cs: update check handling code to not use selected.
26867         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
26868         behavior for visual feedback, motion response, shift/ctrl handling,
26869         and properly deal with all 4 selection modes. Updates to bounds
26870         handling logic.  Add scroll wheel support. [Fixes #77842]
26871
26872 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
26873
26874         * ListView.cs:
26875           - Moved adding of Implicit controls into .ctor. That way, subsequent
26876             creation of the controls will not cause them to think they are 
26877             toplevel windows (fixes #78200 header problem)
26878           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
26879           - Switched visibility setting of header control to use internal field
26880             to avoid triggering handle creation
26881           - Now checking if handle is created before causing a refresh when items
26882             are added (This makes us now match handle creation time with MS)
26883         * Splitter.cs: Removed loading of private splitter cursor, switched to
26884           Cursors version now that that is loading the right ones
26885         * Cursors.cs: Load proper splitter cursors from resources
26886         * Cursor.cs: Added second method of loading resource cursors for the 
26887           VS.Net users amongst us
26888
26889 2006-05-05  Mike Kestner  <mkestner@novell.com>
26890
26891         * ListView.cs: give header_control a minimum size based on the
26892         ListView size.
26893
26894 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
26895
26896         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
26897           window seems to do that with metacity, so set that type. (#78120)
26898
26899 2006-05-05  Mike Kestner  <mkestner@novell.com>
26900
26901         * ListViewItem.cs: fix Details mode checkbox layout bug.
26902         * ThemeWin32Classic.cs: draw a ListView column header for unused space
26903         at the end of the header, if it exists. [Fixes for #78200]
26904
26905 2006-05-04  Jackson Harper  <jackson@ximian.com>
26906
26907         * MdiClient.cs: Add a helper property to get the container form.
26908         * MdiWindowManager.cs: We have to make sure to use the menu origin
26909         when drawing the icons and buttons, this fixes maximized window
26910         icons/buttons on win32.
26911         * InternalWindowManager.cs: Reset the restore captions when a
26912         window goes from Maximized to Minimized and vice versa. Move the
26913         DrawMaximizedButtons into the MdiWindowManager source, tool
26914         windows can't be maximized. NOTE: This could use a little
26915         refactoring if time ever permits.
26916         
26917 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
26918
26919         * TextBox.cs: Add MWFCategoryAttributes
26920         * TextBoxBase.cs: Add MWFCategoryAttributes
26921         * Form.cs: Add MWFCategoryAttributes
26922
26923 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
26924
26925         * Control.cs: Add MWFCategoryAttributes
26926         * ScrollableControl.cs: Add MWFCategoryAttributes
26927
26928 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
26929
26930         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
26931           Divider is true. Fix a little glitch in PropertyToolBar
26932           drawing code
26933
26934 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
26935
26936         * Control.cs:
26937           - Dispose: Call base.Dispose, this causes the disposed event
26938             to be fired (and probably other, more important stuff)
26939           - SetVisibleCore: Set is_visible to true after creating the
26940             window so that the window still gets created invisible (if
26941             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
26942             to generate a WM_ACTIVE message
26943         * Form.cs: Call Dispose when we want to destroy the window, instead of
26944           just destroying the handle (Dispose will do that for us)
26945         * XplatUIX11.cs:
26946           - RootWindow also needs a queue, so we can properly process the
26947             property change events from RootWindow (like Activate)
26948           - Generatic synthetic WM_ACTIVE message when the active window is
26949             being destroyed
26950
26951 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
26952
26953         * LinkLabel.cs: Trigger a recalc of our label dimensions when
26954           bounds are changed
26955
26956 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
26957
26958         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
26959           for determining width and height (image might not be assigned if
26960           we're drawing an imagelist)
26961
26962 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
26963
26964         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
26965         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
26966           height from system
26967         * Theme.cs: No longer returns hardcoded menu height, instead calls
26968           new driver method
26969         * Form.cs (OnLoad): Scaling happens before triggering Load events 
26970           on MS (# 78257)
26971
26972 2006-05-01  Mike Kestner  <mkestner@novell.com>
26973
26974         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
26975
26976 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
26977
26978         * TextBoxBase.cs: Removed Fixme
26979         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
26980
26981 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
26982
26983         * XplatUIX11.cs:
26984           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
26985             the rectangle relative to the parent, considering borders. We
26986             don't really want that.
26987           - ScrollWindow: Fixed warning to be more understandable
26988         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
26989           scrollbars and scroll only the visible area
26990         * RichTextBox.cs: Removed debug output
26991
26992 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
26993
26994         * NumericUpDown.cs (Text): Just use base
26995         * UpDownBase.cs: Ensure txtView is created before using it
26996
26997 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
26998
26999         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
27000           casting to IntPtr to avoid 64bit overflow errors
27001
27002 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27003
27004         * Control.cs:
27005           - AllowDrop: Don't force handle creation.
27006           - CreateHandle: Added call to tell driver if we're allowed to drop
27007
27008 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27009
27010         * FileDialog.cs: Remember the last directory not only for the
27011           current instance but also for new FileDialog instances.
27012
27013 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
27014         
27015         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
27016           broke sending async messages
27017
27018 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27019
27020         * XplatUIX11.cs:
27021           - ScrollWindow: Fixed method. We finally generate expose events again
27022             for scrolled areas. This was causing 'garbage' when scrolling
27023             textbox and other controls that used ScrollWindow
27024           - Switched from using the regular queue for paint events to the MS 
27025             model of 'generating' paint events when the queue is empty.
27026             We use the new XQueueEvent.Paint subclass to store which windows
27027             need painting.
27028           - AddExpose now takes the x/y/width/height of the exposed area
27029             and inserts the window into the paint queue if not already there
27030           - InvalidateWholeWindow: Switched to use new AddExpose method
27031           - UpdateMessageQueue: Added which queue to monitor for paint events
27032           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
27033             the unlikely case nothing above handles it. We reset the expose
27034             pending states to get them off the queue.
27035           - GetMessage: Now pulls a paint event if no other events are in the
27036             queue
27037           - Invalidate: Switched to new AddExpose method
27038           - PeekMessage: Updated to understand pending paint events
27039           - UpdateWindow: Fixed logic bug. We were only updating if the window
27040             didn't need updating. Also switched to sending WM_PAINT directly,
27041             like MS does.
27042         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
27043           and random access Remove(). The random access is needed to handle
27044           UpdateWindow() where a WM_PAINT is sent directly without accessing
27045           the queue.
27046         * ScrollBar.cs: Added Update() calls to cause immediate updates to
27047           allow for better feedback when scrolling. Scrollbars are small and
27048           the immediate update should make it 'feel' more responsive without
27049           slowing things down. ScrollBar still needs it's invaliate logic
27050           updated to not always invalidate the whole bar on certain changes.
27051
27052 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27053
27054         * Control.cs:
27055         (BackColor): if the control does not support a transparent background,
27056         return the default backcolor when the parent backcolor is transparent.
27057
27058 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
27059
27060         * Application.cs: Updated to new StartLoop/GetMessage API
27061         * RichTextBox.cs: Provide some output on RTF parsing errors
27062         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
27063           new queue_id argument to GetMessage and PeekMessage to allow faster
27064           handling of per-thread queues in drivers.
27065         * Hwnd.cs: Added Queue tracking and property
27066         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
27067         * XEventQueue.cs: Added thread trackingA
27068         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
27069         * XplatUIX11.cs:
27070           - Implemented new per-thread queue
27071           - GetMessage: Fixed return/break behaviour on several cases. We were
27072             returning stale messages in some cases, instead of just processing
27073             the next message
27074
27075 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
27076
27077         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
27078
27079 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
27080
27081         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
27082           fixed off-by-one comparisons between Width/Height and Right/Bottom.
27083
27084 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
27085
27086         * PropertyGridView.cs: Fix drop down width.
27087
27088 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27089
27090         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
27091           a mess in DrawToolBar, so I removed one of them.
27092
27093 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27094
27095         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
27096           needed (clip). Otherwise we get artifacts.
27097
27098 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
27099
27100         * FixedSizeTextBox.cs: Added constructor to allow specifying which
27101           dimension is fixed
27102         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
27103           and switched FixedSizeTextBox to only be fixed vertical (#78116)
27104         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
27105           if it matches the scale base font (avoids unneeded scaling)
27106
27107 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
27108
27109         * X11DesktopColors.cs: One gtk_init_check should be enough
27110
27111 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
27112
27113         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
27114           match MS behaviour
27115
27116 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
27117
27118         * TextBoxBase.cs: 
27119           - Generate OnTextChanged for Backspace even if we're only deleting
27120             the current selection
27121           - When setting the Text property, only select all text if the
27122             control does not have focus when it is being set. Otherwise
27123             just place the cursor at the beginning of the control
27124
27125 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
27126
27127         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
27128           Added a little helper to draw PropertyGrid ToolBar with a different
27129           border and a different BackColor.
27130         * PropertyGrid.cs: Some background parts didn't get painted with the
27131           correct background color. Added a class that helps us to draw the
27132           correct border for PropertyGridView and a class that helps us to
27133           draw ToolBars with a different backcolor
27134         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
27135
27136 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
27137
27138         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
27139         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
27140
27141 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
27142
27143         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
27144           into the palette entries. Also, since we're working on a copy
27145           we needed to copy the palette back onto the bitmap.
27146         * Cursor.cs: Same fix as XplatUIWin32.cs.
27147
27148 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
27149
27150         * ImageListStreamer.cs: Need to read the var (or we're off)
27151
27152 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
27153
27154         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
27155           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
27156           TextBoxBase.cs: Unused var fixes
27157         * AxHost.cs: Small 2.0 fix
27158         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
27159           as it seems that is what at least Metacity expects. This will make
27160           icons show up on 64bit platforms. We still have some 64bit size
27161           issues, though, since the startup app window size still won't match.
27162
27163 2006-04-25  Mike Kestner  <mkestner@novell.com>
27164
27165         * *.cs: cleanup newly reported exception var unused warnings.
27166
27167 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27168
27169         * ThemeWin32Classic.cs: Button image alignment now matches exactly
27170           ms
27171
27172 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27173
27174         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
27175           image. The image position is always the same, no matter if the
27176           button is pressed or not.
27177
27178 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27179
27180         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
27181           selection and set the correct filename for SaveFileDialog.
27182           Patch by Emery Conrad.
27183
27184 2006-04-24  Mike Kestner  <mkestner@novell.com>
27185
27186         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
27187         check for item.X outside the ClientRect instead of item.Y. Fixes
27188         #78151.
27189
27190 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27191
27192         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
27193         trust that value blindly and do some sanity check. Fixes bug #77814.
27194
27195 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27196
27197         * ImageListStreamer.cs: save the mask as a 1bpp image.
27198
27199 2006-04-21  Mike Kestner  <mkestner@novell.com>
27200
27201         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
27202         pass Checked and Indeterminate to the Theme Engine. Improve
27203         encapsulation with ListBox.
27204         * ListBox.cs: Keep a StringFormat instead of calculating it every item
27205         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
27206         nested types.  Move all CheckState functionality to CheckedListBox.
27207         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
27208         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
27209         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
27210         single base list. Fix scrollbar sizing and placement to mirror MS.
27211         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
27212         used.
27213         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
27214         for CheckedListBox by using new DrawItemState info.  Center the
27215         checkboxes on the items. Use new StringFormat property.
27216
27217 2006-04-18  Jackson Harper  <jackson@ximian.com>
27218
27219         * Form.cs: MdiChildren don't do default locations the same way as
27220         regular forms.  This prevents a crash when trying to position the
27221         mdi windows.
27222
27223 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
27224
27225         * PropertyGridTextBox.cs: Formatting, copyright
27226         * PropertiesTab.cs: Formatting
27227         * PropertyGrid.cs: Formatting
27228         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
27229           click toggling of values
27230           
27231 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
27232
27233         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
27234         * Control.cs (.ctor): verify_thread_handle is static, don't reset
27235           every time a control is created
27236         * Application.cs: Removed obsolete EnableRTLMirroring method
27237
27238 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
27239
27240         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
27241         SelectedIndex to -1. Fixes bug #78121.
27242
27243 2006-04-17  Jackson Harper  <jackson@ximian.com>
27244
27245         * Binding.cs: Handle null values for Current and BindingContext.
27246         This occurs when binding is a little delayed.
27247         * CurrencyManager.cs: return null for Current when there are no
27248         items in the list.
27249         - Hookup to the listchanged event on the DataView and update
27250         bindings when the list is changed.  This fixes late binding of
27251         controls.
27252
27253 2006-04-17  Jackson Harper  <jackson@ximian.com>
27254
27255         * X11Dnd.cs:
27256         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
27257         Ringenbach.
27258
27259 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
27260
27261         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
27262           place
27263         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
27264           with the correct ButtonState
27265
27266 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
27267
27268         * XplatUIX11.cs: Improved distinguishing between window types to
27269           tell the WM a type closer to what the app wants (Fixes #78107)
27270
27271 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
27272
27273         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
27274           GrabHandle
27275
27276 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
27277
27278         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
27279           drawing code to reflect the size grip changes
27280
27281 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27282
27283         * ImageListStreamer.cs: fix handling of the mask that follows the main
27284         bitmap when deserializing and serialize it properly. The generated mask
27285         should better be a 1bpp image, but I'll do that later.
27286
27287 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
27288
27289         * FileDialog.cs: Show something in the DirComboBox on *nix if the
27290           path doesn't fit into some of our Current.Places
27291
27292 2006-04-13  Jackson Harper  <jackson@ximian.com>
27293
27294         * ComboBox.cs: Use borders instead of drawing our own decorations,
27295         try to obey correct rules for heights.
27296         * Theme.cs:
27297         * ThemeNice.cs:
27298         * ThemeClearLooks.cs:
27299         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
27300         this is now handled by borders.
27301         - Remove unused DrawListBoxDecorationSize method.
27302         
27303 2006-04-13  Mike Kestner  <mkestner@novell.com>
27304
27305         * MenuAPI.cs: null guarding for the disbled click check fixes crash
27306         reported by Alex.
27307
27308 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
27309
27310         * ThemeWin32Classic.cs: 
27311           - Fixed CPDrawStringDisabled
27312           - Corrected drawing of disabled menu items
27313           - Fixed drawing of disabled radio buttons (bug #78095)
27314           - Draw check in a disabled CheckBox with color ControlDark 
27315
27316 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27317
27318         * Form.cs: Use the provided width when calculating the menu size;
27319           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
27320           and ClientSize.Width won't be updated yet
27321         * Application.cs: Use Visible instead of Show() to make form visible,
27322           this way we create the handle later and menusize is considered
27323
27324 2006-04-12  Mike Kestner  <mkestner@novell.com>
27325
27326         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
27327         reporting.
27328
27329 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27330
27331         * TextBox.cs: Implemented context menu
27332
27333 2006-04-12  Mike Kestner  <mkestner@novell.com>
27334
27335         * ListView.cs: implement box selection. fixes #77838.
27336         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
27337
27338 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
27339
27340         * XplatUIX11.cs: Added setting of window type when transient window
27341           is created (metacity would move it otherwise)
27342         * X11Structs.cs: Added WINDOW_TYPE atoms
27343         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
27344           background (the control is Opaque but still wants transparent
27345           backgrounds)
27346
27347 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27348
27349         * Control.cs: Added OnPaintBackgroundInternal to allow controls
27350           that set Opaque but don't mean it (like all ButtonBase-derived
27351           controls) to still draw their background
27352         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
27353           the background
27354
27355 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
27356
27357         * Control.cs (PaintControlBackground): Set the graphics object
27358           on our PaintEvent to null to prevent it from being disposed
27359           when the PaintEvent gets disposed
27360
27361 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
27362
27363         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
27364         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
27365
27366 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27367
27368         * Control.cs: 
27369           - Added transparency check to BackColor property. Transparent
27370             backgrounds are only allowed if the control styles permit it
27371           - Added recursive painting of parent control background and
27372             foreground if a control with a transparent backcolor is drawn
27373             (Thanks to Tim Ringenback for providing his 'hack' as a base
27374              for this patch) Fixes #77985 and #78026.
27375           - Added Opaque style check before calling OnPaintBackground, no
27376             need to draw the background if the control is opaque
27377           - Removed ControlAccessibleObject owner variable (inherited from
27378             base, no need to define again)
27379           - Added some documentation links explaining the drawing events
27380             and styles
27381
27382 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
27383
27384         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
27385           that the affected control is the located at the left border of our
27386           parent (Fixes #77936)
27387
27388 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27389
27390         * TextBoxBase.cs: When rendering disabled or readonly controls,
27391           draw the background with 'Control' instead of 'Window' color as
27392           long as the user hasn't specifically set a color
27393
27394 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
27395
27396         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
27397           since that won't be updated if the user types text (only if it's
27398           programatically set)
27399
27400 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27401
27402         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
27403           layout changes do to app-triggered resizes will have the proper
27404           display rectangle for layout
27405
27406 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
27407
27408         * ThemeWin32Classic.cs:
27409           - Make use of the SystemBrushes and SystemPens wherever possible
27410           - Corrected some highlight colors
27411           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
27412             drawing
27413         * Theme.cs: Added Empty field to CPColor struct
27414
27415 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27416
27417         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
27418           is displayed when calculating the display rectangle. Thanks to Mike
27419           for teaching me the err of my ways.
27420
27421 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
27422
27423         * ScrollableControl.cs:
27424           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
27425             (instead of 0,0) and we now return the real width/height instead of
27426             just the clientrectangle, adjusted for padding. The rectangle is
27427             now cached and created by the new CalculateDisplayRectangle method.
27428           - Created new CalculateDisplayRectange method, which basically does
27429             what get_DisplayRectangle() did originally, but now using the 
27430             right edge instead of DisplayRectangle to determine the size of
27431             our scrollbars
27432           - get_Canvas(): Fixed it to properly calculate canvas for 
27433             right/bottom controls which seem to be placed to the right/bottom
27434             of any controls that have a fixed location
27435           - Removed TODO that's taken care of
27436           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
27437             and SetDisplayRectLocation according to new MSDN2 docs
27438           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
27439             event when that is called, this is added for compatibility
27440           - ScrollControlIntoView(): Implemented.
27441           - Switched scrollbars to be implicit, they shouldn't be selectable
27442         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
27443           call it when the active control is set/changed
27444         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
27445         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
27446           implicit_control variable (used for native Win32 message generation)
27447         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
27448           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
27449         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
27450         * XplatUIStructs.cs: Added ScrollBarCommands enum
27451
27452 2006-04-10  Jackson Harper  <jackson@ximian.com>
27453
27454         * ButtonBase.cs:
27455         * CheckedListBox.cs:
27456         * ComboBox.cs:
27457         * DataGrid.cs:
27458         * DataGridView.cs:
27459         * Form.cs:
27460         * GroupBox.cs:
27461         * ListBox.cs:
27462         * PrintPreviewControl.cs:
27463         * ProgressBar.cs:
27464         * PropertyGrid.cs:
27465         * Splitter.cs:
27466         * StatusBar.cs:
27467         * TrackBar.cs:
27468         * UpDownBase.cs: Fixup base event overrides.
27469         
27470 2006-04-06  Mike Kestner  <mkestner@novell.com>
27471
27472         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
27473         all user-initiated value changes to min <= value <= max-thumbsz+1.
27474         (set_Value): check for vert/horiz when calculating new thumb position.
27475         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
27476         like MS does.
27477         (OnMouseMoveSB): refactor the thumb dragging code and refine
27478         invalidation logic to reduce flicker.
27479         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
27480         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
27481         (UpdateThumbPosition): small code readability cleanup
27482
27483 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
27484
27485         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
27486           different
27487
27488 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
27489
27490         * ThemeNice.cs: Use a better graphics effect when a button is pressed
27491
27492 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
27493
27494         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
27495         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
27496           This dramatically reduces the number of Pen.Dispose calls. 
27497           Where possible call ResPool methods only once instead of calling it
27498           over and over again (for example for the same color).
27499
27500 2006-04-06  Mike Kestner  <mkestner@novell.com>
27501
27502         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
27503         Also remove an unused private field on the collection. Fixes #77972.
27504
27505 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
27506
27507         * ThemeNice.cs: Added ToolBar drawing code
27508
27509 2006-04-06  Mike Kestner  <mkestner@novell.com>
27510
27511         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
27512         I'm assuming that means we need to look up the toplevel for the
27513         provided control. Fixes the crash trace in #77911 but exposes another
27514         crash in some strange reflection usage in NDocGui.
27515
27516 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
27517
27518         * ThemeNice.cs: Gave it a little silver touch and added Images
27519           method
27520         * FontDialog.cs: FontDialog is not resizable
27521         * FileDialg.cs: Added SizeGripStyle.Show
27522
27523 2006-04-05  Jackson Harper  <jackson@ximian.com>
27524
27525         * KeyboardLayouts.cs: Remove warning.
27526
27527 2006-04-05  Jackson Harper  <jackson@ximian.com>
27528
27529         * Control.cs: Enable OnPaintInternal so we can use it for drawing
27530         all of our controls instead of Paint +=.
27531         * ListBox.cs:
27532         * ListView.cs:
27533         * MenuAPI.cs:
27534         * MessageBox.cs:
27535         * NotifyIcon.cs:
27536         * ProgressBar.cs:
27537         * ScrollBar.cs:
27538         * Splitter.cs:
27539         * StatusBar.cs:
27540         * TabControl.cs:
27541         * TextBoxBase.cs:
27542         * ToolBar.cs:
27543         * TrackBar.cs:
27544         * UpDownBase.cs:
27545         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
27546         use OnPaintInternal. Remove Width/Height and Visible checks in
27547         paint handler, this is done at a higher level now.
27548         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
27549         * PaintEventArgs.cs: Add a handled flag so controls that don't
27550         want anymore painting after OnPaintInternal can make sure OnPaint
27551         isn't called.
27552
27553 2006-04-05  Mike Kestner  <mkestner@novell.com>
27554
27555         * Form.cs: fix the menu WndProc hacks to respect the native enabled
27556         state of the form, so that we don't process events when Modal dialogs
27557         are up. Fixes #77922.
27558
27559 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
27560
27561         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
27562           checking is done.
27563
27564 2006-04-05  Mike Kestner  <mkestner@novell.com>
27565
27566         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
27567
27568 2006-04-05  Mike Kestner  <mkestner@novell.com>
27569
27570         * ListView.cs (HeaderMouseMove): null guarding for the over column
27571         when setting up the drag_to_index.  Fixes #78015.
27572
27573 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
27574
27575         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
27576           in the taskbar. Transient windows seem to accomplish that.
27577
27578 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
27579
27580         * Form.cs:
27581           - Re-enabled CreateParams.X/Y code for FormStartPosition
27582           - Added code for manual placement when creating the Control
27583           - Incomplete patch to treat MDI forms differently when
27584             setting the ClientSizeCore. (Still need to figure out handling
27585             x/y coords there)
27586         * XplatUIX11.cs:
27587           - When we're explicitly setting the X/Y position of a non-Child
27588             window, let the WM know. Metacity really wants this.
27589
27590 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27591
27592         * ThemeNice.cs: Added CPDrawButton
27593
27594 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27595
27596         * ThemeNice.cs: Changed the color for focused buttons and activated
27597           the arrows for small scroll buttons.
27598
27599 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27600
27601         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
27602           anymore. Changed some method modifiers to protected (virtual)
27603         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
27604           changes
27605         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
27606           Updated drawing of menus, buttons and progressbars; added
27607           CPDrawBorder3D 
27608
27609 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27610
27611         * ImageListStreamer.cs: implemented serialization/deserialization
27612         of the images.
27613
27614 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
27615
27616         * ThemeWin32Classic.cs:
27617           - Removed all the DrawFrameControl stuff; CPDrawButton,
27618             CPDrawCheckBox and CPDrawRadioButton are now handled directly
27619             inside the methods
27620           - Updated and corrected the drawing code of CPDrawButton,
27621             CPDrawCheckBox and CPDrawRadioButton to better match ms
27622           - Updated theme checkbox and radiobutton code to use the CP*
27623             methods
27624
27625 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
27626
27627         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
27628           bug is fixed
27629
27630 2006-03-31  Jackson Harper  <jackson@ximian.com>
27631
27632         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
27633         sometimes.
27634         * UpDownBase.cs: Don't CreateGraphics manually, use a
27635         Refresh. Ideally we would invalidate the correct areas here.
27636
27637 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
27638
27639         * XplatUIX11.cs: 
27640           - We now track the mapping state of windows. If a window (or 
27641             one of it's parents) is not mapped we no longer permit
27642             WM_PAINT messages to be generated since we'd otherwise get 
27643             lots of BadMatch X errors. Jackson did all the work figuring
27644             out the problem.
27645           - Destroying the caret if the window it's contained in is 
27646             destroyed. Can't use regular DestroyCaret method since it
27647             might fall into a drawing function (trying to remove the
27648             caret) and with that generate new BadMatch errors. Again,
27649             Jackson tracked this down.
27650           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
27651             make sure we send the messages to all windows. (The old code
27652             would send the WM_DESTROY to the window, and then all child
27653             windows would be 'gone' because the WM_DESTROY handle lookup
27654             would no longer find the destroyed window)
27655         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
27656         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
27657
27658 2006-03-31  Jackson Harper  <jackson@ximian.com>
27659
27660         * ScrollableControl.cs: Dont recalc if we are not visible.
27661
27662 2006-03-31  Mike Kestner  <mkestner@novell.com>
27663
27664         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
27665         the visibility branch.
27666
27667 2006-03-31  Jackson Harper  <jackson@ximian.com>
27668
27669         * ScrollBar.cs: Cap values when incrementing/decrementing.
27670
27671 2006-03-31  Mike Kestner  <mkestner@novell.com>
27672
27673         * MenuAPI.cs: setup menu.tracker for popup/context menus.
27674         * ToolTip.cs: guard against timer expirations with no active control.
27675         Not sure why it happened.
27676
27677 2006-03-31  Mike Kestner  <mkestner@novell.com>
27678
27679         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
27680         text.
27681         * ToolTip.cs: Position the tooltip based on where the cursor is at
27682         popup time, not at MouseEnter time.  Add a Down state so that we don't
27683         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
27684         positioning offset. Lookup DisplaySize at positioning time, since it
27685         can theoretically change during invocation.
27686         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
27687         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
27688
27689 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27690
27691         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
27692           Fixes behaviour when the Text property of the box is String.Empty
27693
27694 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
27695
27696         * XplatUIX11.cs: Only send mouseleave for our client windows, not
27697           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
27698           a window)
27699
27700 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27701
27702         * FileDialog.cs: Visual enhancement for the popup buttons in 
27703           PopupButtonPanel
27704
27705 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27706
27707         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
27708           code
27709
27710 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
27711
27712         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
27713           highlighted menu items to match ms
27714
27715 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
27716
27717         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
27718
27719 2006-03-30  Mike Kestner  <mkestner@novell.com>
27720
27721         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
27722         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
27723         go active to account for HotLight to Selected transition.
27724         * MenuItem.cs: add internal Selected prop. Fill out the Status
27725         property by calculating it from item info. Add HotLight,
27726         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
27727
27728 2006-03-30  Mike Kestner  <mkestner@novell.com>
27729
27730         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
27731
27732 2006-03-29  Jackson Harper  <jackson@ximian.com>
27733
27734         * Form.cs: Implement TODO.
27735
27736 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
27737
27738         * PrintPreviewDialog.cs: Implemented missing methods and events; still
27739           missing proper dialog setup in the constructor
27740
27741 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
27742
27743         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
27744         * Control.cs:
27745           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
27746           - Fixed ResetBindings and removed TODO
27747           - Added check for cross-thread calls to get_Handle()
27748           - Added Marshaller attribute for set_Font to satisfy class status
27749         * FontDialog.cs: Removed TODOs that seemed implemented
27750         * UpDownBase.cs: Removed unneeded TODO and Fixme
27751         * MessageBox.cs: Implemented support for Default button and removed TODO
27752         * FileDialog.cs: Removed obsolete TODO
27753         * DomainUpDown.cs: Removed obsolete TODO
27754         * ButtonBase.cs: Removed obsolete TODO
27755         * XplatUIWin32.cs: Removed obsolete TODO
27756         * Form.cs:
27757           - Removed obsolete TODO
27758           - Calling CheckAcceptButton when the acceptbutton is changed to allow
27759             internal status updates
27760           - Making sure the active control is selected when the control is created
27761         * CurrencyManager.cs: Removed obsolete TODO
27762
27763 2006-03-29  Mike Kestner  <mkestner@novell.com>
27764
27765         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
27766         of PrintPreviewDialog and RichTextBox.
27767
27768 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27769
27770         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
27771           DarkDark, Light and LightLight colors for a specific color
27772         * ThemeWin32Classic.cs:
27773           - Use Button drawing code to draw RadioButtons and CheckBoxes with
27774             Appearance = Button 
27775           - Make use of the new ResPool helper CPColor
27776           - Draw ProgressBar and StatusBar with correct 3D borders
27777
27778 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27779
27780         * ColorDialog.cs: Return selected color. Fixes bug #77940.
27781
27782 2006-03-28  Mike Kestner  <mkestner@novell.com>
27783
27784         * ListView.cs: fix Icon layout to plan for scrollbar widths when
27785         calculating col/row counts.
27786
27787 2006-03-28  Mike Kestner  <mkestner@novell.com>
27788
27789         * ColumnHeader.cs:
27790         * ListView.cs:
27791         * ListViewItem.cs:
27792         * Menu.cs: 
27793         switch to explicit interface method implementation for some methods
27794         corcompare identifies as inconsistent with MS.
27795
27796 2006-03-28  Mike Kestner  <mkestner@novell.com>
27797
27798         * MainMenu.cs: 
27799         * Menu.cs:
27800         add a few missing methods from the class status output.
27801
27802 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
27803
27804         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
27805           correct.
27806
27807 2006-03-28  Mike Kestner  <mkestner@novell.com>
27808
27809         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
27810
27811 2006-03-27  Mike Kestner  <mkestner@novell.com>
27812
27813         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
27814         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
27815
27816 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
27817
27818         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
27819
27820 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27821
27822         * ThemeWin32Classic.cs:
27823           - GroupBox: Inserted a little gap between the text and the lines
27824             on the right side
27825           - Made the code in CPDrawBorder3D more readable
27826           - Corrected the drawing location of the up and down arrows in 
27827             CPDrawScrollButton
27828
27829 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27830
27831         * ControlPaint.cs: Corrected line widths in DrawBorder for
27832           ButtonBorderStyle Inset and Outset
27833
27834 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27835
27836         * ThemeWin32Classic.cs:
27837           - Rewrote the totally broken CPDrawBorder3D method. That was
27838             one of the main problems for the terrific ThemeWin32Classic
27839             look
27840           - Updated and corrected Button drawing
27841           - Correct the dimensions of the SizeGrip to match ms ones
27842           - Removed a small drawing glitch in DrawComboBoxEditDecorations
27843         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
27844           Border3DStyle.Sunken to match ms.
27845
27846 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27847
27848         * ThemeWin32Classic.cs: First small part of the "de-uglify
27849           ThemeWin32Classic" effort, SizeGrip
27850
27851 2006-03-24  Jackson Harper  <jackson@ximian.com>
27852
27853         * XplatUIX11.cs: Give a max idle time of one second, this matches
27854         MS and forces an Idle event every second when there are no other
27855         events in the queue.
27856
27857 2006-03-24  Mike Kestner  <mkestner@novell.com>
27858
27859         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
27860         * ListView.Item.cs: fix layout issues with null image lists and images
27861         smaller than checkbox size.
27862         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
27863         mode like MS does.  It's weird, but consistent.  ;-)
27864         Fixes #77890.
27865
27866 2006-03-24  Mike Kestner  <mkestner@novell.com>
27867
27868         * ListView.cs: Scroll wheel support for the item control.  Fixes
27869         #77839.
27870
27871 2006-03-23  Jackson Harper  <jackson@ximian.com>
27872
27873         * ScrollableControl.cs: Special case negative sized areas, not
27874         zero.
27875         * MonthCalendar.cs: Save the rect of the clicked date so we can
27876         use it for invalidation.
27877         - Try to cut down on the number of invalidates
27878         - Invalidate the rect the mouse is over and was over when moving
27879         the mouse, so we get the focus box following the cursor.
27880
27881 2006-03-23  Mike Kestner  <mkestner@novell.com>
27882
27883         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
27884         focus rectangle drawing. Fixes #77835.
27885
27886 2006-03-23  Mike Kestner  <mkestner@novell.com>
27887
27888         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
27889         the if and else if and reverting back to the original == check on the
27890         None conditional.
27891
27892 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
27893
27894         * FontDialog.cs: Update the example panel if the selected index of
27895           the fontListBox changes.
27896
27897 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
27898
27899         * FileDialog.cs: Make FileDialog remember which directory it was in
27900           last in the same execution.
27901
27902 2006-03-22  Mike Kestner  <mkestner@novell.com>
27903
27904         * FileDialog.cs: make the DropDownMenu on the toolbar display
27905         RadioChecks since they are mutually exclusive and that's what MS does.
27906
27907 2006-03-22  Mike Kestner  <mkestner@novell.com>
27908
27909         * Theme.cs: add Color param to CPDrawMenuGlyph.
27910         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
27911         checks and radio marks and arrows are visible on highlighted items.
27912         * ControlPaint.cs: update to use new Theme signature.
27913
27914 2006-03-22  Mike Kestner  <mkestner@novell.com>
27915
27916         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
27917         is active. Fixes #77870.
27918
27919 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
27920
27921         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
27922           to be focused/selected after startup
27923
27924 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
27925
27926         * ColorDialog.cs: 
27927           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
27928             CustomColors and ShowHelp properties
27929           - Some internal rewrites to get better results when using the
27930             ColorMatrix
27931
27932 2006-03-22  Mike Kestner  <mkestner@novell.com>
27933
27934         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
27935         HoverSelection.  Fixes #77836.
27936
27937 2006-03-22  Mike Kestner  <mkestner@novell.com>
27938
27939         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
27940         ToggleButtons.  (De)Sensitize the Back button around a stack count of
27941         1, not 0.  Update ButtonSize based on a pixel count of the win32
27942         control.  Adjust the toolbar size/location for new button size.
27943
27944 2006-03-22  Jackson Harper  <jackson@ximian.com>
27945
27946         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
27947         true.
27948         * ScrollBar.cs: When doing increments and decrements we need to
27949         set the Value property so that ValueChanged gets raised. A
27950         possible optimization here would be to make an internal SetValue
27951         that doesn't invalidate immediately.
27952         * ToolTip.cs: Tooltips get added to their container (when
27953         supplied) so they get disposed when the container is disposed.
27954         - Don't create tooltips for String.Empty. This prevents all these
27955         little 2-3 pixel windows from showing up when running nunit-gui
27956         and driving me mad.
27957         * Form.cs: Don't set topmost when setting the owner if the handles
27958         haven't been created yet.  The topmost set will happen when the
27959         handles are created.
27960
27961 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
27962
27963         * XplatUIX11.cs:
27964           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
27965           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
27966             visible (to allow them to recalculate their sizes)
27967
27968 2006-03-21  Mike Kestner  <mkestner@novell.com>
27969
27970         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
27971         methods. Removed a ton of redundant code.  Still not really happy with
27972         the border rendering, but I think that's mainly because of the
27973         ControlDarkDark being black instead of a dark grey. Depending on how 
27974         close we want to be, we might want to revisit those color choices.
27975         Among the new features added during the refactor were DropDownArrow
27976         pressed rendering, Disabled image rendering.  Proper flat appearance
27977         boundary rendering.  Removed the Divider and Wrapping dividers since I
27978         can't figure out any combination of themes and conditions to make the
27979         MS control draw a horizontal line on a toolbar despite what the
27980         Divider property docs indicate.
27981         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
27982         conditions and incorrect layout.  Updated to coding standard.
27983         * ToolBarButton.cs: refactored layout and positioning code from
27984         ToolBar to here.  Invalidate wherever possible instead of forcing
27985         redraws of the whole toolbar. 
27986         (Known remaining issues: explicit ButtonSize smaller than provided
27987         images.)
27988
27989 2006-03-21  Mike Kestner  <mkestner@novell.com>
27990
27991         * ContextMenu.cs (Show): use the position parameter instead of just
27992         showing at the MousePosition.
27993
27994 2006-03-21  Jackson Harper  <jackson@ximian.com>
27995
27996         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
27997         control handle this.
27998         * TreeNodeCollection.cs: If we are clearing the root node we need
27999         to reset top_node so calcs can still happen.
28000         * ThemeWin32Classic.cs: This is a Flags so we need to check
28001         properly.
28002         
28003 2006-03-21  Jackson Harper  <jackson@ximian.com>
28004
28005         * DataGrid.cs: Create columns when the binding context has been
28006         changed.
28007         * X11Structs.cs: Keysyms are uints.
28008         - Add size to fix build.
28009
28010 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
28011
28012         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
28013           XplatUIOSX.cs: 
28014           - Added ResetMouseHover method to allow controls to retrigger
28015             hovering if they need it more than once
28016           - Implemented MouseHoverTime and MouseHoverSize properties
28017         * Timer.cs: Start() must reset the interval
28018         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
28019           properties
28020
28021 2006-03-21  Jackson Harper  <jackson@ximian.com>
28022
28023         * X11Keyboard.cs: improved layout detection. Move the nonchar
28024         tables into this file.
28025         * KeyboardLayouts.cs: Move the tables into resource files.
28026
28027 2006-03-21  Mike Kestner  <mkestner@novell.com>
28028
28029         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
28030
28031 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
28032
28033         * Mime.cs: Various speed optimizations. Looking up mime types
28034           is now 2 times faster than before
28035
28036 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
28037
28038         * CreateParams.cs: Added internal menu field
28039         * Control.cs: 
28040           - Switched call order for UpdateBounds; now we always call
28041             the one that also takes ClientSize, and we're calculating the 
28042             client size via driver method in the others. The previous
28043             method of tracking client size by difference wasn't working
28044             for forms where even the starting client size wouldn't match
28045             the overall form size (due to borders) (Part of fix for #77729)
28046           - CreateParams(): Do not use parent.Handle unless the handle is
28047             already created. Causes havoc with Nexxia and throws off our
28048             creation of controls
28049         * XplatUIX11.cs:
28050           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
28051           - Switched handling of ConfigureNotify over to new PerformNCCalc 
28052             method (consolidates code)
28053           - Changed RequestNCRecalc to use new PerformNCCalc method
28054           - Added calls to RequestNCRecalc when menus and borders are changed
28055             to allow app to set NC size. (Part of fix for #77729) This matches
28056             when MS send a WM_NCRECALC on Win32 windows.
28057           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
28058             (Part of fix for #77729). This matches what MS does, they also
28059             send that message when the form is made visible.
28060           - XException.GetMessage: Improved usability of X errors by including
28061             a translation of the window into Hwnd and Control class
28062           - Improved debug info for window creation, reparenting and destruction
28063           - Created helper method WindowIsMapped() [Currently not used]
28064         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
28065         * Form.cs:
28066           - CreateParams: Now setting our menu on the new internal menu field
28067           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
28068             avoid calculating the same property twice
28069         * Hwnd.cs:
28070           - Improved usability of ToString() for debugging purposes
28071           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
28072             determine the height of the menu, instead of just the font. This
28073             required to also create a graphics context and to keep a bmp 
28074             around (for performance reasons)
28075
28076 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
28077
28078         * MenuAPI.cs: Added OnMouseUp method
28079         * Form.cs:
28080           - Now remembering the requested client size, avoids size errors
28081           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
28082             instead of base if the menu is active. This is required due to
28083             control now capturing and releasing on down/up and it would
28084             prematurely release our menu capture
28085
28086 2006-03-17  Jackson Harper  <jackson@ximian.com>
28087
28088         * KeyboardLayouts.cs: Add the czech layouts.
28089
28090 2006-03-16  Jackson Harper  <jackson@ximian.com>
28091
28092         * Control.cs: Use the viewport space when sizing not the controls
28093         client size, so things like ScrollableControl that effect the
28094         viewport size (when scrollbars are added) are computed correctly.
28095         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
28096         of ManagerEntrys.
28097         - Handle creating BindingManagers for null data sources.
28098         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
28099         source, otherwise when rows are added they are added to the 'fake'
28100         datasource and we will crash when trying to set the position in
28101         those rows.
28102         - Use Implicit scrollbars on the datagrid so they arent
28103         selectable.
28104         
28105 2006-03-16  Jackson Harper  <jackson@ximian.com>
28106
28107         * Binding.cs:
28108         * InternalWindowManager.cs:
28109         * MdiWindowManager.cs:
28110         * X11Keyboard.cs: I really want Mike to love me again (fix
28111         compiler warnings).
28112
28113 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
28114
28115         * DataGrid.cs:
28116           - OnMouseDown: Switch to editing mode when clicking on the cell
28117                          even if we're clicking on the cell that's currently 
28118                          selected
28119           - ProcessGridKey: Left/Right now wrap like MS.Net does
28120           - ProcessGridKey: Tab now knows to add a new row when tab is
28121                             pressed in the cell of the last column of the 
28122                             last row
28123           - ProcessGridKey: Enter now adds another row  if pressed in the last
28124                             row and selectes the new row, same column cell
28125           - ProcessGridKey: Home/End navigate columns, not rows, like 
28126                             originally implemented
28127           - Broke ProcessKeyPreview code out into an extra Internal method
28128             so it can be called from the edit code
28129         * DataGridTextBox.cs (ProcessKeyMessage):
28130           - Switched to accept Tab keypresses
28131           - Added F2 handling to allow jumping to the end of the edited cell
28132           - Added logic to allow moving caret left/right inside edited cell
28133             and making the edited cell jump when the caret hits cell borders
28134           - Tab and Enter are now passed to the datagrid after being handled
28135         * TextBoxBase.cs:
28136           - Removed capture code now that Control handles it
28137           - set_SelectionStart now ensures caret is visible
28138
28139 2006-03-16  Jackson Harper  <jackson@ximian.com>
28140
28141         * TrackBar.cs: Debackwards the increment/decrement for handling
28142         mouse clicks on the bar with vertical trackbars.
28143         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
28144         bottom to match MS.
28145
28146 2006-03-16  Mike Kestner  <mkestner@novell.com>
28147
28148         * ListView.cs: make shift/ctrl keyboard and mouse selection 
28149         consistent with the MS control. Fix a bug in
28150         SelectedListViewItemCollection.Clear that was pissing me off for the
28151         better part of a day because the collection was being altered
28152         underneath us as we walked the list.
28153
28154 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
28155
28156         * Control.cs: Not sure how we could miss this so long, but it seems
28157           that MS.Net has Capture set all the way from before calling 
28158           OnMouseDown through sending the mouse events until after
28159           OnMouseUp. This will fix DataGrid's selection being set to end
28160           at the location of the MouseUp.
28161
28162 2006-03-15  Jackson Harper  <jackson@ximian.com>
28163
28164         * BindingContext.cs: Check the binding after its added so that it
28165           can initialize the binding managers and hookup to events.
28166         * Binding.cs: Data members seem to sometimes include rows/cols in
28167           the format Row.Column we now take this into account.
28168           - Hookup to the position changed event so we can update the
28169           control when the position has changed in the data set.
28170         * CurrencyManager.cs: Take into account the row/col naming
28171           convention when creating dataset tables.
28172         * BindingContext.cs: Using a newer better way of storing
28173           datasource/datamember pairs.  Hopefully this better matches MS for
28174           looking up binding managers.
28175
28176
28177 2006-03-15  Jackson Harper  <jackson@ximian.com>
28178
28179         * BindingContext.cs: The currency manager needs the data member
28180         name, if the member is a data set we use the name to find the
28181         correct table.
28182         * CurrencyManager.cs: When creating the list prefer an IList over
28183         an IListSource.
28184         - Attempt to create a DataTable from a DataSet (TODO: might need
28185         some better error checking here, although MS doesn't seem to have much)
28186         - If we have a DataTable create a view and use it as our list.
28187
28188 2006-03-15  Mike Kestner  <mkestner@novell.com>
28189
28190         * ListView.cs: keep a matrix of the icon mode layout to facilitate
28191         keyboard navigation. Support Up/Down/Left/Right selection correctly
28192         for all 4 View modes.
28193         * ListViewItem.cs: add internal row/col fields for icon layouts.
28194
28195 2006-03-15  Jackson Harper  <jackson@ximian.com>
28196
28197         * TabControl.cs: Redraw the tabs when we resize so their newly
28198         calculated sizes are drawn on screen.
28199         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
28200         composite characters.
28201         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
28202         - filter events so that composite characters can be created
28203         patches by peter
28204         * X11Structs.cs: Add XIMProperties enum.
28205
28206 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
28207
28208         * Control.cs (BringToFront, SendToBack): Don't use window or handle
28209           unless it's created
28210
28211 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
28212
28213         * Control.cs (PerformLayout): We don't need to consider visiblity
28214           for anchoring, only for docking. This fixes 'whacky' alignment
28215           in listbox and other controls that use implicit scrollbars after
28216           the previous PerformLayout patch
28217         * ListBox.cs: Switched to use implicit scrollbars
28218           
28219 2006-03-14  Mike Kestner  <mkestner@novell.com>
28220
28221         * ToolBar.cs: 
28222         * VScrollBar.cs:
28223         - chain up the "new event" overrides to base and use
28224         OnEvent to raise them.  Part of fix for bug #76509.
28225
28226 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
28227
28228         * FileDialog.cs: Do not select an item in the parent directory
28229           on backspace
28230
28231 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
28232
28233         * Control.cs (PerformLayout): It would seem that we considered
28234           invisible windows for our layout. Not quite the right thing
28235           to do. Now we don't any longer, thereby fixing bug #76889.
28236
28237 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
28238
28239         * Control.cs (CanFocus): I goofed. A control can have focus 
28240           even though it's not selectable. Made it match MS docs.
28241
28242 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28243
28244         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
28245           center by default (fixes #76895)
28246         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
28247           all uses of Border3DSides.All with the explicit ORd together
28248           Left|Right|Top|Bottom because I assume that nobody was aware 
28249           that All also implies a center fill. Most places I checked had
28250           a fill right above.
28251         * ProgressBarStyle.cs: Added
28252
28253 2006-03-13  Mike Kestner  <mkestner@novell.com>
28254
28255         * ListView.cs: fix breakage in drag shadow header positioning 
28256         from Peter's csc compilation fix.
28257
28258 2006-03-13  Mike Kestner  <mkestner@novell.com>
28259
28260         * ListView.cs: fix NRE produced by backspacing twice in a focused
28261         FileDialog.
28262
28263 2006-03-13  Mike Kestner  <mkestner@novell.com>
28264
28265         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
28266
28267 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28268
28269         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
28270           be changed
28271         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
28272           the allowed size before making programmatic size changes
28273
28274 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
28275
28276         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
28277           set, metacity is broken and will still use the emty sizes in 
28278           the struct. (Fix for #77089)
28279
28280 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28281
28282         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
28283           WindowExStyles and marked both enums as Flags
28284         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
28285           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
28286           to match WindowStyles split
28287         * XplatUIX11.cs:
28288           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
28289           - Updated to match WindowStyles split
28290         * XplatUIWin32.cs:
28291           - Fixed FosterParent creation, was using ExStyle on the Style field
28292             (This should help with Popup focus issues)
28293           - Updated to match WindowStyles split
28294
28295 2006-03-13  Jackson Harper  <jackson@ximian.com>
28296
28297         * MdiWindowManager.cs: Use the system menu height. Fixes some
28298         strange sizing issues.
28299
28300 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
28301
28302         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
28303         * TextBoxBase.cs:
28304           - Scroll to caret after inserting text (#77672)
28305           - Make scroll range one pixel higher, fixes off-by-one error (and
28306             makes underlines visible on the last line)
28307
28308 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
28309
28310         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
28311           the keyboard state from being stuck with keys in 'pressed' state when
28312           focus is switched away via keyboard
28313         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
28314           reset the keyboard if no X11 KeyUp events are expected to come
28315         * X11Structs.cs: Switched type of Visible to bool to match driver
28316
28317 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
28318
28319         * TextControl.cs:
28320           - Switched caret to be just 1 pixel wide, matches MS and looks less
28321             clunky
28322           - Moved caret display 1 pixel down from the top of the control
28323             to improve view
28324           - InsertCharAtCharet: Update the selection start if moving the caret
28325             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
28326           - No longer always creating the caret when the caret methods are
28327             called. Only the actual ShowCaret/HideCaret will do that now
28328           - Only setting caret visible if the owner control has focus
28329           - UpdateView: Added invalidation-shortcut logic for center and right 
28330             aligned text. Previously we'd update all according to the left
28331             logic which caused drawing errors. Also fixed height of invalidated
28332             areas, now properly invalidating the whole area (was off-by-one)
28333           - owner_HandleCreated: Always generate the document when the
28334             handle is created; this ensures that 
28335         * TextBoxBase.cs:
28336           - Fixed situation where caret would disappear under the right
28337             window border, also improved scrolling behaviour on left-
28338             aligned textboxes
28339           - Fixed right-aligned textboxes to have a border to the
28340             right instead of the caret being under the right border
28341         * XplatUIX11.cs:
28342           - Switched from 'nested' to simple visible/not visible tracking 
28343             for caret (part of fix for #77671)
28344           - No longer passing through translated FocusIn/FocusOut messages
28345             since we were notifying too often and the wrong windows. Instead
28346             we just notify our focussed window of receiving or loosing focus
28347         * XplatUIWin32.cs: Switched from 'nested' show/hide 
28348           counting for caret to simple visible yes/no behaviour (part of 
28349           fix for #77671)
28350
28351 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
28352
28353         * Mime.cs: Remove debug code...
28354
28355 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
28356
28357         * MimeGenerated.cs: Removed
28358         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
28359           and subclasses) from /usr/(local/)share/mime and
28360           $HOME/.local/share/mime.
28361
28362 2006-03-10  Jackson Harper  <jackson@ximian.com>
28363
28364         * MdiWindowManager.cs: Recalc the NC area when a window is
28365         maximized/restored so that the menu area is drawn on forms that
28366         don't have a menu.
28367
28368 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28369
28370         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
28371           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
28372           us to force a WM_NCCALCRESIZE message being sent. This is needed
28373           for MDI maximizing.
28374
28375 2006-03-10  Jackson Harper  <jackson@ximian.com>
28376
28377         * Form.cs: We need to use the ActiveMenu when calculating menu
28378         height.
28379         - Fix nullref when the window manager hasn't been created yet.
28380         * Control.cs: Fix nullref when we try to bring a control to the
28381         front that has no parent.
28382         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
28383         height.
28384         - Add a dummy item to the maximized menu so it always has the
28385         correct height. Otherwise when there are no menus we don't get our
28386         icon and buttons.
28387         
28388
28389 2006-03-10  Jackson Harper  <jackson@ximian.com>
28390
28391         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
28392         stuff.
28393         * Form.cs: Make the window_state internal so the window managers
28394         can track it.
28395         - When an MDI child is maximized let its window manager create the
28396         main menu (so it can add its icon).
28397         - Notify the window managers of state changes
28398         - Let the window manager paint its buttons and handle button
28399         clicks on the menu when it is maximized.
28400         * InternalWindowManager.cs: Move the prev_bounds into the mdi
28401         window manager, since tool windows don't use it, only mdi windows.
28402         - Tell the main form that we don't want it to handle NCPAINT
28403         itself to avoid extra painting.
28404         - Handle clicks on a maximized windows menu.
28405         - Handle window state changes
28406         - Handle minimize/maximize clicks correctly by setting the window state.
28407         * MdiWindowManager.cs: Add an icon menu that (the menu you get
28408         when clicking on the forms icon).
28409         - New method to create a forms maximized menu. This is its normal
28410         menu + an icon.
28411         - Handle window state changes.
28412         - Handle sizing of maximized windows.  Maximized windows are just
28413         drawn bigger then the parent visible area. All controls are still
28414         there, they are just outside the visible area (this matches windows).
28415         * MdiClient.cs: No scrollbars when a child window is maximized.
28416         - Let the children windows figure out how big they should be when
28417         sizing maximized windows.
28418         - Implement a version of ArrangeIconicWindows somewhat similar to
28419         Windows version.  There are some little differences, but I don't
28420         think any app will rely on the layout of minimized mdi windows.
28421
28422 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28423
28424         * Padding.cs: Several fixes to allow compiling with csc 2.0
28425
28426 2006-03-09  Jackson Harper  <jackson@ximian.com>
28427
28428         * Menu.cs:
28429         * MenuItem.cs: Cheap hack so we can add items to the list without
28430         the events being raised.  This allows adding mdi items during
28431         drawing. TODO: Should probably find a better time to add the items.
28432
28433 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28434
28435         * ThemeWin32Classic.cs:
28436           - CheckBox_DrawText: Added logic to not wrap if not enough space
28437             is available (Fix for bug #77727)
28438           - RadioButton_DrawText: Added logic not to wrap if not enough
28439             space is available (Fix for bug #77727). Also removed some
28440             duplicate code, DrawString always drawing the regular text
28441             before hitting the if statement.
28442
28443 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
28444
28445         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
28446
28447 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28448
28449         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
28450         * ContainerControl.cs: Partial implementation of some 2.0 scaling
28451           methods. Moved the new 2.0 properties into alphabetical order with
28452           other properties and added MonoTODO tags
28453
28454 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28455
28456         * AutoScaleMode.cs: Added. Fix build.
28457
28458 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28459
28460         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
28461           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
28462           and was requiring premature handle creation for calls from above
28463         * Form.cs, Control.cs: Removed handle arguments from calls to
28464           CalculateClientRect()
28465
28466 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28467
28468         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
28469           drag_column.column_rect is MarshalByRef and can't be used that way
28470
28471 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28472
28473         * AxHost.cs: Added deserialization constructor for 
28474           AxHost+State (fixes 77743)
28475
28476 2006-03-09  Mike Kestner  <mkestner@novell.com>
28477
28478         * ListView.cs: 
28479         - Added column drag reordering for details view.
28480         - fixed behavior when mouse is dragged off column and
28481         AllowColumnReorder is false.
28482         * ColumnHeader.cs: clone the format too in Clone.
28483         * Theme.cs: add DrawListViewHeaderDragDetails method.
28484         * ThemeWin32Classic.cs:
28485         - impl new method for drawing drag column shadows and targets.
28486         - support column offset for details mode in DrawListViewItem.
28487
28488 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28489
28490         * TextControl.cs: Reset the char_count when the document is cleared
28491           (Fixes bug reported on mono-winforms mailing list)
28492
28493 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28494
28495         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
28496           of calling base we simply process the key ourselves, since both
28497           DefWindowProc and the handled method would set m.Result. 
28498           (Fixes #77732)
28499
28500 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28501
28502         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
28503           method also moves the window; instead implemented a copy of
28504           Control.ScaleCore (Part of fix for #77456)
28505         * TextBoxBase.cs: 
28506           - Created new CreateGraphicsInternal method to allow providing
28507             a graphics context when no handle is created without triggering
28508             handle creation. (Part of fix for #77456)
28509           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
28510         * TextControl.cs: 
28511           - Switched Constructor to require TextBoxBase instead of Control (to
28512             allow uncast access to CreateGraphicsInternal)
28513           - Safeguarded use of owner.Handle property. No longer accessing it
28514             unless the handle is already created.
28515           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
28516           - Now triggering a recalc when owning control becomes visible
28517         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
28518           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
28519           premature handle creation (Part of fix for #77456)
28520         * Control.cs:
28521           - We now only destroy our double-buffering buffers when the
28522             control is resized or disposed, but not when visibility
28523             changes. (The code even re-created them twice every time)
28524           - Now requiring a redraw of the buffer on visibility changes
28525             (fixes bug 77654 part 2)
28526           - Not passing OnParentVisibleChanged up unless the control
28527             is visible
28528           - CanFocus: Fixed to match MS documentation
28529           - Focus: Fixed to return actual focus state and to check if
28530             setting focus is legal before setting it
28531
28532 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
28533
28534         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
28535           when to draw focus rectangle by looking at parent focus and
28536           selected state instead. This fixes TabPages on Linux sometimes
28537           having none or multiple focus rectangles.
28538         * XplatUIX11.cs (SetFocus): 
28539           - Don't set the focus if the same window already has focus
28540           - Use SendMessage instead of PostMessage (like it's Win32
28541             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
28542             to match MS behaviour
28543         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
28544           are not selectable.
28545
28546 2006-03-07  Jackson Harper  <jackson@ximian.com>
28547
28548         * PictureBox.cs: Revert line I accidently committed last week.
28549
28550 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
28551
28552         * Control.cs: 
28553           - Added new IsRecreating and ParentIsRecreating properties to
28554             allow testing if RecreateHandle has been called on ourselves
28555             or one of our parents
28556           - WndProc(WM_DESTROY): If our control handle is being recreated
28557             we immediately need to create the handle when receiving the
28558             destroy, that way our child windows find a valid parent handle
28559             when they themselves are being recreated upon WM_DESTROY receipt
28560             (fix for bug #77654 part 1)
28561         * XplatUIX11.cs:
28562           - DestroyWindow: WM_DESTROY must be sent to our own window before
28563             notifying any child windows. MS documents that child windows
28564             are still valid when WM_DESTROY is received. (Control now relies on
28565             this behaviour)
28566           - Added some fine-grain debug options
28567
28568 2006-03-06  Jackson Harper  <jackson@ximian.com>
28569
28570         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
28571         box and base calculations off this.
28572         * MdiChildContext.cs:
28573         * MdiWindowManager.cs: Don't need to ensure scrollbars here
28574         anymore.
28575         
28576 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
28577
28578         * Splitter.cs: In situations where the affected control is added
28579           to the parent's control list after the splitter, we would not
28580           populate affected. Now we try populating it on mousedown, if
28581           it's not already set, and force it to be re-set whenever our
28582           parent changes.
28583
28584 2006-03-03  Matt Hargett  <matt@use.net>
28585
28586         * Control.cs: implement Control.Padding
28587         * Padding.cs: -Padding.All returns -1 when constructing with the
28588         implicit default ctor
28589         -Padding.ToString() matches MS.NET
28590         * ContainerControl.cs: implement
28591         ContainerControl.AutoScaleDimensions
28592         * ListControl.cs: implement ListControl.FormattingEnabled
28593         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
28594         * ButtonBase.cs:
28595         * TabPage.cs: Implement UseVisualStyleBackColor.
28596         * PictureBox.cs: Implement PictureBox.InitialImage.
28597
28598 2006-03-03  Mike Kestner  <mkestner@novell.com>
28599
28600         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
28601         event declarations to proxy to base event.
28602         * ListViewItem.cs: update to use ItemControl.
28603         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
28604         * ThemeWin32Classic.cs: update to new ListView theme API and fix
28605         column header label rendering for 0 width columns.
28606
28607 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
28608
28609         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
28610           that causes the control to be created. Fixes #77476.
28611
28612 2006-03-02  Jackson Harper  <jackson@ximian.com>
28613
28614         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
28615         expose_pending.
28616
28617 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
28618
28619         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
28620           passed in for the EventArgs (fixes #77690)
28621
28622 2006-03-01  Jackson Harper  <jackson@ximian.com>
28623
28624         * ScrollBar.cs: Refresh afterbeing resized.
28625
28626 2006-02-28  Mike Kestner  <mkestner@novell.com>
28627
28628         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
28629         Clean up a tracker compile warning.
28630         * MenuItem.cs: add internal PerformPopup method.
28631         [Fixes #77457]
28632
28633 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
28634
28635         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
28636           implicit expose) when the text is set to null
28637
28638 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
28639
28640         * RichTextBox.cs (FlushText): When newline is true, we always
28641           need to split the line, even if no text is on it and we may
28642           never eat newlines. (Fixes #77669)
28643
28644 2006-02-28  Mike Kestner  <mkestner@novell.com>
28645
28646         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
28647         and set Selected instead.
28648         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
28649         collections.
28650
28651 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
28652
28653         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
28654
28655 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
28656
28657         * FontDialog.cs:
28658           - Got rid of the panel. All controls are now directly added to
28659             the dialog form
28660           - It is now possible to set a font with the Font property
28661           - MinSize and MaxSize property do now what they should
28662           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
28663           - Searching and selecting a font with the font textbox works now,
28664             the same applies to the style and size textbox
28665           - Draw the correct 3D border in the example panel
28666           - Fixed a little mem leak (unused fonts didn't get disposed)
28667           - Many other internal updates/rewrites...
28668           - Fix typo
28669
28670 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
28671
28672         * TextControl.cs: 
28673           - InsertRTFFromStream: Added 'number of characters inserted' argument
28674           - set_SelectedRTF: Now using the number of characters to calculate
28675             the new location for the selection and cursor (x/y cannot be used
28676             due to potentially already wrapped text)
28677
28678 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
28679
28680         * TextControl.cs: Added property and implemented means to allow 
28681           disabling recalculation of a document (can be used to speed up
28682           multiple inserts and is needed to make RTF inserts predictable, see
28683           bug #77659)
28684         * RichTextBox.cs: Using the new NoRecalc property of Document to
28685           keep x/y insert locations predictable. Also makes it faster inserting
28686           large chunks of RTF
28687
28688 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
28689
28690         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
28691           it's easier for a child control to handle the other messages without
28692           having to duplicate the special functionality
28693         * TextBoxBase.cs
28694           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
28695             code to handle processing the key ourselves, in order to get 
28696             access to the result of KeyEventArgs.Handled. We now only call 
28697             ProcessKey if they key hasn't been handled already. Fixes #77526.
28698           - set_Text: If null or empty string is given, just clear the 
28699             document. Fixes part of #77526
28700
28701 2006-02-27  Jackson Harper  <jackson@ximian.com>
28702
28703         * SizeGrip.cs: Paint the background color before painting the grip
28704         so things look right.
28705         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
28706
28707 2006-02-27  Mike Kestner  <mkestner@novell.com>
28708
28709         * ListView.cs:
28710           - Restructure layout and invalidation model to remove a ton of
28711           flicker from the control and speed up performance in general.
28712           - Add manual column resize, flickers like crazy, but I already have
28713           some ideas on how I'll fix that. (#76822)
28714           - Merge the three Icon-based views into a single layout method.
28715           - Move item selection interaction logic from the item since 
28716           interaction with the collections is more appropriate to the view.
28717           - Deselection on non-item clicks.
28718         * ListViewItem.cs:
28719           - Encapsulate most of the layout. Add some internal props to trigger
28720           layout.  Move to a model where Items invalidate themselves instead
28721           of just invalidating the whole control every time something changes.
28722           - Invalidate on Text/Caption changes.
28723           - switch to an offset based layout model to avoid having to absolute
28724           position every element on item moves.
28725           - correct checkbox layout to conform to MS layout.
28726         * ThemeWin32Classic.cs:
28727           - refactor some column header drawing code.
28728           - fix string justification for column headers (#76821)
28729           - make SmallIcon labels top justified for compat with MS impl.
28730         * ThemeClearlooks.cs:
28731           - adjust to new ListViewItem internal checkbox bounds api.
28732
28733 2006-02-27  Jackson Harper  <jackson@ximian.com>
28734
28735         * Control.cs:  Change where implicit controls fall in the zorder.
28736         They are now on top of all children.
28737         - Synced AddImplicit code with Add
28738         - Removed unused enumerator.
28739         * SizeGrip.cs: Remove the TODO as its been TODONE.
28740
28741 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
28742
28743         * TextControl.cs(Insert): Combine the last lines unless the insertion
28744           string ends with \n\n, otherwise we leave one line too many (Fixes
28745           something I noticed with the testapp for #77526; the bug itself was
28746           already fixed in the previous checkin)
28747
28748 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
28749
28750         * RichTextBox.cs:
28751           - SelectionColor and SelectionFont methods no longer set absolute
28752             styles. Instead, the keep font or color respectively (This 
28753             resolves a long-standing FIXME in the code)
28754           - When flushing RTF text, the insert code now considers text trailing
28755             behind the insertion point (Fixes the bug where when replacing
28756             the selected text via SelectedRTF the remainder of the line behind 
28757             the selection would stay on the first insertion line)
28758         * TextBoxBase.cs:
28759           - AppendText now updates the selection points after inserting text
28760           - AppendText now ensures that the last tag (sometimes 0-length) of
28761             the document is used for the style information (Fixes part of 
28762             bug #77220)
28763         * TextControl.cs:
28764           - Created new FontDefiniton class to allow describing partial style
28765             changes
28766           - StreamLine() now takes a lines argument, to allow it to decide
28767             whether an encountered zero-length tag is the last in the document
28768             (which must be kept to not loose the font/color contained in it,
28769             for later appends)
28770           - Created Combine() and Split() methods for Marker structs, to 
28771             support marker updates due to reformatted documents (soft line
28772             wraps)
28773           - Implemented Document.CaretTag setter
28774           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
28775             of the last line (Not the cause, but also exposed by bug #77220)
28776           - Added LineTag argument to InsertString method, to allow callers
28777             to force a certain tag to be used (required to force use of the
28778             trailing zero-length tag of a document)
28779           - Now updating markers in Combine(), to avoid stale tag markers
28780           - Added some method descriptions to aid maintenance
28781           - Implemented new FormatText concept, allowing additive/subtractive
28782             formatting by only specifying the components that are to be 
28783             changed. This was needed for resolving the RTB.SelectedColor/
28784             RTB.SelectedFont fixmes
28785           - Added Break() support method to allow breaking up linetags (used
28786             for partial formatting)
28787           - Added GenerateTextFormat() method. It is used for partial 
28788             formatting and allows to generate a full font/color from given
28789             attributes and an existing tag.
28790
28791 2006-02-26  Jackson Harper  <jackson@ximian.com>
28792
28793         * XplatUIX11.cs:  Use the correct caption height.
28794         - Translate hittest coordinates to screen coords to match MS.
28795         * XplatUIWin32.cs: When we create MDI windows we need to reset
28796         some of the style flags, so we get a nice blank window, and can
28797         draw all the decorations ourselves.
28798         - Set a clipping rectangle on the non client paint event, the
28799         window manager drawing code needs one.
28800         * Form.cs: The window manager needs to know when the window state
28801         has been updated.
28802         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
28803         don't need to factor in border and title sizes in these
28804         methods. TODO: Remove the args and fix the call points.
28805         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
28806         properly.
28807         - Let the driver set the cursors.
28808         - Improve active window handling
28809         - Correct sizes for title bars and buttons.
28810         - Match MS drawing better
28811         * MdiWindowManager.cs: We don't need to handle border style
28812         updates specially anymore.
28813         - Check for scrollbars when windows are done moving
28814         - Handle Active properly.
28815         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
28816         correctly. I am spewing the exception though, so we don't hide the
28817         bugs.
28818         
28819 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
28820
28821         * DataGridViewRowPostPaintEventArgs.cs,
28822           DataGridViewCellPaintingEventArgs.cs,
28823           DataGridViewRowCollection.cs,
28824           DataGridViewRowPrePaintEventArgs.cs,
28825           DataGridViewCell.cs: Clear a few warnings and implement a few
28826           exceptions that should be thrown.
28827
28828 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
28829
28830         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
28831           'inheriting' our parent's (non-default) cursor. (Part of
28832            the fix for #77479)
28833
28834 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
28835
28836         * XplatUIX11.cs: Fixed cast to make csc happy
28837
28838 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
28839
28840         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
28841           it's for the client area (part of fix for #77479 and needed
28842           for MDI window cursor handling)
28843         * XplatUIX11.cs
28844           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
28845             the appropriate default cursors and also passing the message
28846             up the parent chain 
28847           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
28848             for non-client areas
28849
28850 2006-02-15  Jackson Harper  <jackson@ximian.com>
28851
28852         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
28853         is a real MDI window
28854
28855 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
28856
28857         * X11DesktopColors.cs: Instead of checking the desktop session
28858           string for "KDE" check if it starts with "KDE"
28859
28860 2006-02-10  Jackson Harper  <jackson@ximian.com>
28861
28862         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
28863         systems).
28864
28865 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
28866
28867         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
28868           errors
28869         * ColorDialog.cs:
28870           - Got rid of the panel. All controls are now directly added to
28871             the dialog form
28872           - Changed to mono coding style
28873
28874 2006-02-10  Jackson Harper  <jackson@ximian.com>
28875
28876         * InternalWindowManager.cs: We don't need the set visibility to
28877         false hack anymore now that peter has written beautiful shutdown
28878         code.
28879
28880 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
28881
28882         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
28883           where already explicitly destroyed
28884
28885 2006-02-10  Jackson Harper  <jackson@ximian.com>
28886
28887         * MdiClient.cs: Handle the case where windows are too high or to
28888         the left and we need scrollbars.
28889
28890 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
28891
28892         * MimeIcon.cs: Added some icons
28893         * FileDialog.cs:
28894           - Fixed bug #77477
28895           - Got rid of the panel. All controls are now directly added to
28896             the dialog form
28897           - Changed to mono coding style
28898           - On Linux "My Computer" and "My Network" will now show some
28899             more usefull information. A new class, MasterMount, gathers
28900             this information from /proc/mount. Updated MWFFileView to make
28901             use of this information
28902           - Fixed a bug that caused FileDialog to crash when
28903             ".recently_used" file had a zero size
28904           - FilterIndex does now what it should
28905           - Some Refactoring
28906         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
28907             FileDialog changes
28908
28909 2006-02-09  Jackson Harper  <jackson@ximian.com>
28910
28911         * ComboBox.cs: Don't touch if null.
28912
28913 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
28914
28915         * Cursor.cs: 64bit safeness fix
28916         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
28917
28918 2006-02-09  Jackson Harper  <jackson@ximian.com>
28919
28920         * Form.cs: If a form is made into an MDI form update the styles so
28921         all the props can get set correctly.
28922         - Kill the mdi_container when we dont need it anymore.
28923         * InternalWindowManager.cs: Add missing NOT
28924
28925 2006-02-08  Jackson Harper  <jackson@ximian.com>
28926
28927         * InternalWindowManager.cs: Respek clipping when drawing MDi
28928         decorations.
28929
28930 2006-02-08  Jackson Harper  <jackson@ximian.com>
28931
28932         * Hwnd.cs: Add bits to track non client expose events.
28933         * XplatUIX11.cs: Track non client expose events on the hwnd. This
28934         gives us a proper invalid rect and will allow for some nice
28935         optimizations with NC client drawing
28936         - MDI windows are children windows, so move their style handling
28937         into the child window block.
28938         * InternalWindowManager.cs: Remove a state reset that was
28939         getting invoked at the wrong time. Fixes managed windows getting
28940         into a 'stuck' captured state.
28941
28942 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
28943
28944         * TextControl.cs (Document.ctor): Now initializing 
28945           selection_anchor. Fixes #77493
28946
28947 2006-02-07  Jackson Harper  <jackson@ximian.com>
28948
28949         * TrackBar.cs: The increment/decrements were backwards.
28950
28951 2006-02-07  Mike Kestner  <mkestner@novell.com>
28952
28953         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
28954         to the instance itself.
28955
28956 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
28957
28958         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
28959           on ulongs and pointers, the size differs between 32bit and 64bit
28960           systems. 
28961
28962 2006-02-07  Mike Kestner  <mkestner@novell.com>
28963
28964         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
28965         for 64 bit platforms to work around a metacity bug. 
28966
28967 2006-02-07  Jackson Harper  <jackson@ximian.com>
28968
28969         * TrackBar.cs: Process the input keys we need, and hookup to
28970         KeyDown instead of using WndProc, so we get key messages.
28971
28972 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
28973
28974         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
28975           machine we're on. 
28976         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
28977           we need to translate the XdndVersion atoms array before sending it
28978
28979 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
28980
28981         * XplatUIX11.cs: 
28982           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
28983             number of bits for the property, not the number of bytes. The
28984             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
28985             but would not crash since it specified 8 bits instead of 4 bits)
28986           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
28987             defined as XID -> long in the C headers)
28988           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
28989             references since those are now IntPtr to begin with
28990           - Switched all Atom.XXX 'int' casts to IntPtr casts
28991           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
28992           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
28993           - Added XChangeActivePointerGrab DllImport (for X11DnD)
28994         * X11Structs.cs:
28995           - Changed 'int' type for Atoms in XEvent structures to IntPtr
28996           - Changed atom in HoverStruct to be IntPtr
28997         * X11DnD.cs:
28998           - Removed local DllImports, switched code to use those from XplatUIX11
28999           - Removed/fixed casts related to the switch of Atom to be a IntPtr
29000
29001 2006-02-06  Mike Kestner  <mkestner@novell.com>
29002
29003         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
29004         method signatures in the import region.  There may still be some
29005         lingering struct marshaling issues, as I didn't drill down into those.
29006         Yet.
29007
29008 2006-02-06  Jackson Harper  <jackson@ximian.com>
29009
29010         * ComboBox.cs: Dont manually set the top_item, this is computed
29011         when the scrollbar position is set.
29012
29013 2006-02-06  Mike Kestner  <mkestner@novell.com>
29014
29015         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
29016         startup crashes on amd64.  There's other fixes needed.  All pinvoke
29017         usage of Atom needs to be mapped to IntPtr for example.  And there are
29018         likely other int/long issues to be addressed.
29019
29020 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
29021
29022         * FileDialog.cs: One more...
29023
29024 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29025
29026         * FileDialog.cs: Next try
29027
29028 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29029
29030         * FileDialog.cs: First part of fix for #77464
29031
29032 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29033
29034         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
29035           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
29036           AcceptButton border drawing.
29037
29038 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
29039
29040         * Form.cs: Moved positioning of form after auto scaling is applied,
29041           otherwise it would possibly use wrong form size.
29042
29043 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
29044
29045         * Control.cs (RecreateHandle): No need to re-create any child
29046           controls, the child windows will get destroyed automatically by
29047           the windowing system or driver, and re-created when the handle
29048           is being accessed the first time. Fixes #77456
29049         * Form.cs: No longer setting the form to closing if the handle is 
29050           being recreated. This seems like the right thing to do, don't
29051           have a bug or testcase for this, though.
29052
29053 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
29054
29055         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
29056           controls to avoid unwanted side effects
29057
29058 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
29059
29060         * Control.cs: 
29061           - ScaleCore needs to scale the bounds, not the ClientSize of the 
29062             control. Fixes #77416.
29063           - DefaultSize is 0,0 for control
29064         * TextBoxBase.cs: 
29065           - DefaultSize is 100, 20
29066           - SetBoundsCore: Now enforcing the height, no matter if the provided
29067             height is more or less than the preferred one, as long as AutoSize
29068             is on
29069         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
29070
29071 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
29072
29073         * Control.cs:
29074           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
29075             call unless both performLayout is true *and* we have a pending
29076             layout change
29077           - ResumeLayout: MS does not completely nest Suspend and Resume,
29078             they bottom out at 0, fixed our code to match that.
29079           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
29080             SetBoundsCore, we were updating even when we shouldn't. This fixes
29081             swf-anchors mis-anchoring when resizing the app fast and lots.
29082           - UpdateDistances: Now only setting the left and top distance if 
29083             we have a parent and are not suspended, this is based on
29084             a suggestion by Don Edvaldson in bug #77355.
29085           - OnVisibleChanged: Fixed logic when to create the control. We may
29086             not create the control if we have no parent or if it's not visible;
29087             switched to using Visible property instead of is_visible field 
29088             since the property also considers parent states. This fixes a bug
29089             when starting Paint.Net
29090
29091 2006-02-02  Jackson Harper  <jackson@ximian.com>
29092
29093         * Form.cs: If the forms handle hasn't been created yet don't call
29094         into xplatui to make it top most, just set the topmost flag on the
29095         form in CreateParams
29096         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
29097
29098 2006-02-01  Jackson Harper  <jackson@ximian.com>
29099
29100         * ScrollableControl.cs: Refactored the Recalculate method a
29101         little, this wasn't handling all the variants of bottom and right
29102         bars needed to be added and added/removed based on their
29103         counterparts being added/removed (which changes the drawable
29104         size). Also we special case client widths and heights of 0 and
29105         don't add the scrollbar for those.
29106
29107 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
29108
29109         * XplatUIX11.cs: 
29110           - Added method to get AbsoluteGeometry(); currently unused, but might
29111             be used in the future, if we try again to figure out toplevel
29112             coordinates with some more crappy window managers
29113           - Added FrameExtents() method to retrieve the WM set decoration size
29114           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
29115             to deal with at least KDE, FVWM and metacity (Fixes #77092)
29116         * Hwnd.cs: 
29117           - Added whacky_wm tracking var for metacity
29118           - Added logic to have default menu height if the actual menu height
29119             has not yet been calculated (part of fix for #77426)
29120         * Form.cs: Keep track whether client size has been set and re-set 
29121           it if a menu is added/removed afterwards (Fixes #77426)
29122
29123 2006-01-31  Jackson Harper  <jackson@ximian.com>
29124
29125         * Control.cs: When a new Site is set on the component attempt to
29126         pull the AmbientProperties from it.
29127
29128 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
29129
29130         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
29131           in the background of the owning form. Fixes #77332
29132
29133 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
29134
29135         * MimeIcon.cs: Fix for #77409
29136
29137 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
29138
29139         * XplatUIX11GTK.cs: Initial import
29140
29141 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
29142
29143         * FixedSizeTextBox: fixes class signature
29144
29145 2006-01-30  Jackson Harper  <jackson@ximian.com>
29146
29147         * FixedSizeTextBox.cs: New internal class that represents a
29148         textBox that will not be scaled.
29149         * TreeView.cs:
29150         * ComboBox.cs:
29151         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
29152         standard TextBox.
29153                 
29154 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
29155
29156         * XplatUIX11.cs: Retrieve default screen number instead of
29157           assuming 0. Attempted fix for #77318
29158
29159 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
29160
29161         * XplatUIWin32.cs: 
29162           - GetWindowPos: When a window is parented by FosterParent, use 
29163             the desktop instead of FosterParent as the base to get coordinates
29164           - CreateWindow: Don't make FosterParent the parent window for Popups
29165             if we don't want a taskbar entry, Popups automatically don't get one
29166         * Hwnd.cs: Need to call remove to actually remove the key from the
29167           hash table
29168
29169 2006-01-30  Mike Kestner  <mkestner@novell.com>
29170
29171         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
29172
29173 2006-01-30  Jackson Harper  <jackson@ximian.com>
29174
29175         * TreeView.cs:
29176         * TreeNode.cs: Raise events no matter how the treenode is
29177         checked. Patch by Don Edvalson.
29178
29179 2006-01-30  Jackson Harper  <jackson@ximian.com>
29180
29181         * TreeNode.cs: Signature fix.
29182
29183 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
29184
29185         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
29186
29187 2006-01-20  Mike Kestner  <mkestner@novell.com>
29188
29189         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
29190         event forwarding when menus are active.
29191         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
29192         Most of the patch is pdb's with a little rework.
29193
29194 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
29195
29196         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
29197           Removed GetMenuDC and ReleaseMenuDC methods; replaced
29198           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
29199         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
29200         * InternalWindowManager.cs: Added use of PaintEventStart/End to
29201           handling of WM_NCPAINT message, now passing the PaintEventArgs to
29202           the PaintWindowDecorations method
29203         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
29204         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
29205         * MenuAPI.cs: Made tracker window invisible
29206         * XplatUIWin32.cs:
29207           - Removed GetMenuDC and ReleaseMenuDC methods
29208           - Implemented the client=false path for PaintEventStart and
29209             PaintEventEnd
29210
29211 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
29212
29213         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
29214         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
29215           styles
29216         * Form.cs: 
29217           - MaximizeBox, MinimizeBox: Recreate the handle when setting
29218             the style
29219           - CreateParams: Reworked the styles to match MS look'n'feel,
29220             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
29221             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
29222
29223 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
29224
29225         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
29226           window is not mapped, since otherwise every form that's being 
29227           created is considered minimized, which is wrong.
29228         * Form.cs: Catching the exception and returning our internal value
29229           instead
29230
29231 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
29232
29233         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
29234           SetWindowMinMax() to have means to tell the driver about the minimum,
29235           maximum and maximized state window sizes. (Part of the fix for #76485)
29236         * Form.cs:
29237           - Implemented tracking of minimum and maximum window size, now calling
29238             new SetWindowMinMax() driver method to tell the driver (Part of the
29239             fix for #76485)
29240           - Finished handling of WM_GETMINMAXINFO method, now setting all values
29241             (Completes fix for #76485)
29242           - Calling new SetWindowMinMax driver method when the handle for a 
29243             form is created, to make sure the driver knows about it even if
29244             the values have been set before the window was created
29245           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
29246             to avoid messing up our anchoring calculations (partial fix
29247             for #77355)
29248         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
29249         * XplatUIX11.cs:
29250           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
29251           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
29252             (and presumably other freedesktop.org compliant WMs). Left the
29253             assumption unmapped=minimized, needed for SetVisible to work.
29254           - Now setting the window state when creating windows
29255           - Fixed SetVisible to consider/set the window state when mapping
29256             a Form. We cannot set the state before it's mapped, and we cannot
29257             use Form.WindowState once it's mapped (since it would ask the
29258             driver and get 'normal'. Therefore, we grab the state before
29259             mapping, map, and then set state.
29260           - Implmemented SetWindowMinMax method; Metacity does not seem to
29261             honor the ZoomHints, though.
29262         * XplatUIWin32.cs:
29263           - Removed MINMAXINFO (moved to XplatUIStructs)
29264           - Added SetWindowMinMax stub (on Win32 the only way to set that
29265             information is in response to the WM_GETMINMAXINFO message, which
29266             is handled in Form.cs)
29267           - Added logic to SetVisible to set the proper window state when a 
29268             form is made visible (fixes #75720)
29269
29270 2006-01-26  Jackson Harper  <jackson@ximian.com>
29271
29272         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
29273         same way we handle them with Invoke.
29274
29275 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
29276
29277         * Form.cs:
29278           - Added tracking of window state so CreateParams can return
29279             the appropriate style
29280           - Moved setting of WS_CAPTION style in CreateParams to allow
29281             styles without caption
29282         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
29283           control if the TextBox property is accessed. Fixes #77345
29284         * Control.cs:
29285           - get_Created: now uses is_disposed and is_created to determine
29286             return value (suggested by Jackson)
29287           - CreateHandle: No longer exits if the handle is being recreated
29288           - RecreateHandle: If the handle is not yet created call the 
29289             appropriate method to create either control or handle. If the
29290             control is already created CreateHandle will simply exit instead
29291             of just creating the handle
29292         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
29293           now SendMessage WM_DESTROY directly to the control when DestroyWindow
29294           is called.
29295         * XplatUIX11.cs: 
29296           - When DestroyWindow is called, instead of waiting for the 
29297             DestroyNotification from X11, we directly post it to the WndProc
29298             and immediately dispose the hwnd object.
29299             Same applies to DestroyChildWindows, and this obsoletes the
29300             expose_pending tracking. Contrary to Win32 behaviour we destroy our
29301             child windows before our own, to avoid X11 errors.
29302           - Removed the direct sending of WM_PAINT on UpdateWindow
29303         * XplatUIWin32.cs:
29304           - Reworked DoEvents and GetMessage to allow access to internal queue
29305             even when trying non-blocking access to the queue.  Fixes #77335. 
29306             Based on a patch suggestion by Don Edvalson. The new private
29307             GetMessage can now also be used as a backend for a PeekMessage
29308             frontend version.
29309         * XplatUI.cs: Improved debug output for CreateWindow
29310
29311 2006-01-25  Jackson Harper  <jackson@ximian.com>
29312
29313         * Help.cs: Allow param to be null. Patch by Don Edvalson.
29314
29315 2006-01-24  Jackson Harper  <jackson@ximian.com>
29316
29317         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
29318         when we have a MaxDropItems lower then the selected index.
29319
29320 2006-01-24  Jackson Harper  <jackson@ximian.com>
29321
29322         * Control.cs: Don't allow selection of non visible controls, allow
29323         selection of controls without parents.
29324
29325 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
29326
29327         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
29328         * DataGridDrawingLogic.cs: Add editing row only when is necessary
29329
29330 2006-01-23  Jackson Harper  <jackson@ximian.com>
29331
29332         * UpDownBase.cs: Make the textbox handle all the selection and
29333         tabbing. This fixes tabing to updown controls.
29334
29335 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
29336
29337         * TextBoxBase.cs: fixes exception thown the object was null
29338
29339 2006-01-23  Jackson Harper  <jackson@ximian.com>
29340
29341         * ButtonBase.cs: Just use the base CreateParams. They set
29342         visibility and enabled correctly.
29343         * ComboBox.cs:
29344         * TrackBar.cs:
29345         * MonthCalendar.cs: Lets let the base set as much of the
29346         createparams as possible so we don't have duplicate code all over
29347         the place.
29348
29349 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
29350
29351         * ThemeGtk.cs: Added TrackBar and some experimental code to
29352           get double buffering back
29353
29354 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
29355
29356         * DataGrid.cs: Allows row number set internally higher than the last
29357         when creating a new row. Restores the editing functionality.
29358
29359 2006-01-20  Mike Kestner  <mkestner@novell.com>
29360
29361         * MimeIcon.cs: delay Image creation until the icons are accessed
29362         instead of creating 190 scaled images on GnomeHandler startup.
29363
29364 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
29365
29366         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
29367           first call base before processing the event. Fixes #77279
29368
29369 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
29370
29371         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
29372           that the stride for the GDI bitmap would match the stride of
29373           a DIB or a Cursor.
29374
29375 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
29376
29377         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
29378
29379 2006-01-19  Jackson Harper  <jackson@ximian.com>
29380
29381         * ComboBox.cs: Hookup the text controls keydown event so we get
29382         those when the text control has the focus.
29383
29384 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
29385
29386         * Label.cs: Now using the base events instead of defining new ones;
29387           this allows us to just call the base properties without having to
29388           duplicate all base property logic 
29389
29390 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
29391
29392         * Label.cs: A label by default is not a tabstop (Fixes one of our
29393           failing nunit tests)
29394
29395 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
29396
29397         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
29398         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
29399
29400 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
29401
29402         * Cursor.cs: Reimplemented creating cursor bitmaps without using
29403           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
29404           This fixes #77218
29405         * XplatUIWin32.cs: 
29406           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
29407             constructor creates images that can't be saved. Part of the fix
29408             for #76103
29409           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
29410           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
29411             bug fix for handling window state in forms properly)
29412
29413 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29414
29415         * ThemeGtk.cs: Simplify ScrollBar drawing
29416
29417 2006-01-18  Jackson Harper  <jackson@ximian.com>
29418
29419         * Splitter.cs: Set the default dock style for the splitter control
29420         in the constructor.
29421
29422 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29423
29424         * ThemeGtk.cs: Corrected StateType and ShadowType for
29425           gtk_paint_box
29426
29427 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29428
29429         * Control.cs: Make use of Theme.DoubleBufferingSupported
29430         * ThemeGtk.cs:
29431           - Added drawing for flat style buttons
29432           - Added ScrollBar drawing
29433
29434 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29435
29436         * ThemeClearlooks.cs: Removed some unneeded code.
29437         * ThemeGtk.cs: First part of ThemeGtk enhancements.
29438
29439 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
29440
29441         * LinkLabel.cs: We need to update the hover drawing when
29442           leaving the control as well.
29443
29444 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
29445
29446         * DataGrid.cs: Clicking on non empty areas in the columns
29447            area was giving an exception
29448
29449 2006-01-17  Jackson Harper  <jackson@ximian.com>
29450
29451         * ThemeWin32Classic.cs:
29452         * ListView.cs: Do not draw/clip the headers when the header style
29453         is None.
29454
29455 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
29456
29457         * DataGrid.cs: Fixes 77260
29458         
29459 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
29460
29461         * DataGrid.cs: Clicking on a column on a empty grid was giving
29462           an exception
29463
29464 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
29465
29466         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
29467           or any keypress will crash the grid.
29468
29469 2006-01-17  Mike Kestner  <mkestner@novell.com>
29470
29471         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
29472         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
29473         invisible/previously-visible items.
29474         [Fixes #76909]
29475
29476 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
29477
29478         * ThemeClearlooks.cs:
29479         - Added CL_Draw_Button method; now other theme controls that are 
29480           not derived from button or do not have a button can draw buttons
29481           too
29482         - Updated ComboBox drawing
29483         - Beautified RadioButton drawing
29484         - Corrected drawing of bottom and left tabs
29485         - Beautified DateTimePicker and MonthCalendar
29486         - Added CPDrawButton and CPDrawRadioButton
29487
29488 2006-01-16  Jackson Harper  <jackson@ximian.com>
29489
29490         * ComboBox.cs: Set the initial value of the scrollbar to the
29491         current index. Reduce the numbers of refreshs and IndexOfs called.
29492
29493 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
29494
29495         * FileDialog.cs: When the file listview is focused hitting the
29496           backspace key moves the fileview to the parent directory
29497
29498 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
29499
29500         * Form.cs: 
29501           - Added RecreateHandle call when changing taskbar visibility to 
29502             trigger reparenting in Win32 driver (Fixes #75719)
29503           - If a window has minimize or maximize buttons, it cannot have
29504             a help button
29505         * XplatUIWin32.cs:
29506           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
29507             the toplevel form with FosterParent (A toolwindow not on the
29508             taskbar) (Fixes #75719)
29509           - Made FosterParent a toolwindow
29510
29511 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29512
29513         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
29514
29515 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29516
29517         * ToolTip.cs: If SetToolTip is called from a control and the mouse
29518           is currently over that control, make sure that tooltip_window.Text
29519           gets updated
29520
29521 2006-01-13  Mike Kestner  <mkestner@novell.com>
29522
29523         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
29524
29525 2006-01-13  Jackson Harper  <jackson@ximian.com>
29526
29527         * TreeView.cs: On MS GetNodeAt never actually factors in the X
29528         value passed.  Also redraw the selected node when we recieve
29529         focus, so tabbing between trees works correctly.
29530
29531 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29532
29533         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
29534           ~/.gconf/%gconf-tree.xml, so use
29535           .gconf/desktop/gnome/interface/%gconf.xml
29536
29537 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
29538
29539         * TextControl.cs: Draw text in gray if control is disabled
29540
29541 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
29542
29543         * TreeView.cs: Draw the focus rectangle outside the highlight, to
29544           make sure it's always visible. Fixes #76680.
29545
29546 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
29547
29548         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
29549
29550 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
29551
29552         * PageSetupDialog.cs: Added.
29553         * PrintDialog.cs: Attributes.
29554         * PrintPreviewControl.cs: Updates.
29555         * PrintPreviewDialog.cs: Updates.
29556         
29557 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29558
29559         * Control.cs: Undid my selection check fix, since it's not needed
29560         * TextBoxBase.cs:
29561           - Now considering the presence of hscroll/vscroll when sizing
29562             vscroll/hscroll respectively. Fixed bug #77077
29563           - Added Left/Up/Down/Right to IsInputKey list to prevent
29564             ContainerControl from stealing them. This fixes what I broke
29565             with my last checkin.
29566
29567 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
29568
29569         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
29570           I finally understand how the property can be set without a setter :-)
29571
29572 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29573
29574         * Application.cs:
29575           - Switched RunLoop to use static Message.Create to create a 
29576             Message object
29577           - Added PreProcessMessage call in runloop for keyboard events; this
29578             is part of the fix for #77219, I overlooked this originally in the
29579             MSDN doc for PreProcessMessage
29580         * Control.cs:
29581           - Removed call to PreProcessMessage from handling of keyboard 
29582             messages; it's supposed to be done in the message pump
29583           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
29584             per MSDN documentation.
29585           - IsInputChar: All chars are input chars by default; removed the 
29586             parent calling chain, MS does not document that
29587           - PreProcessMessage: If IsInputChar is true, we want to return false
29588             to allow dispatching of the message
29589           - When selecting the next control, now also check that we're not
29590             selecting ourselves again and therefore return a false positive.
29591         * TextBoxBase.cs:
29592           - Tried to match return values for IsInputKey and ProcessDialogKey
29593             to what MS returns; moved processing of our special keys outside
29594             ProcessDialogKey since MS does not seem to return true on those.
29595           - Moved code that previously was in ProcessDialogKey into new private
29596             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
29597           - Reworked handling of WM_CHAR to not have to duplicate code from
29598             Control.cs anymore, instead we simply call down to base.
29599            
29600 2006-01-12  Jackson Harper  <jackson@ximian.com>
29601
29602         * ComboBox.cs: We always need to refresh the text area when
29603         EndUpdate is called. Fixes the combobox in the file dialog.
29604         * Control.cs: Don't create the creator_thread until the controls
29605         handle is created.  Also in InvokeRequired we check if the
29606         creator_thread is null. This gives the effect of InvokeRequired
29607         returning true if the controls handle is not created yet, and
29608         matches MS.
29609
29610 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29611
29612         * XplatUI.cs:
29613           - Added StartLoop() driver method. This is used to allow drivers to
29614             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
29615             loop for a particular thread
29616           - Added EndLoop() driver method. This is called once the message
29617             pump for the thread is shut down
29618           - Added SupportsTransparency method to allow the driver to indicate
29619             opacity support for windows
29620         * Form.cs:
29621           - Removed TODO attribute, completed AllowTransparency property
29622           - Added documented logic to Opacity
29623         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
29624           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
29625           versions of CompatibleTextRendering
29626         * X11Structs.cs: Added opacity atom to our atom enumeration
29627         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
29628           of a form might be set before it's reparented by the WM, and we need
29629           the opacity value without calling up to Form)
29630         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
29631           SupportsTransparency() driver methods
29632         * Application.cs: Now calling StartLoop and EndLoop driver methods
29633         * XplatUIX11.cs:
29634           - Added opacity atom registration
29635           - Added StartLoop()/EndLoop() methods. They're empty right now but
29636             will need to get implemented when we switch to a per-thread queue
29637           - Implemented SupportsTransparency() method
29638           - Implemented SetWindowTransparency() method
29639           - Added support for setting the opacity value when a window is
29640             reparented (since the opacity needs to be set on the WM frame)
29641         * XplatUIOSX.cs, XplatUIWin32.cs:
29642           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
29643
29644 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
29645
29646         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
29647
29648 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
29649
29650         * FileDialog.cs: Added ToolTip for MWFFileView
29651         * MimeIcon.cs: Rewrote GnomeHandler.
29652           - Get currently used gnome icon theme from
29653             ($HOME)/.gconf/%gconf-tree.xml
29654           - Make use of inherited icon themes
29655           - Support SVG icon themes like Tango via librsvg
29656
29657 2006-01-12  Miguel de Icaza  <miguel@novell.com>
29658
29659         Revert's Jackson's revert which broke 2.0 builds.   Fix both
29660         builds. 
29661         
29662         * Application.cs: Move the use_compatible_text_rendering outside
29663         the NET_2_0 define.  If we ever need to use the
29664         use_compatible_text_rendering on the individual controls they will
29665         access the variable from the common shared code paths.
29666
29667 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29668
29669         * XplatUI.cs:
29670           - Added more granular debug options
29671           - Added method to print both window text and id
29672           - Switched debug output to use new Window() debug method
29673           - Added IsEnabled() driver method
29674           - Added EnableWindow() driver method
29675         * Form.cs:
29676           - Removed end_modal; no longer needed, new loop handles termination
29677             via 'closing' variable
29678           - If form is modal, setting DialogResult will now initiate loop
29679             termination via 'closing' variable
29680           - Added support for is_enabled/WS_DISABLED to CreateParams
29681           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
29682             does all the work
29683           - Removed code that's now in RunLoop from ShowDialog()
29684           - Added various documented sanity checks to ShowDialog()
29685           - Added handling of WM_DESTROY message; we set 'closing' on getting
29686             the message to indicate the message pump to terminate
29687           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
29688             send by the Application.ExitThread method. (We send the message
29689             to destroy the window after all other events have been
29690             processed through the queue, instead of destroying the handle 
29691             directly)
29692           - Moved code from Close() method to WM_CLOSE handler; added logic
29693             to only send close-related events if the form is not displayed
29694             modal
29695         * Splitter.cs (..ctor): Fixed typo in resource name
29696         * Control.cs:
29697           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
29698             brush now
29699           - set_Cursor: Now only setting calling into XplatUI if the handle for
29700             the control is already created; this avoids implict handle creation
29701             or crashes if it's not created
29702           - set_Enabled: Now setting the enabled state via the new driver method
29703             instead of just tracking it
29704           - CreateParams: Added logic to set WS_DISABLED based on enabled state
29705           - CreateControl: Reordered event firing and method calls to more
29706             closely fire events in the order MS does. Now setting the
29707             enabled state in the driver when creating the control.
29708           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
29709             match MS order
29710         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
29711           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
29712         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
29713         * Hwnd.cs:
29714           - Added tracking of window enabled state (get_Enabled/set_Enabled)
29715           - Added EnabledHwnd property to easily allow a driver to find the
29716             handle of the first enabled window in the parent chain (this is
29717             used by drivers to pass up input events of disabled windows)
29718         * XplatUIDriver.cs: Added IsEnabled() method
29719         * Application.cs:
29720           - Removed crude and obsolete exiting tracking variable
29721           - Removed internal ModalRun(); replaced by RunLoop()
29722           - Implemented private CloseForms() method to allow closing all 
29723             windows owned by a particular (or all) threads
29724           - Exit() now properly closes all windows without forcing the message
29725             pump to quit
29726           - Removed obsolete InternalExit() method
29727           - Changed Run() methods to use new RunLoop() message pump
29728           - Implemented new RunLoop() method for both modal and non-modal forms
29729         * CommonDialog.cs:
29730           - get_CreateParams: Added setting of WS_DISABLED
29731           - Simplified ShowDialog(); now all the work is done in RunLoop(),
29732             invoked via Form.ShowDialog()
29733         * NativeWindow.cs: We don't remove the window from the collection when
29734           the handle is destroyed; there might still be messages for it in the
29735           queue (mainly the resulting WM_DESTROY); instead it will be removed
29736           when Control calls InvalidateHandle in the WM_DESTROY handler
29737         * XplatUIX11.cs:
29738           - CreateWindow: Added logic to handle the WS_DISABLED window style
29739           - EnableWindow: Implemented based on Hwnd.Enabled
29740           - GetMessage: Reset PostQuitState so the method can be called again
29741           - Implemented support for disabled windows (passing messages to the
29742             first enabled parent) in handling all input messages
29743           - Added optimizations for handling Expose events
29744           - Implemeted new driver method IsEnabled()
29745           - Now always resetting paint pending tracking vars when we start paint
29746           - Re-implemented UpdateWindow via just sending a WM_PAINT message
29747         * XplatUIOSX.cs: Added IsEnabled method stub
29748         * XplatUIWin32.cs: Implemented new IsEnabled() method
29749
29750 2006-01-11  Jackson Harper  <jackson@ximian.com>
29751
29752         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29753         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
29754         variables a little.
29755         * ColorDialog.cs: Clear out the old form before adding the new
29756         panel.  
29757
29758 2006-01-11  Jackson Harper  <jackson@ximian.com>
29759
29760         * X11Dnd.cs: Make sure to add all the text formats when adding
29761         strings to the data object.
29762         * TreeNodeCollection.cs: When adding to a sorted tree we need to
29763         do some redrawing too.  Also change the UpdateNode to an
29764         UpdateBelow so the newly added node gets painted.
29765         
29766 2006-01-11  Miguel de Icaza  <miguel@novell.com>
29767
29768         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29769         LinkLabel.cs, PropertyGrid.cs: Implement the
29770         UseCompatibleTextRendering property for 2.x
29771
29772         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
29773
29774 2006-01-11  Jackson Harper  <jackson@ximian.com>
29775
29776         * TreeView.cs: Use the property for setting the selected node so
29777         the correct events get raised.
29778         * TreeNode.cs: Update the tree when the fore/back colours of a
29779         node are set.
29780
29781 2006-01-10  Jackson Harper  <jackson@ximian.com>
29782
29783         * TreeView.cs: Allow setting SelectedNode to null.
29784
29785 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29786
29787         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
29788
29789 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29790
29791         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
29792
29793 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29794
29795         * PrintDialog.cs: Added attributes and set default property values.
29796
29797 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29798
29799         * PrintControllerWithStatusDialog.cs: 
29800         Added PrintControllerWithStatusDialog.
29801
29802 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29803
29804         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
29805         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
29806
29807 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29808
29809         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
29810
29811 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
29812
29813         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
29814         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
29815
29816 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
29817
29818         * MimeIcon.cs: Added internal class SVGUtil.
29819
29820 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
29821
29822         * FileDialog.cs: Don't crash if there are two files with the
29823           same name but different locations.
29824
29825 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
29826
29827         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
29828         dates across multiple month grids. Used to not highlight entire 
29829         month, but does now.
29830         
29831 2006-01-06  Jackson Harper  <jackson@ximian.com>
29832
29833         * MonthCalendar.cs: Removed DoEvents call to prevent a running
29834         message loop. Change timer intervals to numbers that seem more
29835         natural.
29836
29837 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
29838
29839         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
29840           object for location info since screen object is now implemented.
29841
29842 2006-01-05  Jackson Harper  <jackson@ximian.com>
29843
29844         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
29845         * AsyncMethodResult.cs: We no longer use a WeakReference for the
29846         AsyncMethodResult, this is because we ALWAYS want the
29847         ManualResetEvent to get set.
29848         * Control.cs: When disposing use an async invoke to call shutdown
29849         code, so that thigns don't block on the finalizer thread.  Also
29850         check if we even have a message loop before trying to send
29851         messages, if we don't then don't bother sending messages.
29852         - No more weak references for async methods
29853         * XplatUIDriver.cs: No more weak references for async methods.
29854
29855 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29856
29857         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
29858           returns two FontFamily with the same name
29859
29860 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
29861
29862         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
29863           drawing disabled text. Instead using the ColorGrayText color
29864
29865 2006-01-04  Jackson Harper  <jackson@ximian.com>
29866
29867         * TreeNode.cs: redraw the node when its image index is changed.
29868
29869 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
29870
29871         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
29872           time I checked there are no others like it.
29873
29874 2006-01-04  Jackson Harper  <jackson@ximian.com>
29875
29876         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
29877         this gives the behavoir I was looking for.
29878         * Control.cs: Special case Invoking EventHandlers, this matches MS
29879         and fixes part of bug #76326.
29880
29881 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29882
29883         * ThemeClearlooks.cs, FileDialog.cs:
29884           - Reflect the latest Theme class changes
29885           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
29886             with DateTime
29887             
29888 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29889
29890         * Theme.cs: Cache UI resource images and resize them if needed
29891
29892 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
29893
29894         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
29895           is called. This fixes the crash in Nexxia when setting the font
29896           attributes in the chat. [However, RTF needs a look-over to make sure
29897           that all SelectionXXX methods handle the special case that selection
29898           is empty and therefore the change must be applied to all text starting
29899           at the cursor/selection start]
29900
29901 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
29902
29903         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29904           XplatUIOSX.cs: Added SendMessage and PostMessage methods
29905         * X11Keyboard.cs: Switched to new way of calling PostMessage
29906
29907 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
29908
29909         * Theme.cs: Added theme interface for images to allow the theme to
29910           control what images are used for things like FileDialog, MessageBox
29911           icons, etc.
29912         * MessageBox.cs: Now uses the new Theme icon/image interfaces
29913
29914 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
29915
29916         * FileDialog.cs:
29917           - Removed some dead code
29918           - Opening a recently used file does work now
29919           - Small UI enhancements
29920           - Refactoring
29921
29922 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
29923
29924         * FileDialog.cs: Forgot too add __MonoCS__
29925
29926 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
29927
29928         * FileDialog.cs: We are able to read recently used files now let's
29929           go on and write them.
29930
29931 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
29932
29933         * FileDialog.cs: Breathe some life into "last open"/"recently used"
29934           button
29935         * MimeIcon.cs: Do a check for the top level media type also
29936
29937 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
29938
29939         * ThemeClearlooks.cs:
29940           - Added CPDrawStringDisabled
29941           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
29942             some chars if the text doesn't fit into text_rect
29943           - DrawListViewItem: If View = View.LargeIcon center the image;
29944             rewrote the drawing of ListViewItem.Text if View = 
29945             View.LargeIcon
29946
29947 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
29948
29949         * MimeIcon.cs: Use default KDE icon theme if there is no
29950           "48x48" directory for the current icon theme, fixes #77114
29951         * Mime.cs: Disable not working and actually not used code. 
29952         * ThemeWin32Classic.cs:
29953           - Replace "new SolidBrush" in GetControlBackBrush and
29954             GetControlForeBrush with ResPool.GetSolidBrush
29955           - Changed DrawListViewItem from private to protected virtual
29956         * FileDialog.cs:
29957           - Added form.MaximizeBox = true
29958           - Don't throw an exception if there is a broken symbolic link
29959
29960 2005-12-23  Jackson Harper  <jackson@ximian.com>
29961
29962         * TabControl.cs: Give the panels focus, keyboard navigation is
29963         fixed so this works correctly now.
29964         - We need these key events also.
29965         * ToolBar.cs: Remove some of the poor mans double buffering.
29966         
29967 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
29968
29969         * ComboBox.cs: The internal TextBox now returns the focus.
29970
29971 2005-12-23  Jackson Harper  <jackson@ximian.com>
29972
29973         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
29974
29975 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
29976
29977         * Control.cs: Removed debug code
29978         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
29979           implicit children
29980
29981 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
29982
29983         * Control.cs: When creating the control, update the Z-order after
29984           all it's children are created, too. (Fixes nexxia not showing
29985           picturebox bug)
29986
29987 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
29988
29989         * Control.cs: Do not update the anchoring distances if layout is
29990           suspended, instead do it once layout is resumed
29991
29992 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
29993
29994         * Control.cs: 
29995           - After many hours of debugging, for both Jackson and
29996             myself, it turns out that it helps to set the parent of a control
29997             if you want to actually see it onscreen. In the spirit of that
29998             discovery, we're now setting the parent of the control and
29999             it's children when the control's handle is created. This fix
30000             will make Lutz Roeder's Reflector run happily. 
30001           - now just creating the handle instead of the whole control when
30002             getting a graphics context for the control.
30003
30004 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
30005
30006         * ScrollableControl.cs: When calculating the canvas, don't consider
30007           the scrollbar widths. Instead, predict if horizontal scrollbar
30008           will affect canvas when deciding on vertical display and vice versa.
30009
30010 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
30011
30012         * RichTextBox.cs: Set default RTF font for documents that don't
30013           have a font table (Fixes #77076)
30014
30015 2005-12-22  Jackson Harper  <jackson@ximian.com>
30016
30017         * TextBoxBase.cs: It's difficult to do, but you can have an empty
30018         clipboard. This prevents a NullRef in that case.
30019         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
30020         clipboard. PRIMARY is for the currently selected text only. (We
30021         should implement PRIMARY at some point.
30022
30023 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30024
30025         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
30026           a Unicode function with a structure that was defined in Ansi way.
30027           This fixes #76942.
30028
30029 2005-12-21  Jackson Harper  <jackson@ximian.com>
30030
30031         * StatusBar.cs: Statusbar handles its fore/back colours on it's
30032         on. Because thats how it rolls. (and this avoids it using ambient
30033         colours).
30034         * ThemeWin32Classic.cs: Use the proper back color for filling.
30035         * Menu.cs: Use the system menu bar color for drawing menu
30036         bars. Using the window back color will bring ambient colours into
30037         the picture.
30038
30039 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
30040
30041         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
30042           Bitmaps were created and not disposed.
30043
30044 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30045
30046         * Control.cs (CreateControl): Don't do anything if the control is
30047           already created, otherwise we'd fire the OnCreated event more than
30048           once
30049
30050 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
30051
30052         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
30053           will always match. Instead return -1. Fixes #76464.
30054
30055 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30056
30057         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
30058           neither the beginning nor the end of the line (Fixes bug #76479)
30059
30060 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
30061
30062         * Control.cs:
30063           - ControlNativeWindow.ControlFromHandle(): Now handling situation
30064             where handle is invalid
30065           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
30066             instead of slower linear search
30067         * NativeWindow.cs: Don't remove the window from the hashtable until
30068           after the driver has destroyed it (since the driver might use
30069           Control.FromHandle to lookup the control object
30070         * Hwnd.cs: Added DestroyPending property to track if a window is 
30071           already destroyed as far as the driver is concerned and only hasn't
30072           yet notified the control
30073         * XplatUIX11.cs:
30074           - Activate(): Check if the window is still valid before using the 
30075             handle
30076           - Implemented DestroyChildWindow() method to mark child windows as
30077             destroyed when a window is destroyed. This prevents situations 
30078             where we might call an X method based on queued events for a
30079             window that already has been destroyed but we haven't yet pulled
30080             the destroy method from the queue.
30081           - Added a call to the new DestroyChildWindow() method to the drivers
30082             DestroyWindow code. Also now marking the destroyed window itself
30083             as pending
30084
30085 2005-12-20  Jackson Harper  <jackson@ximian.com>
30086
30087         * StatusBar.cs:
30088         * StatusBarPanel.cs: Don't calculate panel sizes on draw
30089         anymore. Just do them when needed, also track the rects of panels
30090         so that we can optimize refreshing more in the future.
30091
30092 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
30093
30094         * ColorDialog.cs: Fixed focus drawing in small color controls
30095
30096 2005-12-19  Jackson Harper  <jackson@ximian.com>
30097
30098         * InternalWindowManager.cs:
30099         * MdiWindowManager.cs: Cleanup some coordinate system changes so
30100         moving windows works properly.
30101
30102 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
30103
30104         * Control.cs: 
30105           - Removed call to InitLayout() from SetBoundsCore(); doc says
30106             it's only called when a control is added to a container
30107           - Split InitLayout logic, moved to separate UpdateDistances() method
30108             since we need to perform those calculations more often than just
30109             when adding the control to a container. (Needed to fix #77022)
30110           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
30111           - Reduced the OnBindingContextChanged events count, don't send them
30112             unless the control is created, we still aren't totally matching
30113             MS, but I can't quite figure out some of their rules
30114
30115 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30116
30117         * ThemeClearlooks.cs: Corrected distance between ProgressBar
30118           stripes
30119
30120 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30121
30122         * ThemeClearlooks.cs:
30123           - Updated ProgressBar drawing
30124           - Corrected drawing of ScrollBars and scroll buttons
30125           - Some temporary fixes for minor pixel artefacts
30126
30127 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
30128
30129         * Control.cs:
30130           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
30131             cause events to be sent in the same order as MS does.
30132           - Added ChangeParent() method to trigger various OnXXXChanged events
30133             that need to be fired when a parent changes (This is a reworking
30134             of the patch from r54254, with the X11 errors fixed)
30135           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
30136             since on MS we get OnLayoutChanged events when calling Clear()
30137           - Changed Enabled property to consider parent state as well, if a
30138             parent is not enabled, the control will not be either
30139           - Changed Parent property to simply call Controls.Add() since that
30140             now does all the work required, this way we avoid code duplication
30141           - Threw in a few OnBindingsContextChanged calls to try and match
30142             when MS sends them. We seem to send a few too many, though.
30143           - Added call to CreateControl when adding the control to a parent.
30144             We were never calling CreateControl. Still needs some work, in
30145             some places we treat HandleCreated and ControlCreated as equal, 
30146             which is wrong
30147           - Removed obsolete commented out code from UpdateZOrder()
30148
30149 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30150
30151         * ThemeClearlooks.cs: Updated TrackBar drawing.
30152
30153 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
30154
30155         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
30156
30157 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
30158
30159         * FileDialog.cs: Add the Help button and the open readonly
30160           checkbox only if needed
30161
30162 2005-12-16  Jackson Harper  <jackson@ximian.com>
30163
30164         * Control.cs: Make sure we have an active menu before trying to
30165         process commands on it. Prevents menu-less forms from crashing
30166         when Alt is pressed.
30167         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
30168         Dieter Bremes.
30169         * RichTextBox.cs: Expand statement to help out gmcs and fix the
30170         2.0 build.
30171
30172 2005-12-16  Jackson Harper  <jackson@ximian.com>
30173
30174         * InternalWindowManager.cs: Don't translate tool windows screen
30175         coordinates. This fixes windows 'bouncing' around when being moved.
30176
30177 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
30178
30179         * TextBoxBase.cs:
30180           - MaxLength now treats 2^31-1 equal to unlimited length (this is
30181             not quite MS compatible, MS uses that number only for single line
30182             and 2^32-1 for multi-line, but I figure it won't hurt keeping
30183             the limit at 2GB)
30184           - Now enforcing the MaxLength limit when entering characters
30185           - Added argument to internal Paste() method to track if it's called
30186             from programatically or via keyboard, since keyboard driven pastes
30187             need to enforce max-length
30188           - Added logic to Paste to only paste as many chars as MaxLength 
30189             allows
30190         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
30191         * TextControl.cs:
30192           - Added Length property to return number of characters in document
30193           - Added private CharCount property which only tracks actual chars
30194             in the document (no linefeeds) and fires event when CharCount
30195             changes
30196           - Added tracking of character count to all methods that alter it
30197           - Added LengthChanged event to allow applications to subscribe
30198             to any changes to the document
30199
30200 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
30201
30202         * TextBox.cs: 
30203           - Removed local password_char field (moved to TextBoxBase)
30204           - Now setting the document's password var when password is
30205             set
30206         * TextBoxBase.cs:
30207           - Added password_char field (needed here so MultiLine can
30208             access it)
30209           - Added logic to MultiLine property setter to set the document's
30210             variable when password display is allowed
30211           - Removed debug code and made some debug code conditional
30212         * TextControl.cs:
30213           - Added RecalculatePasswordLine() method to handle special password
30214             char only lines
30215           - Added PasswordChar property, also added related tracking vars
30216           - Draw() method now uses local text var for grabbing text to draw,
30217             this var is set to line.text unless we're doing password display,
30218             then it is set to the pre-generated all-password-chars line
30219           - Added calling RecalculatePasswordLine() method for password lines
30220
30221 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
30222
30223         * Hwnd.cs: 
30224           - Added Reparented property to allow tracking of Window Manager
30225             reparenting actions (which affect X/Y calculations of toplevel 
30226             windows)
30227           - Made ToString() print window handles in hex
30228         * XplatUIX11.cs:
30229           - AddConfigureNotify(): Now uses reparented state off Hwnd to
30230             determine if X/Y needs offsetting
30231           - AddConfigureNotify(): Fixed offset calculations
30232           - Now adds ReparentNotify messages into the queue
30233           - Now processes ReparentNotify messages and causes a 
30234             WM_WINDOWPOSCHANGED message to be sent upstream if a window
30235             is reparented (as most likely it's X/Y coordinates are changed
30236             due to that)
30237
30238 2005-12-14  Jackson Harper  <jackson@ximian.com>
30239
30240         * XplatUIX11.cs: Tool windows still need to respek focus.
30241
30242 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
30243
30244         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
30245           have a working release
30246
30247 2005-12-13  Jackson Harper  <jackson@ximian.com>
30248
30249         * Form.cs: Update styles after setting the border style regardless
30250         of whether or not the window is using a window manager.
30251
30252 2005-12-13  Jackson Harper  <jackson@ximian.com>
30253
30254         * Form.cs: We now hook into an internal window manager instead of just an
30255         MDI subsystem, this is so we can have properly behaving tool windows.
30256         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
30257         * InternalWindowManager.cs: New internal class that acts as a
30258         window manager for tool windows and as a base for mdi windows.
30259         * MdiWindowManager.cs: New class that acts as a window manager for
30260         mdi windows.
30261
30262 2005-12-12  Jackson Harper  <jackson@ximian.com>
30263
30264         * Control.cs: Updates so we match behavoir for for implicit
30265         controls. Fixes explosions in MDI.
30266
30267 2005-12-12  Jackson Harper  <jackson@ximian.com>
30268
30269         * Control.cs: Implement Invalidate (Region).
30270
30271 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
30272
30273         * Control.cs: 
30274           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
30275             the same events as MS does. MS fires events for each property 
30276             except, for unknown reasons, Cursor, when the control is reparented. 
30277             I can't seem to totally match add/remove since MS also fires some 
30278             VisibleChanged events, which makes no sense. Consolidated the
30279             parenting code into a separate method so it can be called from
30280             both Add and Remove. set_Parent no longer needs any special logic
30281             as it calls the parent's add method which implicitly fires
30282             all events
30283           - Removed some obsolete code and debug output
30284           - Enabled state is inherited from parents, if this is enabled
30285
30286 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
30287
30288         * Form.cs: Removed commented out code
30289
30290 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
30291
30292         * Control.cs:
30293           - Added internal version of Invoke, with additional argument 
30294             indicating if we're calling it from a Dispose() handler. That
30295             way we can avoid BeginInvoke throwing an exception if we're
30296             calling for an already destroyed window.
30297           - Added a dispose argument to BeginInvokeInternal, and made the
30298             check if a valid window handle chain exists conditional on
30299             it not being a dispose call
30300           - Removed code in DestroyHandle to destroy our children. Since we
30301             now handle the WM_DESTROY message we will catch all our children
30302             being destroyed.
30303           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
30304         * Form.cs:
30305           - Added a field to track the application context of the form.
30306           - No need to set closing variable as response to WM_CLOSE, instead
30307             we destroy the window. We also call PostQuitMessage if the form
30308             has an application context (which makes it the main app form,
30309             which, when closed terminates the app)
30310         * XplatUI.cs:
30311           - Dropped Exit() method, it's naming was confusing
30312           - Added PostQuitMessage() which causes GetMessage to return false
30313             once the message queue is empty
30314         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
30315           PostQuitMessage()
30316         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
30317           no longer a valid XplatUI method, but left it in since it's used
30318           internally. Added empty PostQuitMessage() method.
30319         * MenuAPI.cs: Replaced call to Exit() with call to
30320           PostQuitMessage, even though this is probably no longer needed.
30321         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
30322         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
30323         * Application.cs:
30324           - Replaced call to XplatUI.Exit() with PostQuitMessage()
30325           - Removed old debug code that would call XplatUI for exception
30326             display, enabled standard exception handling (Still not enabled
30327             though, until NativeWindow's ExternalExceptionHandler define
30328             is removed
30329         * NativeWindow.cs:
30330           - Added internal method to allow control to update NativeWindow
30331             after a window has been destroyed
30332           - Added handling of already destroyed windows when calling i
30333             DestroyWindow
30334           - Added removal of handle from list on ReleaseHandle
30335         * XplatUIX11.cs:
30336           - Dropped GetMessageResult var and related code
30337           - Added PostQuitState to field to track if PostQuitMessage has been
30338             called
30339           - Dropped Exit() method
30340           - Added PostQuitMessage() method
30341           - GetMessage now will return false if PostQuitState is set and no
30342             more messages are in the queue.
30343           - Expose handler will no longer generate WM_PAINT messages if we are
30344             in PostQuitState since it's very likely any windows have already
30345             been destroyed, and since Hwnd won't get updated until we have
30346             processed the DestroyNotify we'd be causing X errors.
30347         
30348 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30349
30350         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
30351           Thanks to Mike for pointing out the err of my ways.
30352
30353 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30354
30355         * Control.cs(PreProcessMessage): Moved menu handling back, but
30356           after all other key handling, to match MS (who handles Menu in
30357           DefWndProc)
30358         * Menu.cs (WndProc): Removed my brainfart
30359
30360 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30361
30362         * Control.cs(PreProcessMessage): Removed special menu handling 
30363         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
30364
30365 2005-12-07  Mike Kestner  <mkestner@novell.com>
30366
30367         * Control.cs : special case SYSKEYUP so that we can adjust keynav
30368         state according in tracker.
30369         * Menu.cs : promote tracker field to base class and provide a tracker
30370         lookup capability.  Add/Remove shortcuts dynamically if the top menu
30371         has a tracker. Unparent items that are removed from the collection.
30372         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
30373         * Theme*.cs: add always_show_hotkeys field to support configurability
30374         of mnemonic display.  win32 doesn't show mnemonics until Alt is
30375         pressed.
30376
30377 2005-12-07  Jackson Harper  <jackson@ximian.com>
30378
30379         * MdiChildContext.cs: Use Control.ResetCursor.
30380         * Control.cs: ResetCursor needs to set the property so that the
30381         correct XplatUI call gets made.
30382
30383 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30384
30385         * Control.cs: More fixes to make our key events match MS. We
30386           were not setting the modifier state on KeyData, and we were
30387           not generating any events when Alt was pressed with a key
30388           since handling of WM_SYSxxx was missing for the OnKey methods.
30389
30390 2005-12-07  Jackson Harper  <jackson@ximian.com>
30391
30392         * MdiChildContext.cs: reenable the sizing code.
30393         - When the mouse leaves a window reset its cursor.
30394
30395 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
30396
30397         * ThemeClearlooks.cs: Reflect latest Hwnd changes
30398
30399 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30400
30401         * Hwnd.cs: Now using the theme 3d bordersize to calculate
30402           widths of Fixed3D borders
30403
30404 2005-12-07  Jackson Harper  <jackson@ximian.com>
30405
30406         * MdiClient.cs: Fix warnings. Earn Mike's love.
30407
30408 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
30409
30410         * ThemeClearlooks.cs:
30411           - Adjusted mouse over button color
30412           - Added first parts of CheckBox drawing
30413           - Added correct color for selected text background
30414           - Fixed ComboBox drawing
30415           - Added CPDrawBorder3D and CPDrawBorder
30416
30417 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
30418
30419         * XplatUIX11.cs: Added call to XBell for AudibleAlert
30420
30421 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
30422
30423         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
30424           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
30425           alert users via sound. We could add an enum arg with different
30426           types of alerts in the future
30427
30428 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
30429
30430         * Control.cs: Fix behaviour problems pointed out by Mike
30431
30432 2005-12-05  Mike Kestner  <mkestner@novell.com>
30433
30434         * StatusBarPanel.cs: add Invalidate method and hook it into all the
30435         prop setters.  Calls parent.Refresh for now, but could be maybe be
30436         optimized with an internal method on StatusBar at some point.
30437         [Fixes #76513]
30438
30439 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
30440
30441         * RichTextBox.cs: Implemented get_SelectionColor
30442
30443 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
30444
30445         * ThemeClearlooks.cs:
30446           - Removed dead code
30447           - Draw black button border only if button is Form.AcceptButton
30448           - Draw correct button color for pressed RadioButton if the mouse 
30449             has entered the button
30450           - Updated ProgressBar drawing!
30451           - Updated CPDrawSizeGrip drawing
30452           - Updated StatusBarPanel drawing
30453
30454 2005-12-05  Mike Kestner  <mkestner@novell.com>
30455
30456         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
30457         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
30458
30459 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
30460
30461         * ThemeClearlooks.cs: Initial check-in, activate with
30462           export MONO_THEME=clearlooks
30463         * ThemeEngine.cs: Added ThemeClearlooks
30464
30465 2005-12-03  Mike Kestner  <mkestner@novell.com>
30466
30467         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
30468         [Fixes #76897]
30469
30470 2005-12-02  Jackson Harper  <jackson@ximian.com>
30471
30472         * Form.cs: If the child form has no menu the default main menu is
30473         used as the active menu.
30474
30475 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
30476
30477         * ListBox.cs: Check if any items exist before trying to resolve 
30478           coordinates into items
30479
30480 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
30481
30482         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
30483           as the second color for the background hatch
30484
30485 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
30486
30487         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
30488         * RichTextBox.cs: FormatText position arguments are 1-based, now making
30489           sure that what we pass to FormatText is always 1-based. Fixes #76885
30490
30491 2005-11-29  Miguel de Icaza  <miguel@novell.com>
30492
30493         * NumericUpDown.cs (EndInit): When we are done initializing,
30494         reflect any updates on the UI.
30495
30496 2005-12-02  Jackson Harper  <jackson@ximian.com>
30497
30498         * ImplicitHScrollBar.cs:
30499         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
30500         their container controls.
30501         * TreeView.cs: Use the new implicit scrollbars.
30502
30503 2005-12-02  Jackson Harper  <jackson@ximian.com>
30504
30505         * TreeView.cs: Make top_node internal so the TreeNodeCollections
30506         can play with it.
30507         * TreeNodeCollection.cs: If we remove the topnode we need to
30508         update topnode to the next node in line.
30509         - When clearing nodes go through the same process as removing
30510         them, so they get depareneted and checked if they are top node.
30511
30512 2005-12-01  Jackson Harper  <jackson@ximian.com>
30513
30514         * TreeView.cs: When imagelists are used the image area is
30515         selectable as well as the text.
30516         - If there are no selected nodes select the first one.
30517         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
30518         so don't do it more then we need to.
30519
30520 2005-12-01  Jackson Harper  <jackson@ximian.com>
30521
30522         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
30523         that arrows can be scaled.
30524
30525 2005-12-01  Jackson Harper  <jackson@ximian.com>
30526
30527         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
30528         fail. Patch by Dieter Bremes
30529
30530 2005-11-30  Jackson Harper  <jackson@ximian.com>
30531
30532         * Form.cs: Property is 2.0 only
30533         * PrintDialog.cs: Signature fix.
30534
30535 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
30536
30537         * TextControl.cs: 
30538           - No longer artificially moves text 2 pixels down (now that we have
30539             borders this is no longer needed)
30540           - Added calcs for left, hanging and right indent
30541
30542 2005-11-23  Mike Kestner  <mkestner@novell.com>
30543
30544         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
30545
30546 2005-11-30  Jackson Harper  <jackson@ximian.com>
30547
30548         * MdiChildContext.cs: Set the cloned menus forms, as these don't
30549         get cloned as part of CloneMenu ().
30550         * Menu.cs: Make sure the parent of the items get set correctly
30551         when they are added.  And the owners are notified of the changes.
30552         * Form.cs: Create an ActiveMenu property, so that when MDI is used
30553         we can change the menu being displayed/handled by the form without
30554         changing the menu assosciated with the form.
30555         - Don't let Mdi children draw/handle menus.
30556         
30557 2005-11-30  Jackson Harper  <jackson@ximian.com>
30558
30559         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
30560         a MenuChanged event. Just to make the API a little more
30561         consistent.
30562         * MainMenu.cs:
30563         * MenuItem.cs: Use the new OnMenuChanged
30564         * MdiChildContext.cs: Handle menu merging.
30565         * Form.cs: Implement MergedMenu.
30566         
30567 2005-11-30  Jackson Harper  <jackson@ximian.com>
30568
30569         * Menu.cs: We were misusing Add. Add goes behind the specified
30570         index according to the docs, and does not replace the specified
30571         index. So I added an Insert method.
30572
30573 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
30574
30575         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
30576           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
30577           is for Jackson
30578         * RichTextBox.cs: Added calls to base for DnD events
30579
30580 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
30581
30582         * TextControl.cs:
30583           - Fixed drag-selection related crash; style fixes
30584           - Implemented undo class
30585             o Implemented method to capture document state for specified
30586               range in document tree
30587             o Implemented method to restore captured document state
30588             o Implemented cursor tracking
30589             o Implemented basic undo stack
30590           - Added undo cursor tracking to methods altering cursor location
30591           - Added undo tracking to selection deletion (still missing
30592             other text-altering hookups)
30593         * RichTextBox.cs:
30594           - Added SelectionLength property
30595           - Implemented CanPaste()
30596           - Implemented Paste()
30597           - Added missing protected methods
30598           - Fixed RTF->Document conversion; now uses font index 0 and color 
30599             index 0 as the default font for the parsed text
30600           - Fixed RTF<->Document font size translation
30601           - Fixed RTF generation, now properly handles cross-tag boundaries
30602             for single line selection
30603           - No longer always appends blank line to generated RTF
30604           - Removed TODOs
30605           - Added missing attributes
30606           - Hooked up undo-related methods
30607         * TextBoxBase.cs:
30608           - Implemented Copy()
30609           - Implemented Paste()
30610           - Implemented Cut()
30611           - Fixed caret mis-behaviour on backspace across line-boundaries
30612
30613 2005-11-29  Jackson Harper  <jackson@ximian.com>
30614
30615         * MdiClient.cs: Add a method for activating mdi children. Very
30616         basic right now. I imagine someday it might need more girth.
30617         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
30618         children windows names are added to the menu item.
30619         * ThemeWin32Classic.cs: Draw the arrow if the item is an
30620         mdilist. This happens regardless of whether or not there are any
30621         mdi windows to see in the list, and according to my tests happens
30622         before the items are even added. Also happens if there isn't even
30623         an mdi client to get windows from.
30624
30625 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
30626
30627         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
30628         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
30629
30630 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
30631
30632         * DataGridTableStyle.cs:
30633           - Create always the styles for the missing columns even if they are
30634             provided by the user (not default table style)
30635         * DataGrid.cs:
30636           - Fixes bug 76770
30637           - Fixes SetDataBinding (always re-attach source)
30638           - Fixes SetNewDataSource (only clear styles if they are not for 
30639             this source)
30640          -  Expands OnTableStylesCollectionChanged to handle style refresh 
30641             and remove properly
30642
30643 2005-11-29  Jackson Harper  <jackson@ximian.com>
30644
30645         * FileDialog.cs: Implement missing bits, remove some dead
30646         code.
30647         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
30648         creation of the panel so that the options set on the dialog are
30649         seen when the panel is created.
30650         * TreeView.cs: raise a click when items are clicked.
30651         
30652 2005-11-29  Jackson Harper  <jackson@ximian.com>
30653
30654         * MdiClient.cs: Pass some signature methods through to base.
30655
30656 2005-11-28  Jackson Harper  <jackson@ximian.com>
30657
30658         * ListView.cs: Raise the click event when items are clicked.
30659
30660 2005-11-28  Jackson Harper  <jackson@ximian.com>
30661
30662         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
30663         a nullref.
30664
30665 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
30666
30667         * ThemeNice.cs: - Removed 1 pixel bitmaps
30668           - Use SmoothingMode.AntiAlias where it makes sense
30669             (ScrollButton arrow for example)
30670           - Enhanced Button focus drawing
30671           - Fixed ComboBox drawing (no artefacts anymore, focus
30672             rectangle is back again, reduced size of ComboButton, etc.)
30673           - Fixed RadioButton focus drawing for Appearence.Button
30674           - Slight ScrollButton redesign
30675           - Some LinearGradientBrush size fixes
30676           - GroupBoxes have now rounded edges
30677           - Fixed StatusBar drawing
30678
30679 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
30680
30681         * ThemeNice.cs: - Remove dead code
30682           - use correct background colors for menus, etc.
30683           - Fake pixel drawing with 1 pixel bitmaps
30684
30685 2005-11-24  Jackson Harper  <jackson@ximian.com>
30686
30687         * MdiClient.cs: Size the scrollbars when resizing the window.
30688         - Resize the maximized windows when the client is resized
30689         * Form.cs: Make the child context available
30690         
30691 2005-11-23  Jackson Harper  <jackson@ximian.com>
30692
30693         * MdiChildContext.cs: Don't size windows if they are maximized.
30694
30695 2005-11-23  Mike Kestner  <mkestner@novell.com>
30696
30697         * ContextMenu.cs: use MenuTracker.
30698         * Control.cs: remove menu handle usage.
30699         * Form.cs: remove menu handle usage.
30700         * Hwnd.cs: remove menu handle usage.
30701         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
30702         motion and clicks to the new Tracker handlers.
30703         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
30704         and handle usage.
30705         * MenuAPI.cs: refactored to combine popup and menubar event handling.
30706         Killed the MENU and MENUITEM data types and associated collections
30707         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
30708         MenuTracker class that exposes the leftovers from the old MenuAPI
30709         static methods. Restructured Capture handling so that only one grab is
30710         done for the entire menu hierarchy instead of handing off grabs to
30711         submenus. Tracker now has an invisible control to Capture when active.
30712         * MenuItem.cs: add sizing accessors, kill Create
30713         and handle usage.
30714         * Theme.cs: remove menu handle and MENU(ITEM) usage.
30715         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
30716         MENU(ITEM). remove menu handle usage, use Menu directly.
30717         * XplatUIDriver.cs: remove menu handle usage.
30718         * XplatUIOSX.cs: remove menu handle usage.
30719         * XplatUIWin32.cs: remove menu handle usage.
30720         * XplatUIX11.cs: remove menu handle usage.
30721
30722 2005-11-22  Jackson Harper  <jackson@ximian.com>
30723
30724         * Hwnd.cs: Don't compute the menu size for
30725         DefaultClientRectangle.
30726         - Reenable menu sizes being computed for GetClienRectangle.
30727         * Form.cs: Remove comment of trechery
30728         
30729 2005-11-22  Jackson Harper  <jackson@ximian.com>
30730
30731         * Hwnd.cs: The adjustments for the menu bar are made when it is
30732         attached to the form.
30733
30734 2005-11-19  Jackson Harper  <jackson@ximian.com>
30735
30736         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
30737         (just like on windows).
30738
30739 2005-11-19  Jackson Harper  <jackson@ximian.com>
30740
30741         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
30742         use real buttons anymore because they are in non client area. The
30743         one TODO here is that I need to somehow invalidate a section of
30744         the non client area.
30745
30746 2005-11-18  Jackson Harper  <jackson@ximian.com>
30747
30748         * Control.cs: Put the enum check back in now that MDI doesnt have
30749         to use this to set border styles.
30750         * Form.cs: Only set mdi child windows borders if the handle has
30751         been created.
30752         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
30753         this directly on to the driver.
30754         - Get the move start position before adjusting for the titlebar
30755         height, this fixes the windows "skipping" when they are first
30756         moved.
30757
30758 2005-11-18  Jackson Harper  <jackson@ximian.com>
30759
30760         * XplatUIX11.cs: Just compute the mdi borders separately as they
30761         don't totally match up with normal form borders.
30762
30763 2005-11-18  Jackson Harper  <jackson@ximian.com>
30764
30765         * Control.cs: Set WS_ styles for borders, so that the driver does
30766         not have to retrieve the control instance to figure out what kind
30767         of borders it should have.
30768         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
30769         driver can know its an mdi child easily.
30770         * XplatUIX11.cs: Get the border styles and whether the window is
30771         MDI from the Styles and ExStyles params instead of having to get a
30772         control. This prevents a chicken and egg problem.       
30773
30774 2005-11-18  Jackson Harper  <jackson@ximian.com>
30775
30776         * MdiClient.cs: Fix typo so scrollbars show up correctly.
30777
30778 2005-11-18  Jackson Harper  <jackson@ximian.com>
30779
30780         * MdiClient.cs: Calculate when to add and remove scrollbars
30781         correctly.
30782         * MdiChildContext.cs: Adjust the y position to take the titlebar
30783         into account.
30784         - No height for FormBorderStyle.None
30785
30786 2005-11-18  Jackson Harper  <jackson@ximian.com>
30787
30788         * Control.cs: Allow non enum values to be used for
30789         InternalBorderStyle.  MDI does this to set a special border style.
30790         - New utility methods for converting points to/from client coords
30791         - Add the newly created control to the Controls collection before
30792         updating its style. This way UpdateStyle can walk the control
30793         heirarchy to find the control if needed.
30794         so I don't need to create a new Point object all the time.
30795         * Form.cs: Let MDI windows handle their border styles.
30796         - Set styles on MDI windows so the correct title style is derived.
30797         * MdiChildContext.cs: Move all the painting and window handling
30798         into the non client area.
30799         - Use correct sizing and put correct buttons on frames based on
30800         the FormBorderStyle.
30801         - Notify the mdi client about scrolling
30802         - Need to handle the buttons ourselves now, because they are all
30803         in non client areas and we can't add controls there.
30804         * MdiClient.cs: Halfway to scrolling, this implementation is
30805         somewhat broken though, we need to check to make sure other
30806         windows aren't causing scrolling before removing the bars. Also
30807         the bars need to be drawn on top, maybe I can switch implicit
30808         controls to be on top.
30809         * Hwnd.cs: caption_height and tool_caption_height are now
30810         properties of an hwnd, this way they can be set by the driver
30811         based on the type of window they are.  In X11 the window manager
30812         handles the decorations so caption_height is zero unless its an
30813         MDI window.
30814         - Add 3 pixel borders for MDI windows (0xFFFF).
30815         - Get rid of some code duplication, have DefaultClientRectanle
30816         just call GetClientRectangle.
30817         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
30818         Hwnd now.
30819         - Set border styles differently for mdi windows.
30820         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
30821         Hwnd now.
30822         
30823 2005-11-15  Mike Kestner  <mkestner@novell.com>
30824
30825         * Menu.cs: when adding an item to the collection, if item is already 
30826         parented, remove it from the parent.
30827
30828 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
30829
30830         * X11DesktopColors.cs: Added KDE support
30831
30832 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
30833
30834         * XplatUIWin32.cs: 
30835           - Clipboard methods now can translate Rtf format
30836           - No longer removes clipboard contents whenever a new format is added
30837             to allow placing multiple formats on the clipboard
30838         * Clipboard.cs: Clipboard now supports getting a IDataObject and
30839           will place all formats contained in it onto the clipboard. Also
30840           now cleans the clipboard before placing a new object onto it
30841         * RichTextBox.cs:
30842           - Implemented set_Rtf
30843           - Implemented set_SelectedRtf
30844           - Created InsertRTFFromStream() method to allow single code base
30845             for all properties and methods that insert RTF into document
30846           - Removed debug output
30847         * TextControl.cs:
30848           - Fixed Delete(int) to fix up line numbers
30849           - Fixed ReplaceSelection to combine start and end line
30850           - Fixed serious DeleteChars bug that would leave the document tree
30851             broken
30852           - Improved DumpTree with several logic checks to detect broken
30853             document trees
30854           - Removed debug lines
30855           - Fixed Caret.WordForward/WordBack moving code, now always also 
30856             updates caret.tag (fixes crash when word-selecting across tag
30857             boundaries via keyboard)
30858           - Added Insert() method for inserting multiline text into documents
30859           - Fixed DeleteChars() calculation errors that would cause a broken
30860             tag chain with multiple tag lines
30861           - DeleteChars() no longer crashes on multi-tag lines if not all tags
30862           - Split() no longer moves caret if split is at caret location
30863           - ReplaceSelection() now updates the cursor and re-displays it
30864           - ReplaceSelection() now uses new Insert() method to avoid code
30865             duplication
30866           - FormatText() can now handle formatting partial lines
30867         * TextBoxBase.cs:
30868           - Append now uses new TextControl.Insert() method (this avoids 
30869             duplicate code)
30870           - Implemented Ctrl-X (Cut) (
30871           - Implemented Ctrl-C (Copy)
30872           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
30873             regeneration when pasting text; roundtripping Copy&Paste within
30874             edit control still fails due to some calculation bugs in GenerateRTF)
30875           - The Delete key will now remove the current selection if it is visible
30876         * TextBox.cs: Removed debug lines
30877         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
30878           driver to be initialized and can't therefore be done via a static ctor)
30879
30880 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
30881
30882         * TextControl.cs: Added backend code for finding char arrays and strings
30883         * TextBoxBase.cs:
30884           - Added mouse wheel scroll support
30885           - Added support for VScroll and HScroll events
30886         * RichTextBox.cs:
30887           - Implemented all seven Find() variants
30888           - Implemented GetCharFromPosition()
30889           - Implemented GetCharIndexFromPosition()
30890           - Implemented GetLineFromIndex()
30891           - Implemented GetPositionFromCharIndex();
30892           - Implemented SaveFile for PlainText and UnicodeText
30893           - Fixed set_Font, now setting a new font applies that font to
30894             the whole document
30895           - Implemented generic Document to RTF converter
30896           - Implemented SaveFile for RichText format (still missing unicode
30897             conversion for non-ansi chars)
30898           - Implemented get_Rtf
30899           - Implemented get_SelectedRtf
30900
30901 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
30902
30903         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
30904           to allow any captures to be released before triggering OnClick. This
30905           way a click handler may capture the mouse without interference.
30906         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
30907           This way we send them even though X may not allow a grab (if the window
30908           isn't visible, for example)
30909
30910 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
30911
30912         * DataGridViewRowEventArgs.cs: DataGridView implementation
30913         * DataGridViewElement.cs: DataGridView implementation
30914         * DataGridViewComboBoxCell.cs: DataGridView implementation
30915         * DataGridViewDataErrorContexts.cs: DataGridView implementation
30916         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
30917         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
30918         * ImageLayout.cs: DataGridView implementation
30919         * DataGridViewComboBoxColumn.cs: DataGridView implementation
30920         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
30921         * DataGridViewSelectionMode.cs: DataGridView implementation
30922         * IDataGridViewEditingControl.cs: DataGridView implementation
30923         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
30924         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
30925         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
30926         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
30927         * DataGridViewColumnSortMode.cs: DataGridView implementation
30928         * DataGridView.cs: DataGridView implementation
30929         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
30930         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
30931         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
30932         * Padding.cs: DataGridView implementation
30933         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
30934         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
30935         * DataGridViewRowEventHandler.cs: DataGridView implementation
30936         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
30937         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
30938         * DataGridViewButtonCell.cs: DataGridView implementation
30939         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
30940         * DataGridViewEditMode.cs: DataGridView implementation
30941         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
30942         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
30943         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
30944         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
30945         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
30946         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
30947         * DataGridViewCellEventHandler.cs: DataGridView implementation
30948         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
30949         * DataGridViewCellStyleConverter.cs: DataGridView implementation
30950         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
30951         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
30952         * DataGridViewColumnEventArgs.cs: DataGridView implementation
30953         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
30954         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
30955         * QuestionEventArgs.cs: DataGridView implementation
30956         * IDataGridViewEditingCell.cs: DataGridView implementation
30957         * DataGridViewTriState.cs: DataGridView implementation
30958         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
30959         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
30960         * DataGridViewColumnCollection.cs: DataGridView implementation
30961         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
30962         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
30963         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
30964         * DataGridViewColumn.cs: DataGridView implementation
30965         * DataGridViewCellBorderStyle.cs: DataGridView implementation
30966         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
30967         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
30968         * DataGridViewRow.cs: DataGridView implementation
30969         * DataGridViewImageCellLayout.cs: DataGridView implementation
30970         * DataGridViewImageCell.cs: DataGridView implementation
30971         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
30972         * DataGridViewCheckBoxCell.cs: DataGridView implementation
30973         * DataGridViewHeaderCell.cs: DataGridView implementation
30974         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
30975         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
30976         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
30977         * DataGridViewTextBoxColumn.cs: DataGridView implementation
30978         * QuestionEventHandler.cs: DataGridView implementation
30979         * DataGridViewCellStyleScopes.cs: DataGridView implementation
30980         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
30981         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
30982         * DataGridViewCell.cs: DataGridView implementation
30983         * DataGridViewCellEventArgs.cs: DataGridView implementation
30984         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
30985         * DataGridViewCellStyle.cs: DataGridView implementation
30986         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
30987         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
30988         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
30989         * TextFormatFlags.cs: DataGridView implementation
30990         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
30991         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
30992         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
30993         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
30994         * DataGridViewButtonColumn.cs: DataGridView implementation
30995         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
30996         * HandledMouseEventArgs.cs: DataGridView implementation
30997         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
30998         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
30999         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
31000         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
31001         * DataGridViewRowCollection.cs: DataGridView implementation
31002         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
31003         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
31004         * DataGridViewHitTestType.cs: DataGridView implementation
31005         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
31006         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
31007         * DataGridViewColumnEventHandler.cs: DataGridView implementation
31008         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
31009         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
31010         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
31011         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
31012         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
31013         * DataGridViewContentAlignment.cs: DataGridView implementation
31014         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
31015         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
31016         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
31017         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
31018         * DataGridViewPaintParts.cs: DataGridView implementation
31019         * DataGridViewCellCollection.cs: DataGridView implementation
31020         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
31021         * DataGridViewImageColumn.cs: DataGridView implementation
31022         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
31023         * DataGridViewElementStates.cs: DataGridView implementation
31024         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
31025         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
31026         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
31027         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
31028         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
31029         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
31030         * DataGridViewRowHeaderCell.cs: DataGridView implementation
31031         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
31032         * DataGridViewTextBoxCell.cs: DataGridView implementation
31033         * DataGridViewBand.cs: DataGridView implementation
31034         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
31035         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
31036         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
31037         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
31038         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
31039         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
31040         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
31041         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
31042         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
31043         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
31044         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
31045
31046 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
31047
31048         * ThemeWin32Classic.cs: 
31049           - Draw the outside focus rectangle around buttons
31050           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
31051             doesn't use end caps for every dash of a line anymore. This
31052             workaround ignores the forecolor.
31053
31054 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
31055
31056         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
31057           endian safe.
31058
31059 2005-11-07  Jackson Harper  <jackson@ximian.com>
31060
31061         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
31062
31063 2005-11-07  Jackson Harper  <jackson@ximian.com>
31064
31065         * ScrollableControl.cs: Calculate the maximum and change vars
31066         (more) correctly so that scrollbars appear as a sensible size.
31067
31068 2005-11-04  Jackson Harper  <jackson@ximian.com>
31069
31070         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
31071         collection.
31072         * TreeView.cs: When the tree is sorted null out the top_node so
31073         that it is recalculated.
31074         - Use dotted lines instead of dashed lines to match MS better.
31075
31076 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
31077
31078         * ListView.cs: 
31079           - Implements key search for items. Useful when browsing files with FileDialog
31080           - When changing view mode or when clear the items reset scrollbar positions
31081
31082 2005-11-04  Jackson Harper  <jackson@ximian.com>
31083
31084         * CurrencyManager.cs: Implement the MetaDataChanged event, the
31085         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
31086         as to what the method may do as there is no real way of creating a
31087         derived CurrencyManager and calling the method. 
31088
31089 2005-11-03  Jackson Harper  <jackson@ximian.com>
31090
31091         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
31092         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
31093         method which seems to just be used internally to refresh the tabs.
31094
31095 2005-11-03  Jackson Harper  <jackson@ximian.com>
31096
31097         * TabControl.cs: Implement the remove method. Fix some broken
31098         comments.
31099
31100 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31101
31102         * DateTimePicker.cs:
31103           - Added missing DateTimePickerAccessibleObject class
31104           - Added missing events
31105           - Added OnFontChanged method
31106         * Form.cs: Added missing attributes
31107         * TreeView.cs: Added missing attributes
31108
31109 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
31110
31111         * GridItemCollection.cs: Fix signatures
31112
31113 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31114
31115         * XplatUI.cs: Updated build rev/date
31116         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
31117           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
31118         * Application.cs: Trigger context-specific ExitThread events
31119
31120 2005-11-03  Jackson Harper  <jackson@ximian.com>
31121
31122         * Menu.cs:
31123         * MainMenu.cs:
31124         * GridTableStylesCollection.cs:
31125         * Timer.cs:
31126         * TabPage.cs:
31127         * HelpProvider.cs:
31128         * StatusBar.cs:
31129         * MonthCalendar.cs: Signature fixes
31130
31131 2005-11-03  Jackson Harper  <jackson@ximian.com>
31132
31133         * TreeNodeCollection.cs: Remove should not be virtual.
31134         * TreeView.cs: Implement the last of the missing methods.
31135
31136 2005-11-03  Jackson Harper  <jackson@ximian.com>
31137
31138         * TreeNodeConverter.cs: Implement to get off my class-status back.
31139
31140 2005-11-03  Jackson Harper  <jackson@ximian.com>
31141
31142         * TreeView.cs: Hookup the bits for drag and drop.
31143         * TreeNode.cs: Don't cache the tree_view or index anymore, now
31144         that nodes can be moved from tree to tree easily this just causes
31145         all sorts of problems.
31146         * TreeNodeCollection: Don't need to give treenodes an index and
31147         treeview anymore when they are added, these are computed on the
31148         fly. Also make sure to remove a node before its added.
31149
31150 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31151
31152         * TextControl.cs:
31153           - Added CaretSelection enum
31154           - Added comparison methods to Marker struct, makes selection code
31155             more readable
31156           - Added SelectionStart and SelectionEnd as 'moveable' location for
31157             the CaretDirection enum and handler
31158           - Added selection_prev variable to track optimized invalidation for
31159             word and line selection
31160           - Added SelectionVisible property (returns true if there is a valid 
31161             selection)
31162           - Switched CaretHasFocus to only display the caret if there is no
31163             visible selection
31164           - Avoiding StringBuilder.ToString to retrieve a single char, instead
31165             using the direct character index; should be much faster
31166           - Added various conditional debug statements
31167           - Fixed invalidation calculation for selection ranges
31168           - Added ExpandSelection() method to support word and line selection
31169           - Switched SetSelectionToCaret to use new Marker compare overloads
31170           - Added central IsWordSeparator() method to determine word 
31171             separators/whitespace and FindWordSeparator() to streamline common
31172             usage of IsWordSeparator()
31173         * TextBoxBase.cs:
31174           - Removed unneeded grabbed variable, it was just mirroring
31175             Control.Capture
31176           - No longer firing OnTextChanged event when Text setter is called,
31177             since the base will fire the event for us
31178           - Added handling of Ctrl-Up/Down selection
31179           - Added handling of Shift-Cursorkey selection
31180           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
31181             words
31182           - Added handling of Shift and Ctrl-Shift-Home/End selection
31183           - Removed some debug output
31184           - Added handling for single/double/tripple-click to place caret/
31185             select word/select line respectively (Fixes bug #76031)
31186           - Added support for drag expansion of word/line selection
31187         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
31188           current selection
31189
31190 2005-11-02  Jackson Harper  <jackson@ximian.com>
31191
31192         * X11Dnd.cs: If the drag is going to and from a MWF window just
31193         copy the data instead of sending it out through the X Selection
31194         mechanism.
31195
31196 2005-11-02  Jackson Harper  <jackson@ximian.com>
31197
31198         * X11Dnd.cs:
31199         * XplatUIX11.cs: When in a drag we don't want motion notify
31200         messages to get passed on to the other controls. This prevents
31201         mouse move messages from showing up in the drag source.
31202
31203 2005-11-02  Jackson Harper  <jackson@ximian.com>
31204
31205         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
31206         the correct button is release to end a drag.
31207         * XplatUIX11.cs: Make the button state internal so the drag system
31208         can access it.  Dragging needs to know about all button releases,
31209         not just left button.
31210
31211 2005-11-02  Miguel de Icaza  <miguel@novell.com>
31212
31213         * Form.cs (Icon): If the icon is null, reset the icon to the
31214         default value. 
31215
31216         * Cursor.cs: When writing the AND-mask bitmap do not include the
31217         number of colors, but hardcode those to two (black and white),
31218         fixes the loading of color cursors (Paint Dot Net).
31219
31220         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
31221         turn off autoscaling.
31222
31223         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
31224
31225 2005-11-02  Jackson Harper  <jackson@ximian.com>
31226
31227         * X11Dnd.cs: Make sure to send a status message if the pointer
31228         enters a control that can not accept a drop, otherwise the cursor
31229         isn't updated correctly. Also tried to compress the lines of code
31230         a bit.
31231
31232 2005-11-02  Jackson Harper  <jackson@ximian.com>
31233
31234         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
31235         set actions correctly.  This isn't perfect as XDND and win32 have
31236         some differences on how you allow actions. I'll clear this up by
31237         adding a path for drag from MWF to MWF windows.
31238         * XplatUIX11.cs: Hook into the dnd system.
31239
31240 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
31241
31242         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
31243         previously shown but they are no longer need it. Very obvious when 
31244         browsing files with FileDialog.
31245
31246 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
31247
31248         * Control.cs: We always need to call OnPaintBackground. We pretty much
31249           ignore AllPaintingInWmPaint and always do the painting there, whether 
31250           it's set or not, since we always ignore the WM_ERASEBKGND message 
31251           (which we don't generate on X11). This fixes #76616.
31252         * Panel.cs: Removed unneeded background painting. This happens properly
31253           in Control.cs already
31254
31255 2005-10-31  Mike Kestner  <mkestner@novell.com>
31256
31257         * Menu.cs: Add items to collection before setting their index.
31258         * MenuItem.cs : add range checking with ArgumentException like MS.
31259         [Fixes #76510]
31260
31261 2005-10-31  Jackson Harper  <jackson@ximian.com>
31262
31263         * ListBox.cs: Invalidate if the area is visible at all not just
31264         contained in the visible rect. Fixes unselection of semi visible
31265         items.
31266
31267 2005-10-31  Jackson Harper  <jackson@ximian.com>
31268
31269         * Control.cs: Consistently name the dnd methods. Make them
31270         internal so we can override them to match some MS behavoir
31271         internally.
31272         * Win32DnD.cs: Use the new consistent names.
31273
31274 2005-10-31  Jackson Harper  <jackson@ximian.com>
31275
31276         * TreeView.cs: Don't draw the selected node when we lose focus.
31277
31278 2005-10-31  Jackson Harper  <jackson@ximian.com>
31279
31280         * X11Dnd.cs: We still need to reset the state even though a full
31281         reset isn't being done, otherwise status's still get sent all over
31282         the place.
31283
31284 2005-10-31  Jackson Harper  <jackson@ximian.com>
31285
31286         * Control.cs: Make the dnd_aware flag internal so the dnd
31287         subsystem can check it. Catch exceptions thrown in dnd handlers to
31288         match MS behavoir.
31289         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
31290         * X11Dnd.cs: Handle null data in the converters. Set the XDND
31291         version when sending a XdndEnter. Use the control/hwnd dnd_aware
31292         flags to reduce the number of dnd enters/status's sent.
31293
31294 2005-10-31  Jackson Harper  <jackson@ximian.com>
31295
31296         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
31297
31298 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
31299
31300         * PictureBox.cs: Fixes 76512
31301
31302 2005-10-28  Jackson Harper  <jackson@ximian.com>
31303
31304         * X11Dnd.cs: Early implementation to support winforms being a drag
31305         source for data on X11. Also restructured the converters so they
31306         can go both ways now.
31307         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
31308         
31309 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
31310
31311         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
31312           clipboard requests
31313
31314 2005-10-27  Jackson Harper  <jackson@ximian.com>
31315
31316         * TreeNode.cs: Implement serialization so my DnD examples will work.
31317
31318 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
31319
31320         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
31321           TreeView.cs: Don't dispose objects that are not owned.
31322           
31323 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
31324
31325         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
31326           should retrieve the current cursor and report that, but XplatUI
31327           doesn't (yet) have an interface for that (and I'm not sure I even
31328           can, on X11)
31329         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
31330           until any message loop processing is done (and the WM_SETCURSOR
31331           replaces the cursor to the proper one)
31332         * XplatUIX11.cs: 
31333           - Fixed override behaviour, we can't set the cursor globally on X11, 
31334             just for our windows.
31335           - Invalidating the System.Drawing X11 display handle when we are
31336             shutting down
31337         * Control.cs: Fix to make csc happy
31338
31339 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
31340
31341         * TextBoxBase.cs: 
31342           - get_Text: Add last line (without trailing newline) to returned
31343             value (Fixes 76212)
31344           - get_TextLength: Count last line in returned length
31345           - ToString: Call Text property instead of duplicating code
31346
31347 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
31348
31349         * ImageList.cs: Dispose ImageAttributes objects.
31350
31351 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
31352
31353         * ImageList.cs: Use attribute constructors with less arguments where
31354           possible.
31355
31356 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
31357
31358         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
31359           Use typeof instead of strings when assembly is referenced. Added
31360           some more comments.
31361
31362 2005-10-21  Jackson Harper  <jackson@ximian.com>
31363
31364         * ListView.cs: Raise a double click event. Also tried to somewhat
31365         fix when the selectedindexchanged event is raised. Its still
31366         broken though.
31367
31368 2005-10-21  Jackson Harper  <jackson@ximian.com>
31369
31370         * TreeView.cs: New method to invalidate the plus minus area of a
31371         node without invalidating the whole node (maybe this can be used
31372         in some more places).
31373         * TreeNodeCollection.cs: When adding to an empty node we need to
31374         invalidate its plus minus area so the little block shows up.
31375         
31376 2005-10-21  Jackson Harper  <jackson@ximian.com>
31377
31378         * TreeView.cs: Make sure that when we invalidate a node the bounds
31379         are big enough to cover the selected box and the focus
31380         rectangle. Use a different colour for the lines connecting nodes
31381         so they show up with all themes.
31382
31383 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
31384
31385         * NativeWindow.cs: Don't call anything that could call into the driver,
31386           we might be on a different thread.
31387
31388 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
31389
31390         * Control.cs(Dispose): Since Dispose might run on a different thread,
31391           make sure that we call methods that could call into the driver via
31392           invoke, to avoid thread issues
31393
31394 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
31395
31396         * XplatUI.cs: Removed finalizer
31397         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
31398           not allowing to be called on the finalizer thread.
31399
31400 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
31401
31402         * ImageList.cs:
31403           - Reverted r51889 and r51891.
31404           - Added ImageListItem class that stores unmodified image items and image
31405             properties required to create list images until handle is created.
31406           - Added AddItem and moved image creation logic to AddItemInternal.
31407           - Added CreateHandle method that creates images based on unmodified items.
31408           - Added DestroyHandle that changes state to store unmodified items.
31409           - Add and AddStrip methods no more create handle.
31410           - ReduceColorDepth has no return value.
31411           - Dispose destroys handle.
31412           - Modified other methods to reflect the above changes.
31413           - Implemented key support.
31414           - Added profile 2.0 members and attributes.
31415           - Added private Reset and ShouldSerialize methods that provide the same
31416             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
31417             them as they are private.
31418           - Added some more comments about implementation details.
31419
31420 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31421
31422         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
31423
31424 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31425
31426         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
31427
31428 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31429
31430         * DataGridDrawingLogic.cs: Fixes column hit calcultation
31431         * DataGridColumnStyle.cs: Remove debug message
31432
31433 2005-10-20  Jackson Harper  <jackson@ximian.com>
31434
31435         * TreeView.cs: We can always get input keys regardless of whether
31436         or not editing is enabled. They are used for navigation.
31437
31438 2005-10-20  Jackson Harper  <jackson@ximian.com>
31439
31440         * TreeNode.cs: Use the viewport rect for determining if a node
31441         needs to be moved for visibility. Don't use Begin/End edit. This
31442         calls a full refresh when its done.
31443         * TreeView.cs: New SetBottom works correctly.  Make the viewport
31444         rect property internal so the treenodes can see it. When clicking
31445         on a node we need to ensure that its visible because it might just
31446         be partly visible when clicked.
31447
31448 2005-10-20  Jackson Harper  <jackson@ximian.com>
31449
31450         * TreeNodeCollection.cs: Remove debug code.
31451
31452 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
31453
31454         * Datagrid.cs: Implements column sorting in Datagrid
31455         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
31456
31457 2005-10-20  Jackson Harper  <jackson@ximian.com>
31458
31459         * TreeNodeCollection.cs: Remove items properly. Update the correct
31460         area after removing them.
31461
31462 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
31463
31464         * Datagrid.cs: Should not call base.OnPaintBackground
31465
31466 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
31467
31468         * XplatUIX11.cs (GetMessage):
31469           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
31470             window instead of client window
31471           - Now properly calculates NC_xBUTTONUP message coordinates
31472           - ScreenToMenu now properly calculates it's coordinates of whole 
31473             window, since menus are in the whole window, not in the client
31474             window
31475           - Added WholeToScreen coordinate translation method
31476
31477 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
31478
31479         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
31480           want to return a message, loop back to the beginning of the function
31481           and grab the next real message to process instead.
31482
31483 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
31484
31485         * Splitter.cs: Properly set limits if no filler control is used
31486
31487 2005-10-19  Jackson Harper  <jackson@ximian.com>
31488
31489         * ColorDialog.cs: Don't show the help button if it is not enabled
31490         instead of disabling it (this is what MS does). Don't create the
31491         panel until the dialog is run, otherwise the vars (such as
31492         ShowHelp) are not set yet.
31493
31494 2005-10-19  Jackson Harper  <jackson@ximian.com>
31495
31496         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
31497         are reduced when adding nodes.
31498         * TreeNode.cs:
31499         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
31500         tree.
31501         
31502 2005-10-19  Jackson Harper  <jackson@ximian.com>
31503
31504         * FolderBrowserDialog.cs: End editing our treeview so the window
31505         actually gets refreshed.
31506
31507 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
31508
31509         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
31510           Obsoleted handling of WM_ERASEBKGND, now always draws our background
31511           inside of WM_PAINT
31512
31513 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31514
31515         * MenuAPI.cs: Returns after Hidding window
31516         * XplatUIX11.cs: Added TODO found while debugging menu issues
31517
31518 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
31519
31520         * XplatUIX11.cs: Do not re-map the whole window when it's size
31521           becomes non-zero unless it's supposed to be actually visible
31522
31523 2005-10-18  Jackson Harper  <jackson@ximian.com>
31524
31525         * TreeView.cs: We don't need to keep a count anymore.
31526         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
31527         use the Grow method.
31528
31529 2005-10-18  Jackson Harper  <jackson@ximian.com>
31530
31531         * TreeNodeCollection.cs: Insert is not supported on arrays, so
31532         implement it manually here.
31533
31534 2005-10-18  Jackson Harper  <jackson@ximian.com>
31535
31536         * ImageList.cs: Dont kill the list when the colour depth is
31537         changed, just change the colour depth of all the images.
31538         - Same goes for setting the image size. Just resize them all
31539         instead of killing the list softly.
31540
31541 2005-10-18  Jackson Harper  <jackson@ximian.com>
31542
31543         * Control.cs: Don't invalidate empty rectangles.
31544
31545 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31546
31547         * ListViewItem.cs:
31548           - Adds checked item to the Checked/Item lists (where empty before)
31549           - Do not add items to the Selected lists if they are already present
31550         * ListView.cs:
31551           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
31552           - When deleting items make sure that we delete them for the Selected
31553           and Checked list also.
31554
31555 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31556
31557         * Label.cs: Dispose objects no longer used
31558         * ThemeWin32Classic.cs: Dispose objects no longer used
31559
31560 2005-10-18  Jackson Harper  <jackson@ximian.com>
31561
31562         * TabControl.cs: Don't refresh the whole control when the tabs are
31563         scrolled, we just need to refresh the tab area.
31564
31565 2005-10-17  Jackson Harper  <jackson@ximian.com>
31566
31567         * XplatUIX11.cs: Compress code a little bit. Only calculate the
31568         after handle when we need it.
31569
31570 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
31571
31572         * Control.cs: When the parent size changes, recalculate anchor 
31573           positions. Partial fix for #76462
31574
31575 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
31576
31577         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
31578           drawn. Fixes #76462
31579
31580 2005-10-17  Jackson Harper  <jackson@ximian.com>
31581
31582         * MonthCalendar.cs: Don't create the numeric up down until our
31583         handle is created. Otherwise our handle is created in the
31584         constructor and we don't know if we are a WS_CHILD or WS_POPUP
31585         yet.
31586
31587 2005-10-17  Jackson Harper  <jackson@ximian.com>
31588
31589         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
31590         correctly.
31591
31592 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
31593         * TreeNode.cs : small logical fix (was using local var instead of field)
31594         
31595 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
31596
31597         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
31598
31599 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
31600
31601         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
31602
31603 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
31604
31605         * Control.cs: 
31606           - Re-implemented anchoring code. My first version was really broken.
31607             This fixes bug #76033. Unlike the previous implementation we will
31608             no longer have round errors since all numbers are calculated from
31609             scratch every time. Removed various anchor-related obsolete vars.
31610           - InitLayout no longer causes layout event firing and layout to be 
31611             performed
31612
31613 2005-10-16  Jackson Harper  <jackson@ximian.com>
31614
31615         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
31616         which was broken).
31617
31618 2005-10-16  Jackson Harper  <jackson@ximian.com>
31619
31620         * TabControl.cs: Remove debug code.
31621
31622 2005-10-16  Jackson Harper  <jackson@ximian.com>
31623
31624         * XEventQueue.cs: Increase the default queue size (very simple
31625         apps needed to grow the queue).
31626         * Hwnd.cs: No finalizer so we don't need to suppress
31627         finalization. Compute the invalid area manually so a new rectangle
31628         does not newto be created.
31629         * ScrollableControl.cs: Don't set any params (otherwise visibility
31630         isn't set correctly).
31631         * MdiChildContext.cs: New constructor takes the mdi parent so it
31632         doesn't have to be computed and avoids a crash on windows. Draw
31633         the window icon properly, and allow the text to be seen.
31634         * Form.cs: Use new MdiChildContext constructor. Make sure the
31635         child context isn't null in wndproc.
31636         * TabControl.cs: Don't set focus, this is muddling keyboard
31637         behavoir. Expand the tab rows when a window size increase will
31638         allow extra tabs to be seen. Don't allow tabs smaller than the
31639         width of a window to be scrolled out of view.
31640         * TreeNode.cs:
31641         * TreeView.cs: Use measure string to calculate a nodes width, the
31642         width is cached and only updated when the text or the font is
31643         changed. Don't check for expand/collapse clicks on the first level
31644         nodes if root lines are disabled.
31645         
31646 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
31647
31648         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
31649
31650 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
31651
31652         * DataGridBoolColumn.cs: fixes warning
31653
31654 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
31655
31656         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
31657         to match more to match more precisely the MS Net behavior
31658
31659 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
31660
31661         * Hwnd.cs: Added field to track if window is mapped
31662         * XplatUIX11.cs: 
31663           - Unmap windows if they become 0-size, re-map when 
31664             they are >0 again; fixes #76035
31665           - Re-set our error handler after initializing X11Desktop
31666             to override any error handlers Gtk or whatever was called
31667             may have set.
31668
31669 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
31670
31671         * CheckedListBox.cs: Removed unused vars
31672         * ListView.cs: Fixed signatures
31673         * RichTextBox.cs: Removed unused vars
31674         * TextBoxBase.cs: Removed unused vars
31675         * XplatUIWin32.cs: Removed unused vars
31676         * XplatUIX11.cs: Removed unused vars
31677         * XplatUI.cs: Updated version and date to latest published
31678
31679 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
31680
31681         * Cursor.cs: Added private .ctor to work around a bug in
31682           resourceset (Thanks to Geoff Norton for the help on this)
31683         * SplitterEventArgs.cs: Made fields accessible so we don't
31684           waste boatloads of objects and can reuse the same one
31685           in Splitter
31686         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
31687           any captions and borders when generating screen coordinates
31688         * Splitter.cs: Reimplemented control, now fully complete, uses
31689           rubberband drawing, supports and obeys all properties, has
31690           proper cursors
31691
31692 2005-10-13  Miguel de Icaza  <miguel@novell.com>
31693
31694         * Form.cs (Form): Setup default values for autoscale and
31695         autoscale_base_size;  Make these instance variables, not static
31696         variables. 
31697
31698         (OnLoad): on the first load, adjust the size of the form.
31699
31700 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
31701
31702         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
31703           width argument to DrawReversibleRectangle()
31704         * XplatUIWin32.cs, XplatUIX11.cs: 
31705           - Implemented width for DrawReversibleRectangle()
31706           - Added logic to DrawReversibleRectangle that recognizes a zero
31707             width or height and only draws a line in that situation
31708         
31709 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
31710
31711         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
31712         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
31713         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
31714           method (it uses our FosterParent window to get a graphics context)
31715
31716 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
31717
31718         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
31719           and SetWindowBackground methods
31720         * Control.cs:
31721           - Setting proper ControlStyles
31722           - We no longer call XplatUI.SetWindowBackground and XplatUI.
31723             EraseWindowBackground, instead we draw the window background
31724             ourselves in PaintControlBackground. This behaviour is
31725             required to match MS, where, when OnPaintBackground is not
31726             called, the background is not drawn.
31727           - Removed unneeded Refresh() in set_Text
31728         * Hwnd.cs: Dropped the ErasePending support. No longer needed
31729         * XplatUIX11.cs:
31730           - Created DeriveStyles method to translate from CreateParams to
31731             FormBorderStyle and TitleStyle, also handles BorderStyle (which
31732             matches FormBorderStyle enum values)
31733           - Consolidated SetHwndStyles and CalculateWindowRect border/title
31734             style calculations into single DeriveStyles method
31735           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
31736             from redrawing the whole window on any resize or expose.
31737           - Fixed CreateWindow usage of SetWindowValuemask. Before not
31738             all styles were applied to our whole/client window appropriately
31739           - Removed EraseWindowBackground() and SetWindowBackground() methods
31740           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
31741             no longer clear/redraw the background through X
31742           - Removed handling of erase_pending bit, we have no use for it (or
31743             so it seems)
31744         * XplatUIOSX.cs:
31745           - Removed generation and handling of WM_ERASEBKGND message
31746           - Removed EraseWindowBackground() and SetWindowBackground() methods
31747           - Removed handling of hwnd.ErasePending flag
31748         * XplatUIWin32.cs:
31749           - Removed EraseWindowBackground() and SetWindowBackground() methods
31750           - We no longer call EraseWindowBackground on PaintEventStart, we 
31751             ignore the fErase flag, erasing is handled in Control in the
31752             background handler
31753         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
31754           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
31755           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
31756           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
31757           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
31758           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
31759           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
31760
31761 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
31762
31763         * PropertyGrids.cs: Get sub properties
31764         * PropertyGridView.cs: Fix drawing code
31765
31766 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31767
31768         * ListBox.cs: Fixes 76383
31769
31770 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31771
31772         * DataGridTextBoxColumn.cs: Sets location and size before attachment
31773         * ThemeWin32Classic.cs: Fixes border drawing and calculations
31774         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
31775
31776
31777 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31778
31779         * ComboBox.cs: Fixes border drawing
31780
31781 2005-10-10  Miguel de Icaza  <miguel@novell.com>
31782
31783         * MimeIcon.cs: Ignore errors if the file can not be read.
31784
31785 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31786
31787         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
31788          - Fixed border calculations
31789          - Fixed horizontal scrolling in single column listboxes
31790          - Fixed drawing issues
31791
31792 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
31793
31794         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
31795           FormBorderStyle enum
31796         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
31797           code to determine FormBorderStyles from CreateParams
31798         * Form.cs:
31799           - Fixed bug where we'd set the wrong window styles if we were
31800             not creating an MDI window
31801           - Added call to XplatUI.SetBorderStyle when form borders are set
31802         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
31803         * Hwnd.cs:
31804           - Removed obsolete edge style
31805           - Switched from BorderStyle to FormBorderStyle
31806         
31807 2005-10-10  Jackson Harper  <jackson@ximian.com>
31808
31809         * Form.cs: Use the property to get the window handle instead of
31810         accessing it directly. Prevents a null reference exception.
31811
31812 2005-10-10  Jackson Harper  <jackson@ximian.com>
31813
31814         * TreeView.cs: Don't adjust the rect given to DrawString now that
31815         our libgdiplus draws correctly.
31816
31817 2005-10-08  Jackson Harper  <jackson@ximian.com>
31818
31819         * TreeView.cs: Don't try to find the clicked on node if there are
31820         no nodes in the tree.
31821
31822 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
31823
31824         * RichTextBox.cs:
31825
31826           restore
31827
31828 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
31829
31830         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
31831           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
31832           ErrorProvider.cs:
31833           Use ResPool for brushes and dispose System.Drawing objects that
31834           are not used anymore.
31835
31836 2005-10-07  Jackson Harper  <jackson@ximian.com>
31837
31838         * MdiChildContext.cs: Use the new borders instead of drawing them
31839         ourselves.
31840
31841 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
31842
31843         * Calling UpdateBounds after changing the window's BorderStyle 
31844         since the style can change the ClientSize
31845
31846 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31847
31848         * Control.cs: Made PaintControlBackground virtual
31849         * Panel.cs: Overriding PaintControlBackground instead of using paint
31850           event; paint event method was interfering with 'real' users of the
31851           event.
31852
31853 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
31854
31855         * ThemeWin32Classic.cs: remove border drawing since it is handled
31856         by the base control class now and was causing double border drawing.
31857
31858 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31859
31860         * Panel.cs: Redraw our background on paint. Not a pretty solution,
31861           but it does seem to match MS behaviour. This fixes bug #75324
31862
31863 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31864
31865         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
31866           somewhat hackish looking
31867
31868 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31869
31870         * TextBoxBase.cs:
31871           - We now accept Enter even if AcceptEnter is false, if the containing
31872             form does not have an AcceptButton configured (fixes bug #76355)
31873           - Calculations are now fixed to no longer use Width/Height, but
31874             ClientSize.Width/Height, since we now support borders (this was
31875             a result of fixing borders and therefore bug #76166)
31876           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
31877             true (fixes bug #76354)
31878         
31879 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31880
31881         * Control.cs: 
31882           - Defaulting BorderStyle and setting it in XplatUI when our window 
31883             is created
31884           - Added enum check to InternalBorderStyle setter
31885         * XplatUIX11.cs: 
31886           - Added drawing of window borders
31887           - Now properly calculates WM decorations offset for toplevel 
31888             windows (fixes bug #74763)
31889         * XplatUIWin32.cs: 
31890           - Implemented BorderStyles for windows (we're letting win32 draw 
31891             the border for us)
31892           - Fixed the signature for SetWindowLong
31893         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
31894           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
31895           setting borders
31896         * UpDownBase.cs: Remove drawing of borders, this is handled by
31897           the driver, outside the client area
31898         * ListView.cs: Removed bogus border calculations. The control should
31899           be oblivious to borders, since those are not part of the client
31900           area. 
31901         * X11DesktopColors.cs: Commented out (currently) unneeded variables
31902         * ThemeWin32Classic.cs: Removed border calculations from ListView 
31903           drawing code
31904
31905 2005-10-06  Jackson Harper  <jackson@ximian.com>
31906
31907         * MdiChildContext.cs: Clear out the old virtual position remove
31908         all the unneeded calls to CreateGraphics.
31909
31910 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31911
31912         * TextControl.cs: Use proper color for highlighted text; fixes #76350
31913
31914 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31915
31916         * Form.cs: 
31917           - Added loading and setting of our new default icon
31918           - Only set icon if window is already created
31919
31920 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31921
31922         * Label.cs:
31923           - Do not explicitly set the foreground and background colors, to
31924             allow inheriting from parents (fixes #76302)
31925           - Use Control's InternalBorderStyle property to deal with borders
31926
31927 2005-10-06  Jackson Harper  <jackson@ximian.com>
31928
31929         * MdiChildContext.cs: Use the new xplatui function to draw a
31930         reversible rect.
31931
31932 2005-10-06  Jackson Harper  <jackson@ximian.com>
31933
31934         * Form.cs: Add the parent before creating the child context cause
31935         we need the parent when setting up the child.
31936
31937 2005-10-06  Jackson Harper  <jackson@ximian.com>
31938
31939         * FolderBrowserDialog.cs: redo the tree population code so a
31940         second thread isn't used. Should be a lot faster and more stable
31941         now.
31942
31943 2005-10-05  Jackson Harper  <jackson@ximian.com>
31944
31945         * TreeView.cs: There are no expand/collapse boxes if the node has
31946         no children.
31947
31948 2005-10-05  Jackson Harper  <jackson@ximian.com>
31949
31950         * X11DesktopColors.cs: Get menu colours for the gtk theme.
31951
31952 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
31953
31954         * FileDialog.cs: Fix InitialDirectory
31955
31956 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
31957
31958         * ComboBox.cs:
31959                 - Fixes changing between styles
31960                 - Fixes simple mode
31961                 - Fixes last item crashing when navigating with keyboard
31962
31963 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
31964
31965         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
31966
31967 2005-10-05  Jackson Harper  <jackson@ximian.com>
31968
31969         * TreeView.cs: If updating the root node do a full refresh.
31970         * TreeNode.cs: The root node should be expanded by default. Also
31971         added a utility prop to tell if we are the root node.
31972         * TreeNodeCollection.cs: Only refresh if the node we are being
31973         added to is expanded. Also added a comment on a potential
31974         optimization.
31975         
31976 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
31977
31978         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
31979           in dispose method. Fixes #76330
31980
31981 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
31982
31983         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
31984
31985                 - Implements vertical and horizontal scrolling using XplatUI
31986                 - Fixes keyboard navagation
31987                 - Fixes EnsureVisible
31988                 - Drawing fixes
31989                 - Handles and draws focus properly
31990
31991
31992 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
31993
31994         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
31995           Create handle. NET_2_0: Destroy handle when value is null.
31996
31997 2005-10-03  Jackson Harper  <jackson@ximian.com>
31998
31999         * ScrollBar.cs: My last scrollbar patch was broken. This is a
32000         revert and a new patch to prevent the thumb from refreshing so
32001         much.
32002
32003 2005-10-02  Jackson Harper  <jackson@ximian.com>
32004
32005         * ScrollBar.cs: Don't update position if it hasn't actually
32006         changed. This occurs when you hold down the increment/decrement
32007         buttons and the thumb gets to the max/min.
32008
32009 2005-10-01  Jackson Harper  <jackson@ximian.com>
32010
32011         * Form.cs:
32012         * MdiChildContext.cs:
32013         * MdiClient.cs: Implement ActiveMdiChild in Form.
32014
32015 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
32016
32017         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
32018
32019 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
32020
32021         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
32022           be found
32023
32024 2005-09-30  Jackson Harper  <jackson@ximian.com>
32025
32026         * ListBox.cs: Don't do a full refresh unless some data has
32027         actually changed.
32028
32029 2005-09-30  Jackson Harper  <jackson@ximian.com>
32030
32031         * TreeView.cs: Make sure that the checkboxes size is factored in
32032         even when not visible.
32033
32034 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
32035
32036         * FileDialog.cs: Fix Jordi's build break
32037
32038 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
32039
32040         * FileDialog.cs: 
32041                 - Use standard the Windows colours for the combobox as espected
32042                 - Dispose objects that use resouces when no longer need them
32043
32044 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
32045
32046         * X11DesktopColors.cs: Initial incomplete implementation
32047         * XplatUIX11.cs: Added call to initialize X11DesktopColors
32048
32049 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
32050
32051         * Theme.cs: 
32052           - Switched Theme color names to match the names defined in 
32053             System.Drawing.KnownColors. Life's hard enough, no need to make 
32054             it harder.
32055           - Added setters to all theme color properties so themes can set
32056             their color schemes. The setters also propagate the color changes
32057             to System.Drawing.KnownColors via reflection
32058         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
32059           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
32060           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
32061           use the new, more logical theme color names
32062         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
32063           post-NT colors
32064         * ThemeWin32Classic.cs:
32065           - Removed code to set the old classic Windows colors. Instead it
32066             now relies on the colors returned by System.Drawing.KnownColors
32067             which will be either modern static colors (Unix) or colors
32068             read from the user's configuration (Win32)
32069           - Updated to use the new, more logical theme color names
32070           - Switched DataGrid drawing code to use only Theme colors instead of
32071             a mix of System.Drawing.KnownColors and Theme colors
32072           - DrawFrameControl(): Removed code that fills the button area, the
32073             fill would overwrite any previous fill done by a control. This
32074             fixes bug #75338 
32075           - Added DrawReversibleRectangle() stub
32076         * ScrollableControl.cs: Set visible state to false when scrollbars
32077           are removed (pdn fix)
32078         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
32079           DrawReversibleRectangle() method to allow drawing primitive 
32080           'rubber bands'
32081         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
32082
32083 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32084
32085         * ImageList.cs: Add(Icon): Create handle.
32086
32087 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
32088
32089         * ListView.cs:
32090         * ThemeWin32Classic.cs:
32091                 - Fixes detail mode
32092                 - Sets clippings
32093                 - Issues with drawing
32094
32095 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32096
32097         * ImageList.cs: Moved RecreateHandle back to ImageList as event
32098           source has to be the ImageList.
32099
32100 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32101
32102         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
32103
32104 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32105
32106         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
32107
32108 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32109
32110         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
32111
32112 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
32113         * GridItem.cs: Fixed TODOs
32114         * GridItemCollection.cs: Added ICollection interface
32115
32116 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32117
32118         * ImageList.cs: Resize icons when needed.
32119
32120 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
32121
32122         * ListViewItem.cs
32123                 - Fixes GetBounds and returns on screen rects
32124         * ListView.cs:
32125                 - Fixes vertical and horzintal scrolling of items
32126         * ThemeWin32Classic.cs:
32127                 - Fixes drawing
32128                 
32129 2005-09-29  Raja R Harinath  <harinath@gmail.com>
32130
32131         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
32132
32133 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
32134
32135         * ImageList.cs: Added comments about handle creation. Moved Handle,
32136           HandleCreated and OnRecreateHandle implementations to ImageCollection.
32137           Handle is created in Add methods.
32138
32139 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
32140          
32141         * DataGridDrawingLogic.cs: 
32142                 - Takes rows into account on Colum calculations
32143                 - Returns the column when clickig
32144         * DataGrid.cs:
32145                 - Fixes default HitTestInfo values
32146                 - Fixes HitTestInfo.ToString
32147                 - Fixes ResetBackColor          
32148         
32149 2005-09-28  Jackson Harper  <jackson@ximian.com>
32150
32151         * MdiChildContext.cs: Obey rules for fixed sized windows (no
32152         sizing or cursor changes). Also added some temp code to draw the
32153         titlebars text (Makes dev a little easier).
32154
32155 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
32156
32157         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
32158
32159 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
32160          
32161         * ListBox.cs: Fixes bug 76253
32162
32163 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
32164
32165         * ImageList.cs: Added comments about the current implementation. Added
32166           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
32167           Format32bppArgb to preserve transparency and can use Graphics.FromImage
32168           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
32169           with Bitmap.LockBits for better performance. Revised the whole file to
32170           match MS.NET behaviour and provide better performance. Non-public
32171           interface members are calling public members even when they throw
32172           NotSupportedException for better maintainability. Moved ColorDepth,
32173           ImageSize, ImageStream and TransparentColor implementations to
32174           ImageCollection for better performance as these properties are not used
32175           by ImageList.
32176         * ImageListStreamer.cs: Added a new internal constructor that takes an
32177           ImageList.ImageCollection and serializes Images based on
32178           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
32179           match ImageList property name.
32180
32181 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
32182
32183         * ListBox.cs: Fixes IndexFromPoint for last item
32184
32185 2005-09-27  Jackson Harper  <jackson@ximian.com>
32186
32187         * Form.cs: Set the position of new mdi children correctly.
32188
32189 2005-09-27  Jackson Harper  <jackson@ximian.com>
32190
32191         * MdiClient.cs: New mdi children need to be added to the back of
32192         the controls collection so the zorder is set correctly. Also add a
32193         count of all the child windows that have been created.
32194
32195 2005-09-27  Jackson Harper  <jackson@ximian.com>
32196
32197         * Form.cs (CreateParams): Setup MDI forms correctly.
32198
32199 2005-09-27  Jackson Harper  <jackson@ximian.com>
32200
32201         * MdiChildContext.cs:
32202         * MonthCalendar.cs:
32203         * UpDownBase.cs:
32204         * ListBox.cs:
32205         * ListView.cs:
32206         * TextBoxBase.cs:
32207         * TreeView.cs:
32208         * ScrollableControl.cs:
32209         * ComboBox.cs: Add implicit controls using the new implict control
32210         functionality in ControlCollection. Also try to block multiple
32211         control add in a suspend/resume layout to save some cycles.
32212         
32213 2005-09-27  Jackson Harper  <jackson@ximian.com>
32214
32215         * Control.cs: Add functionality to the controls collection to add
32216         'implicit controls' these are controls that are created by the
32217         containing control but should not be exposed to the user. Such as
32218         scrollbars in the treeview.
32219         * Form.cs: The list var of the ControlsCollection is no longer
32220         available because of the potential of implicit controls getting
32221         ignored by someone accessing the list directly.
32222
32223 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
32224
32225         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
32226           loose it's parent. (Fixed bug introduced in r49103 when we added
32227           setting the child parent to null on Remove)
32228
32229 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
32230
32231         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
32232         * Splitter.cs: Added missing attributes for BorderStyle property.
32233         * TextBoxBase.cs: Marked Calculate* methods internal.
32234         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
32235         MS.NET.
32236
32237 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
32238          
32239         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
32240
32241 2005-09-25  Jackson Harper  <jackson@ximian.com>
32242
32243         * TreeView.cs: Update the node bounds correctly regardless of
32244         whether the node is visible.
32245
32246 2005-09-25  Jackson Harper  <jackson@ximian.com>
32247
32248         * ImageList.cs: Don't dispose the image after it is added to the
32249         image list. Only reformat images that need to be resized.
32250
32251 2005-09-25  Jackson Harper  <jackson@ximian.com>
32252
32253         * ImageList.cs: Don't set the format when changing the image.
32254
32255 2005-09-25  Jackson Harper  <jackson@ximian.com>
32256
32257         * TreeView.cs: We can't just assume the node has a font. Use the
32258         treeviews font if no node font is available.
32259
32260 2005-09-25  Jackson Harper  <jackson@ximian.com>
32261
32262         * TreeView.cs: Allow the scrollbars to be reset with negative
32263         values.
32264         - Don't add scrollbars to negative sized windows.
32265
32266 2005-09-23  Jackson Harper  <jackson@ximian.com>
32267
32268         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
32269         old Mono.Posix. Also remove some stray code that shouldn't have
32270         been committed.
32271
32272 2005-09-23  Jackson Harper  <jackson@ximian.com>
32273
32274         * TreeView.cs: Attempt at proper sizing of the horizontal
32275         scrollbar. Also don't resize the scrollbars unless they are
32276         visible.
32277
32278 2005-09-23  Jackson Harper  <jackson@ximian.com>
32279
32280         * TreeView.cs: We don't need to expand the invalid area when the
32281         selection changes, as this is all drawn in the node's bounding
32282         box. The area needs to be expanded (previous typo was contracting
32283         it) when the focus rect moves.
32284
32285 2005-09-23  Jackson Harper  <jackson@ximian.com>
32286
32287         * TreeView.cs: Display the selection box under the correct
32288         circumstances. We were rendering white text with no selection box
32289         before.
32290
32291 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
32292
32293         * TextControl.cs(Split): Now updates selection start/end if it points 
32294           into a line that's being split. Fixes a FIXME and bug #75258
32295
32296 2005-09-23  Jackson Harper  <jackson@ximian.com>
32297
32298         * Binding.cs:
32299         * ListControl.cs: Don't use the path when retrieving binding
32300         managers from the binding context. My bat sense tells me that the
32301         path is only used on insertion.
32302
32303 2005-09-22  Jackson Harper  <jackson@ximian.com>
32304
32305         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
32306
32307 2005-09-22  Jackson Harper  <jackson@ximian.com>
32308
32309         * Splitter.cs: There are special cursors used for splitting.
32310         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
32311
32312 2005-09-22  Jackson Harper  <jackson@ximian.com>
32313
32314         * Splitter.cs: Change the cursor appropriately when the splitter
32315         is moused over, so the user actually knows there is a splitter
32316         there.
32317
32318 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
32319
32320        * Label.cs : Fix ToString method to give same output as MS.NET
32321
32322 2005-09-22  Jackson Harper  <jackson@ximian.com>
32323
32324         * TreeView.cs: Create the scrollbars when the handle is created
32325         and add them right away, just make them invisble. Also account for
32326         the window being shrunk vertically to the point that the vert
32327         scrollbar needs to be added.
32328         - Remove some 0.5 adjustments to get around anti aliasing issues.
32329         
32330 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
32331          
32332         * MainMenu.cs: Fixes default value
32333         * MenuItem.cs: Fixes default value
32334
32335 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
32336
32337         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
32338
32339 2005-09-21  Jackson Harper  <jackson@ximian.com>
32340
32341         * Control.cs: Don't try to set the border style on the window if
32342         it hasn't been created. When the window is created the border
32343         style will be used.
32344
32345 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
32346
32347         * Control.cs (Update): Don't call XplatUI if we don't have a
32348           window handle yet
32349
32350 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
32351
32352         * ContainerControl.cs: Instead of throwing an exception, print
32353           a one-time warning about Validate not being implemented
32354         * XplatUIWin32.cs: Removed debug output
32355
32356 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
32357
32358         * Control.cs: Only set XplatUI background if we expect the windowing
32359           system to handle the background. This stops controls that draw their
32360           own background from flickering
32361
32362         * XplatUIX11.cs: Support custom visuals and colormaps for window 
32363           creation. This allows, amongst other things, using MWF X11 windows 
32364           with OpenGL.
32365
32366 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
32367
32368         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
32369           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
32370           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
32371           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
32372           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
32373           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
32374           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
32375           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
32376           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
32377           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
32378           GridColumnStylesCollection.cs, 
32379           IDataGridColumnStyleEditingNotificationService.cs,
32380           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
32381           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
32382           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
32383           TreeNodeCollection.cs, AmbientProperties.cs, 
32384           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32385           DataObject.cs, ErrorProvider.cs, Splitter.cs,
32386           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
32387           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
32388           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
32389           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
32390           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
32391           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
32392           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
32393           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
32394           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
32395           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
32396           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
32397           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
32398           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
32399           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
32400           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
32401           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
32402           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
32403           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
32404           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
32405           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
32406           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
32407           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
32408           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
32409           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
32410           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
32411           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
32412           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
32413           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
32414           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
32415           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
32416           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
32417           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
32418           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
32419           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
32420           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
32421
32422 2005-09-21  Jackson Harper  <jackson@ximian.com>
32423
32424         * TreeNode.cs: Call Before/After Expand not Collapse when
32425         expanding.
32426
32427 2005-09-20  Jackson Harper  <jackson@ximian.com>
32428         
32429         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
32430
32431 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
32432          
32433         * ListViewItem.cs:
32434                 - Fixes bug 76120
32435                 - Fixes proper storing of subitems
32436                 - Fixes not updated items
32437
32438 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
32439
32440         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
32441           things if our window handle isn't created yet. Also disabled 
32442           debug for TextBoxBase
32443
32444 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
32445
32446         * MenuAPI.cs: Remove filtering of events to allow menu usage
32447
32448 2005-09-20  Miguel de Icaza  <miguel@novell.com>
32449
32450         * Cursor.cs: Allow null to be passed to Cursor.Current.
32451
32452 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
32453
32454         * ThemeWin32Classic.cs:
32455           - Change some private methods/fields to protected virtual so that 
32456             they can be accessed and overriden in derived classes
32457           - First refactoring of some methods. Derived themes now don't 
32458             need to duplicate the complete code from ThemeWin32Classic
32459         * ThemeNice.cs:
32460           - Added nice StatusBar
32461           - Derive from ThemeWin32Classic and not Theme
32462           - Removed duplicate ThemeWin32Classic code
32463
32464 2005-09-20  Miguel de Icaza  <miguel@novell.com>
32465
32466         * Control.cs (ControlCollection.Add): If the value null is passed
32467         the control is ignored. 
32468
32469         Optimize this loop.
32470
32471 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
32472
32473         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
32474           PostQuitMessage state.
32475         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
32476
32477 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
32478
32479         * Application.cs: Our constructor will never get called, move 
32480           initialization to fields; fixes bug #75933
32481
32482 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
32483
32484         * FileDialog.cs :
32485                 - Allow files to be selected properly using file name
32486                 combo box.
32487                 - Add ability to change diretory (absolute / relative)
32488                 using file name combo box.
32489
32490 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
32491          
32492         * ListBox.cs: 
32493                 - Fixes Multicolumn listboxes item wrong calculations
32494                 - Allows to click when only one item is in the listbox
32495                 - Fixes crash when no items using keyboard navigation
32496
32497 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
32498
32499         * ComboBox.cs: Reverted almost everything from the latest patch which
32500           broke ComboBox
32501
32502 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
32503         
32504         * ToolTip.cs:
32505                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
32506         * ComboBox.cs:
32507                 - When DropDownStyle is Simple, it does not show scrollbar 
32508                 to the last item of the list.
32509                 - When DropDownStyle is Simple, it crashed when the list was 
32510                 scrolled down with the down cursor key.
32511                 - Fixed a bug that when DropDownStyle is DropDownList, the 
32512                 selected item was not shown.
32513                 - The position of the selected item was not preserved when 
32514                 the next dropdown happened.
32515         * ThemeWin32Classic.cs:
32516                 - Items were wrapped at the right end.
32517         * CheckedListBox.cs:
32518                 - Fixed Add method
32519         * ListBox.cs:
32520                 - Items should be fully shown.
32521                 - When resizing and vertical scrollbar disappeared, the item 
32522                 of index 0 should be on the top of the list.
32523                 - GetItemRectangle should consider the size of ver. scrollbar
32524         * StatusBar.cs:
32525                 - SizingGrip area should not be allocated when it is not 
32526                 displayed.
32527                 - Now it reflects MinWidth of the containing panel and 
32528                 fixed a crash that happens when its width becomes so small.
32529
32530 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
32531
32532         * CheckedListBox.cs: Fixes bug 76028
32533         * ListBox.cs: Fixes bug 76028
32534
32535 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
32536
32537         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
32538         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
32539
32540 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
32541
32542         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
32543
32544 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
32545
32546         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
32547
32548 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
32549
32550         * IRootGridEntry.cs: Added
32551         * PropertyGridCommands.cs: Added
32552         * PropertiesTab.cs: Added missing methods and property
32553         * PropertyGridView.cs: Made class internal
32554         * PropertyGridTextBox.cs: Made class internal
32555
32556 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32557
32558         * MimeIcon.cs: Try to check some other environment variables
32559           if "DESKTOP_SESSION" returns "default"
32560
32561 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32562
32563         * ThemeNice.cs: Corrected background colors (e.g. menus)
32564         * ColorDialog.cs: Use correct background colors for controls
32565
32566 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32567
32568         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
32569
32570 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
32571
32572         * RichTextBox.cs: Added initial implementation
32573         * lang.cs: Removed. Was accidentally checked in long time ago
32574         * TODO: Removed. Contents were obsolete
32575
32576 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
32577                                                                                 
32578         * PropertiesTab.cs : Added
32579
32580 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
32581                                                                                 
32582         * PropertyGrid.cs : Update
32583         * PropertyGridView.cs : Update
32584         * System.Windows.Forms.resx : Added images and strings
32585
32586 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
32587
32588         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
32589  
32590 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
32591
32592         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
32593           a busy loop right after the Ungrab the X11 display is otherwise 
32594           blocked
32595
32596 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
32597
32598         * ThemeWin32Classic.cs: Optimise the use of clipping
32599
32600 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
32601
32602         * DataGrid.cs: fixes recursion bug
32603
32604 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
32605
32606         * ThemeNice.cs: 
32607           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
32608           - Cleanup
32609
32610 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
32611
32612         * ThemeNice.cs: Draw nice ProgressBars
32613
32614 2005-09-01  Miguel de Icaza  <miguel@novell.com>
32615
32616         * VScrollBar.cs: Another buglet found by Aaron's tool. 
32617
32618         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
32619         bug finder.
32620
32621 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
32622
32623         * ThemeNice.cs:
32624           - Added nicer menu drawing
32625           - Updated DrawTab
32626           - some refactoring
32627
32628 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
32629
32630         * CreateParams.cs (ToString): Made output match MS
32631         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
32632             handle is already created (to avoid forcing window creation)
32633         * XplatUIX11.cs: Set window text to caption after creating window,
32634           in case Text was set before window was created
32635         * Form.cs: Use this.Text instead of a static string as caption
32636
32637 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
32638
32639         * NotifyIcon.cs: Don't set the window to visible; this screws
32640           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
32641           OnPaint without a bitmap)
32642         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
32643           happen very often anyway; we could add the check to the WM_PAINT 
32644           event generation code
32645
32646 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
32647
32648         * NotifyIcon.cs: Fill the icon area with a background color, to 
32649           avoid 'residue' when transparent icons are drawn
32650         * XplatUIX11.cs:
32651           - Handle whole_window == client_window when destroying windows
32652           - SystrayAdd(): Set client_window to whole_window value to
32653             get mouse and other events passed to NotifyIcon
32654
32655 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
32656
32657         * Form.cs: Set proper default for Opacity property
32658         * NotifyIcon.cs:
32659           - ShowSystray(): Don't bother creating telling the OS
32660             about the systray item if no icon is provided
32661           - Now handles WM_NCPAINT message to deal with whole/client window
32662             split
32663           - Create window as visible to not get caught by Expose optimization
32664         * Hwnd.cs: Removed debug message
32665         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
32666           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
32667             PaintEventStart/End to use new client argument
32668         * TextBoxBase.cs:
32669           - Commented out debug messages
32670           - Switched PaintEventStart/End to use new client argument
32671         * XplatUI.cs: Added client window bool to PaintEventStart()/
32672           PaintEventEnd() calls, to support drawing in non-client areas
32673         * XplatUIDriver.cs: 
32674           - Added client window bool to PaintEventStart()/PaintEventEnd() 
32675             calls, to support drawing in non-client areas
32676           - Added conditional compile to allow using MWF BeginInvoke 
32677             on MS runtime
32678         * XplatUIX11.cs:
32679           - Added some conditional debug output
32680           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
32681             whole/client window split
32682           - Implemented handling of client argument to PaintEventStart()/End()
32683         * Control.cs:
32684           - Throw exception if BeginInvoke() is called and the window handle
32685             or one of the window's parent handles is not created
32686           - Added conditional compile to allow using MWF BeginInvoke on
32687             MS runtime
32688           - get_Parent(): Only sets parent if handle is created. This avoids
32689             forcing window handle creation when parent is set.
32690           - Now fires Layout and Parent changed events in proper order
32691           - Switched to use Handle instead of window.Handle for Z-Order setting,
32692             the get_Parent() patch above causes us to possibly get null for 'window'
32693           - Implemented handling of client argument to PaintEventStart()/End()
32694           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
32695             default handling)
32696           - Now sends a Refresh() to all child windows when Refresh() is called
32697
32698 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
32699
32700         * Form.cs: Added (non-functional) Opacity property
32701         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
32702
32703 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
32704         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
32705           use export MONO_THEME=nice to activate it.
32706           Currently supported controls:
32707           - Button
32708           - ComboBox
32709           - ScrollBar
32710           - TabControl (TabAlignment.Top only, other will follow)
32711         * ThemeEngine.cs: Add theme nice
32712         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
32713           if enabled
32714
32715 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
32716
32717         * Splitter.cs: Resize docked control and its neighbor.
32718
32719 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32720         -- Making Windows with Menus layout correctly --
32721         * Form.cs : The first leg of the fix
32722                 Menu setter - adjust Client Size as needed to make space for the menu
32723                 SetClientSizeCore - doesn't call base version to be able to pass the 
32724                         menu handle to XplatUI.CalculateWindowRect
32725         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
32726         * XplatUIX11.cs: The critical second leg of the fix
32727                 GetWindowPos needs to use a recalculated client_rect
32728                 so that resizing the window doesn't break layout of child controls. 
32729                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
32730                 Lots of \t\n killed
32731
32732 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
32733
32734         * Label.cs: Now properly recalculates width and height on Font and Text
32735           changes if AutoSize is set
32736
32737 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32738         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
32739
32740 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
32741
32742         * ImageList.cs: Makes ToString method compatible with MS
32743
32744 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
32745
32746         * MenuAPI.cs: fixes bug 75716
32747
32748 2005-08-11 Umadevi S <sumadevi@novell.com>
32749         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
32750
32751 2005-08-11 Umadevi S <sumadevi@novell.com>
32752         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
32753
32754 2005-08-10  Umadevi S <sumadevi@novell.com>
32755         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
32756
32757 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
32758
32759         * Menu.cs: fixes bug 75700
32760         * MenuAPI.cs: fixes navigation issues
32761
32762 2005-08-09  Umadevi S <sumadevi@novell.com>
32763         * CheckedListBox.cs - simple fix for GetItemChecked.
32764
32765 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
32766
32767         * ComboBox.cs: Serveral fixes
32768         * ListBox.cs: Serveral fixes
32769
32770 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32771
32772         * ComboBox.cs: Fixes FindString methods and GetItemHeight
32773         * ListBox.cs: Fixes FindString methods
32774
32775 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32776
32777         * DataGrid.cs: fixes bugs exposed by new tests
32778
32779 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
32780
32781         * Mime.cs: Compile Mono assembly references only if compiling
32782           with Mono (Allows to build with VS.Net again)
32783
32784 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
32785
32786         * Control.cs (PaintControlBackground): Draw background image
32787         corrrectly.
32788         (CheckForIllegalCrossThreadCalls): Stubbed.
32789         
32790         * Form.cs (OnCreateControl): Center when should be centered.
32791         
32792         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
32793
32794 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
32795
32796         * Binding.cs: Binding to properties should be case unsensitive
32797
32798 2005-07-18 vlindos@nucleusys.com
32799
32800         * DataGrid.cs: fixes setmember order
32801
32802 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
32803
32804         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
32805         * FileDialog.cs: FileDialog is now resizable and uses the new
32806           MimeIconEngine
32807
32808 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
32809
32810         * DataGridTextBoxColumn.cs: default value
32811         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
32812         * GridTableStylesCollection.cs: fixes checking MappingName
32813         * DataGridDrawingLogic.cs: fixes drawing logic issues
32814         * DataSourceHelper.cs: rewritten to make compatible with more data sources
32815         * DataGrid.cs: fixes    
32816
32817 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
32818
32819         * MimeGenerated.cs: Use case sensitive comparer for
32820           NameValueCollections
32821
32822 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
32823
32824         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
32825         * ThemeWin32Classic.cs: bug fixes, code refactoring
32826         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
32827         * DataGrid.cs: bug fixes, code refactoring
32828         * DataGridTextBox.cs: bug fixes, code refactoring
32829         * DataGridColumnStyle.cs:  bug fixes, code refactoring
32830         * Theme.cs:  bug fixes, code refactoring
32831
32832 2005-07-01  Peter Bartok  <pbartok@novell.com> 
32833
32834         * TextControl.cs: Quick fix for the reported crash on ColorDialog
32835           and other text box usage
32836
32837 2005-07-01  Jackson Harper  <jackson@ximian.com>
32838
32839         * TabControl.cs: Make sure the bottom of the tab covers the pages
32840         border.
32841
32842 2005-06-30  Peter Bartok  <pbartok@novell.com> 
32843
32844         * Form.cs (ShowDialog): Assign owner of the dialog
32845         * TextBoxBase.cs: Always refresh caret size when deleting, caret
32846           might have been moved to a tag with different height
32847
32848 2005-06-30  Jackson Harper  <jackson@ximian.com>
32849
32850         * Form.cs: Don't create an infinite loop when setting focus
32851         * MenuItem.cs: Don't dirty the parents if we don't have any
32852
32853 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
32854
32855         * LibSupport.cs: Rename
32856
32857 2005-06-29  Peter Bartok  <pbartok@novell.com>
32858
32859         * TextBoxBase.cs: Re-align caret after deleting a character
32860         * TextControl.cs:
32861           - DeleteChars(): Ensure that tag covers the provided position
32862           - StreamLine(): Drop reference for dropped tag
32863
32864 2005-06-29  Peter Bartok  <pbartok@novell.com> 
32865
32866         * TextControl.cs: 
32867           - Selections now work properly, anchoring at the initial location
32868             and properly extending in either direction (SetSelectionToCaret(),
32869             SetSelectionStart() and SetSelectionEnd())
32870           - No longer redraws the whole control on selection change, now
32871             calculates delta between previous and new selection and only
32872             invalidates/redraws that area
32873           - Fixed FindPos() math off-by-one errors
32874           - Changed DeleteChars() to verify the provided tag covers the
32875             provided position, selections may have a tag that doesn't cover
32876             the position if the selection is at a tag border
32877           - Fixed off-by-one errors in DeleteChars()
32878           - Added missing streamlining check in DeleteChars() to remove
32879             zero-length tags
32880           - Implemented Invalidate() method, now properly calculates exposures
32881             between two given lines/positions
32882           - Implemented SetSelection()
32883           - Obsoleted and removed FixupSelection()
32884           - Improved RecalculateDocument() logic, removing code duplication
32885
32886 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32887
32888         * LibSupport.cs: changes to match different input/output arguments.
32889
32890 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32891
32892         * LibSupport.cs: added libsupport.so init routine.
32893
32894 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
32895         
32896         * ControlBindingsCollection.cs
32897                 - Throws an exception on null datasource when adding
32898                 - Checks for duplicated bindings when adding
32899
32900 2005-06-28  Jackson Harper  <jackson@ximian.com>
32901
32902         * TreeView.cs (OnKeyDown): Support left and right properly
32903         (navigates as well as expanding and collapsing.
32904         - Add support for Multiply, this expands all the selected nodes
32905         children.
32906         - Fix some tabbing.
32907
32908 2005-06-28  Jackson Harper  <jackson@ximian.com>
32909
32910         * TreeView.cs: Implement keyboard navigation, currently supports,
32911         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
32912         support for toggling checkboxes with the space bar.
32913
32914 2005-06-28  Jackson Harper  <jackson@ximian.com>
32915
32916         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
32917         tree.
32918
32919 2005-06-28  Jackson Harper  <jackson@ximian.com>
32920
32921         * TreeView.cs: Add missing event.
32922
32923 2005-06-27  Peter Bartok  <pbartok@novell.com> 
32924
32925         * TextControl.cs:
32926           - Made line ending size configurable (now allows for counting 
32927             lineendings as \n or \r\n)
32928           - Added margin to viewport to keep caret visible on right side
32929           - Fixed translation routines for line/pos to documentpos to consider
32930             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
32931           - Fixed some line-endings to be unix style
32932           - Fixed Document.FormatText to perform it's calculations 1-based
32933           - Added descriptions for a few methods that might otherwise get 
32934             used wrong
32935           - Added NOTE section with some basic conventions to remember at 
32936             the top of the file
32937           - Major fixup for RichTextBox selection drawing:
32938             * Fixed crashes when multiple tags on a single line were selected
32939             * fixed selection box drawing not overlaying text
32940             * fixed bogus offset calculation for tags not starting at index 1
32941             * Switched behaviour from using multiple Substrings of a 
32942               StringBuilder.ToString() to using multiple 
32943               StringBuilder.ToString(start, length) statements, hoping this is
32944               faster (kept original version commented out in the code, in case
32945               original version was faster)
32946         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
32947           alignment != Left
32948         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
32949           call it as well
32950
32951 2005-06-27  Jackson Harper  <jackson@ximian.com>
32952
32953         * TabControl.cs: Move to the left and right with the arrow
32954         keys. These keys don't cycle beyond first and last like
32955         tab. Refresh all the tabs when scrolling them to the left or
32956         right.
32957
32958 2005-06-27  Jackson Harper  <jackson@ximian.com>
32959
32960         * TabControl.cs:
32961           - ToString: Added method
32962           - CreateParams: Remove TODO and comment
32963           - OnKeyDown: Cycle through bounds properly.
32964           - SelectedIndex: Scroll to the right or left if we need to
32965           display the newly selected tab.
32966
32967 2005-06-23  Jackson Harper  <jackson@ximian.com>
32968
32969         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
32970         set.
32971
32972 2005-06-23  Jackson Harper  <jackson@ximian.com>
32973
32974         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
32975         CTRL-SHIFT-TAB, and HOME, END are there any others?
32976
32977 2005-06-23  Jackson Harper  <jackson@ximian.com>
32978
32979         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
32980
32981 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
32982         
32983         * DataGridTextBoxColumn.cs: fixes and enhancements
32984         * ThemeWin32Classic.cs: fixes and enhancements
32985         * DataGridBoolColumn.cs:  fixes and enhancements
32986         * DataGridDrawingLogic.cs:  fixes and enhancements
32987         * CurrencyManager.cs: fixes and enhancements
32988         * DataGrid.cs: fixes and enhancements
32989         * DataGridColumnStyle.cs:  fixes and enhancements
32990
32991 2005-06-22  Jackson Harper  <jackson@ximian.com>
32992
32993         * TabControl.cs: Add some missing methods that just call into the
32994         base. Make the TabPageCollection's IList interface behave in the
32995         same manner as the MS implementation.
32996
32997 2005-06-22  Peter Bartok  <pbartok@novell.com> 
32998
32999         * TextControl.cs: Added sanity check
33000         * TextBoxBase.cs: 
33001           - Fixed wrapping behaviour, don't set wrap on single line controls
33002             (this fixes the breakage of colordialog introduced in an earlier
33003              checkin)
33004           - Added rudimentary support for autoscrolling right-aligned controls
33005             (still needs fixing, also, center alignment scroll is missing)
33006
33007 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
33008         
33009         * ScrollBar.cs: Fixes thumbpos on Maximum values
33010
33011 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
33012         
33013         * PropertyGridView.cs: Pass context information to UITypeEditors 
33014
33015 2005-06-21  Peter Bartok  <pbartok@novell.com> 
33016
33017         * TextBoxBase.cs:
33018           - Now calling PositionCaret with absolute space coordinates
33019           - Enabled vertical scrolling
33020           - Better tracking of scrollbar changes, tied into WidthChange
33021             event
33022           - Improved cursor tracking
33023           - Removed debug output
33024         * TextControl.cs:
33025           - PositionCaret coordinates are now works in absolute space, not 
33026             the canvas
33027           - Improved tracking of document size
33028           - Added events for width and height changes
33029
33030 2005-06-21  Peter Bartok  <pbartok@novell.com>
33031
33032         * Form.cs: Set focus to active control when form is activated
33033         * TextControl.cs: 
33034           - Added word-wrap functionality to RecalculateLine() 
33035           - Added some short function descriptions for VS.Net to aid in
33036             writing dependent controls
33037           - Added Caret property, returning the current coords of the caret
33038           - Added ViewPortWidth and ViewPortHeight properties
33039           - Added Wrap property
33040           - Added CaretMoved event
33041           - Removed some old debug code
33042           - Split() can now create soft splits
33043           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
33044           - Added method to format existing text
33045           - Fixed size/alignment calculations to use viewport
33046           - RecalculateDocument now can handle changing line-numbers while
33047             calculating lines
33048
33049         * TextBox.cs:
33050           - Added some wrap logic, we don't wrap if alignment is not left
33051           - Added casts for scrollbar var, base class switched types to
33052             also support RichTextBoxA
33053           - Implemented handling of scrollbar visibility flags
33054
33055         * TextBoxBase.cs:
33056           - Switched scrollbars type to RichTextBoxScrollBars to support
33057             RichTextBox
33058           - Added tracking of canvas width/height
33059           - Switched scrollbars to be not selectable (to keep focus on text)
33060           - Added central CalculateDocument() method to handle all redraw
33061             requirements
33062           - Added ReadOnly support
33063           - Added WordWrap support
33064           - Fixed handling of Enter key (we now treat it as a DialogKey)
33065           - Fixed caret positioning when h or v scroll is not zero
33066           - Fixed placing/generation of vertical scrollbar
33067           - Added CalculateScrollBars() method to allow updating scrollbar
33068             limits and visibility
33069           - Fixed handling of horizontal scroll
33070           - Added handling of vertical scroll
33071           - Implemented auto-'jump' when caret moves to close to a left or
33072             right border and there is text to be scrolled into view (currently
33073             there's the potential for a stack overflow, until a bug in
33074             scrollbar is fixed)
33075
33076 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
33077         
33078         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
33079
33080 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
33081
33082         * Mime.cs:
33083         - added inodes.
33084         - return application/x-zerosize for files with size zero
33085           (if no extension pattern matches).
33086         - check matches collection for strings too.
33087         - return only the first mime type if the name value
33088           collection has more than one mime type.
33089
33090 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
33091         
33092         * PropertyGrid.cs: Cleaned up some TODOs
33093         * PropertyGridView.cs: Added support for UITypeEditors
33094
33095 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
33096         
33097         * DataGrid.cs: clears cached value
33098
33099 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
33100
33101         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
33102         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
33103         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
33104         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
33105         
33106 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
33107
33108         * ThemeWin32Classic.cs: fixes colour
33109
33110 2005-06-15  Peter Bartok  <pbartok@novell.com>
33111
33112         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
33113         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
33114         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
33115         * Control.cs: Added some MWFCategory and MWFDescription attributes
33116         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
33117
33118 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
33119
33120         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
33121         usage
33122
33123 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
33124
33125         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
33126         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
33127         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
33128         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
33129         * DataGrid.cs: default datagrid settings for Default Styles, fixes
33130         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
33131
33132 2005-06-13  Jackson Harper  <jackson@ximian.com>
33133
33134         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
33135         isn't printed when the user enables dropping. (X11 does accept
33136         drops).
33137         
33138 2005-06-13  Jackson Harper  <jackson@ximian.com>
33139
33140         * TreeView.cs: Remove some TODOS.
33141
33142 2005-06-13  Jackson Harper  <jackson@ximian.com>
33143
33144         * Form.cs: Hook into the mdi framework.
33145         * MdiClient.cs: Use the base control collections add method so
33146         parents get setup correctly. Set the default back colour and dock
33147         style.
33148         * MdiChildContext.cs: New class, this bad actor handles an
33149         instance of an MDI window. Right now there is only basic
33150         support. You can drag, close, and resize windows. Minimize and
33151         Maximize are partially implemented.
33152
33153 2005-06-13  Jackson Harper  <jackson@ximian.com>
33154
33155         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
33156         freaky when both vals are negative. NOTE: There are probably other
33157         places in XplatUIX11 that this needs to be done.
33158
33159 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
33160
33161         * DataGrid.cs: implement missing methods, move KeyboardNavigation
33162         * DataGridColumnStyle.cs: fixes signature
33163
33164 2005-06-12  Jackson Harper  <jackson@ximian.com>
33165
33166         * XplatUIX11.cs: Use sizing cursors similar to the ones on
33167         windows.
33168
33169 2005-06-11  Jackson Harper  <jackson@ximian.com>
33170
33171         * StatusBarPanel.cs: Signature cleanups. Implement
33172         BeginInit/EndInit.
33173
33174 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
33175
33176         * DataGridTextBoxColumn.cs: Honors aligment
33177         * GridColumnStylesCollection.cs: Contains is case unsensitive
33178         * GridTableStylesCollection.cs: several fixes
33179         * DataGridTableStyle.cs: default column creation
33180         * DataGridDrawingLogic.cs: fixes
33181         * CurrencyManager.cs: ListName property
33182         * DataGrid.cs: multiple styles support
33183         * DataGridColumnStyle.cs: fixes
33184         
33185
33186 2005-06-10  Peter Bartok  <pbartok@novell.com>
33187
33188         * Control.cs(Select): Moved SetFocus call to avoid potential
33189           loops if controls change the active control when getting focus
33190         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
33191           the up/down buttons
33192
33193 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
33194
33195         * ImageListConverter.cs: Implemented
33196
33197 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
33198
33199         * MonthCalendar.cs: Wired in NumericUpDown control for year
33200
33201 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
33202
33203         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
33204           DoubleClick events, since they are not meant to be fired.
33205
33206 2005-06-09  Peter Bartok  <pbartok@novell.com>
33207
33208         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
33209           Jonathan's standalone controls into MWF, implemented missing
33210           events, attributes and methods; added xxxAccessible classes
33211         * AccessibleObject.cs: Made fields internal so other classes
33212           can change them if needed
33213
33214 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
33215
33216         * UpDownBase.cs: Complete implementation
33217         * NumericUpDown.cs: Complete implementation
33218         * DomainUpDown.cs: Complete implementation
33219
33220 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
33221
33222         * DataGridTextBoxColumn.cs: drawing fixes
33223         * DataGridCell.cs: fixes ToString method to match MSNet
33224         * DataGridTableStyle.cs: fixes
33225         * DataGridBoolColumn.cs: fixes, drawing
33226         * DataGridDrawingLogic.cs: fixes, new methods
33227         * DataGridTextBox.cs: Keyboard and fixes
33228         * DataGrid.cs:
33229                 - Keyboard navigation
33230                 - Scrolling fixes
33231                 - Row selection (single, multiple, deletion, etc)
33232                 - Lots of fixes
33233         
33234 2005-06-07  Jackson Harper  <jackson@ximian.com>
33235
33236         * ThemeWin32Classic.cs: Clear the background area when drawing
33237         buttons.
33238
33239 2005-06-06  Peter Bartok  <pbartok@novell.com>
33240
33241         * ImageListStreamer.cs: Fixed signature for GetData
33242         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
33243         * ComboBox.cs:
33244           - Added missing ChildAccessibleObject class
33245           - Added missing OnXXXFocus overrides, switched to using those
33246             instead of the event handler
33247         * Control.cs:
33248           - Added Parent property for ControlAccessibleObject
33249           - Fixed signatures
33250           - Fixed attributes
33251           - Added ResetBindings()
33252         * ListBindingConverter.cs: Implemented some methods
33253         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
33254         * ImageList.cs: Implemented basic handle scheme, removed TODOs
33255         * ContainerControl.cs: Fixed signature, now subscribing to the
33256           ControlRemoved event instead of overriding the handler, LAMESPEC
33257         * CurrencyManager.cs: Added missing attribute
33258         * MonthCalendar.cs: Added missing properties
33259
33260 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
33261
33262         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
33263         
33264 2005-06-06  Gaurav Vaish and Ankit Jain
33265
33266         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
33267         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
33268         
33269 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
33270
33271         * Control.cs: fixes CreateParams Width / Height.
33272
33273 2005-06-05  Peter Bartok  <pbartok@novell.com>
33274
33275         * Win32DnD.cs: Removed compilation warnings
33276
33277 2005-06-05  Peter Bartok  <pbartok@novell.com>
33278
33279         * Control.cs (CreateParams): Since we don't know if one of the
33280           properties we use is overridden, lets make sure if we fail accessing
33281           we continue with a backup plan
33282
33283 2005-06-05  Peter Bartok  <pbartok@novell.com>
33284
33285         * Win32DnD.cs:
33286           - Removed debug output
33287           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
33288             struct
33289           - Plugged resource leak
33290         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
33291           MS size
33292
33293 2005-06-05  Peter Bartok  <pbartok@novell.com>
33294
33295         * XplatUIWin32.cs: Removed DnD code
33296         * Win32DnD.cs: Implemented drop source and drop target functionality
33297
33298 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33299
33300         * UpDownBase.cs: remove duplicate addition of event, enable some code
33301         that was commented out.
33302         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
33303         Validate input when a key is pressed. It works fine now for every
33304         combination of Hexadecimal. Only missing some drawing love when sharing
33305         space with other controls.
33306
33307 2005-06-04  Peter Bartok  <pbartok@novell.com>
33308
33309         * Control.cs:
33310           - We need to pass a window for DragDrop, so enable callback events
33311           - Added DnD callback events when being a DragSource
33312         * XplatUI.cs (StartDrag): Added window handle argument
33313         * XplatUIDriver.cs (StartDrag): Added window handle argument
33314         * QueryContinueDragEventArgs: Made fields internally accessible so
33315           drivers can set them
33316         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
33317           can set them
33318
33319 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
33320
33321         * DataGridTextBoxColumn.cs: column text editing
33322         * DataGridTableStyle.cs: Respect columns styles created by the user
33323         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
33324         * DataGridBoolColumn.cs: bool column editing
33325         * DataGrid.cs: fixes to scrolling, properties, etc
33326         * DataGridTextBox.cs: handle keyboard
33327         * DataGridColumnStyle.cs: fixes
33328
33329 2005-06-02  Jackson Harper  <jackson@ximian.com>
33330
33331         * ImageListStreamer.cs: Somewhat broken implementation of
33332         GetObjectData. The RLE needs some work to match MS properly.
33333
33334 2005-06-02  Jackson Harper  <jackson@ximian.com>
33335
33336         * X11Dnd.cs: Attempting to keep at least one file in MWF
33337         monostyled.
33338
33339 2005-06-02  Peter Bartok  <pbartok@novell.com>
33340
33341         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
33342           that way
33343
33344 2005-06-02  Peter Bartok  <pbartok@novell.com>
33345
33346         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
33347         * XplatUI.cs: Added DoDragDrop() method
33348         * XplatUIDriver.cs: Added DoDragDrop() method
33349
33350 2005-06-02  Jackson Harper  <jackson@ximian.com>
33351
33352         * Splitter.cs: Implement BorderStyle.
33353
33354 2005-06-02  Jackson Harper  <jackson@ximian.com>
33355
33356         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
33357         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
33358         X11 using XDND.
33359
33360 2005-06-02  Peter Bartok  <pbartok@novell.com>
33361
33362         * DataObject.cs:
33363           - Added Data setter
33364           - Fixed broken insertion code for SetData, now also
33365             overwrites any existing entry of the same format name
33366         * Hwnd.cs: Added list of pointers that automatically gets
33367           freed when the window is disposed
33368         * XplatUI.cs: Call driver initialization method when loading
33369           a driver
33370         * Control.cs:
33371           - OnDragLeave takes EventArgs, not DragEventArgs
33372           - Added setting of WS_EX_ACCEPTFILES style when dropping is
33373             supported
33374           - Forces style update when drop state changes
33375         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
33376           not perfect since we cannot (yet) call the IDataObject.GetData()
33377           method, we keep getting 0x80004005 error, dunno why)
33378
33379 2005-06-02  Peter Bartok  <pbartok@novell.com>
33380
33381         * DragEventArgs.cs: Make fields internal so we can cache the
33382           object and re-set the fields from XplatUI
33383
33384 2005-06-02  Jackson Harper  <jackson@ximian.com>
33385
33386         * Control.cs: Add some internal methods so the DnD subsystem can
33387         raise DnD events. Also call into the driver when AllowDrop is set.
33388         * XplatUI.cs:
33389         * XplatUIDriver.cs: New method for setting whether or not a window
33390         is allowed to accept drag and drop messages.
33391                 
33392 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
33393         
33394         * ScrollBar.cs: Make sure that values sent in Scroll events
33395         are always between Maximum and Minimum.
33396
33397 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
33398
33399         * Menu.cs: Call MenuChanged when menuitem visibility has been
33400         changed.
33401         * MenuItem.cs: Rebuild menu when item is (not) visible.
33402         * MainMenu.cs: MainMenu has special MenuChanged.
33403         * Theme.cs: Caption and FrameBorderSize are not fixed.
33404         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
33405         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
33406         * XplatUIX11.cs,
33407         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
33408         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
33409
33410 2005-05-30  Jackson Harper  <jackson@ximian.com>
33411
33412         * DataFormat.cs: We can't statically initialize this stuff because
33413         it calls into the xplatui and could create a loop. So we lazy init
33414         it.
33415
33416 2005-05-28  Jackson Harper  <jackson@ximian.com>
33417
33418         * Control.cs: Proper implementation of Product(Name/Version).
33419
33420 2005-05-27  Jackson Harper  <jackson@ximian.com>
33421
33422         * DataObject.cs: Dont crash if no data is found.
33423
33424 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
33425         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
33426                 as per status page, guessing it should be set to true
33427
33428 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
33429
33430         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
33431         * DataGridTableStyle.cs: set proper formatting text, def header text
33432         * ThemeWin32Classic.cs: new themable paramaters
33433         * DataGridBoolColumn.cs: paint check box, get data, fixes
33434         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
33435         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
33436         * DataGridColumnStyle.cs: fixes
33437         * Theme.cs: new themable paramaters
33438                 
33439 2005-05-26  Peter Bartok  <pbartok@novell.com>
33440
33441         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
33442
33443 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33444         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
33445
33446 2005-05-24  Peter Bartok  <pbartok@novell.com>
33447
33448         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
33449           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
33450           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
33451           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
33452           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
33453           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
33454           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
33455           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
33456           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
33457           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
33458           missing attributes, etc
33459         * DataGridPreferredColumnWidthTypeConverter.cs: Added
33460
33461 2005-05-24  Peter Bartok  <pbartok@novell.com>
33462
33463         * Help.cs: Added, implemented trivial functions, throws up MessageBox
33464           when user tries to get help
33465         * DataObject.cs, DataFormats.cs, LinkArea.cs,
33466           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
33467           to suppress warnings
33468         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
33469           avoid unreachable code warning
33470
33471 2005-05-20  Peter Bartok  <pbartok@novell.com>
33472
33473         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
33474
33475 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33476
33477         * DataGridTextBoxColumn.cs: Basic painting methods
33478         * DataGridTableStyle.cs: Set table style in the column
33479         * ThemeWin32Classic.cs: Use Theme for colors
33480         * DataGridDrawingLogic.cs: Implement more drawing
33481         * DataGrid.cs: drawing, theming, enhacements, fixes
33482         * DataGridColumnStyle.cs: fixes, drawing
33483         * Theme.cs: theming for Datagrid
33484
33485 2005-05-20  Peter Bartok  <pbartok@novell.com>
33486
33487         * Cursor.cs: Implemented GetObjectData() method
33488
33489 2005-05-20  Peter Bartok  <pbartok@novell.com>
33490
33491         * Cursors.cs: Added setting of cursor name
33492         * Cursor.cs:
33493           - Implemented constructors
33494           - Implemented Draw and DrawStretched
33495           - Implemented Current property
33496           - Implemented == and != operators
33497           - Implemented Dispose()
33498           - Implemented ToString
33499           - Added missing attributes
33500         * XplatUIX11.cs:
33501           - Added missing reset for OverrideCursor when DoEvents is called
33502           - Fixed creation of cursor, logic was wrong
33503         * XplatUIWin32.cs:
33504           - Added missing reset for OverrideCursor when DoEvents is called
33505           - Fixed creation of cursor, bit arrays were swapped
33506         * Clipboard.cs: Removed obsolete MonoTODO attribute
33507
33508 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33509
33510         * ComboBox.cs: fixes OnSelectedItemChanged
33511         * ControlBindingsCollection.cs: fixes item range check
33512
33513 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33514
33515         * UpDownBase.cs:
33516                 - Calc preferred height properly
33517                 - Implement missing properties
33518                 
33519         * NumericUpDown.cs: Implement missing events
33520
33521 2005-05-19  Jackson Harper  <jackson@ximian.com>
33522
33523         * TabControl.cs: New method that resizes the tab pages before
33524         redrawing them. This as needed as the control is double buffered
33525         and sizing will not be recalculated unless ResizeTabPages is
33526         called.
33527         * TabPage.cs: Set base.Text instead of Text in the constructor so
33528         that UpdateOwner does not get called. Use the new Redraw method of
33529         TabControl instead of Refresh so the sizing is recalculated.
33530         * ThemeWin32Classic.cs: Draw the text for button tabs.
33531
33532 2005-05-19  Jackson Harper  <jackson@ximian.com>
33533
33534         * Control.cs: Paint control background images. Fix typo where
33535         PaintControlBackground was not getting called correctly.
33536
33537 2005-05-19  Peter Bartok  <pbartok@novell.com>
33538
33539         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
33540           I can investigate, apparently I broke FileDialog
33541
33542 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
33543
33544         * AxHost.cs: Some simple properties.
33545         * Control.cs: window must be accessible after ctor.
33546         * Form.cs: Added TransparencyKey property.
33547         * TextBoxBase.cs: Implemented Clear. Text property can be null.
33548         * XplatUIWin32.cs: SetBorderStyle implemented.
33549
33550 2005-05-18  Peter Bartok  <pbartok@novell.com>
33551
33552         * DataObject.cs: Entries are not global but particular to the
33553           DataObject, now it behaves that way
33554         * XplatUIWin32.cs: Implemented Clipboard methods
33555         * Clipboard.cs: Implemented
33556         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
33557         * XplatUIOSX.cs: Updated to final clipboard prototypes
33558         * XplatUIX11.cs: Implemented Clipboard methods
33559         * XplatUIDriver.cs: Updated to final clipboard prototypes
33560         * XplatUIStructs.cs:
33561           - Added BITMAPINFOHEADER struct
33562           - Added ClipboardFormats enum
33563         * X11Structs.cs:
33564           - Added ClipboardStruct
33565           - Added Atom enum items for clipboard types
33566           - Fixed atom types for Selection event structures
33567         * DataFormats.cs:
33568           - Added internal properties and methods for drivers to enumerate
33569             all known formats
33570           - Switched initialization method to allow drivers to assign their
33571             own IDs even for the MS predefined clipboard IDs
33572         * XplatUI.cs: Updated to final clipboard interface
33573
33574 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33575         * PropertyGridView.cs: Fixed compiler warnings.
33576
33577 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33578         * PropertyGrid.cs: Added some event calls
33579         * PropertyGridView.cs: Change drawing code to use double buffering
33580         * PropertyGridTextBox.cs: Changed Text property name
33581         * GridItem.cs: Added Bounds property.
33582         * GridEntry.cs: Added Bounds property.
33583
33584 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
33585
33586         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
33587         since GetType() may not return the correct type if the object is
33588         a remoting proxy.
33589
33590 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
33591
33592         * TreeNodeCollection.cs: fixes get/set item ranges
33593         
33594 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
33595
33596         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
33597                 
33598 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
33599
33600         * ComboBox.cs: Fix item range comparation
33601         * ListView.cs: Fix item range comparation
33602
33603 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
33604
33605         * FontDialog.cs:
33606           - Clear example panel when OnPaint is called
33607           - Better solution for displaying the example panel text
33608           - Select default indexes in the ListBoxes
33609
33610 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
33611
33612         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
33613
33614 2005-05-11  Peter Bartok  <pbartok@novell.com>
33615
33616         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
33617         * SelectionRangeConverter.cs: Implemented
33618         * PropertyGrid.cs: Fixed attribute value
33619         * Control.cs:
33620           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
33621           - Added Sebastien Pouliot's CAS Stack Propagation fixes
33622         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
33623           that's common to all drivers. First methods to go there are
33624           Sebastien Pouliot's CAS Stack Propagation helper methods
33625         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
33626           Sebastien Pouliot for CAS Stack Propagation
33627
33628 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
33629
33630         * OSXStructs.cs:
33631           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
33632
33633 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
33634
33635         * DataGridTextBoxColumn.cs: fixed some members
33636         * GridColumnStylesCollection.cs: indexed column is case insensitive
33637         * DataGridTableStyle.cs: fixes
33638         * ThemeWin32Classic.cs: add new theme parameter
33639         * Theme.cs: add new theme parameter
33640         * DataGridDrawingLogic.cs: Datagrid's drawing logic
33641         * DataGrid.cs: fixes, new internal properties, etc.
33642         * DataGridColumnStyle.cs: allows to set grid value
33643         *
33644
33645 2005-05-10  Peter Bartok  <pbartok@novell.com>
33646
33647         * AccessibleObject.cs:
33648           - Removed MonoTODO attribute on help, method is correct
33649           - Fixed Bounds property
33650         * AxHost.cs: Moved MonoTODO
33651         * ButtonBase.cs: Now setting AccessibleObject properties
33652         * RadioButton.cs: Setting proper AccessibleObject role
33653         * CheckBox.cs: Setting proper AccessibleObject role
33654         * ControlBindingsCollection.cs: Added properties, methods and attributes
33655         * DataFormats.cs: Fixed awkward internal API, and changed to enable
33656           userdefined DataFormats.Format items as well
33657         * ListControl.cs: Removed data_member from the public eye
33658         * OpenFileDialog.cs:
33659           - Made class sealed
33660           - Added missing attributes
33661         * SaveFileDialog.cs: Added missing attributes
33662         * ImageListStreamer.cs: Fixed code that caused warnings
33663         * LinkLabel.cs: Removed unreachable code
33664         * TreeView.cs: Fixed code that caused warnings
33665         * PropertyGridView.cs: Fixed code that caused warnings
33666         * GridColumnStylesCollection.cs: Added missing attributes
33667         * GridTableStylesCollection: Added missing attribute
33668         * PropertyManager: Added .ctor
33669         * SecurityIDType: Added
33670         * DataObject.cs: Implemented class
33671         * LinkArea.cs: Added missing attribute
33672
33673 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
33674
33675         * RadioButton.cs: call base method to allow to fire OnClick event
33676         * UpDownBase.cs: OnMouseUp call base method
33677         * CheckedListBox.cs: call base method before returning
33678         * TrackBar.cs: call base method before returning
33679         
33680
33681 2005-05-10  Peter Bartok  <pbartok@novell.com>
33682
33683         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
33684           for messages
33685
33686 2005-05-10  Peter Bartok  <pbartok@novell.com>
33687
33688         * DataFormats.cs: Implemented
33689         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
33690           XplatUIX11.cs: Added Clipboard APIs
33691         * XplatUIWin32.cs: Implemented Clipboard APIs
33692         * FolderBrowserDialog.cs: Added missing event, attributes
33693
33694 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
33695
33696         * CheckBox.cs: call base method to allow to fire OnClick event
33697
33698 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
33699
33700         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
33701
33702 2005-05-06  Peter Bartok  <pbartok@novell.com>
33703
33704         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
33705         * Screen.cs: Implemented
33706         * HelpNavigator.cs: Added
33707         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
33708           property
33709         * HelpProvider.cs: Implemented all we can do until we have a CHM
33710           help library (which means that "What's This" does work now)
33711
33712 2005-05-06  Jackson Harper  <jackson@ximian.com>
33713
33714         * XplatUIX11.cs: Fix waking up the main loop.
33715                 
33716 2005-05-05  Peter Bartok  <pbartok@novell.com>
33717
33718         * XplatUI.cs: Updated revision
33719         * Form.cs: Removed enless loop
33720         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
33721         * Label.cs (OnPaint): Added call to base.OnPaint()
33722         * ToolTip.cs: Made ToolTipWindow reusable for other controls
33723         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
33724         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
33725         * AxHost.cs: Added
33726         * ButtonBase.cs: Moved base.OnPaint() call to end of method
33727         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
33728           to ToolTip.ToolTipWindow for drawing and size methods; this allows
33729           reuse of ToolTipWindow by other controls
33730         * SizeGrip.cs: Moved base.OnPaint() call to end of method
33731         * XplatUIX11.cs: Now clipping drawing area (experimental)
33732         * PictureBox.cs: Moved base.OnPaint() call to end of method
33733         * Theme.cs: Fixed ToolTip abstracts to match new format
33734         * ErrorProvider.cs: Implemented
33735
33736 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
33737
33738         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
33739         * LinkLabel.cs:
33740                 - Adds cursors
33741                 - Handles focus
33742                 - Implements LinkBehavior
33743                 - Fixes many issues
33744
33745 2005-05-03  Jackson Harper  <jackson@ximian.com>
33746
33747         * ListView.cs: Calculate the scrollbar positioning on resize and
33748         paint, so they get put in the correct place.
33749
33750 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
33751
33752         * ColorDialogs.cs: The small color panels are now handled by
33753           SmallColorControl. This fixes drawing of the focus rectangle
33754           and adds a 3D border.
33755
33756 2005-05-03  Peter Bartok  <pbartok@novell.com>
33757
33758         * Control.cs: Modified version of Jonathan Chamber's fix for
33759           double-buffering
33760
33761 2005-05-03  Jackson Harper  <jackson@ximian.com>
33762
33763         * ListView.cs: Remove redraw variable. Control now handles whether
33764         or not a redraw needs to be done, and will only raise the paint
33765         event if redrawing is needed.
33766
33767 2005-05-03  Jackson Harper  <jackson@ximian.com>
33768
33769         * Splitter.cs: No decorations for the splitter form. Cache the
33770         hatch brush.
33771
33772 2005-05-03  Jackson Harper  <jackson@ximian.com>
33773
33774         * TreeView.cs: Use dashed lines to connect nodes. Use the
33775         ControlPaint method for drawing the focus rect instead of doing
33776         that in treeview.
33777
33778 2005-05-02  Peter Bartok  <pbartok@novell.com>
33779
33780         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
33781
33782 2005-04-29  Jackson Harper  <jackson@ximian.com>
33783
33784         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
33785         entire image buffer. Just clear the clipping rectangle.
33786
33787 2005-04-29  Jackson Harper  <jackson@ximian.com>
33788
33789         * ThemeWin32Classic.cs: Don't draw list view items that are
33790         outside the clipping rectangle.
33791
33792 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
33793
33794         * ListBox.cs: added horizontal item scroll
33795
33796 2005-04-29  Jackson Harper  <jackson@ximian.com>
33797
33798         * ThemeWin32Classic.cs: Remove some old debug code that was
33799         causing flicker with the new double buffering code.
33800
33801 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
33802
33803         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
33804         behave like combobox and comboboxlist (still not sure if this is
33805         correct though).
33806
33807 2005-04-28  Jackson Harper  <jackson@ximian.com>
33808
33809         * ThemeWin32Classic.cs: Don't fill the middle of progress
33810         bars. This fills areas outside of the clip bounds that don't need
33811         to be filled.
33812
33813 2005-04-28  Jackson Harper  <jackson@ximian.com>
33814
33815         * Control.cs: Don't expose functionality to touch the image buffers.
33816         * ProgressBar.cs:
33817         * ListView.cs: We do not need to (and no longer can) manipulate
33818         the image buffers directly. All of this is handled by Control.
33819
33820 2005-04-28  Peter Bartok  <pbartok@novell.com>
33821
33822         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
33823           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
33824           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
33825
33826 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
33827
33828         * Combobox:
33829                 - Adjust control's height for non-simple comboboxes (bug fix)
33830                 - Remove dead code
33831         * MenuAPI.cs: remove unused var
33832         * ScrollBar.cs: remove unsed var
33833                  
33834         * ListBox.cs: unselect items when clearing
33835
33836 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
33837
33838         * ListControl.cs: honors OnPositionChanged and default Selected Item
33839         * ListBox.cs: unselect items when clearing
33840
33841 2005-04-27  Jackson Harper  <jackson@ximian.com>
33842
33843         * X11Keyboard.cs: Initialize a default keyboard and give a warning
33844         if a "correct" keyboard is not found. This will make us not crash,
33845         but might give some users bad keyboard layouts...seems to be the
33846         same thing rewind does.
33847
33848 2005-04-27  Jackson Harper  <jackson@ximian.com>
33849
33850         * BindingManagerBase.cs: Attach the current/position changed
33851         handlers to their respective events.
33852
33853 2005-04-27  Jackson Harper  <jackson@ximian.com>
33854
33855         * Control.cs: Make sure that the first WM_PAINT does a full draw,
33856         not just a blit.
33857         * ThemeWin32Classic.cs: Don't fill the background for picture
33858         boxes. This could overright user drawing.
33859         * ComboBox.cs: Just fill the clipping rect not the entire client
33860         rect when drawing the background. This prevents pieces of the
33861         image buffer from getting overwritten and is theoretically faster.
33862
33863 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
33864
33865         * ComboBox.cs: Databinding support fixes, fire missing events
33866         * ListControl.cs: implement missing methods and properties, fixes
33867         * ThemeWin32Classic.cs: Databiding support on Drawing
33868         * CheckedListBox.cs: Databinding support fixes, fire missing events
33869         * ListBox.cs: Databinding support fixes, fire missing events
33870         
33871 2005-04-25  Peter Bartok  <pbartok@novell.com>
33872
33873         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
33874
33875 2005-04-25  Jackson Harper  <jackson@ximian.com>
33876
33877         * TreeView.cs: Use the horizontal scrollbars height not width when
33878         determining how much of the client area is available.
33879
33880 2005-04-25  Jackson Harper  <jackson@ximian.com>
33881
33882         * Control.cs: Double buffering is handled differently now. As per
33883         the spec, the extra buffer is created in the WM_PAINT message and
33884         passed down to the control's drawing code.
33885         * GroupBox.cs:
33886         * Label.cs:
33887         * CheckBox.cs:
33888         * ProgressBar.cs:
33889         * RadioButton.cs:
33890         * ColorDialog.cs:
33891         * ComboBox.cs:
33892         * PropertyGridView.cs:
33893         * UpDownBase.cs:
33894         * MessageBox.cs:
33895         * MenuAPI.cs:
33896         * ListView.cs:
33897         * ButtonBase.cs:
33898         * SizeGrip.cs:
33899         * ScrollBar.cs:
33900         * ListBox.cs:
33901         * TrackBar.cs:
33902         * ToolBar.cs:
33903         * PictureBox.cs:
33904         * DateTimePicker.cs:
33905         * StatusBar.cs:
33906         * TreeView.cs: Update to new double buffering system.
33907         * MonthCalendar.cs: Uncomment block, as Capture is now
33908         working. Update to new double buffering
33909         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
33910         * PaintEventArgs.cs: New internal method allows us to set the
33911         graphics object. This is used for double buffering.
33912         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
33913         rectangle. The internal paint_area var has been removed from
33914         StatusBar. The clipping rect should be used instead.
33915         * Theme.cs: Give the PictureBox drawing method a clipping rect.
33916         * TabPage.cs: The RefreshTabs method was removed, so just call the
33917         tab controls Refresh method now.
33918         * TabControl.cs: Update to new double buffering. Make sure the
33919         handle is created before sizing the tab pages, otherwise we will
33920         get stuck in a loop.
33921
33922 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
33923
33924         * LinkLabel.cs: Fix typo, bug #74719; patch
33925           from Borja Sanchez Zamorano
33926
33927 2005-04-22  Jackson Harper  <jackson@ximian.com>
33928
33929         * TreeNode.cs: Implement Handle stuff.
33930         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
33931
33932 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
33933
33934         * DataGridTextBoxColumn.cs: call base constructors, fixes
33935         * GridColumnStylesCollection.cs: missing events, methods, and functionality
33936         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
33937         * DataGridTableStyle.cs: implements create default column styles
33938         * DataGridBoolColumn.cs: which types can handle
33939         * DataGrid.cs: missing methods, fixes, new functionality
33940         * DataGridColumnStyle.cs: fixes
33941
33942 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
33943         * FolderBrowserDialog.cs:
33944         - Use a thread to fill the TreeView
33945         - Adjusted some sizes
33946
33947 2005-04-19  Peter Bartok  <pbartok@novell.com>
33948
33949         * LinkLabel.cs: (Re-)create the pieces when setting the Text
33950           property. Fixes #74360.
33951
33952 2005-04-19  Jackson Harper  <jackson@ximian.com>
33953
33954         * XEventQueue.cs: Lock when getting the lockqueue size.
33955         * PictureBox.cs: Call base OnPaint
33956         
33957 2005-04-19  Peter Bartok  <pbartok@novell.com>
33958
33959         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
33960           messages were no longer being processed (this broke BeginInvoke)
33961
33962           
33963 2005-04-18  Jackson Harper  <jackson@ximian.com>
33964
33965         * TreeView.cs: buglet that caused node images to get drawn
33966         regardless of whether or not they were in the clipping rectangle.
33967
33968 2005-04-18  Jackson Harper  <jackson@ximian.com>
33969
33970         * CurrencyManager.cs: There are four rules for GetItemProperties:
33971         - If the type is an array use the element type of the array
33972         - If the type is a typed list, use the type
33973         - If the list contains an Item property that is not an object, use
33974         that property
33975         - use the first element of the list if there are any elements in
33976         the list.
33977         
33978 2005-04-17  Jackson Harper  <jackson@ximian.oom>
33979
33980         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
33981         click. This handles offsets for scrolling properly and reduces
33982         memory. Also fixed GetNode to not offset now that TopNode works
33983         properly.
33984         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
33985         
33986 2005-04-17  Jackson Harper  <jackson@ximian.com>
33987
33988         * CursorConverter.cs: Initial implementation.
33989
33990 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
33991
33992         * ListControl.cs: work towards complex data binding support on ListControl
33993         * CurrencyManager.cs: work towards complex data binding support on ListControl
33994         * ListBox.cs: work towards complex data binding support on ListControl
33995
33996
33997 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
33998
33999         * GridTableStylesCollection.cs: fixes name and constructor
34000         * DataGridTableStyle.cs: fixes
34001         * DataGridBoolColumn.cs: fixes names and constructors
34002         * DataGrid.cs: define methods and properties. Some init implementations
34003         * DataGridCell.cs: define methods and properties. Some init implementations
34004         * GridTablesFactory.cs: Define methods and properties
34005
34006 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
34007
34008         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
34009         graphics port changes.  We still want the coordinates in global screen
34010         coordinates.
34011
34012 2005-04-14  Jackson Harper  <jackson@ximian.com>
34013
34014         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
34015         check plus minus or checkbox clicks unless those features are enabled.
34016
34017 2005-04-14  Jackson Harper  <jackson@ximian.com>
34018
34019         * TreeView.cs: Add methods for setting the top and bottom visible
34020         nodes. TreeNode::EnsureVisible uses these methods.
34021         * TreeNode.cs: Implement EnsureVisible
34022
34023 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
34024
34025         * Form.cs: Pospone menu assignation if the window has not been created yet
34026         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
34027         size and position
34028
34029 2005-04-12  Jackson Harper  <jackson@ximian.com>
34030
34031         * TreeView.cs: Set the TopNode properly when scrolling
34032         occurs. This has the added benifit of reducing the amount of
34033         walking that needs to be done when drawing. Also removed an old
34034         misleading TODO.
34035         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
34036         
34037 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
34038
34039         * Timer.cs: fixes interval setting when the timer is already enabled
34040         
34041 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
34042
34043         * FolderBrowserDialog.cs: First approach
34044
34045 2005-04-09  Peter Bartok  <pbartok@novell.com>
34046
34047         * FolderBrowserDialog: Added
34048
34049 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
34050
34051         * LinkLabel.cs: move drawing code into the theme
34052         * ThemeWin32Classic.cs: drawing code and painting background bugfix
34053         * Theme.cs: define DrawLinkLabel method
34054
34055 2005-04-05  Jackson Harper  <jackson@ximian.com>
34056
34057         * BindingContext.cs: Use weak references so these bad actors don't
34058         stay alive longer then they need to.
34059
34060 2005-04-05  Jackson Harper  <jackson@ximian.com>
34061
34062         * ListControl.cs: Basic implementation of complex databinding.
34063         * ComboBox.cs:
34064         * ListBox.cs: Add calls to ListControl databinding methods.
34065
34066 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
34067
34068         * FileDialog.cs:
34069           - Don't change PopupButtonState to Normal when the
34070             PopupButton gets pressed several times.
34071           - Renamed ButtonPanel to PopupButtonPanel
34072
34073 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
34074
34075         * ColorDialog.cs: Use cached objects instead of creating them
34076         * LinkLabel.cs: Use cached objects instead of creating them
34077         * Splitter.cs: Use cached objects instead of creating them
34078         * FontDialog.cs: Use cached objects instead of creating them
34079         * PropertyGridView.cs: Use cached objects instead of creating them
34080         * MessageBox.cs: Use cached objects instead of creating them
34081         * FileDialog.cs: Use cached objects instead of creating them
34082         * ThemeWin32Classic.cs: Use cached objects instead of creating them
34083         * TreeView.cs: Use cached objects instead of creating them
34084         
34085 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
34086
34087         * Control.cs: use Equals to compare the font since no == op
34088         * ScrollBar.cs: use Equals to compare the font since no == op
34089
34090 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
34091
34092         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
34093
34094 2005-04-01  Jackson Harper  <jackson@ximian.com>
34095
34096         * Binding.cs: Implement IsBinding.
34097         * BindingManagerBase.cs:
34098         * PropertyManager.cs:
34099         * CurrencyManager.cs: Add IsSuspended property.
34100
34101 2005-04-01  Jackson Harper  <jackson@ximian.com>
34102
34103         * Binding.cs: Had some IsAssignableFrom calls backwards.
34104
34105 2005-04-01  Jackson Harper  <jackson@ximian.com>
34106
34107         * Binding.cs: Handle null data members when pulling data.
34108         * PropertyManager.cs: Handle the data member being a property that
34109         does not exist.
34110
34111 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
34112
34113         * DataGridTextBoxColumn.cs: fixes signature
34114         * DataGrid.cs: calls right constructor
34115
34116 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
34117
34118         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
34119         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
34120         * GridTableStylesCollection.cs: implements GridTableStylesCollection
34121         * DataGridTableStyle.cs: implements DataGridTableStyle
34122         * DataGridBoolColumn.cs: implements DataGridBoolColumn
34123         * DataGridTextBox.cs: implements DataGridTextBox
34124         * DataGridColumnStyle.cs: implements DataGridColumnStyle
34125
34126 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
34127
34128         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
34129
34130 2005-03-29  Peter Bartok  <pbartok@novell.com>
34131
34132         * Application.cs:
34133           - Properly implemented CompanyName property
34134           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
34135             returns a path that includes CompanyName, ProductName and
34136             Version (fixes bug #70330)
34137
34138 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
34139
34140         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
34141           fixes bug #72588.
34142
34143 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
34144
34145         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
34146         
34147           - Added ReadOnly CheckBox
34148           - Further refactoring: moved some code from Open-/SaveFileDialog
34149             to FileDialog
34150
34151 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
34152
34153         * OpenFileDialog.cs: Fixed CheckFileExists
34154         * FileDialog.cs:
34155           Moved FileView and DirComboBox outside FileDialog class.
34156           They can now be used outside FileDialog
34157
34158 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
34159
34160         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
34161         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
34162
34163 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
34164
34165         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34166           - Added missing CreatePrompt property in SaveDialog
34167           - Overall SaveDialog handling should be better now
34168           - Added non standard ShowHiddenFiles property
34169           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
34170           - Added InitialDirectory and RestoreDirectory support
34171
34172 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
34173
34174         * FileDialog.cs: Made dirComboBox usable
34175
34176 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
34177
34178         * FileDialog.cs: Added Filter support (case sensitiv)
34179
34180 2005-03-24  Jackson Harper  <jackson@ximian.com>
34181
34182         * TabControl.cs: Need a couple more pixels for the lines.
34183
34184 2005-03-23  Jackson Harper  <jackson@ximian.com>
34185
34186         * TabControl.cs: Give the tab page focus when it is selected.
34187
34188 2005-03-23  Jackson Harper  <jackson@ximian.com>
34189
34190         * TabControl.cs: Account for the drawing of tabs borders when
34191         invalidating. If the slider was clicked dont do click detection on
34192         the tabs.
34193
34194 2005-03-23  Jackson Harper  <jackson@ximian.com>
34195
34196         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
34197
34198 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
34199
34200         * CategoryGridEntry.cs: Added
34201         * GridItem.cs: Added helper properties
34202         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
34203         * GridEntry.cs: Updated code for collection
34204         * PropertyGrid.cs: Cleaned up some formatting
34205         * PropertyGridView.cs: Added drop down functionality for enums.
34206         * GridItemCollection.cs: Added enumerator logic
34207         * PropertyGridEntry.cs: Added
34208
34209 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
34210
34211         * FileDialog.cs:
34212           - Removed unnecessary commented code
34213           - Fixed handling for entering the filename manually in the combobox
34214
34215 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
34216
34217         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
34218
34219 2005-03-18  Peter Bartok  <pbartok@novell.com>
34220
34221         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
34222           them being touching the border
34223
34224 2005-03-18  Peter Bartok  <pbartok@novell.com>
34225
34226         * TextControl.cs: Quick hack to center text better
34227
34228 2005-03-18  Peter Bartok  <pbartok@novell.com>
34229
34230         * ControlPaint.cs:
34231           - Don't throw NotImplemented exceptions, just print a notice once
34232             instead (requested by Miguel). This makes running existing SWF
34233             apps a bit easier
34234         * Control.cs:
34235           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
34236           - Added context menu trigger on right click
34237         * Panel.cs: Trigger invalidate on resize
34238         * StatusBar.cs:
34239           - Removed old double-buffer drawing
34240           - Added ResizeRedraw style to force proper update of statusbar
34241         * ListView.cs:
34242           - Removed debug output
34243         * ThemeWin32Classic.cs:
34244           - Fixed drawing of status bar, now draws Text property if there
34245             are no defined panels
34246
34247 2005-03-18  Jackson Harper  <jackson@ximian.com>
34248
34249         * ImageList.cs: When the image stream is set pull all the images
34250         from it.
34251         * ImageListStreamer.cs: Implement reading image list streams.
34252
34253 2005-03-18  Peter Bartok  <pbartok@novell.com>
34254
34255         * ThemeWin32Classic.cs (DrawPictureBox):
34256           - Fixed calculations for centered drawing
34257           - Fixed drawing for normal mode, not scaling the image on normal
34258
34259 2005-03-18  Peter Bartok  <pbartok@novell.com>
34260
34261         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
34262           textbox
34263         * FileDialog.cs:
34264           - Made Open/Save button the accept button for FileDialog
34265           - Tied the cancel button to the IButtonControl cancel button
34266           - Save/Open now properly builds the pathname
34267           - Now handles user-entered text
34268           - Preventing crash on right-click if no item is selected
34269           - Fixed Text property, now uses contents of textbox
34270           - Fixed SelectedText property, now just returns the text part that
34271             is selected in the text box
34272
34273 2005-03-18  Jackson Harper  <jackson@ximian.com>
34274
34275         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
34276         rect, make sure to de-adjust the interior rect after drawing the
34277         tab text.
34278
34279 2005-03-18  Peter Bartok  <pbartok@novell.com>
34280
34281         * MenuAPI.cs: Remove menu *before* executing selected action to
34282           prevent the menu from 'hanging around'
34283           
34284 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
34285
34286         * XplatUIOSX.cs: Implemented WorkingArea property
34287
34288 2005-03-17  Peter Bartok  <pbartok@novell.com>
34289
34290         * XplatUIX11.cs: Fixed menu coord calculations
34291         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
34292           for calculating offsets
34293
34294 2005-03-17  Peter Bartok  <pbartok@novell.com>
34295
34296         * Hwnd.cs: Do not consider menu presence for default client
34297           rectangle location/size
34298         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
34299           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
34300           translation functions
34301         * FileDialog.cs: Fixed (what I presume is a) typo
34302
34303 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
34304
34305         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
34306           X access (avoids X-Async errors)
34307
34308 2005-03-16  Jackson Harper  <jackson@ximian.com>
34309
34310         * TabControl.cs: Raise the SelectedIndexChanged event.
34311
34312 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
34313
34314         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34315           - Removed vertical ToolBar and replaced it with a custom panel
34316             (desktop and home button already work)
34317           - Added Help button (some controls get resized or relocated then)
34318           - Draw correct text depending on Open or Save.
34319           - Fixed some typos...
34320
34321 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
34322
34323         * ScrollBar.cs:
34324           - Only change Maximum and Minimum when need it (bug fix)
34325
34326 2005-03-15  Peter Bartok  <pbartok@novell.com>
34327
34328         * Form.cs: Use Handle for icon, to trigger creation if
34329           the window does not yet exist
34330         * Control.cs:
34331           - CanSelect: Slight performance improvement
34332           - Focus(): Preventing possible recursion
34333           - Invalidate(): Removed ControlStyle based clear flag setting
34334           - WM_PAINT: fixed logic for calling OnPaintBackground
34335           - WM_ERASEBKGND: Fixed logic, added call to new driver method
34336             EraseWindowBackground if the control doesn't paint background
34337         * XplatUIWin32.cs:
34338           - Moved EraseWindowBackground() method to internal methods
34339           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
34340             is sent via SendMessage on BeginPaint call on Win32
34341         * XplatUIX11.cs:
34342           - Added EraseWindowBackground() method
34343           - No longer sends WM_ERASEBKGND on .Expose, but on call to
34344             PaintEventStart, which more closely matches Win32 behaviour
34345           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
34346           - Fixed SetFocus() to properly deal with client and whole windows
34347         * Hwnd.cs: Added ErasePending property
34348         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
34349         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
34350
34351 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
34352
34353         * XplatUIOSX.cs:
34354           - Fix hard loop when timers exist.
34355           - Fix bugs with middle and right click for 3 button mice.
34356
34357 2005-03-11  Peter Bartok  <pbartok@novell.com>
34358
34359         * XplatUIX11.cs:
34360           - get_WorkingArea: Need to call X directly, GetWindowPos only
34361             returns cached data now
34362           - Added sanity check to GetWindowPos hwnd usage
34363
34364 2005-03-11  Jackson Harper  <jackson@ximian.com>
34365
34366         * BindingManagerBase.cs: This method isn't used anymore as
34367         PullData now updates the data in the control.
34368
34369 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
34370
34371         * Form.cs: fixes menu drawing on X11
34372         * MenuAPI.cs:  fixes menu drawing on X11
34373
34374 2005-03-11  Peter Bartok  <pbartok@novell.com>
34375
34376         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
34377           from Jonathan Gilbert; should fix bug #73606
34378         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
34379           in Screen coordinates. Thanks, Jordi.
34380         * Form.cs: Added missing attribute
34381
34382 2005-03-11  Peter Bartok  <pbartok@novell.com>
34383
34384         * Form.cs:
34385           - Rudimentary Mdi support
34386           - Removed outdated FormParent code
34387           - Implemented lots of missing properties and methods, still missing
34388             transparency support
34389           - Added missing attributes
34390           - Implemented support for MaximumBounds
34391           - Added firing of various events
34392         * XplatUI.cs: Added SetIcon() method
34393         * XplatUIDriver.cs: Added SetIcon() abstract
34394         * XplatUIOSX.cs: Stubbed out SetIcon() method
34395         * XplatUIX11.cs:
34396           - Implemented SetIcon() support
34397           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
34398           - Switched to unix line endings
34399         * XplatUIWin32.cs:
34400           - Made POINT internal so for can access it as part of MINMAX
34401           - Implemented SetIcon() support
34402           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
34403             native Mdi support again, might have to go managed)
34404         * Control.cs: Now fires the StyleChanged event
34405         * MdiClient.cs: Added; still mostly empty
34406
34407 2005-03-10  Peter Bartok  <pbartok@novell.com>
34408
34409         * SaveFileDialog.cs: Added emtpy file
34410
34411 2005-03-08  Peter Bartok  <pbartok@novell.com>
34412
34413         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
34414           in turn triggers OnCreateContro) when creating a handle for the
34415           first time.
34416         * TextControl.cs: Fixed endless loop in certain cases when
34417           replacing the current selection
34418
34419 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
34420
34421         * ScrollBar.cs:
34422           - Honors NewValue changes in Scroll events allowing apps to change it
34423           - Adds First and Last Scroll events
34424           - Fixes Thumb events
34425
34426 2005-03-07  Peter Bartok  <pbartok@novell.com>
34427
34428         * Hwnd.cs: Added DefaultClientRectangle property
34429         * XplatUI.cs: Now using the X11 driver Where() method, which provides
34430           more detailed debug information
34431         * XplatUIX11.cs:
34432           - Fixed size-change feedback loop, where we would pull an old size
34433             off the queue and mistakenly change our window's size to an
34434             earlier value
34435           - Now compressing ConfigureNotify events, to reduce looping and
34436             redraw issues
34437         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
34438           is called
34439
34440 2005-03-07  Jackson Harper  <jackson@ximian.com>
34441
34442         * Binding.cs: Push data pushes from data -> property. Check if the
34443         property is readonly when attempting to set it.
34444
34445 2005-03-07  Jackson Harper  <jackson@ximian.com>
34446
34447         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
34448         instead of IsSubclassOf. Pulling data now sets the value on the
34449         control.
34450         * PropertyManager.cs:
34451         * CurrencyManager.cs: Just need to pull data when updating now,
34452         because PullData will set the value on the control.
34453
34454 2005-03-04  Jackson Harper  <jackson@ximian.com>
34455
34456         * Binding.cs: Implement data type parsing and converting on pulled
34457         data. TODO: Are there more ways the data can be converted?
34458
34459 2005-03-04  Jackson Harper  <jackson@ximian.com>
34460
34461         * Binding.cs: Support <Property>IsNull checks. Also bind to the
34462         controls Validating method so we can repull the data when the
34463         control loses focus.
34464
34465 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
34466
34467         * ColumnHeader.cs:
34468           - Fixes null string format
34469           
34470         * ListView.cs:
34471           - Adds enum type checks
34472           - Fixes redrawing and recalc need after changing some properties
34473           - Fixes on focus_item set after the event
34474           - Fixes adding columns after the control has been created
34475           
34476         * ThemeWin32Classic.cs:
34477           - Fixes CheckBox focus rectangle
34478           - Fixes ColumnHeader drawing
34479
34480
34481 2005-03-03  Jackson Harper  <jackson@ximian.com>
34482
34483         * Binding.cs: Bind to <Property>Changed events so we can detect
34484         when properties are changed and update the data.
34485
34486 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
34487
34488         * ImageList.cs:
34489           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
34490           - Fixes ImageList constructor with ImageList container
34491           - Fixes image scaling (wrong parameters at DrawImage)
34492
34493 2005-02-02  Jackson Harper  <jackson@ximian.com>
34494
34495         * Binding.cs: Make property searches case-insensitive. Eliminate
34496         some duplicated code.
34497
34498 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
34499
34500         * ComboBox.cs:
34501                 - Handle focus event
34502                 - Fix scrollbar events
34503                 - Discard highlighted item if remove it
34504                 - Fixes SelectedItem with strings
34505
34506 2005-03-01  Peter Bartok  <pbartok@novell.com>
34507
34508         * Control.cs:
34509           - Fixed Visible property, now follows (once again) parent chain
34510             to return false if any control in the chain is visible=false
34511           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
34512           - Fixed several places where is_visible instead of Visible was used
34513           - Implemented FIXME related to focus selection when setting focused
34514             control to be invisible
34515
34516         * XplatUIWin32.cs: Now using proper method to find out if window is
34517           visible. Thanks to Jordi for pointing it out
34518
34519 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
34520
34521         * ComboBox.cs: show/hide scrollbar instead of creating it
34522
34523 2005-02-27  Jackson Harper  <jackson@ximian.com>
34524
34525         * CurrencyManager.cs: Add PositionChanged stuff.
34526
34527 2005-02-27  Peter Bartok  <pbartok@novell.com>
34528
34529         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
34530         * XplatUIOSX.cs: Added GetMenuOrigin() stub
34531         * XplatUIWin32.cs: Implemented GetMenuOrigin()
34532         * XplatUIX11.cs:
34533           - Implemented GetMenuDC()
34534           - Implemented GetMenuOrigin()
34535           - Implemented ReleaseMenuDC()
34536           - Implemented generation of WM_NCPAINT message
34537           - Implemented generation and handling of WM_NCCALCSIZE message
34538         * Form.cs: Added debug helper message for Jordi's menu work
34539         * Hwnd.cs:
34540           - Modified ClientRect property; added setter, fixed getter to handle
34541             setting of ClientRect
34542           - Added MenuOrigin property
34543
34544 2005-02-26  Peter Bartok  <pbartok@novell.com>
34545
34546         * XplatUIX11.cs:
34547           - Destroys the caret if a window that's being destroyed contains it
34548           - Ignores expose events coming from the X11 queue for windows that
34549             already are destroyed
34550           - Now uses the proper variable for handling DestroyNotify, before we
34551             marked the wrong window as destroyed
34552           - Improved/added some debug output
34553
34554 2005-02-26  Peter Bartok  <pbartok@novell.com>
34555
34556         * X11Keyboard.cs: Fixes to work on 64bit systems
34557
34558 2005-02-26  Peter Bartok  <pbartok@novell.com>
34559
34560         * Control.cs:
34561           - Now calling OnHandleDestroyed from DestroyHandle()
34562             instead of Dispose()
34563           - Removed bogus call to controls.Remove() from DestroyHandle()
34564
34565 2005-02-26  Peter Bartok  <pbartok@novell.com>
34566
34567         * Control.cs: Properly destroy child windows when our handle is
34568           destroyed
34569
34570 2005-02-25  Peter Bartok  <pbartok@novell.com>
34571
34572         * XplatUI.cs:
34573           - Added 'DriverDebug' define to allow tracing XplatUI API calls
34574           - Alphabetized Static Methods and Subclasses
34575
34576         * XplatUIX11.cs:
34577           - Added XException class to allow custom handling of X11 exceptions
34578           - Created custom X11 error handler, tied into XException class
34579           - Added support for MONO_XEXCEPTIONS env var to allow the user
34580             to either throw an exception on X errors or continue running
34581             after displaying the error
34582           - Added handling of DestroyNotify message
34583           - Added handler for CreateNotify message (still disabled)
34584           - Improved (tried to at least) Where method to provide file and lineno
34585         * X11Structs.cs:
34586           - Added XErrorHandler delegate
34587           - Added XRequest enumeration (to suppor translation of errors)
34588
34589 2005-02-25  Jackson Harper  <jackson@ximian.com>
34590
34591         * PropertyManager.cs: Implement editing features
34592         * CurrencyManager.cs:
34593         * Binding.cs: First attempt at UpdateIsBinding
34594         * BindingManagerBase.cs: Call UpdateIsBinding before
34595         pushing/pulling data.
34596
34597 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
34598
34599         * MenuAPI.cs: Respect disabled items
34600         * ThemeWin32Classic.cs
34601                 - Caches ImageAttributes creation for DrawImageDisabled
34602                 - Fixes vertical menu line drawing
34603                 - Draws disabled arrows in disable menu items
34604
34605 2005-02-24  Peter Bartok  <pbartok@novell.com>
34606
34607         * Hwnd.cs:
34608           - Added UserData property to allow associating arbitrary objects
34609             with the handle
34610           - Fixed leak; now removing Hwnd references from static windows array
34611         * XplatUIWin32.cs:
34612           - Fixed Graphics leak in PaintEventEnd
34613           - Removed usage of HandleData, switched over to Hwnd class
34614         * HandleData.cs: Removed, obsoleted by Hwnd.cs
34615
34616 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
34617
34618         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
34619         * ScrollBar.cs: Fixes bug
34620         * TrackBar.cs: removes death code, clipping, mimize refreshes,
34621          keyboard navigation enhancements
34622
34623 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
34624
34625         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
34626         * GroupBox.cs: Add control styles
34627         * Label.cs: Add control styles
34628         * UpDownBase.cs: Add control styles
34629         * ListBox.cs: Add control styles
34630         * XplatUIWin32.cs: Fixes wrong parameter order
34631
34632
34633 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
34634
34635         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
34636
34637 2005-02-23  Jackson Harper  <jackson@ximian.com>
34638
34639         * PropertyManager.cs: Implement property binding. This doesn't
34640         seem to work yet though as (I think) there are some bugs in
34641         System.ComponentModel.PropertyDescriptor.
34642         * BindingContext.cs: Use new PropertyManager constructor.
34643
34644 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
34645
34646         * ProgressBar.cs: use clip region in ProgressBar
34647         * ThemeWin32Classic.cs: use clip region in ProgressBar
34648
34649 2004-02-22  Jackson Harper  <jackson@ximian.com>
34650
34651         * BindingsCollection.cs: Remove some debug code.
34652
34653 2005-02-22  Jackson Harper  <jackson@ximian.com>
34654
34655         * BindingContext.cs:
34656         * ControlBindingsCollection.cs:
34657         * CurrencyManager.cs:
34658         * Binding.cs:
34659         * BindingManagerBase.cs: Initial implementation
34660         * BindingsCollection.cs: Add an internal contains method that the
34661         BindingManagerBase uses to ensure bindings aren't added twice to
34662         the collection.
34663         * PropertyManager.cs: Stubbed out.
34664         * Control.cs:
34665         * ContainerControl.cs: Hook up databinding
34666         
34667 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
34668
34669         * XplatUIOSX.cs:
34670           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
34671           Fixed Invalidate/Update chain.
34672           Fixed tons of other minor bugs (this is almost a complete rewrite).
34673
34674 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
34675
34676         * ComboBox.cs: do subcontrol creation when the control is created
34677
34678 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34679
34680         * Label.cs: fixes image drawing (image and imagelist)
34681         * ThemeWin32Classic.cs: cache brushes
34682         
34683 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34684
34685         * Form.cs: Move menu drawing code to Theme class
34686         * ComboBox.cs: Move ComboBox drawing code to Theme class
34687         * MenuItem.cs: Move menu drawing code to Theme class
34688         * MenuAPI.cs: Move menu drawing code to Theme class
34689         * ThemeWin32Classic.cs: New methods
34690         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
34691         * ListBox.cs: Move Listbox drawing code to Theme class
34692         * Theme.cs: New methods
34693
34694 2005-02-20  Peter Bartok  <pbartok@novell.com>
34695
34696         * Control.cs:
34697           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
34698             only process mnemonics on those)
34699           - Fixed event sequence for key handling; first calling
34700             ProcessKeyEventArgs now
34701         * TextBoxBase.cs:
34702           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
34703             for processing non-character keys
34704           - Fixed WM_CHAR to generate proper event sequence before processing
34705         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
34706           generation
34707
34708 2005-02-19  Peter Bartok  <pbartok@novell.com>
34709
34710         * UserControl.cs: Added TextChanged event; added attributes
34711         * SizeGrip.cs: Implemented resizing and optional display of grip
34712         * Form.cs: Fixed attribute
34713         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
34714           Changed meaning of ScrollWindow bool argument; instead of the
34715           clear attribute (which will be true usually anyway), it gives the
34716           option of moving child controls as well.
34717         * XplatUIX11.cs:
34718           - Changed to match new ScrollWindow argument
34719           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
34720             now handles the implicit parent window a WM puts around us
34721         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
34722           to work)
34723         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
34724         * TreeView.cs: Adjusted to new ScrollWindow arguments
34725
34726 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34727
34728         * Form.cs: Menu integration with non-client area
34729         * MenuItem.cs: Menu integration with non-client area
34730         * MenuAPI.cs: Menu integration with non-client area
34731
34732 2005-02-18  Peter Bartok  <pbartok@novell.com>
34733
34734         * MethodInvoker.cs: Added
34735         * MdiLayout.cs: Added
34736         * SendKeys.cs: Started implementation
34737         * ErrorIconAlignment.cs: Added
34738
34739 2005-02-18  Peter Bartok  <pbartok@novell.com>
34740
34741         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
34742         * Form.cs: Added handling for Menu-related Non-client messages
34743
34744 2005-02-17  Peter Bartok  <pbartok@novell.com>
34745
34746         * UpDownBase.cs: Fixed typo, compilation errors
34747         * DomainUpDown.cs: Fixed attribute value
34748
34749 2005-02-16  Miguel de Icaza  <miguel@novell.com>
34750
34751         * UpDownBase.cs: Attach entry events.
34752         Propagate events.
34753         Add ForeColor property, Focused, InterceptArrowKeys (interception
34754         does not work yet).
34755
34756 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
34757
34758         * Form.cs:
34759                 - Redraw non client are on Setmenu
34760                 - Calc proper menu starting point
34761
34762 2005-02-17  Peter Bartok  <pbartok@novell.com>
34763
34764         * Application.cs: Fixed message_filter check
34765
34766 2005-02-17  Peter Bartok  <pbartok@novell.com>
34767
34768         * Application.cs: Now calls registered message filters
34769         * DockStyle.cs: Fixed attribute
34770         * Form.cs: Fixed attribute
34771         * Menu.cs: Fixed attribute
34772         * ToolTip.cs: Fixed attribute
34773         * TreeNode.cs: Added missing attributes and arranged in regions
34774         * PropertyGrid.cs: Fixed signatures
34775         * TreeNodeCollection.cs: Added attributes
34776         * Splitter.cs: Added missing attributes; arranged into regions
34777         * TabPage.cs: Added missing attributes; arranged into regions
34778         * TextBoxBase.cs: Added missing attributes
34779         * TextBox.cs: Added missing attributes
34780         * ArrangeDirection.cs: Added missing attributes
34781         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
34782         * ToolBarButton.cs: Fixed attributes
34783         * AnchorStyles.cs: Fixed attribute
34784         * TrackBar.cs: Fixed attributes
34785         * TabControl.cs: Added missing attributes and arranged into regions
34786         * ToolBar.cs: Fixed attribute
34787         * StatusBar.cs: Fixed signature, organized into regions and added
34788           attributes
34789         * StatusBarPanel.cs: Fixed attributes
34790         * ContentsResizedEventArgs.cs: Implemented
34791         * ContentsResizedEventHandler.cs: Implemented
34792         * DateBoldEventArgs.cs: Implemented
34793         * DateBoldEventHandler.cs: Implemented
34794         * UpDownEventArgs.cs: Implemented
34795         * UpDownEventHandler.cs: Implemented
34796         
34797 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
34798
34799         * Form.cs: first Menu NC refactoring
34800         * MenuAPI.cs: first Menu NC refactoring
34801         
34802 2005-02-16  Peter Bartok  <pbartok@novell.com>
34803
34804         * ImeMode.cs: Added missing attributes
34805         * Menu.cs: Fixed attribute
34806         * GroupBox.cs: Fixed attribute
34807         * Label.cs: Fixed attribute
34808         * ColorDialog.cs (RunDialog): Removed TODO attribute
34809         * ComboBox.cs: Fixed attributes
34810         * ListControl.cs: Added missing attributes
34811         * PropertyGrid.cs: Fixed attributes
34812         * Control.cs: Fixed attributes
34813         * ListViewItem.cs: Added TypeConverter attribute
34814         * NotifyIcon.cs: Fixed attributes
34815         * ListView.cs: Fixed attributes
34816         * ButtonBase.cs: Fixed attribute
34817         * ImageList.cs: Added missing attributes
34818         * ContainerControl.cs: Fixed signature
34819         * CheckedListBox.cs: Fixed attribute; added missing attributes
34820         * Panel.cs: Fixed attributes
34821         * PropertyTabChangedEventArgs.cs: Added missing attribute
34822         * PropertyValueChangedEventArgs.cs: Added missing attribute
34823         * Binding.cs: Fixed attribute
34824         * ListViewItemConverter: Implemented ListViewSubItemConverter class
34825         * ListBox.cs: Fixed attribute; added missing attributes;
34826         * ScrollableControl.cs: Added missing attributes
34827         * PictureBox.cs: Added missing attributes; implemented missing property
34828         * DateTimePicker.cs: Added missing attributes
34829         * Theme.cs (ToolWindowCaptionHeight): Fixed type
34830         * MonthCalendar.cs: Fixed attributes
34831         * StatusBarPanel.cs: Added missing attributes
34832         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
34833
34834 2005-02-16  Peter Bartok  <pbartok@novell.com>
34835
34836         * TextBoxBase.cs: The previous method to enforce height yet remember
34837           the requested high was less than ideal, this is an attempt to do
34838           it better.
34839         * Control.cs: Added comment about possible problem
34840         * Copyright: Updated format
34841         * GridItemType.cs: Fixed swapped values
34842
34843 2005-02-15  Jackson Harper  <jackson@ximian.com>
34844
34845         * BaseCollection.cs: Use property so we never access an
34846         uninitialized list. Also initialize the list in the property.
34847
34848 2005-02-15  Peter Bartok  <pbartok@novell.com>
34849
34850         * GroupBox.cs (ProcessMnemonic): Implemented
34851         * Label.cs (ProcessMnemonic): Implemented
34852         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
34853           hotkeys
34854
34855 2005-02-15  Peter Bartok  <pbartok@novell.com>
34856
34857         * RadioButton.cs (ProcessMnemonic): Implemented
34858         * CheckBox.cs (ProcessMnemonic): Implemented
34859         * Control.cs:
34860           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
34861             handling
34862           - Added internal method to allow calling ProcessMnemonic from other
34863             controls
34864         * ContainerControl.cs:
34865           - Started support for handling validation chain handling
34866           - Implemented ProcessMnemonic support
34867           - Added Select() call to Active, to make sure the active control
34868             receives focus
34869         * Form.cs: Setting toplevel flag for Forms (this was lost in the
34870           FormParent rewrite)
34871         * ThemeWin32Classic.cs:
34872           - DrawCheckBox(): Fixed stringformat to show hotkeys
34873           - DrawRadioButton(): Fixed stringformat to show hotkeys
34874         * CommonDialog.cs: Removed WndProc override, not needed
34875
34876 2005-02-14  Peter Bartok  <pbartok@novell.com>
34877
34878         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
34879           missed those in the rewrite
34880
34881 2005-02-14  Miguel de Icaza  <miguel@novell.com>
34882
34883         * NumericUpDown.cs (Increment, ToString): Add.
34884         (DecimalPlaces): implement.
34885         
34886         Add attributes.
34887         
34888         * UpDownBase.cs: Add the designer attributes.
34889
34890 2005-02-13  Peter Bartok  <pbartok@novell.com>
34891
34892         * Panel.cs: Removed border_style, now in Control
34893         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
34894           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
34895
34896 2005-02-13  Peter Bartok  <pbartok@novell.com>
34897
34898         * MouseButtons.cs: Added missing attributes
34899         * XplatUIStructs.cs: Added enumeration for title styles
34900         * LeftRightAlignment.cs: Added missing attributes
34901         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
34902           it compatible with Graphics.FromHwnd()
34903         * SelectedGridItemChangedEventArgs.cs: Fixed property type
34904         * Keys.cs: Added missing attributes
34905         * SelectionRange.cs: Added missing attributes
34906         * SelectionRangeConverter.cs: Added
34907         * XplatUI.cs:
34908           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
34909             ReleaseMenuDC methods
34910           - Renamed ReleaseWindow to UngrabWindow
34911           - Added proper startup notice to allow version identification
34912         * Form.cs:
34913           - Added missing attributes
34914           - Removed FormParent concept
34915         * Label.cs: Removed border_style field, now in Control
34916         * RadioButton.cs: Now properly selects RadioButton when focus is
34917           received
34918         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
34919         * Control.cs:
34920           - Added missing attributes
34921           - Added borderstyle handling
34922           - Removed FormParent concept support
34923           - Fixed calls to XplatUI to match changed APIs
34924           - Fixed bug that would case us to use disposed Graphics objects
34925           - Removed unneeded internal methods
34926           - PerformLayout(): Fixed to handle DockStyle.Fill properly
34927           - SelectNextControl(): Fixed to properly check common parents
34928         * TextBoxBase.cs: Removed border_style field (now in Control)
34929         * MessageBox.cs:
34930           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
34931             fixed calculations for form size
34932           - Added support for localized strings and icons
34933           - Improved form size calculations, added border
34934         * ListView.cs: Removed border_style field (now in Control)
34935         * X11Structs.cs: Moved several structs from X11 driver here
34936         * X11Keyboard.cs: Changed debug message
34937         * Application.cs: Removed FormParent concept support
34938         * CommonDialog.cs:
34939           - Resetting end_modal flag
34940           - Removed FormParent concept support
34941         * NativeWindow.cs: Removed FormParent concept support
34942         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
34943           Client area and Non-Client whole window to allow support for WM_NC
34944           messages
34945         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
34946           prevent using it until it supports Hwnd as per Geoff Norton's request
34947         * ToolBar.cs: Fixed drawing, was not doing proper drawing
34948         * PictureBox.cs: Removed border_style field, now in Control
34949         * XplatUIWin32.cs: Added new driver methods
34950
34951 2005-02-12  Peter Bartok  <pbartok@novell.com>
34952
34953         * OpacityConverter.cs: Implemented
34954         * Hwnd.cs: Internal class to support drivers that need to emulate
34955           client area/non-client area window behaviour
34956
34957 2005-02-11  Peter Bartok  <pbartok@novell.com>
34958
34959         * KeysConverter.cs: Implemented
34960
34961 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
34962
34963         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
34964         * LinkLabel: Added missing attributes
34965         * MainMenu.cs: fixes ToString
34966         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
34967         * ListBox.cs: fixes event position
34968         * TrackBar.cs: adds missing attributes and events
34969         
34970 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
34971
34972         * MenuItem.cs: Use SystemInformation and bug fixes
34973         * MenuAPI.cs: Use SystemInformation and bug fixes
34974
34975 2005-02-09  Jackson Harper  <jackson@ximian.com>
34976
34977         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
34978         their keystate otherwise things like VK_MENU get stuck "on".
34979
34980 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
34981
34982         * ListBox.cs: Fixes AddRange bug
34983         
34984 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
34985
34986         * ProgressBar.cs
34987                 - Add missing attributes
34988                 - Add missing method
34989                 
34990         * CheckedListBox.cs: Added missing attributes
34991                 - Add missing attributes
34992                 - Remove extra method
34993         
34994         * ComboBox.cs: Added missing attributes
34995         * VScrollBar.cs: Added missing attributes
34996         * ScrollBar.cs:  Added missing attributes
34997         * ListBox.cs: Fixes signature, add missing consts
34998         * LinkArea.cs:   Added missing attributes
34999         
35000
35001 2005-02-08  Peter Bartok  <pbartok@novell.com>
35002
35003         * Menu.cs: Added missing attributes
35004         * MainMenu.cs: Added missing attributes
35005         * GroupBox.cs: Added missing attributes
35006         * Label.cs: Added missing attributes
35007         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
35008         * ColorDialog.cs:
35009           - Added Instance and Options properties
35010           - Added missing attributes
35011         * Cursor.cs: Made Serializable
35012         * NotifyIcon: Added missing attributes
35013         * MenuItem.cs: Added missing attributes
35014         * TextBoxBase.cs: Implemented AppendText() and Select() methods
35015         * Panel.cs: Added Missing attributes
35016         * MonthCalendar.cs: Fixed CreateParams
35017
35018 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
35019         
35020         * LinkLabel.cs:
35021                 - Fixes signature
35022                 - Fixes issues with links
35023                 - Adds the class attributes
35024
35025 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
35026         
35027         * ComboBox.cs:
35028                 - Fixes button when no items available in dropdown
35029                 - Fixes repainting problems
35030                 - Adds the class attributes
35031                 
35032 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35033
35034         * XplatUIOSX.cs: Detect the menu bar and title bar height from
35035         the current theme.  Cache these on startup.
35036
35037 2005-02-07  Jackson Harper  <jackson@ximian.com>
35038
35039         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
35040         the scrollbar buttons when they are depressed.
35041
35042 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35043
35044         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
35045         Get the display size from the main displayid.  We currently dont
35046         support multiple display configurations.
35047
35048 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35049
35050         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
35051
35052 2005-02-07  Miguel de Icaza  <miguel@novell.com>
35053
35054         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
35055
35056 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
35057
35058         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
35059
35060 2005-02-04  Jackson Harper  <jackson@ximian.com>
35061
35062         * ThemeWin32Classic.cs: Respect the clipping rect when
35063         drawing. Only fill the intersection of clips and rects so there
35064         isn't a lot of large fills.
35065         * ScrollBar.cs: Pass the correct clipping rect to the theme
35066         engine. Remove some debug code.
35067
35068 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
35069         
35070         * DateTimePicker.cs:
35071                 - Fixed crash on DateTime.Parse, use Constructor instead
35072
35073 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
35074         
35075         * MenuItem.cs:
35076         * MenuAPI.cs:
35077                 - Owner draw support (MeasureItem and DrawItem)
35078
35079 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
35080         
35081         *  Menu.cs:
35082                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
35083                 - Fixes MenuItems.Add range
35084         * MenuItem.cs:
35085                 - MergeMenu and Clone and CloneMenu functions
35086
35087 2005-02-03  Jackson Harper  <jackson@ximian.com>
35088
35089         * ScrollBar.cs: Make abstract
35090         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
35091         is abstract.
35092
35093 2005-02-03  Jackson Harper  <jackson@ximian.com>
35094
35095         * ScrollBar.cs: First part of my scrollbar fixups. This removes
35096         all the unneeded refreshes and uses invalidates with properly
35097         computed rects.
35098
35099 2005-02-03  Peter Bartok  <pbartok@novell.com>
35100
35101         * ComponentModel.cs: Added
35102         * IDataGridEditingService.cs: Added
35103         * Timer.cs: Added missing attributes
35104         * ToolTip.cs: Added missing attributes
35105
35106 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
35107
35108         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
35109
35110 2005-02-03  Peter Bartok  <pbartok@novell.com>
35111
35112         * ListBox.cs: Added missing attributes
35113
35114 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
35115         
35116         * ListBox.cs:
35117                 - Fixes font height after font change
35118                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
35119                 
35120 2005-02-02  Peter Bartok  <pbartok@novell.com>
35121
35122         * HandleData.cs: Introduced static methods to allow class
35123           to be more self-contained and track it's own HandleData objects
35124         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
35125           HandleData to use new static methods
35126
35127 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
35128
35129         * Combobox.cs:
35130                 - Fixes default size and PreferredHeight
35131                 - Missing events
35132                 - ObjectCollection.Insert implementation
35133                 
35134         * ListControl.cs
35135                 - Fixes signature
35136         * ListBox.cs:
35137                 - Several fixes
35138                 - ObjectCollection.Insert implementation
35139                 - No selection after clean
35140                 - Small fixes
35141
35142 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
35143
35144         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
35145
35146 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
35147
35148         * Combobox.cs:
35149                 - Caches ItemHeight calculation for OwnerDrawVariable
35150                 - Handles dropdown properly
35151                 - Fixes several minor bugs
35152
35153 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
35154
35155         * ListBox.cs:
35156                 - Fixes 71946 and 71950
35157                 - Fixes changing Multicolumn on the fly
35158                 - Fixes keyboard navigation on Multicolumn listboxes
35159
35160 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35161         
35162         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
35163         crash reporter log.
35164
35165 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35166
35167         * XplatUIOSX.cs: Allow applications to actually exit.
35168
35169 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35170
35171         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
35172         their parent at creation time rather than lazily later.  Fixes a major
35173         regression we were experiencing.
35174
35175 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
35176
35177         * ThemeWin32Classic.cs: more date time picker painting fixes
35178         * DateTimePicker.cs: more monthcalendar drop down fixes
35179         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
35180
35181 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
35182
35183         * ScrollBar.cs:
35184                 - When moving the thumb going outside the control should stop the moving
35185                 - Adds the firing of missing events
35186                 - Fixes no button show if Size is not specified
35187                 - End / Home keys for keyboard navigation
35188
35189 2005-01-30  Peter Bartok  <pbartok@novell.com>
35190
35191         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
35192           sanity check to prevent theoretical loop
35193         * XplatUIWin32.cs (SetVisible): Removed debug output
35194         * XplatUIX11.cs (SystrayChange): Added sanity check
35195         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
35196         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
35197           behaviour, valid until the X11 client window rewrite is done
35198         * TextBox.cs (ctor): Setting proper default foreground and background
35199           colors
35200
35201 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
35202
35203         * Theme: Added DrawDateTimePicker to interface
35204         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
35205         * DateTimePicker.cs: Created (still needs keys and painting code)
35206         * DateTimePickerFormat.cs: added
35207         * MonthCalendar.cs: fixed CreateParams for popup window mode
35208           
35209 2005-01-29  Peter Bartok  <pbartok@novell.com>
35210
35211         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
35212           this should also the calculations for ligher/darker
35213         * Theme.cs: Fixed defaults for ScrollBar widths/heights
35214
35215 2005-01-29  Peter Bartok  <pbartok@novell.com>
35216
35217         * ArrangeDirection.cs: Added
35218         * ArrangeStartingPositon.cs: Added
35219         * SystemInformation.cs: Implemented
35220         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35221           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
35222           used by SystemInformation class
35223         * X11Strucs.cs: Added XSizeHints structure
35224         * MenuAPI.cs:
35225           - Fixed CreateParams to make sure the menu window is always visible
35226           - TrackPopupMenu: Added check to make sure we don't draw the
35227             menu offscreen
35228
35229 2005-01-29  Peter Bartok  <pbartok@novell.com>
35230
35231         * HandleData.cs: Added method for altering invalid area
35232         * TextBoxBase.cs: Implemented TextLength
35233
35234 2005-01-28  Peter Bartok  <pbartok@novell.com>
35235
35236         * XplatUIX11.cs: Improvement over last patch, not sending
35237           the WM_PAINT directly anymore, instead we scroll any pending
35238           exposed areas and let the system pick out the WM_PAINT later
35239
35240 2005-01-28  Peter Bartok  <pbartok@novell.com>
35241
35242         * SWF.csproj: Deleted, no longer used. Instead,
35243           Managed.Windows.Forms/SWF.csproj should be used
35244         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
35245           directly, to avoid a potential race condition with the next
35246           scroll
35247
35248 2005-01-28  Peter Bartok  <pbartok@novell.com>
35249
35250         * XplatUI.cs: Made class internal
35251
35252 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
35253
35254         * CheckedListBox.cs:
35255                 - Draw focus
35256                 - Fixed Drawing
35257                 - Missing methods and events
35258
35259 2005-01-27  Peter Bartok  <pbartok@novell.com>
35260
35261         * Application.cs (Run): Don't use form if we don't have one
35262
35263 2005-01-27  Peter Bartok  <pbartok@novell.com>
35264
35265         * TextBoxBase.cs (get_Lines): Fixed index off by one error
35266
35267 2005-01-27  Peter Bartok  <pbartok@novell.com>
35268
35269         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
35270         * GridItem.cs: Added; Patch by Jonathan S. Chambers
35271         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
35272         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
35273         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
35274         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
35275         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35276         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
35277         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35278         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35279         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35280         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
35281
35282 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
35283
35284         * Combobox.cs:
35285                 - Draw focus on Simple Combobox
35286                 - Fixes drawing issues
35287                 - fixes 71834
35288
35289 2005-01-27  Peter Bartok  <pbartok@novell.com>
35290
35291         * Form.cs:
35292           - Place window in default location, instead of hardcoded 0/0
35293           - Send initial LocationChanged event
35294         * Control.cs:
35295           - UpdateBounds after creation to find out where the WM placed us
35296           - Make sure that if the ParentForm changes location the Form
35297             is notified
35298         * XplatUIX11.cs: XGetGeometry will not return the coords relative
35299             to the root, but to whatever the WM placed around us.
35300             Translate to root coordinates before returning toplevel
35301             coordinates
35302         * XplatUIWin32.cs: Removed debug output
35303         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
35304           flag to GetWindowPos, to allow translation of coordinates on X11
35305
35306 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
35307
35308         * ListBox.cs: connect LostFocus Event
35309
35310 2005-01-27  Peter Bartok  <pbartok@novell.com>
35311
35312         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35313           XplatUIX11.cs: Extended the Systray API
35314         * Form.cs: Removed debug output
35315         * Application.cs: Fixed focus assignment, always need to call
35316           XplatUI.Activate() since Form.Activate() has rules that may
35317           prevent activation
35318         * NotifyIcon.cs: Should be complete now
35319         * ToolTip.cs: Worked around possible timer bug
35320
35321 2005-01-27  Jackson Harper  <jackson@ximian.com>
35322
35323         * TabControl.cs:
35324         - Only invalidate the effected tabs when the
35325         selected index changes. This reduces drawing and gets rid of some
35326         flicker.
35327         - Only refresh if the tabs need to be shifted, otherwise only
35328         invalidate the slider button.
35329         - On windows the tabs are not filled to right if the slider is
35330         visible.
35331         
35332 2005-01-27  Jackson Harper  <jackson@ximian.com>
35333
35334         * TabControl.cs: Only refresh on mouseup if we are showing the
35335         slider. Also only invalidate the button whose state has changed.
35336
35337 2005-01-26  Peter Bartok  <pbartok@novell.com>
35338
35339         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
35340         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
35341           and SystrayRemove() methods
35342         * XplatUIOSX.cs: Stubbed Systray methods
35343         * XplatUIX11.cs:
35344           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
35345             methods
35346           - Fixed broken XChangeProperty calls (marshalling messed up things)
35347         * X11Structs.cs: Added enums and structs required for Size hinting
35348         * NotifyIcon.cs: Added & implemented
35349
35350 2005-01-26  Jackson Harper  <jackson@ximian.com>
35351
35352         * TabControl.cs: Space vertically layed out tabs properly.
35353
35354 2005-01-26  Peter Bartok  <pbartok@novell.com>
35355
35356         * Form.cs (CreateClientParams): Always set the location to 0,0
35357           since we're a child window.
35358
35359         * Control.cs (SetVisibleCore): Always explicitly setting the location
35360           of a toplevel window, apparently X11 doesn't like to move windows
35361           while they're not mapped.
35362
35363 2005-01-26  Jackson Harper  <jackson@ximian.com>
35364
35365         * TabControl.cs: Implement FillToRight size mode with vertically
35366         rendered tabs.
35367
35368 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
35369
35370         * ControlPaint.cs, ThemeWin32Classic.cs
35371                 - Fixes DrawFocusRectangle
35372
35373 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
35374
35375         * MenuAPI.cs:
35376                 - MenuBar tracking only starts when item is first clicked
35377                 - Fixes menu hidding for multiple subitems
35378                 - Unselect item in MenuBar when item Executed
35379                 - Fixes bug 71495
35380
35381 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
35382
35383         * ListControl.cs:
35384                 - IsInputKey for ListBox
35385         * ListBox.cs:
35386                 - Focus item
35387                 - Shift and Control item selection
35388                 - Implement SelectionMode.MultiExtended
35389                 - Fixes RightToLeft
35390         * ComboBox.cs:
35391                 - IsInputKey implemented
35392                 - Do not generate OnTextChangedEdit on internal txt changes
35393                 
35394 2005-01-23  Peter Bartok  <pbartok@novell.com>
35395
35396         * AccessibleObject.cs: Partially implemented Select()
35397         * MonthCalendar.cs: Added missing attributes and events
35398         * Form.cs: Fixed CreateParams behaviour, now controls derived from
35399           form can properly override CreateParams.
35400         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35401           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
35402           Control performs Invalidate & Update
35403         * NativeWindow (CreateHandle): Added special handling for Form
35404           and Form.FormParent classes to allow overriding of From.CreateParams
35405         * Control.cs:
35406           - ControlNativeWindow: Renamed 'control' variable to more intuitive
35407             name 'owner'
35408           - ControlNativeWindow: Added Owner property
35409           - Removed usage of Refresh() on property changes, changed into
35410             Invalidate(), we need to wait until the queue is processed for
35411             updates, direct calls might cause problems if not all vars for
35412             Paint are initialized
35413           - Added call to UpdateStyles() when creating the window, to set any
35414             styles that CreateWindow might have ignored.
35415           - Added support for Form CreateParent overrides to UpdateStyles()
35416         * MessageBox.cs: Removed no longer needed FormParent override stuff,
35417           CreateParams are now properly overridable
35418         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
35419           CreateParams are now properly overridable
35420
35421 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
35422
35423         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
35424         OnTextBoxChanged.
35425
35426         Capture LostFocus and OnTextBoxChanged.  The later introduces a
35427         recursive invocation that I have not figured out yet.
35428
35429         Reset the timer when not using (it was accumulating).
35430
35431
35432         (OnTextBoxChanged): Set UserEdit to true here to track whether the
35433         user has made changes that require validation.
35434
35435         Reset changing to avoid loops.
35436
35437 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
35438
35439         * NumericUpDown.cs: Display value at startup.
35440
35441         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
35442         ValidateEditText.
35443
35444         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
35445         filled in.  Added some basic parsing of text.
35446
35447         Still missing the OnXXX method overrides, and figuring out the
35448         events that must be emitted.
35449
35450         * UpDownBase.cs: Handle UserEdit on the Text property.
35451         
35452 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
35453
35454         * ComboBox.cs:
35455           - Fixes IntegralHeight
35456           - ToString method
35457
35458 2005-01-21  Jackson Harper  <jackson@ximian.com>
35459
35460         * TabControl.cs: Set the SelectedIndex property when SelectedTab
35461         is set so that the page visibility is updated and the tabs are
35462         sized correctly.
35463
35464 2005-01-21  Jackson Harper  <jackson@ximian.com>
35465
35466         * TabControl.cs: Use cliping rectangle for blitting. Give the
35467         theme the clipping rect so we can do clipping while
35468         drawing. Remove some debug code.
35469
35470 2005-01-21  Jackson Harper  <jackson@ximian.com>
35471
35472         * TabPage.cs: Add a new method so tab pages can force the tab
35473         control to recalculate the tab page sizes.
35474         * TabControl.cs: UpdateOwner needs to make the tab control recalc
35475         sizes.
35476
35477 2005-01-20  Jackson Harper  <jackson@ximian.com>
35478
35479         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
35480
35481 2005-01-20  Jackson Harper  <jackson@ximian.com>
35482
35483         * TreeView.cs: Set the bounds for nodes properly. They were
35484         getting screwed up when checkboxes were not enabled, but images
35485         were.
35486
35487 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
35488
35489         * ListBox.cs:
35490                 - Owner draw support
35491                 - Fixes
35492                 
35493 2005-01-20  Jackson Harper  <jackson@ximian.com>
35494
35495         * XplatUIStructs.cs: More misc keys
35496         * X11Keyboard.cs: Ignore some control keys.
35497
35498 2005-01-20  Jackson Harper  <jackson@ximian.com>
35499
35500         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
35501         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
35502
35503 2005-01-19  Peter Bartok  <pbartok@novell.com>
35504
35505         * Control.cs: Un-selecting the control when it is loosing focus
35506
35507 2005-01-19  Jackson Harper  <jackson@ximian.com>
35508
35509         * TreeView.cs: Hook up to the text controls leave event so we can
35510         end editing when the users clicks outside the text box.
35511         
35512 2005-01-19  Jackson Harper  <jackson@ximian.com>
35513
35514         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
35515         get set in the conversion array.
35516
35517 2005-01-19  Peter Bartok  <pbartok@novell.com>
35518
35519         * Application.cs (ModalRun): Added a call to CreateControl to ensure
35520           focus is properly set
35521         * Button.cs:
35522           - Added missing attributes
35523           - removed styles, those are already set in the base class
35524         * ButtonBase.cs:
35525           - Added missing attributes
35526           - Added clip window styles
35527         * CheckBox.cs: Added missing attributes
35528         * CommonDialog.cs:
35529           - FormParentWindow.CreateParams: Added required clip styles
35530         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
35531           also filters modifier keys
35532         * MessageBox.cs:
35533           - Added assignment of Accept and Cancel button to enable Enter
35534             and Esc keys in MessageBox dialogs
35535           - FormParentWindow.CreateParams: Added required clip styles
35536         * RadioButton.cs: Added missing attributes
35537         * TextControl.cs: No longer draws selection if control does not
35538           have focus
35539         * TextBoxBase.cs:
35540           - Now draws simple rectangle around test area to make it obvious
35541             there's a control. This is a hack until we properly support borders
35542           - A few simple fixes to support selections better, now erases selected
35543             text when typing, and resets selection when using movement keys
35544
35545 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
35546
35547         * UpDownBase.cs: Added some new properties.
35548
35549         * DomainUpDown.cs: Implement a lot to get my test working.
35550
35551 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35552
35553         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
35554
35555 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35556
35557         * OSXStructs (WindowAttributes): Fixed csc complaints
35558
35559 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35560
35561         * XplayUIOSX.cs:
35562           OSXStructs.cs: Initial refactor to move enums and consts into
35563           OSXStructs and use them in the driver for greater readability.
35564
35565 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35566
35567         * XplatUIOSX.cs: Initial support for Standard Cursors.
35568         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
35569
35570 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
35571
35572         * ComboBox.cs: ability to change style when the ctrl is already
35573         created, missing methods and events, bug fixes, signature fixes
35574
35575 2005-01-19  Peter Bartok  <pbartok@novell.com>
35576
35577         * Cursors.cs (ctor): Added ctor to fix signature
35578
35579 2005-01-18  Peter Bartok  <pbartok@novell.com>
35580
35581         * Button.cs: Implemented DoubleClick event
35582         * ButtonBase.cs:
35583           - Fixed keyboard handling to behave like MS, where the press of
35584             Spacebar is equivalent to a mousedown, and the key release is
35585             equivalent to mouseup. Now a spacebar push will give the same
35586             visual feedback like a mouse click.
35587           - Added missing attributes
35588           - Added ImeModeChanged event
35589           - Added support for generating DoubleClick event for derived classes
35590         * CheckBox.cs:
35591           - Implemented DoubleClick event
35592           - Added missing attributes
35593         * CommonDialog.cs: Added missing attribute
35594         * ContextMenu.cs: Added missing attributes
35595         * RadioButton.cs:
35596           - AutoChecked buttons do not allow to be unselected when clicked
35597             (otherwise we might end up with no selected buttons in a group)
35598           - Added missing attributes
35599           - Implemented DoubleClickEvent
35600         * ThreadExceptionDialog.cs: Enabled TextBox code
35601
35602 2005-01-18  Peter Bartok  <pbartok@novell.com>
35603
35604         * Form.cs: Removed debug output
35605         * Button.cs: Added support for DoubleClick method
35606
35607 2005-01-18  Peter Bartok  <pbartok@novell.com>
35608
35609         * Form.cs:
35610           - Added method to parent window that allows triggering size
35611             calculations when a menu is added/removed
35612           - set_Menu: Cleaned up mess from early days of Form and Control,
35613             now properly triggers a recalc when a menu is added/removed
35614           - Added case to select form itself as focused form if no child
35615             controls exist
35616           - Added PerformLayout call when showing dialog, to ensure properly
35617             placed controls
35618         * Control.cs:
35619           - Select(): Made internal so Form can access it
35620           - Focus(): Only call Xplat layer if required (avoids loop), and sets
35621             status
35622         * Application.cs (Run): Removed hack and calls PerformLayout instead
35623           to trigger calculation when Form becomes visible
35624
35625 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
35626
35627         * ComboBox.cs: fixes for ownerdraw
35628
35629 2005-01-18  Peter Bartok  <pbartok@novell.com>
35630
35631         * TextControl.cs:
35632           - Sentinel is no longer static, each Document gets it's own, this
35633             avoids locking or alternatively overwrite problems when more
35634             than one text control is used simultaneously.
35635           - Switched to use Hilight and HilightText brushes for text selection
35636
35637         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
35638
35639 2005-01-18  Peter Bartok  <pbartok@novell.com>
35640
35641         * Control.cs:
35642           - Hooked up the following events:
35643                 o ControlAdded
35644                 o ControlRemoved
35645                 o HandleDestroyed
35646                 o ImeModeChanged
35647                 o ParentChanged
35648                 o TabStopChanged
35649                 o Invalidated
35650                 o SystemColorsChanged
35651                 o ParentFontChanged
35652                 o Move
35653           - Removed debug output
35654           - Added a call to the current theme's ResetDefaults when a color change
35655             is detected
35656         * Form.cs: Now setting the proper ImeMode
35657         * Theme.cs: Defined a method to force recreation of cached resources
35658           and rereading of system defaults (ResetDefaults())
35659         * ThemeWin32Classic.cs: Added ResetDefaults() stub
35660
35661 2005-01-17  Peter Bartok  <pbartok@novell.com>
35662
35663         * Control.cs: Added missing attributes
35664
35665 2005-01-17  Jackson Harper  <jackson@ximian.com>
35666
35667         * TreeNode.cs: Implement editing. Add missing properties selected
35668         and visible.
35669         * TreeView.cs: Implement node editing. Also some fixes to use
35670         Invalidate (invalid area) instead of Refresh when selecting.
35671
35672 2005-01-17  Peter Bartok  <pbartok@novell.com>
35673
35674         * Control.cs:
35675           - Implemented InvokeGotFocus() method
35676           - Implemented InvokeLostFocus() method
35677           - Implemented InvokePaint() method
35678           - Implemented InvokePaintBackground() method
35679           - Implemented InvokeClick() method
35680           - Implemented FindForm() method
35681           - Implemented RectangleToClient() method
35682           - Implemented ClientToRectangle() method
35683           - Implemented ResetBackColor() method
35684           - Implemented ResetCursor() method
35685           - Implemented ResetFont() method
35686           - Implemented ResteForeColor() method
35687           - Implemented ResetImeMode() method
35688           - Implemented ResetLeftToRight() method
35689           - Implemented ResetText() method
35690           - Implemented Scale() methods
35691           - Implemented ScaleCore() method
35692           - Implemented Update() method
35693           - Removed unused variables
35694           - Stubbed AccessibilityNotifyClients and
35695             ControlAccessibleObject.NotifyClients() methods (dunno what to do
35696             with those yet)
35697           - Now setting proper default for RightToLeft property
35698           - Fixed bug in SetClientSizeCore that would cause windows to get
35699             really big
35700           - Now sending Click/DoubleClick events
35701           - Now selecting controls when left mouse button is clicked on
35702             selectable control
35703         * AccessibleEvents.cs: Added
35704         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
35705         * XplatUIOSX.cs: Stubbed UpdateWindow() method
35706         * XplatUIWin32.cs: Implemented UpdateWindow() method
35707         * XplatUIX11.cs: Implemented UpdateWindow() method
35708         * Form.cs: Removed stray semicolon causing CS0162 warning
35709         * ThemeWin32Classic.cs: Fixed unused variable warnings
35710         * ScrollableControl.cs: Now calls base method for ScaleCore
35711         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
35712           style to avoid interference with internal click handler (which is
35713           different than standard Control click handling)
35714         * RadioButton.cs:
35715           - Now unchecks all sibling radio buttons when control is
35716             selected (Fixes #68756)
35717           - Removed internal tabstop variable, using the one inherited from
35718             Control
35719
35720 2005-01-17  Jackson Harper  <jackson@ximian.com>
35721
35722         * NavigateEventArgs.cs: Fix base type.
35723         * LinkLabel.cs: Sig fix
35724         
35725 2005-01-17  Jackson Harper  <jackson@ximian.com>
35726
35727         * TreeView.cs: Only invalidate the effected nodes bounds when
35728         selecting nodes.
35729
35730 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35731
35732         * XplatUIWin32.cs: fixes Win32 marshaling
35733         * XplatUIX11.cs: fixes method signature
35734
35735 2005-01-17  Peter Bartok  <pbartok@novell.com>
35736
35737         * XplatUIX11.cs: Clean up resources when we no longer need them
35738
35739 2005-01-17  Peter Bartok  <pbartok@novell.com>
35740
35741         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
35742           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
35743           and DestroyCursor() methods.
35744         * Cursor.cs: Partially implemented, now supports standard cursors;
35745           still contains some debug code
35746         * Cursors.cs: Implemented class
35747         * Control.cs:
35748           - WndProc(): Added handling of WM_SETCURSOR message, setting the
35749             appropriate cursor
35750           - Implemented Cursor property
35751           - Replaced break; with return; more straightforwar and possibly
35752             faster
35753           - Now properly setting the result for WM_HELP
35754         * X11Structs.cs: Added CursorFontShape enum
35755         * XplatUIStructs.cs:
35756           - Added StdCursor enum (to support DefineStdCursor() method)
35757           - Added HitTest enum (to support sending WM_SETCURSOR message)
35758         * XplatUIX11.cs:
35759           - Now sends the WM_SETCURSOR message
35760           - Implemented new cursor methods
35761         * XplatUIOSX.cs: Stubbed new cursor methods
35762         * XplatUIWin32.cs:
35763           - Implemented new cursor methods
35764           - Added GetSystemMetrics function and associated enumeration
35765
35766 2005-01-15  Peter Bartok  <pbartok@novell.com>
35767
35768         * Control.cs:
35769           - WndProc(): Now handles EnableNotifyMessage
35770           - SelectNextControl(): Fixed bug where if no child or sibling
35771             controls exist we looped endlessly
35772
35773 2005-01-14  Jackson Harper  <jackson@ximian.com>
35774
35775         * TreeView.cs: Recalculate the tab pages when a new one is added
35776         so that the proper bounding rects are created.
35777
35778 2005-01-14  Jackson Harper  <jackson@ximian.com>
35779
35780         * TreeView.cs: Draw a gray box instead of a grip in the lower
35781         right hand corner when there are both horizontal and vertical
35782         scroll bars.
35783
35784 2005-01-14  Jackson Harper  <jackson@ximian.com>
35785
35786         * Control.cs: When erasing backgrounds use FromHwnd instead of
35787         FromHdc when there is a NULL wparam. This occurs on the X driver.
35788         * XplatUIX11.cs: Set the wparam to NULL.
35789
35790 2005-01-13  Jackson Harper  <jackson@ximian.com>
35791
35792         * PictureBox.cs: Implement missing methods (except ToString, need
35793         to test that on windows) and events. When visibility is changed we
35794         need to redraw the image because the buffers are killed. When size
35795         is changed refresh if the sizemode needs it.
35796
35797 2005-01-13  Peter Bartok  <pbartok@novell.com>
35798
35799         * Control.cs (SelectNextControl): Was using wrong method to select
35800           a control
35801
35802 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35803
35804         * ComboBox.cs: fixes dropstyle
35805
35806 2005-01-13  Peter Bartok  <pbartok@novell.com>
35807
35808         * Form.cs:
35809           - Implemented Select() override
35810           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
35811           - Now sets keyboard focus on startup
35812         * Control.cs (SelectNextControl): Now properly handles directed=true
35813         * TextBoxBase.cs:
35814           - WndProc: Now passes tab key on to base if AcceptTabChar=false
35815           - Added (really bad) focus rectangle (mostly for testing)
35816         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
35817           to enforce redraw on focus changes
35818         * ContainerControl.cs:
35819           - Fixed detection of Shift-Tab key presses
35820           - Fixed traversal with arrow keys
35821         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
35822           gonna keep this or if it's complete yet
35823         
35824 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35825
35826         * ComboBox.cs: missing properties, fixes
35827
35828 2005-01-13  Peter Bartok  <pbartok@novell.com>
35829
35830         * Panel.cs (ctor): Setting Selectable window style to off
35831         * Splitter.cs (ctor): Setting Selectable window style to off
35832         * GroupBox.cs (ctor): Setting Selectable window style to off
35833         * Label.cs (ctor): Setting Selectable window style to off
35834
35835 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
35836
35837         * UpDownBase.cs (InitTimer): If the timer has been already
35838         created, enable it.
35839
35840         Use a TextBox instead of a Label.
35841
35842 2005-01-12  Jackson Harper  <jackson@ximian.com>
35843
35844         * TreeView.cs: Refresh the tree after sorting the nodes. Always
35845         draw the connecting node lines (when ShowLines is true).
35846         * TreeNode.cs: The nodes index can now be updated. This is used
35847         when a node collection is sorted.
35848         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
35849         insert or an existing unsorted node collection can be sorted.
35850         
35851 2005-01-12  Peter Bartok  <pbartok@novell.com>
35852
35853         * ContainerControl.cs: Implemented ProcessDialogKeys()
35854
35855 2005-01-12  Peter Bartok  <pbartok@novell.com>
35856
35857         * Control.cs:
35858           - Implemented SelectNextControl() method
35859           - Several focus related bug fixes
35860           - Fixed Docking calculations to match MS documentation and
35861             behaviour
35862
35863 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
35864
35865         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
35866         bug fixes
35867
35868 2005-01-12  Peter Bartok  <pbartok@novell.com>
35869
35870         * Control.cs:
35871           - Fixed broken Contains() method
35872           - Implemented GetNextControl() method. Finally. This is the pre-
35873             requisite for focus handling.
35874
35875 2005-01-12  Peter Bartok  <pbartok@novell.com>
35876
35877         * OSXStrucs.cs: Added
35878
35879 2005-01-12  Peter Bartok  <pbartok@novell.com>
35880
35881         * XplatUIWin32.cs:
35882           - Removed PeekMessageFlags
35883           - Implemented SetWindowStyle() method
35884         * XplatUIStructs.cs: Added PeekMessageFlags
35885         * X11Structs: Added missing border_width field to XWindowChanges struct
35886         * XplatUIX11.cs:
35887           - PeekMessage: Now throws exception if flags which are not yet
35888             supported are passed
35889           - Implemented SetWindowStyle() method
35890           - Fixed SetZOrder to handle AfterHwnd properly
35891         * XplatUI.cs: Added SetWindowStyle() method
35892         * XplatUIDriver.cs: Added SetWindowStyle() abstract
35893         * Control.cs:
35894           - Implemented UpdateStyles() method
35895           - Implemented UpdateZOrder() method
35896         * XplatUIOSX.cs: Added SetWindowStyle() stub
35897
35898 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
35899
35900         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
35901         button mouse).
35902
35903
35904 2005-01-11  Jackson Harper  <jackson@ximian.com>
35905
35906         * TreeView.cs: Still need to draw lines to siblings even if out of
35907         the current node is out of the clip.
35908
35909 2005-01-11  Jackson Harper  <jackson@ximian.com>
35910
35911         * TreeView.cs: When setting the hbar/vbar/grip position use
35912         SetBounds so that perform layout is only called once. Also suspend
35913         and resume layout so layout is only done once for all controls.
35914         - Removed some debug fluff
35915         * SizeGrip.cs: Call base implmentation in overriding methods.
35916         - When visibility is changed the drawing buffers are killed so we
35917         need to redraw.
35918
35919 2005-01-11  Jackson Harper  <jackson@ximian.com>
35920
35921         * TreeView.cs: Calculate the open node count while drawing. This
35922         saves us an entire tree traversal for every paint operation. Use
35923         a member var for the open node count so less vars are passed around.
35924
35925 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
35926
35927         * MonthCalendar.cs:
35928         - fixed selection to use mousemove, not mouse polling on timer
35929         * ThemeWin32Classic.cs
35930         - removed redundant unused variable "no_more_content"
35931         
35932 2005-01-11  Peter Bartok  <pbartok@novell.com>
35933
35934         * XplatUIX11.cs (DoEvents): Needs to return when no more events
35935           are pending, so it now calls PeekMessage instead of GetMessage;
35936           implemented a incomplete version of PeekMessage
35937         
35938 2005-01-11  Peter Bartok  <pbartok@novell.com>
35939
35940         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
35941           I18n issues
35942         * TextBoxBase.cs: Added sending of TextChanged event
35943
35944 2005-01-10  Jackson Harper  <jackson@ximian.com>
35945
35946         * TreeView.cs: Try not to draw outside the clipping rectangle on
35947         each node element.
35948
35949 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
35950
35951         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
35952
35953 2005-01-10  Jackson Harper  <jackson@ximian.com>
35954
35955         * TreeView.cs:
35956         - Implement fast scrolling. Now only the newly
35957         exposed nodes are drawn and the old image is moved using the
35958         XplatUI::ScrollWindow method.
35959         - Factor in height of nodes when calculating whether or not the
35960         node is in the clipping rect.
35961
35962 2005-01-10  Jackson Harper  <jackson@ximian.com>
35963
35964         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
35965
35966 2005-01-10  Peter Bartok  <pbartok@novell.com>
35967
35968         * Application.cs: Added temporary hack to resolve all our resize
35969           required issues on startup. This will get fixed properly at
35970           some point in the future
35971
35972 2005-01-10  Jackson Harper  <jackson@ximian.com>
35973
35974         * SizeGrip.cs: New internal class that is used as a sizing
35975         grip control...hence the name.
35976
35977 2005-01-10  Peter Bartok  <pbartok@novell.com>
35978
35979         * Control.cs: Implemented proper TabIndex handling, now assigning
35980           a tabindex when a control is added to a container
35981         * GroupBox.cs (ctor): Now sets the Container style bit, required
35982           for Control.GetNextControl()
35983
35984 2005-01-09  Jackson Harper  <jackson@ximian.com>
35985
35986         * TextBoxBase.cs: Clear window when scrolling (fixes build).
35987
35988 2005-01-09  Peter Bartok <pbartok@novell.com>
35989
35990         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35991           XplatUIX11.cs: Added ability to control ScrollWindow expose and
35992           an overload for ScrollWindow to allow only scrolling a rectangle
35993
35994 2005-01-09  Peter Bartok <pbartok@novell.com>
35995
35996         * Form.cs:
35997           - Implemented SetDesktopBounds method
35998           - Implemented SetDesktopLocation method
35999
36000 2005-01-08  Jackson Harper  <jackson@ximian.com>
36001
36002         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
36003         the node count has changed, this removes to VScroll::Refresh calls
36004         when drawing.
36005
36006 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
36007
36008         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
36009
36010 2005-01-07  Jackson Harper  <jackson@ximian.com>
36011
36012         * TreeNode.cs: Just update the single node when it is
36013         checked. Don't refresh after toggling, the Expand/Collapse already
36014         handles this.
36015         * TreeView.cs: Respect clipping a little more when drawing. Try
36016         not to redraw things that don't need to be redrawn. Just hide the
36017         scrollbars when they are no longer needed instead of removing
36018         them, so they don't have to be created again and again.
36019         
36020 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
36021
36022         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
36023         coordinates to window space to place the caret properly, FIXED.
36024         Implement GetWindowState & SetWindowState
36025
36026 2005-01-06  Peter Bartok <pbartok@novell.com>
36027
36028         * Form.cs:
36029           - Implemented ClientSize property
36030           - Implemented DesktopBounds property
36031           - Implemented DesktopLocation property
36032           - Implemented IsRestrictedWindow property
36033           - Implemented Size property
36034           - Implemented TopLevel property
36035           - Implemented FormWindowState property
36036         * Control.cs:
36037           - Implemented GetTopLevel() method
36038           - Implemented SetTopLevel() method
36039         * X11Structs.cs (Atom):
36040           - Added AnyPropertyType definition
36041           - Added MapState definiton and updated XWindowAttribute struct
36042         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
36043         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
36044         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
36045         * XplatUIWin32.cs:
36046           - Implemented GetWindowState() and SetWindowState() methods
36047           - Fixed Win32GetWindowLong return type
36048         * XplatUIX11.cs:
36049           - Introduced central function for sending NET_WM messages
36050           - Implemented GetWindowState() and SetWindowState() methods
36051         * TextBoxBase.cs (set_Lines):
36052           - Now uses Foreground color for text added via Text property (Duh!)
36053           - Added code to remember programmatically requested size (fixes
36054             behaviour when Multiline is set after Size)
36055           - Added AutoSize logic
36056
36057 2005-01-06  Jackson Harper  <jackson@ximian.com>
36058
36059         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
36060
36061 2005-01-06  Jackson Harper  <jackson@ximian.com>
36062
36063         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
36064         set to less then 0.
36065
36066 2005-01-06  Jackson Harper  <jackson@ximian.com>
36067
36068         * ScrollableControl.cs: Lazy init the scrollbars.
36069         
36070 2005-01-06  Jackson Harper  <jackson@ximian.com>
36071
36072         * Theme.cs: Speed up getting pens and solid brushes, by using
36073         their ARGB as a hash instead of tostring and not calling Contains.
36074
36075 2005-01-06  Peter Bartok <pbartok@novell.com>
36076
36077         * Form.cs:
36078           - Implemented OnActivated and OnDeactivate event trigger
36079           - Implemented Activate() method
36080           - Fixed ShowDialog() to activate the form that was active before
36081             the dialog was shown
36082         * XplatUIX11.cs:
36083           - Added global active_window var that tracks the currently active
36084             X11 window
36085           - Now always grabs Property changes from the root window to always
36086             catch changes on the active window property
36087           - Added code to PropertyNotify handler to send Active/Inactive
36088             messages when state changes. This puts X11 and Win32 en par on
36089             WM_ACTIVATE notifications (except for double notifications when
36090             the user clicks away from our modal window to another one of our
36091             windows)
36092
36093 2005-01-05  Jackson Harper  <jackson@ximian.com>
36094
36095         * ImageList.cs: Implment ctor
36096
36097 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36098
36099         * XplatUIOSX.cs: Implement Activate/SetTopmost
36100
36101 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36102
36103         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
36104
36105 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36106
36107         * XplatUIOSX.cs: Implement GetActive/SetFocus.
36108
36109 2005-01-05  Peter Bartok <pbartok@novell.com>
36110
36111         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
36112           XplatUIOSX.cs: Added GetActive method to return the currently
36113           active window for the application (or null, if none is active)
36114         * Form.cs:
36115           - Implemented ActiveForm
36116           - Commented out owner assignment for modal dialogs (causes problems
36117             on Win32, since the owner will be disabled)
36118           - Reworked some Active/Focus handling (still incomplete)
36119         * CommonDialog.cs: Commented out owner assignment for modal dialogs
36120           (causes problems on Win32, since the owner will be disabled)
36121         * IWin32Window: Added ComVisible attribute
36122
36123 2005-01-05  Peter Bartok <pbartok@novell.com>
36124
36125         * ToolTip.cs (WndProc): Enable setting focus now that we have the
36126           required XplatUI functions.
36127
36128 2005-01-05  Peter Bartok <pbartok@novell.com>
36129
36130         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
36131           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
36132           to implement focus and activation handling; still incomplete and
36133           with debug output
36134
36135 2005-01-04  Peter Bartok <pbartok@novell.com>
36136
36137         * TextBoxBase.cs: Changed access level for Document property to
36138           match switch to internal for TextControl
36139
36140 2005-01-04  Peter Bartok <pbartok@novell.com>
36141
36142         * AccessibleObject: Added ComVisible attribute
36143
36144 2005-01-04  Jackson Harper  <jackson@ximian.com>
36145
36146         * X11Keyboard.cs: Remove unneeded var.
36147
36148 2005-01-04  Jackson Harper  <jackson@ximian.com>
36149
36150         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
36151         but PAINT.
36152         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
36153         ClientMessage. This makes apps exit cleanly (more often).
36154         
36155 2005-01-04  Jackson Harper  <jackson@ximian.com>
36156
36157         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
36158         handling focus, return correct colors and fonts,
36159         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
36160         handle selection, horizontal scrolling, and mouse interaction.
36161
36162 2005-01-04  Peter Bartok <pbartok@novell.com>
36163
36164         * ICommandExecutor.cs: Added
36165         * IDataGridColumnStyleEditingNotificationService.cs: Added
36166         * IFeatureSupport.cs: Added
36167         * IFileReaderService.cs: Added
36168         * IDataObject.cs: Added ComVisible attribute
36169         * AmbientProperties.cs: Added
36170         * BaseCollection.cs: Added missing attributes
36171         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
36172         * BaseCollection.cs: Added missing attributes
36173         * Binding.cs: Added TypeConverter attribute
36174         * BindingContext.cs: Added DefaultEvent attribute
36175         * BindingsCollection.cs: Added DefaultEvent attribute
36176         * Button.cs: Added DefaultValue attribute
36177         * DragEventArgs.cs: Added ComVisible attribute
36178         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
36179         * KeyEventArgs.cs: Added ComVisible attribute
36180         * KeyPressEventArgs.cs: Added ComVisible attribute
36181         * MouseEventArgs.cs: Added ComVisible attribute
36182         * NavigateEventArgs.cs: Added
36183         * NavigateEventHandler.cs: Added
36184         * FeatureSupport.cs: Added
36185         * OSFeature.cs: Added
36186         * Theme.cs: Added abstract Version property to support OSFeature
36187         * ThemeWin32Classic.cs: Added Version property to
36188           support OSFeature.Themes
36189         * ProgressBar.cs: Removed OnPaintBackground override, not required since
36190           the proper styles to avoid background drawing are set, also doesn't
36191           match MS signature
36192         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
36193         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
36194         * ScrollEventArgs.cs: Added ComVisible attribute
36195         * SplitterEventArgs.cs: Added ComVisible attribute
36196         * AccessibleSelection.cs: Added Flags attribute
36197         * Appearance.cs: Added ComVisible attribute
36198         * Border3DSide.cs: Added ComVisible attribute
36199         * Border3DStyle.cs: Added ComVisible attribute
36200         * BorderStyle.cs: Added ComVisible attribute
36201         * DragAction.cs: Added ComVisible attribute
36202         * ErrorBlinkStyle.cs: Added
36203         * ScrollEventType.cs: Added ComVisible attribute
36204         * AnchorStyles.cs: Added Editor attribute
36205         * DockStyle.cs: Added Editor attribute
36206         * HorizontalAlignment.cs: Added ComVisible attribute
36207         * HelpEventArgs.cs: Added ComVisible attribute
36208         * PaintEventArgs.cs: Added IDisposable
36209
36210 2005-01-04  Peter Bartok <pbartok@novell.com>
36211
36212         * TextControl.cs: Switched Line, LineTag and Document classes to
36213           internal
36214
36215 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
36216
36217         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
36218         Simple mode, fixes, IntegralHeight, etc.
36219
36220 2005-01-04  Peter Bartok <pbartok@novell.com>
36221
36222         * TextBoxBase.cs: Using proper font variable now
36223
36224 2005-01-04  Peter Bartok <pbartok@novell.com>
36225
36226         * Form.cs (ShowDialog): Set parent to owner, if provided
36227         * GroupBox.cs: Removed unused vars
36228         * TextControl.cs:
36229           - Added GetHashCode() for Document and LineTag classes
36230           - Removed unused variables
36231           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
36232             to allow translation between continuous char position and line/pos
36233         * CheckBox.cs: Removed vars that are provided by base class
36234         * RadioButton.cs: Removed vars that are provided by base class, added
36235           new keyword where required
36236         * LinkLabel.cs: Added new keyword where required
36237         * Control.cs (WndProc): Removed unused variable
36238         * TextBoxBase.cs:
36239           - Finished SelectionLength property
36240           - Implemented SelectionStart property
36241           - Implemented Text property
36242           - Removed unused vars
36243         * MessageBox.cs: Added new keyword where required
36244         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
36245           WndProc signature
36246         * MenuAPI.cs: Added new keyword where required
36247         * ButtonBase.cs: Removed vars that are provided by base class, added
36248           new keyword where required
36249         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
36250           argument to double, to allow compiling with csc 2.0 (Atsushi ran
36251           into this)
36252         * Application.cs (Run): Now triggers the ThreadExit event
36253         * CommonDialog.cs: Added new keyword where required; now properly sets
36254           parent (owner) for dialog
36255         * XplatUIX11.cs: Commented out unused vars
36256         * StatusBar.cs: Fixed signature for Text property
36257         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
36258
36259 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
36260
36261         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
36262         TrackBar.cs, MonthCalendar.cs: remove unused vars
36263
36264 2005-01-03  Jackson Harper  <jackson@ximian.com>
36265
36266         * ThemeWin32Classic.cs:
36267         * X11Keyboard.cs: Remove unused vars.
36268
36269 2005-01-03  Peter Bartok  <pbartok@novell.com>
36270
36271         * TextBox.cs:
36272           - set_Text: Tied into TextControl
36273           - set_TextAlignment: Tied into TextControl
36274         * TextControl.cs:
36275           - Added alignment properties and implemented alignment handling
36276             and drawing (still has a bug, not generating proper expose events)
36277           - Added new Line() constructor to allow passing the line alignment
36278           - Fixed selection setting, properly handling end<start now
36279           - Added aligment considerations to RecalculateDocument()
36280         * TextBoxBase.cs:
36281           - Now properly enforces control height for single line controls
36282           - Added support for CharacterCasing
36283           - Added IsInputKey override
36284           - Fixed Keys.Enter logic
36285           - Added SetBoundsCore override
36286           - Fixed mouse selection handling
36287
36288 2005-01-03  Jackson Harper  <jackson@ximian.com>
36289
36290         * TreeView.cs:
36291           - Collapse and uncheck all nodes when CheckBoxes is disabled.
36292           - Checkboxes are always aligned to the bottom of the node,
36293           regardless of item height.
36294           - Use the node bounds to draw the text so we can center it when
36295           the item height is greater then the font height.
36296           - Node::Bounds are only the text part of the node.
36297         * TreeNode.cs: New method to combine collapsing and unchecking all
36298           nodes recursively.
36299
36300 2005-01-02  Jackson Harper  <jackson@ximian.com>
36301
36302         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
36303         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
36304         tree when a check is changed. TODO: Only refresh the checked node.
36305
36306 2004-12-30  Jackson Harper  <jackson@ximian.com>
36307
36308         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
36309         * TreeNode.cs: When collapsing make sure to never collapse the
36310         root node.
36311
36312 2004-12-29  Jackson Harper  <jackson@ximian.com>
36313
36314         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
36315         
36316 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
36317
36318         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
36319
36320 2004-12-28  Peter Bartok  <pbartok@novell.com>
36321
36322         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
36323           not yet assigned
36324
36325 2004-12-28  Peter Bartok  <pbartok@novell.com>
36326
36327         * Control.cs (WndProc): Added WM_HELP handler, now generates
36328           HelpRequested event
36329         * Form.cs: Added HelpButton property and required support code
36330         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
36331
36332 2004-12-28  Peter Bartok  <pbartok@novell.com>
36333
36334         * CommonDialog.cs:
36335           - Made DialogForm.owner variable internal
36336           - Added check to ensure owner form is set before setting
36337             owner properties in CreateParams
36338
36339 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
36340
36341         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
36342           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
36343           GetCursorPos.  Fix major visibility issues.  Rework the windowing
36344           system to support borderless/titleless windows (implements menus).
36345           Fix GetWindowPos.  Implement initial background color support for
36346           views.
36347
36348 2004-12-28  Peter Bartok  <pbartok@novell.com>
36349
36350         * Form.cs (get_CreateParams): Make sure we have an owner before using
36351           the owner variable. Implement proper default if no owner exists
36352
36353 2004-12-28  Peter Bartok  <pbartok@novell.com>
36354
36355         * In preparation for making Managed.Windows.Forms the default build target
36356           for System.Windows.Forms, the following stubbed files were added.
36357           Dialogs are currently being implemented by contributors and are only
36358           short-term place holders.
36359         * ColorDialog.cs: Initial check-in (minmal stub)
36360         * DataGrid.cs: Initial check-in (minimal stub)
36361         * DataGridLineStyle.cs: Initial check-in (minimal stub)
36362         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
36363         * DataGridTableStyle.cs: Initial check-in (minimal stub)
36364         * FontDialog.cs: Initial check-in (minimal stub)
36365         * FileDialog.cs: Initial check-in (minimal stub)
36366         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
36367         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
36368         * OpenFileDialog: Initial check-in (minimal stub)
36369         * IComponentEditorPageSite.cs: Initial check-in
36370         * Splitter.cs: Initial check-in (for Jackson)
36371         * SplitterEventArgs.cs: Initial check-in (for Jackson)
36372         * SplitterEventHandler.cs: Initial check-in (for Jackson)
36373         * TextBox.cs: Initial check-in; still needs some wiring to
36374           TextControl backend
36375         * Form.cs: Implemented ControlBox property
36376         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
36377         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
36378         * TextControl.cs: Added selection functionality; added todo header
36379         * TextBoxBase.cs:
36380           - Implemented Lines property
36381           - Implemented TextHeight property
36382           - Implemented SelectedText property
36383           - Implemented SelectionLength property
36384           - Implemented SelectAll method
36385           - Implemented ToString method
36386           - Removed and cleaned up some debug code
36387           - Implemented (still buggy) mouse text selection
36388
36389 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
36390
36391         * ComboBox.cs: Complete DropDownList implementation, fixes.
36392
36393 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
36394
36395         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
36396         * ComboBoxStyle.cs: ComboBoxStyle enum
36397         * ComboBox.cs: Initial work on ComboBox control
36398
36399 2004-12-21  Peter Bartok  <pbartok@novell.com>
36400
36401         * Control.cs (ctor, CreateParams): Moved setting of is_visible
36402           forward so that anything that creates a window gets the default,
36403           also no longer uses Visible property in CreateParams to avoid
36404           walking up the parent chain and possibly get the wrong visible
36405           status. Fixed IsVisible to no longer walk up to the parent.
36406
36407 2004-12-21  Peter Bartok  <pbartok@novell.com>
36408
36409         * Form.cs (ShowDialog): Unset modality for the proper window
36410  
36411 2004-12-20  Peter Bartok  <pbartok@novell.com>
36412
36413         * CommonDialog.cs: Initial check-in
36414
36415 2004-12-20  Peter Bartok  <pbartok@novell.com>
36416
36417         * Control.cs (Visible): Now uses the parent window instead of the
36418           client area window for the property
36419
36420         * Form.cs
36421           - ShowDialog(): Now uses the proper window for modality
36422           - The default visibility state for the form parent is now false. This
36423             will prevent the user from seeing all the changes to the form and
36424             its controls before the application hits Application.Run()
36425           - Removed some stale commented out code
36426
36427         * NativeWindow.cs:
36428           - Added FindWindow() method to have a method to check for existence
36429             of a window handle
36430           - Added ability to override default exception handling (for example
36431             when debugging with VS.Net; to do this the ExternalExceptionHandler
36432             define must be set
36433           - Removed some useless debug output
36434
36435         * XplatUIX11.cs:
36436           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
36437             not working as expected
36438           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
36439             property to allow switching back to the modal window if focus is
36440             given to another one of our windows (Application Modal)
36441           - Now only sets override_redirect if we create a window
36442             without WS_CAPTION
36443           - Moved EventMask selection before mapping of newly created window
36444             so we can catch the map event as well
36445           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
36446           - Added various Atom related DllImports
36447           - Implemented Exit() method
36448           - .ctor() : No longer shows window if WS_VISIBLE is not defined
36449             in the CreateParams
36450
36451         * MessageBox.cs: Now properly deals with the FormParent window by
36452           providing an override the FormParent CreateParams property to
36453           set as POPUP instead of OVERLAPPED window.
36454
36455 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
36456
36457         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
36458         Minor code cleanup.
36459
36460 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
36461         
36462         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
36463
36464 2004-12-18  Peter Bartok  <pbartok@novell.com>
36465
36466         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
36467           implementing SetModal() method
36468
36469 2004-12-18  Peter Bartok  <pbartok@novell.com>
36470
36471         * X11Structs.cs (XGCValues): Fixed type of function element
36472         * XplatUI.cs: Added ScrollWindow() method
36473         * XplatUIDriver.cs: Added ScrollWindow() abstract
36474         * XplatUIWin32.cs: Implemented ScrollWindow() method
36475         * XplatUIX11.cs: Implemented ScrollWindow() method
36476         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
36477
36478 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36479
36480         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
36481         Some more keyboard support (INCOMPLETE)
36482
36483 2004-12-17  Peter Bartok  <pbartok@novell.com>
36484
36485         * TextControl.cs:
36486         - Added color attribute to line tags.
36487         - Added color argument to all functions dealing with tags
36488         - Added color argument support to various functions
36489         - Fixed miss-calculation of baseline/shift in certain circumstances
36490
36491         * TextBoxBase.cs: Added new color option to test code
36492
36493 2004-12-17  Jackson Harper  <jackson@ximian.com>
36494
36495         * TreeNode.cs:
36496         * MonthCalendar.cs: Signature fixes
36497
36498 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36499
36500         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
36501         keyboard event moved it.  Create a new graphics context for each paint resolves this
36502
36503 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36504
36505         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
36506         Make caret exist and go blink blink.  Initial keyboard support.
36507         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
36508         works.
36509
36510 2004-12-17  Jackson Harper  <jackson@ximian.com>
36511
36512         * XplatUIStructs.cs: Updated set of virtual keycodes.
36513         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
36514
36515 2004-12-17  Jackson Harper  <jackson@ximian.com>
36516
36517         * XplatUIX11.cs: Prune old keyboard code.
36518
36519 2004-12-17  Jackson Harper  <jackson@ximian.com>
36520
36521         * XplatUIX11.cs: When generating mouse wparams get the modifier
36522         keys from the ModifierKeys property.
36523
36524 2004-12-17  Jackson Harper  <jackson@ximian.com>
36525
36526         * X11Keyboard.cs: Send up/down input when generating
36527         messages. Remove some unused vars.
36528
36529 2004-12-17  Jackson Harper  <jackson@ximian.com>
36530
36531         * TabControl.cs:
36532         * TreeView.cs: get rid of warnings.
36533
36534 2004-12-17  Jackson Harper  <jackson@ximian.com>
36535
36536         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
36537
36538 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
36539
36540         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
36541           CheckedListBox.cs: Implementation
36542
36543 2004-12-17  Peter Bartok  <pbartok@novell.com>
36544
36545         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
36546
36547 2004-12-16  Peter Bartok  <pbartok@novell.com>
36548
36549         * TextControl.cs:
36550           - InsertCharAtCaret(): Fixed start pos fixup
36551           - CaretLine_get: No longer derives the line from the tag, the tag
36552             could be stale if lines in the document have been added or deleted
36553           - RebalanceAfterDelete(): Fixed bug in balancing code
36554           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
36555           - Line.Streamline(): Now can also elminate leading empty tags
36556           - DumpTree(): Added a few more tests and prevented exception on
36557             uninitialized data
36558           - Added Debug section for Combining lines
36559           - Delete(): Now copies all remaining properties of a line
36560           
36561         * TextBoxBase.cs:
36562           - Left mousebutton now sets the caret (and middle button still acts
36563             as formatting tester, which must go away soon)
36564           - Added Debug section for Deleting/Combining lines
36565           - Fixed calculations for UpdateView after Combining lines
36566
36567 2004-12-16  Peter Bartok  <pbartok@novell.com>
36568
36569         * TextControl.cs: Now properly aligns text on a baseline, using the
36570           new XplatUI.GetFontMetrics() method. Simplified several calculations
36571         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
36572           defined
36573
36574 2004-12-16  Peter Bartok  <pbartok@novell.com>
36575
36576         * XplatUI.cs: Added GetFontMetrics() method
36577         * XplatUIDriver.cs: Added GetFontMetrics() abstract
36578         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
36579           into libgdiplus, our private GetFontMetrics function
36580         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
36581         * XplatUIWin32.cs: Implemented GetFontMetrics() method
36582
36583 2004-12-16  Jackson Harper  <jackson@ximain.com>
36584
36585         * XplatUIStruct.cs: Add enum for dead keys
36586         * X11Keyboard.cs: Map and unmap dead keys.
36587
36588 2004-12-16  Jackson Harper  <jackson@ximian.com>
36589
36590         * X11Keyboard.cs: Detect and use the num lock mask.
36591
36592 2004-12-16  Peter Bartok  <pbartok@novell.com>
36593
36594         * Control.cs (CreateGraphics): Added check to make sure the
36595           handle of the window exists before calling Graphics.FromHwnd()
36596
36597 2004-12-16  Peter Bartok  <pbartok@novell.com>
36598
36599         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
36600           contains a lot of code that's not supposed to be there for the
36601           real thing, but required for developing/testing the textbox
36602           backend.
36603
36604 2004-12-16  Peter Bartok  <pbartok@novell.com>
36605
36606         * TextControl.cs:
36607         - Fixed Streamline method
36608         - Added FindTag method to Line
36609         - Added DumpTree method for debugging
36610         - Added DecrementLines() method for deleting lines
36611         - Fixed UpdateView to update the cursor to end-of-line on single-line
36612           updates
36613         - Added PositionCaret() method
36614         - Fixed MoveCaret(LineDown) to move into the last line, too
36615         - Added InsertChar overload
36616         - Fixed InsertChar tag offset calculations
36617         - Added DeleteChar() method
36618         - Added Combine() method for folding lines
36619         - Fixed Delete() method, no longer allocates wasted Line object and
36620           now copies all properties when swapping nodes
36621         - Delete() method now updates document line counter
36622
36623 2004-12-15  Jackson Harper  <jackson@ximian.com>
36624
36625         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
36626         * X11Keyboard.cs: Expose the currently selected modifier keys
36627         through a property.
36628
36629 2004-12-15  Peter Bartok  <pbartok@novell.com>
36630
36631         * TextControl.cs: Initial check-in. Still incomplete
36632
36633 2004-12-15  Jackson Harper  <jackson@ximian.com>
36634
36635         * TreeNode.cs:
36636         * TreeView.cs: Fix build on csc (second time today ;-))
36637
36638 2004-12-15  Jackson Harper  <jackson@ximian.com>
36639
36640         * TreeView.cs: Store the treenodes plus/minus box bounds when it
36641         is calculated and use this for click testing.
36642         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
36643
36644 2004-12-15  Jackson Harper  <jackson@ximian.com>
36645
36646         * TreeView.cs: Pass the nodes image index to the image list when
36647         drawing that image.
36648
36649 2004-12-15  Jackson Harper  <jackson@ximian.com>
36650
36651         * X11Keyboard.cs: Set messages hwnd.
36652         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
36653         post_message calls.
36654
36655 2004-12-15  Jackson Harper  <jackson@ximian.com>
36656
36657         * X11Keyboard.cs: Fix to compile with csc.
36658         
36659 2004-12-15  Jackson Harper  <jackson@ximian.com>
36660
36661         * X11Structs.cs: Add key mask values
36662         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
36663         * X11Keyboard.cs: New file - Extrapolates and interpolates key
36664         down/up foo into WM_CHAR foo
36665         * KeyboardLayouts.cs: Common keyboard layouts
36666         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
36667         post messages into the main queue.
36668
36669 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
36670
36671         * Button.cs: implement ProcessMnemonic
36672         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
36673           brushes everytime
36674         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
36675         * ButtonBase.cs: Show HotkeyPrefix (not the &)
36676
36677 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
36678         
36679         * MonthCalendar.cs: Implemented click-hold for next/previous month
36680           and date selection
36681           
36682 2004-12-11  Peter Bartok  <pbartok@novell.com>
36683
36684         * X11Structs.cs:
36685           - Added XKeyboardState (moved from XplatUIX11.cs)
36686           - Added XCreateGC related enums and structures
36687           - Added GXFunction for XSetFunction
36688
36689         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
36690
36691         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
36692           CaretVisible() calls
36693
36694         * ToolTip.cs: Added code to prevent stealing focus from app windows
36695
36696         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
36697           DestroyCaret, SetCaretPos and CaretVisible)
36698
36699         * XplatUIX11.cs:
36700           - Added implementation for caret functions
36701           - Moved hover variables into a struct, to make it a bit easier
36702             on the eyes and to debug
36703           - Removed XKeyboardState (moved to XplatUIX11.cs)
36704           - Moved Keyboard properties into the properties region
36705
36706         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
36707           call to get a graphics context for our control
36708
36709         * XplatUIOSX.cs: Added empty overrides for the new caret functions
36710
36711         * TreeView.cs: Fixed bug. No matter what color was set it would always
36712           return SystemColors.Window
36713
36714         * XplatUIWin32.cs: Implemented caret overrides
36715
36716 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
36717
36718         * ListBox.cs: fire events, implement missing methods and properties,
36719         sorting.
36720
36721 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
36722
36723         * MonthCalendar.cs: invalidation bug fixing
36724         * ThemeWin32Classic.cs: paint fixing
36725
36726 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
36727
36728         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
36729         prepare the CGContextRef there now.
36730
36731 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
36732
36733         * MonthCalendar.cs:
36734           - optimisationL only invalidate areas that have changed
36735         * ThemeWin32Classic.cs:
36736           - only paint parts that intersect with clip_area
36737
36738 2004-12-09  Peter Bartok  <pbartok@novell.com>
36739
36740         * Application.cs: Undid changes from r37004 which cause problems
36741         on X11
36742
36743 2004-12-09  Ravindra  <rkumar@novell.com>
36744
36745         * ToolBar.cs: Added support for displaying ContextMenu
36746         attached to a button on ToolBar.
36747         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
36748         property.
36749
36750 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36751
36752         * Label.cs: autosize works in text change and removes unnecessary
36753         invalidate
36754
36755 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36756
36757         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
36758         remove warnings
36759
36760 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
36761
36762         * XplatUIOSX.cs: Added mouse move/click/grab support
36763         Remove some debugging WriteLines not needed anymore.
36764         Add window resizing/positioning.
36765         Fix visibility on reparenting.
36766
36767 2004-12-08  Peter Bartok  <pbartok@novell.com>
36768
36769         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
36770
36771 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
36772
36773         * XplatUIOSX.cs: Initial checkin
36774         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
36775
36776 2004-12-03  Ravindra <rkumar@novell.com>
36777
36778         * ListView.cs: Added some keybindings and fixed scrolling.
36779         ScrollBars listen to ValueChanged event instead of Scroll
36780         Event. This would let us take care of all changes being
36781         done in the scrollbars' values programmatically or manually.
36782         * ListView.cs (CanMultiselect): Added a check for shift key.
36783         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
36784         * ListViewItem.cs (Clone): Fixed. We need to make a copy
36785         of ListViewSubItemCollection as well.
36786
36787 2004-12-06  Peter Bartok <pbartok@novell.com>
36788
36789         * Control.cs (Parent): Added check and exception to prevent
36790         circular parenting
36791
36792 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
36793
36794         * ListBox.cs: implemented clipping, selection single and multiple,
36795         bug fixing
36796
36797 2004-12-03  Ravindra <rkumar@novell.com>
36798
36799         * ListView.cs (ListView_KeyDown):
36800         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
36801         when CTRL key is pressed.
36802         * ListViewItem.cs (Selected): Fixed setting the property.
36803
36804 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
36805
36806         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
36807
36808         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
36809         MinimizeBox, ShowInTaskbar, TopMost properties.
36810
36811         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
36812         will be implemented).
36813
36814 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
36815
36816         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
36817
36818         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
36819         tests.
36820         
36821         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
36822         
36823         * TreeView.cs: BackColor is Colors.Window.
36824
36825 2004-12-01  Jackson Harper  <jackson@ximian.com>
36826
36827         * TreeView.cs: When resizing the tree if the user is making it
36828         smaller we don't get expose events, so we need to handle adding
36829         the horizontal scrollbar in the size changed handler as well as
36830         the expose handler.
36831
36832 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
36833
36834         * DrawItemState.cs: fixes wrong enum values
36835
36836 2004-12-01  Jackson Harper  <jackson@ximian.com>
36837
36838         * TreeView.cs: Resize the hbar as well as the vbar on resize.
36839
36840 2004-12-01  Jackson Harper  <jackson@ximian.com>
36841
36842         * NodeLabelEditEventArgs.cs:
36843         * NodeLabelEditEventHandler.cs:
36844         * OpenTreeNodeEnumerator.cs:
36845         * TreeNode.cs:
36846         * TreeNodeCollection.cs:
36847         * TreeView.cs:
36848         * TreeViewAction.cs:
36849         * TreeViewCancelEventArgs.cs:
36850         * TreeViewCancelEventHandler.cs:
36851         * TreeViewEventArgs.cs:
36852         * TreeViewEventHandler.cs: Initial implementation.
36853
36854 2004-12-01  Ravindra <rkumar@novell.com>
36855
36856         * ListView.cs (CalculateListView): Fixed scrolling related
36857         calculations. Also, removed some debug statements from other
36858         places.
36859         * ListViewItem.cs: Changed access to 'selected' instance variable
36860         from private to internal.
36861         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
36862
36863 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
36864
36865         * ThemeWin32Classic.cs: remove cache of brush and pens for
36866         specific controls and use the global system, fixes scrollbutton
36867         bugs (for small sizes, disabled, etc)
36868         
36869         * ScrollBar.cs: does not show the thumb for very small controls
36870         (as MS) and allow smaller buttons that the regular size
36871
36872 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
36873
36874         * UpDownBase.cs: Add abstract methods for the interface.
36875         Add new virtual methods (need to be hooked up to TextEntry when it
36876         exists).
36877         Add override methods for most features.
36878         Computes the size, forces the height of the text entry.
36879
36880         * NumericUpDown.cs: Put here the current testing code.
36881
36882         * Set eol-style property on all files that do not have mixed line
36883         endings, to minimize the future problems.  There are still a few
36884         files with mixed endings, and someone should choose whether they
36885         want to move it or not.
36886
36887 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
36888
36889         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
36890         System.Colors
36891         
36892 2004-11-30  Ravindra <rkumar@novell.com>
36893
36894         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
36895         drawing and replaced use of SystemColors by theme colors.
36896         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
36897         * ListView.cs (ListViewItemCollection.Add): Throw exception when
36898         same ListViewItem is being added more than once.
36899
36900 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
36901
36902         * MonthCalendar.cs:
36903           - ControlStyles love to make the control not flicker
36904           
36905 2004-11-30  Peter Bartok  <pbartok@novell.com>
36906
36907         * CharacterCasing.cs: Added
36908
36909 2004-11-29  Peter Bartok  <pbartok@novell.com>
36910
36911         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36912           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
36913           I am removing these files as they conflict with already completed
36914           work. While it is fantastic to get contributions to MWF, I
36915           respectfully ask that everyone please coordinate their contributions
36916           through mono-winforms-list or #mono-winforms at this time. We're
36917           explicitly avoiding stubbing and don't want controls that don't have
36918           their basic functionality implemented in svn. Please also see
36919           http://www.mono-project.com/contributing/winforms.html
36920
36921
36922 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
36923
36924         * Application.cs (ModalRun): Don't hang after exit.
36925
36926         * Theme.cs: New TreeViewDefaultSize property.
36927
36928         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
36929         with less hardcoded SystemColors constant.
36930         Implemented TreeViewDefaultSize.
36931
36932         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36933         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
36934
36935
36936 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
36937
36938         * MonthCalendar.cs:
36939           - Fix NextMonthDate and PrevMonthDate click moving calendar
36940
36941 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
36942
36943         * MonthCalendar.cs:
36944           - Fix usage of ScrollChange Property when scrolling months
36945
36946 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
36947
36948         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
36949          - Fixes menu destroying
36950          - Support adding and removing items on already created menus
36951
36952 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
36953
36954         * MonthCalendar.cs:
36955           - Re-worked all bolded dates handling to match win32
36956         * ThemeWin32Classic.cs:
36957           - Fixed rendering with bolded dates
36958
36959 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
36960
36961         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
36962         - Horizontal scroolbar
36963         - Multicolumn
36964         - Fixes
36965
36966
36967 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
36968
36969         * MonthCalendar.cs:
36970           - Fix Usage of MaxSelectionCount from SelectionRange
36971           - Fixed Shift + Cursor Selection
36972           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
36973           - Fixed normal cursor selection to be compat with win32
36974           - Fixed Shift + Mouse Click selection
36975
36976 2004-11-24  Peter Bartok <pbartok@novell.com>
36977
36978         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
36979         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
36980         * XplatUIX11.cs:
36981           - CreatedKeyBoardMsg now updates keystate with Alt key
36982           - Added workaround for timer crash to CheckTimers, Jackson will
36983             develop a proper fix and check in later
36984           - Implemented DispatchMessage
36985           - Removed calling the native window proc from GetMessage (call
36986             now moved to DispatchMessage)
36987
36988         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
36989           the keydata (Fixes bug #69831)
36990
36991         * XplatUIWin32.cs:
36992           - (DispatchMessage): Switched to return IntPtr
36993           - Added DllImport for SetFocus
36994
36995 2004-11-24  Ravindra <rkumar@novell.com>
36996
36997         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
36998         background drawing.
36999         * ListViewItem.cs: Fixed various properties, calculations
37000         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
37001         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
37002         and some internal properties. Fixed MouseDown handler and Paint
37003         method.
37004
37005 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37006
37007         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
37008
37009 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37010
37011         * ContainerControl.cs: correct accidental check in of local changes
37012
37013 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37014
37015         * ThemeWin32Classic.cs:
37016                 - Fixed Drawing Last month in grid (sometimes not showing)
37017         * MonthCalendar.cs:
37018                 - Fixed title width calculation bug (makeing title small)
37019
37020 2004-11-23  Peter Bartok <pbartok@novell.com>
37021
37022         * XplatUIX11.cs:
37023           - Added generation of WM_MOUSEHOVER event
37024           - Added missing assignment of async_method atom
37025           - Fixed WM_ERASEBKGND; now only redraws the exposed area
37026
37027 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
37028
37029         * ThemeWin32Classic.cs:
37030                 - Fixed Drawing of today circle when showtodaycircle not set
37031                 - fixed drawing of first and last month in the grid (gay dates)
37032         * MonthCalendar.cs:
37033                 - Fixed Drawing of today circle
37034                 - Fixed drawing of grady dates
37035                 - Fixed HitTest for today link when ShowToday set to false
37036                 - Fixed DefaultSize to obey ShowToday
37037
37038 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
37039
37040         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
37041         * System.Windows.Forms/Theme.cs
37042         * MonthCalendar.cs: added for MonthCalendar
37043         * SelectionRange.cs: added for MonthCalendar
37044         * Day.cs: added for MonthCalendar: added for MonthCalendar
37045         * DateRangeEventArgs.cs: added for MonthCalendar
37046         * DateRangeEventHandler.cs: added for MonthCalendar
37047
37048 2004-11-22  Ravindra <rkumar@novell.com>
37049
37050         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
37051         property.
37052
37053 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
37054
37055         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
37056         event handler.
37057         
37058         * NumericUpDown.cs: Added new implementation.
37059         * UpDownBase.cs: Added new implementation.
37060
37061         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
37062         implementations.
37063         
37064         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
37065         implementations.
37066
37067         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
37068         methods.
37069
37070 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
37071
37072         * Timer.cs  (Dispose): Should call the base dispose when
37073         overriding.
37074
37075 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
37076
37077         * ScrollBar.cs: updates thumb position when max, min or increment
37078         is changed
37079
37080 2004-11-21  Ravindra <rkumar@novell.com>
37081
37082         * ListView.cs: Implemented item selection, activation and
37083         column header style. Fixed properties to do a redraw, if
37084         required. Added support for MouseHover, DoubleClick, KeyDown
37085         and KeyUp event handling and some minor fixes.
37086         * ListViewItem.cs: Fixed constructor.
37087         * ThemeWin32Classic.cs: Improved drawing for ListView.
37088
37089 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
37090
37091         * ThemeWin32Classic.cs: initial listbox drawing code
37092         * DrawMode.cs: new enumerator
37093         * ListControl.cs: stubbed class
37094         * ListBox.cs: initial implementation
37095         * Theme.cs: new methods definitions
37096         * SelectionMode.cs: new enumerator
37097
37098 2004-11-17  Peter Bartok  <pbartok@novell.com>
37099
37100         * XplatUIWin32.cs: Added double-click events to the class style
37101         * Control.cs (WndProc):
37102           - Added handling of click-count to MouseDown/ MouseUp events.
37103           - Added handling of middle and right mouse buttons
37104           - Removed old debug code
37105
37106 2004-11-17  Jackson Harper  <jackson@ximian.com>
37107
37108         * XplatUIX11.cs: Use the new Mono.Unix namespace.
37109
37110 2004-11-17  Ravindra <rkumar@novell.com>
37111
37112         * ListView.cs: Added event handling for MouseMove/Up/Down.
37113         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
37114         * ThemeWin32Classic.cs: We need to clear the graphics context and
37115         draw column header in a proper state.
37116
37117
37118 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
37119
37120         *  Menu.cs: fixes signature
37121
37122 2004-11-16  Peter Bartok  <pbartok@novell.com>
37123
37124         * XplatUIX11.cs (GetMessage): Implemented generation of
37125           double click mouse messages
37126
37127 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
37128
37129         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
37130         not by menu
37131
37132 2004-11-11  Peter Bartok  <pbartok@novell.com>
37133
37134         * HandleData.cs: Added Visible property
37135         * XplatUIX11.cs (IsVisible): Now uses Visible property from
37136           HandleData
37137         * XplatUIX11.cs: Removed old debug leftovers
37138         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
37139         * Control.cs (WndProc): Removed old debug leftovers,
37140           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
37141           needed WM_SIZE handling
37142
37143 2004-11-11  Jackson Harper  <jackson@ximian.com>
37144
37145         * OwnerDrawPropertyBag.cs:
37146         * TreeViewImageIndexConverter.cs: Initial implementation
37147
37148 2004-11-10  Jackson Harper  <jackson@ximian.com>
37149
37150         * ThemeWin32Classic.cs:
37151         * TabControl.cs: instead of moving tabs by the slider pos just
37152         start drawing at the tab that is offset by the slider. This way
37153         scrolling always moves by exactly one tab.
37154
37155 2004-11-10  Jackson Harper  <jackson@ximian.com>
37156
37157         * TabControl.cs: You can only scroll left when the slider has
37158         already ben moved right.
37159         
37160 2004-11-10  Jackson Harper  <jackson@ximian.com>
37161
37162         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
37163         the clip area.
37164         
37165 2004-11-10  Jackson Harper  <jackson@ximian.com>
37166
37167         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
37168         clip area.
37169         
37170 2004-11-09  Jackson Harper  <jackson@ximian.com>
37171
37172         * TabControl.cs (CalcXPos): New helper method so we can determine
37173         the proper place to start drawing vertical tabs.
37174         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
37175         
37176 2004-11-09  Jackson Harper  <jackson@ximian.com>
37177
37178         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
37179         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
37180         and Bottom, left and right are illegal values for this and
37181         multiline is enabled when the alignment is set to left or right.
37182         (DrawTab): Each alignment block should draw the text itself now
37183         because Left requires special love. Also add rendering for Left
37184         aligned tabs.
37185         
37186 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
37187
37188         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
37189         does not destroy the windows, removes debugging messages
37190
37191 2004-11-09  jba  <jba-mono@optusnet.com.au>
37192
37193         * ThemeWin32Classic.cs
37194         (DrawButtonBase): Fix verticle text rect clipping in windows
37195         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37196         rendering and incorrect text rect clipping
37197         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37198         rendering and incorrect text rect clipping
37199         
37200 2004-11-08  Jackson Harper  <jackson@ximian.com>
37201
37202         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
37203         bottom when they are bottom aligned so the bottoms of the tabs get
37204         displayed.
37205         * TabControl.cs (DropRow): Move rows up instead of down when the
37206         tab control is bottom aligned.
37207
37208 2004-11-08 13:59  pbartok
37209
37210         * XplatUIX11.cs:
37211           - Added handling for various window styles
37212           - Added handling for popup windows
37213           - Added SetTopmost handling
37214
37215 2004-11-08 13:55  pbartok
37216
37217         * XplatUIWin32.cs:
37218           - Added argument to SetTopmost method
37219           - Fixed broken ClientToScreen function
37220
37221 2004-11-08 13:53  pbartok
37222
37223         * XplatUIStructs.cs:
37224           - Added missing WS_EX styles
37225
37226 2004-11-08 13:53  pbartok
37227
37228         * XplatUI.cs, XplatUIDriver.cs:
37229           - Added argument to SetTopmost
37230
37231 2004-11-08 13:52  pbartok
37232
37233         * X11Structs.cs:
37234           - Added XSetWindowAttributes structure
37235           - Improved XWindowAttributes structure
37236           - Added SetWindowValuemask enum
37237           - Added window creation arguments enum
37238           - Added gravity enum
37239           - Added Motif hints structure
37240           - Added various Motif flags and enums
37241           - Added PropertyMode enum for property functions
37242
37243 2004-11-08 13:50  pbartok
37244
37245         * Form.cs:
37246           - Fixed arguments for updated SetTopmost method
37247
37248 2004-11-08 13:49  pbartok
37249
37250         * ToolTip.cs:
37251           - Fixed arguments for updated SetTopmost function
37252           - Fixed usage of PointToClient
37253
37254 2004-11-08 13:44  pbartok
37255
37256         * MenuAPI.cs:
37257           - Added Clipping of children and siblings
37258
37259 2004-11-08 13:41  pbartok
37260
37261         * MainMenu.cs:
37262           - Removed SetMenuBarWindow call. We do this in Form.cs
37263
37264 2004-11-08 13:40  jackson
37265
37266         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
37267           scrolling jimmi in the correct location with bottom aligned tabs
37268
37269 2004-11-08 13:36  pbartok
37270
37271         * ContainerControl.cs:
37272           - Implemented BindingContext
37273           - Implemented ParentForm
37274
37275 2004-11-08 12:46  jackson
37276
37277         * TabControl.cs: Put bottom rendered tabs in the right location
37278
37279 2004-11-08 07:15  jordi
37280
37281         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
37282           removes dead code
37283
37284 2004-11-05 17:30  jackson
37285
37286         * TabControl.cs: When selected tabs are expanded make sure they
37287           don't go beyond the edges of the tab control
37288
37289 2004-11-05 14:57  jackson
37290
37291         * TabControl.cs: Reset show_slider so if the control is resized to
37292           a size where it is no longer needed it's not displayed anymore
37293
37294 2004-11-05 13:16  jackson
37295
37296         * TabControl.cs: Make tab pages non visible when added to the
37297           control
37298
37299 2004-11-05 12:42  jackson
37300
37301         * TabControl.cs: Implement SizeMode.FillToRight
37302
37303 2004-11-05 12:16  jackson
37304
37305         * Control.cs: Do not call CreateHandle if the handle is already
37306           created
37307
37308 2004-11-05 11:46  jackson
37309
37310         * TabControl.cs: Remove superflous call to CalcTabRows
37311
37312 2004-11-05 09:07  jackson
37313
37314         * XplatUIX11.cs: Update for Mono.Posix changes
37315
37316 2004-11-05 07:00  ravindra
37317
37318         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
37319           scrolling.
37320
37321 2004-11-04 22:47  jba
37322
37323         * ThemeWin32Classic.cs:
37324           - Fix Button rendering for FlatStyle = Flat or Popup
37325           - Fix RadioButton and CheckBox rendering when Appearance = Button
37326             (normal and flatstyle).
37327           - Correct outer rectangle color when drawing focus rectangle
37328           - Adjust button bounds to be 1 px smaller when focused
37329           - Make button not draw sunken 3d border when pushed (windows compat)
37330           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
37331           - Offset the text in RadioButton and Checkbox when being rendered as
37332           a button.
37333           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
37334           radiobuttons
37335           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
37336           - Fixed disabled text rendering for normally rendered radiobuttons
37337
37338 2004-11-04 10:26  jackson
37339
37340         * TabControl.cs: Recalculate tab rows when resizing
37341
37342 2004-11-04 07:47  jordi
37343
37344         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
37345           collection completion, drawing issues, missing features
37346
37347 2004-11-04 05:03  ravindra
37348
37349         * ScrollBar.cs:
37350                 - We need to recalculate the Thumb area when
37351                 LargeChange/maximum/minimum values are changed.
37352           - We set the 'pos' in UpdatePos() method to minimum, if it's less
37353                 than minimum. This is required to handle the case if large_change is
37354                 more than max, and use LargeChange property instead of large_change
37355                 variable.
37356           - We return max+1 when large_change is more than max, like MS does.
37357
37358 2004-11-04 04:29  ravindra
37359
37360         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
37361                 - Changed default value signatures (prefixed all with ListView).
37362                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
37363                 ListView.
37364           - Fixed calculations for ListViewItem and implemented Clone()
37365           method.
37366
37367 2004-11-04 04:26  ravindra
37368
37369         * Theme.cs, ThemeWin32Classic.cs:
37370                 - Changed default ListView values signatures (prefixed all with
37371                 ListView).
37372           - Fixed default size values for VScrollBar and HScrollBar.
37373                 - Fixed DrawListViewItem method.
37374
37375 2004-11-04 04:05  ravindra
37376
37377         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
37378
37379 2004-11-04 04:04  ravindra
37380
37381         * ImageList.cs: Implemented the missing overload for Draw method.
37382
37383 2004-11-03 19:29  jackson
37384
37385         * TabControl.cs: Handle dropping rows on selection properly
37386
37387 2004-11-03 11:59  jackson
37388
37389         * TabControl.cs: remove debug code
37390
37391 2004-11-03 11:52  jackson
37392
37393         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
37394           the scrolly widgerywoo
37395
37396 2004-11-02 13:52  jackson
37397
37398         * TabControl.cs: Resize the tab pages and tabs when the tab control
37399           is resized
37400
37401 2004-11-02 13:40  jackson
37402
37403         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
37404           selected tab to the bottom
37405
37406 2004-11-02 13:39  jackson
37407
37408         * TabPage.cs: Store the tab pages row
37409
37410 2004-11-02 12:33  jordi
37411
37412         * MenuItem.cs: fixes handle creation
37413
37414 2004-11-02 11:42  jackson
37415
37416         * TabControl.cs: signature fix
37417
37418 2004-11-02 08:56  jackson
37419
37420         * TabControl.cs: Calculate whether the tab is on an edge properly.
37421           Remove top secret debugging code
37422
37423 2004-11-01 19:57  jackson
37424
37425         * TabControl.cs: Add click handling, and proper sizing
37426
37427 2004-11-01 19:47  jackson
37428
37429         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
37430           tab controls
37431
37432 2004-11-01 19:39  jackson
37433
37434         * TabPage.cs: add internal property to store the bounds of a tab
37435           page
37436
37437 2004-10-30 04:23  ravindra
37438
37439         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
37440           values.
37441
37442 2004-10-30 04:21  ravindra
37443
37444         * ListView.cs, ListViewItem.cs: Added support for scrolling and
37445           fixed calculations.
37446
37447 2004-10-30 03:06  pbartok
37448
37449         * XplatUIX11.cs:
37450           - Removed extension of DllImported libs
37451
37452 2004-10-29 09:55  jordi
37453
37454         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
37455           navigation, itemcollection completion, menu fixes
37456
37457 2004-10-27 22:58  pbartok
37458
37459         * XplatUIX11.cs:
37460           - Now throws a nice error message when no X display could be opened
37461
37462 2004-10-26 13:51  jordi
37463
37464         * ListView.cs: removes warning
37465
37466 2004-10-26 03:55  ravindra
37467
37468         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
37469           ThemeWin32Classic.cs: Some formatting for my last checkins.
37470
37471 2004-10-26 03:36  ravindra
37472
37473         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
37474           control and default values.
37475
37476 2004-10-26 03:35  ravindra
37477
37478         * Theme.cs: Added some default values for ListView control.
37479
37480 2004-10-26 03:33  ravindra
37481
37482         * ToolBar.cs: ToolBar should use the user specified button size, if
37483           there is any. Added a size_specified flag for the same.
37484
37485 2004-10-26 03:33  ravindra
37486
37487         * ColumnHeader.cs: Added some internal members and calculations for
37488           ColumnHeader.
37489
37490 2004-10-26 03:32  ravindra
37491
37492         * ListViewItem.cs: Calculations for ListViewItem.
37493
37494 2004-10-26 03:31  ravindra
37495
37496         * ListView.cs: Added some internal members and calculations for
37497           ListView.
37498
37499 2004-10-22 13:31  jordi
37500
37501         * MenuAPI.cs: speedup menus drawing
37502
37503 2004-10-22 13:16  jackson
37504
37505         * XplatUIX11.cs: Make sure to update exposed regions when adding an
37506           expose event
37507
37508 2004-10-22 11:49  jackson
37509
37510         * Control.cs: oops
37511
37512 2004-10-22 11:41  jackson
37513
37514         * Control.cs: Check to see if the window should have its background
37515           repainted by X when drawing.
37516
37517 2004-10-22 11:31  jackson
37518
37519         * XplatUIX11.cs: When invalidating areas only use XClearArea if
37520           clear is true, this way we do not get flicker from X repainting the
37521           background
37522
37523 2004-10-22 11:28  jackson
37524
37525         * XEventQueue.cs: Queue properly
37526
37527 2004-10-21 09:38  jackson
37528
37529         * XEventQueue.cs: Fix access modifier
37530
37531 2004-10-21 09:36  jackson
37532
37533         * XEventQueue.cs: Don't loose messages
37534
37535 2004-10-21 09:22  jackson
37536
37537         * XEventQueue.cs: Don't loose messages
37538
37539 2004-10-20 04:15  jordi
37540
37541         * BootMode.cs: enum need it by SystemInfo
37542
37543 2004-10-19 21:58  pbartok
37544
37545         * XplatUIWin32.cs:
37546           - Small sanity check
37547
37548 2004-10-19 21:56  pbartok
37549
37550         * Form.cs:
37551           - Added private FormParentWindow class which acts as the container
37552             for our form and as the non-client area where menus are drawn
37553           - Added/Moved required tie-ins to Jordi's menus
37554           - Fixed/Implemented the FormStartPosition functionality
37555
37556 2004-10-19 21:52  pbartok
37557
37558         * Control.cs:
37559           - Removed unneeded locals
37560           - Added code to all size and location properties to understand and
37561             deal with the parent container of Form
37562
37563 2004-10-19 21:33  pbartok
37564
37565         * Application.cs:
37566           - Fixed to deal with new Form subclasses for menus
37567
37568 2004-10-19 17:48  jackson
37569
37570         * XEventQueue.cs: commit correct version of file
37571
37572 2004-10-19 16:50  jackson
37573
37574         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
37575
37576 2004-10-19 16:15  jordi
37577
37578         * MenuAPI.cs: MenuBarCalcSize returns the height
37579
37580 2004-10-19 08:31  pbartok
37581
37582         * Control.cs:
37583           - Added missing call to PreProcessMessage before calling OnXXXKey
37584           methods
37585
37586 2004-10-19 00:04  ravindra
37587
37588         * ToolTip.cs: Fixed constructor.
37589
37590 2004-10-18 09:31  jordi
37591
37592         * MenuAPI.cs: menuitems in menubars do not have shortcuts
37593
37594 2004-10-18 09:26  jordi
37595
37596         * MenuItem.cs: fixes MenuItem class signature
37597
37598 2004-10-18 08:56  jordi
37599
37600         * MenuAPI.cs: prevents windows from showing in the taskbar
37601
37602 2004-10-18 00:28  ravindra
37603
37604         * ToolTip.cs: Suppressed a warning message.
37605
37606 2004-10-18 00:27  ravindra
37607
37608         * Control.cs: Default value of visible property must be true.
37609
37610 2004-10-17 23:19  pbartok
37611
37612         * ToolTip.cs:
37613           - Complete implementation
37614
37615 2004-10-17 23:19  pbartok
37616
37617         * XplatUIX11.cs:
37618           - Added EnableWindow method
37619           - Added SetModal stub
37620           - Added generation of WM_ACTIVATE message (still needs testing)
37621           - Added SetTopMost stub
37622           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
37623
37624 2004-10-17 23:17  pbartok
37625
37626         * XplatUIWin32.cs:
37627           - Removed VirtualKeys to XplatUIStructs
37628           - Implemented SetTopMost method
37629           - Implemented EnableWindow method
37630           - Bugfix in ScreenToClient()
37631           - Bugfixes in ClientToScreen()
37632
37633 2004-10-17 22:51  pbartok
37634
37635         * XplatUIStructs.cs:
37636           - Added WS_EX styles to WindowStyles enumeration
37637
37638 2004-10-17 22:50  pbartok
37639
37640         * XplatUI.cs, XplatUIDriver.cs:
37641           - Added method for enabling/disabling windows
37642           - Added method for setting window modality
37643           - Added method for setting topmost window
37644
37645 2004-10-17 22:49  pbartok
37646
37647         * ThemeWin32Classic.cs:
37648           - Added ToolTip drawing code
37649
37650 2004-10-17 22:49  pbartok
37651
37652         * Theme.cs:
37653           - Added ToolTip abstracts
37654
37655 2004-10-17 22:47  pbartok
37656
37657         * Form.cs:
37658           - Fixed Form.ControlCollection to handle owner relations
37659           - Added Owner/OwnedForms handling
37660           - Implemented Z-Ordering for owned forms
37661           - Removed unneeded private overload of ShowDialog
37662           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
37663             so I hope)
37664           - Fixed Close(), had wrong default
37665           - Added firing of OnLoad event
37666           - Added some commented out debug code for Ownership handling
37667
37668 2004-10-17 22:16  pbartok
37669
37670         * Control.cs:
37671           - Fixed/implemented flat list of controls
37672
37673 2004-10-17 22:14  pbartok
37674
37675         * Application.cs:
37676           - Added code to simulate modal dialogs on Win32
37677
37678 2004-10-17 16:11  jordi
37679
37680         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
37681           mouse event
37682
37683 2004-10-17 13:39  jordi
37684
37685         * MenuAPI.cs: menu drawing fixes
37686
37687 2004-10-15 09:10  ravindra
37688
37689         * StructFormat.cs: General Enum.
37690
37691 2004-10-15 09:09  ravindra
37692
37693         * SizeGripStyle.cs: Enum for Form.
37694
37695 2004-10-15 09:08  ravindra
37696
37697         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
37698           in Theme for ListView.
37699
37700 2004-10-15 09:06  ravindra
37701
37702         * ColumnHeader.cs: Flushing some formatting changes.
37703
37704 2004-10-15 09:05  ravindra
37705
37706         * ListViewItem.cs: Implemented GetBounds method and fixed coding
37707           style.
37708
37709 2004-10-15 09:03  ravindra
37710
37711         * ListView.cs: Implemented Paint method and fixed coding style.
37712
37713 2004-10-15 07:34  jordi
37714
37715         * MenuAPI.cs: fix for X11
37716
37717 2004-10-15 07:32  ravindra
37718
37719         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
37720                 - Renamed Paint() method to Draw() for clarity. Also, moved
37721                 DrawImage() to OnPaint().
37722
37723 2004-10-15 07:25  ravindra
37724
37725         * CheckBox.cs, RadioButton.cs:
37726                 - Removed Redraw (), we get it from ButtonBase.
37727                 - Implemented Paint (), to do class specific painting.
37728
37729 2004-10-15 07:16  ravindra
37730
37731         * ButtonBase.cs:
37732                 - Redraw () is not virtual now.
37733                 - Added an internal virtual method Paint (), so that
37734                 derived classes can do their painting on their own.
37735                 - Modified OnPaint () to call Paint ().
37736
37737 2004-10-15 06:43  jordi
37738
37739         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
37740           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
37741
37742 2004-10-15 00:30  ravindra
37743
37744         * MessageBox.cs:
37745                 - MessageBox on windows does not have min/max buttons.
37746                 This change in CreateParams fixes this on Windows. We
37747                 still need to implement this windowstyle behavior in
37748                 our X11 driver.
37749
37750 2004-10-14 05:14  ravindra
37751
37752         * ToolBar.cs:
37753                 - Changed Redraw () to do a Refresh () always.
37754                 - Fixed the MouseMove event handling when mouse is pressed,
37755                 ie drag event handling.
37756                 - Replaced the usage of ToolBarButton.Pressed property to
37757                 ToolBarButton.pressed internal variable.
37758
37759 2004-10-14 05:10  ravindra
37760
37761         * ToolBarButton.cs:
37762                 - Added an internal member 'inside' to handle mouse move
37763                 with mouse pressed ie mouse drag event.
37764                 - Changed 'Pressed' property to return true only when
37765                 'inside' and 'pressed' are both true.
37766                 - Some coding style love.
37767
37768 2004-10-14 00:17  ravindra
37769
37770         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
37771           public method.
37772
37773 2004-10-14 00:15  ravindra
37774
37775         * ButtonBase.cs: Redraw () related improvements.
37776
37777 2004-10-14 00:14  ravindra
37778
37779         * MessageBox.cs: Moved InitFormSize () out of Paint method and
37780           removed unnecessary calls to Button.Show () method.
37781
37782 2004-10-13 17:50  pbartok
37783
37784         * XplatUIX11.cs:
37785           - Formatting fix
37786           - Removed destroying of window until we solve the problem of X
37787             destroying the window before us on shutdown
37788
37789 2004-10-13 16:32  pbartok
37790
37791         * ButtonBase.cs:
37792           - Now Redraws on MouseUp for FlatStyle Flat and Popup
37793
37794 2004-10-13 14:18  pbartok
37795
37796         * XplatUIX11.cs:
37797           - Added code to destroy the X window
37798
37799 2004-10-13 14:18  pbartok
37800
37801         * XplatUIWin32.cs:
37802           - Added code to destroy a window
37803
37804 2004-10-13 14:12  pbartok
37805
37806         * ButtonBase.cs:
37807           - Added the Redraw on Resize that got dropped in the last rev
37808
37809 2004-10-13 09:06  pbartok
37810
37811         * ThemeWin32Classic.cs:
37812           - Path from John BouAntoun:
37813             * Fix check rendering (centre correctly for normal style, offset
37814               correctly for FlatStyle).
37815             * Fix border color usage (use backcolor) for FlatStyle.Popup
37816             * Use checkbox.Capture instead of checkbox.is_pressed when
37817               rendering flatstyle states.
37818
37819 2004-10-12 21:48  pbartok
37820
37821         * ThemeWin32Classic.cs:
37822           - Removed all occurences of SystemColors and replaced them with the
37823             matching theme color
37824
37825 2004-10-12 21:41  pbartok
37826
37827         * ThemeWin32Classic.cs:
37828           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
37829             him using the function for flatstyle drawing
37830           - Changed functions to use the new version of CPDrawBorder3D
37831
37832 2004-10-12 21:15  pbartok
37833
37834         * ControlPaint.cs:
37835           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
37836             match MS documentation. They need to return defined colors if the
37837             passed color matches the configured control color. Thanks to John
37838             BouAntoun for pointing this out.
37839
37840 2004-10-12 20:57  pbartok
37841
37842         * Control.cs:
37843           - Fix from John BouAntoun: Raise ForeColorChanged event when text
37844             color is changed
37845
37846 2004-10-12 20:46  pbartok
37847
37848         * CheckBox.cs:
37849           - Fix from John BouAntoun: Now properly sets the Appearance property
37850
37851 2004-10-12 20:45  pbartok
37852
37853         * ThemeWin32Classic.cs:
37854           - Fixes from John BouAntoun: now handles forecolors and backcolors
37855             for flatstyle rendered controls much better; It also fixes normal
37856             checkbox rendering when pushed or disabled.
37857
37858 2004-10-08 02:50  jordi
37859
37860         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
37861           work
37862
37863 2004-10-07 08:56  jordi
37864
37865         * ThemeWin32Classic.cs: Removes deletion of cached brushes
37866
37867 2004-10-06 03:59  jordi
37868
37869         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
37870           XplatUIWin32.cs: removes warnings from compilation
37871
37872 2004-10-05 12:23  jackson
37873
37874         * RadioButton.cs: Fix ctor
37875
37876 2004-10-05 11:10  pbartok
37877
37878         * MessageBox.cs:
37879           - Partial implementation by Benjamin Dasnois
37880
37881 2004-10-05 10:15  jackson
37882
37883         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
37884           by John BouAntoun
37885
37886 2004-10-05 03:07  ravindra
37887
37888         * ToolBar.cs:
37889                 - Removed a private method, Draw ().
37890                 - Fixed the ButtonDropDown event handling.
37891                 - Fixed MouseMove event handling.
37892
37893 2004-10-05 03:04  ravindra
37894
37895         * ThemeWin32Classic.cs:
37896                 - Added DrawListView method and ListViewDefaultSize property.
37897                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
37898                 - Changed DOS style CRLF to Unix format (dos2unix).
37899
37900 2004-10-05 03:03  ravindra
37901
37902         * Theme.cs:
37903                 - Added DrawListView method and ListViewDefaultSize property.
37904
37905 2004-10-05 02:42  ravindra
37906
37907         * ToolBarButton.cs: Added an internal member dd_pressed to handle
37908           clicks on DropDown arrow.
37909
37910 2004-10-04 22:56  jackson
37911
37912         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
37913           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
37914           Control handle the buffers, derived classes should not have to
37915           CreateBuffers themselves.
37916
37917 2004-10-04 21:20  jackson
37918
37919         * StatusBar.cs: The control handles resizing the buffers now.
37920
37921 2004-10-04 21:18  jackson
37922
37923         * Control.cs: When resizing the buffers should be invalidated. This
37924           should be handled in Control not in derived classes.
37925
37926 2004-10-04 14:45  jackson
37927
37928         * TabPage.cs: oops
37929
37930 2004-10-04 02:14  pbartok
37931
37932         * LeftRightAlignment.cs:
37933           - Initial check-in
37934
37935 2004-10-04 01:09  jordi
37936
37937         * ThemeWin32Classic.cs: fixes right button position causing right
37938           button not showing on horizontal scrollbars
37939
37940 2004-10-02 13:12  pbartok
37941
37942         * XplatUIX11.cs:
37943           - Simplified the Invalidate method by using an X call instead of
37944             generating the expose ourselves
37945           - Added an expose when the window background is changed
37946           - Implemented ClientToScreen method
37947
37948 2004-10-02 13:08  pbartok
37949
37950         * XplatUIWin32.cs:
37951           - Added Win32EnableWindow method (test for implementing modal
37952           dialogs)
37953           - Added ClientToScreen method and imports
37954
37955 2004-10-02 13:07  pbartok
37956
37957         * XplatUI.cs, XplatUIDriver.cs:
37958           - Added ClientToScreen coordinate translation method
37959
37960 2004-10-02 13:06  pbartok
37961
37962         * KeyPressEventArgs.cs:
37963           - Fixed access level for constructor
37964
37965 2004-10-02 13:06  pbartok
37966
37967         * NativeWindow.cs:
37968           - Changed access level for the window_collection hash table
37969
37970 2004-10-02 13:05  pbartok
37971
37972         * Form.cs:
37973           - Added KeyPreview property
37974           - Added Menu property (still incomplete, pending Jordi's menu work)
37975           - Implemented ProcessCmdKey
37976           - Implemented ProcessDialogKey
37977           - Implemented ProcessKeyPreview
37978
37979 2004-10-02 13:02  pbartok
37980
37981         * Control.cs:
37982           - Added private method to get the Control object from the window
37983           handle
37984           - Implemented ContextMenu property
37985           - Implemented PointToScreen
37986           - Implemented PreProcessMessage
37987           - Implemented IsInputChar
37988           - Implemented IsInputKey
37989           - Implemented ProcessCmdKey
37990           - Completed ProcessKeyEventArgs
37991           - Fixed message loop to call the proper chain of functions on key
37992           events
37993           - Implemented ProcessDialogChar
37994           - Implemented ProcessDialogKey
37995           - Implemented ProcessKeyMessage
37996           - Implemented ProcessKeyPreview
37997           - Added RaiseDragEvent stub (MS internal method)
37998           - Added RaiseKeyEvent stub (MS internal method)
37999           - Added RaiseMouseEvent stub (MS Internal method)
38000           - Added RaisePaintEvent stub (MS Internal method)
38001           - Added ResetMouseEventArgs stub (MS Internal method)
38002           - Implemented RtlTranslateAlignment
38003           - Implemented RtlTranslateContent
38004           - Implemented RtlTranslateHorizontal
38005           - Implemented RtlTranslateLeftRight
38006           - Added generation of KeyPress event
38007
38008 2004-10-02 05:57  ravindra
38009
38010         * ListViewItem.cs: Added attributes.
38011
38012 2004-10-02 05:32  ravindra
38013
38014         * ListView.cs: Added attributes.
38015
38016 2004-10-01 11:53  jackson
38017
38018         * Form.cs: Implement the Close method so work on MessageBox can
38019           continue.
38020
38021 2004-09-30 14:06  pbartok
38022
38023         * XplatUIX11.cs:
38024           - Bug fixes
38025
38026 2004-09-30 11:34  jackson
38027
38028         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
38029
38030 2004-09-30 07:26  ravindra
38031
38032         * ListViewItemConverter.cs: Converter for ListViewItem.
38033
38034 2004-09-30 07:26  ravindra
38035
38036         * SortOrder.cs: Enum for ListView control.
38037
38038 2004-09-30 07:25  ravindra
38039
38040         * ColumnHeader.cs: Supporting class for ListView control.
38041
38042 2004-09-30 07:24  ravindra
38043
38044         * ListView.cs, ListViewItem.cs: Initial implementation.
38045
38046 2004-09-30 07:20  ravindra
38047
38048         * ItemActivation.cs: Enum for ListView Control.
38049
38050 2004-09-29 20:29  pbartok
38051
38052         * XplatUIX11.cs:
38053           - Added lookup of pixel value for background color; tries to get a
38054             color 'close' to the requested color, it avoids having to create a
38055             colormap.  Depending on the display this could mean the used color
38056             is slightly off the desired color. Might have to change it to a more
38057             resource intensive colormap approach, but it will work as a
38058           workaround to avoid red screens.
38059
38060 2004-09-29 14:27  jackson
38061
38062         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
38063
38064 2004-09-28 12:44  pbartok
38065
38066         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
38067           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
38068           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
38069           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
38070           TrackBar.cs, VScrollBar.cs:
38071           - Streamlined Theme interfaces:
38072             * Each DrawXXX method for a control now is passed the object for
38073               the control to be drawn in order to allow accessing any state the
38074               theme might require
38075
38076             * ControlPaint methods for the theme now have a CP prefix to avoid
38077               name clashes with the Draw methods for controls
38078
38079             * Every control now retrieves it's DefaultSize from the current
38080             theme
38081
38082 2004-09-28 12:17  jackson
38083
38084         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
38085           drawing
38086
38087 2004-09-24 14:57  jackson
38088
38089         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
38090           Gives us a nice little performance boost.
38091
38092 2004-09-24 12:02  jackson
38093
38094         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
38095           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
38096           Control and supporting classes. Initial checkin
38097
38098 2004-09-23 13:08  jackson
38099
38100         * Form.cs: Temp build fixage
38101
38102 2004-09-23 01:39  ravindra
38103
38104         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
38105           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
38106           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
38107           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
38108           EventHandlers needed by ListView Control.
38109
38110 2004-09-22 14:12  pbartok
38111
38112         * ScrollableControl.cs:
38113           - Implemented DockPadding property
38114           - Implemented AutoScroll property
38115           - Implemented AutoScrollMargin property
38116           - Implemented AutoScrollMinSize property
38117           - Implemented AutoScrollPosition property
38118           - Implemented DisplayRectangle property (still incomplete)
38119           - Implemented CreateParams property
38120           - Implemented HScroll property
38121           - Implemented VScroll property
38122           - Implemented OnVisibleChanged property
38123
38124 2004-09-22 14:09  pbartok
38125
38126         * Form.cs:
38127           - Added Form.ControllCollection class
38128           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
38129             RemoveOwnedForm (still incomplete, missing on-top and common
38130             minimize/maximize behaviour)
38131           - Added StartPosition property (still incomplete, does not use when
38132             creating the form)
38133           - Added ShowDialog() methods (still incomplete, missing forcing the
38134             dialog modal)
38135
38136 2004-09-22 14:05  pbartok
38137
38138         * Application.cs:
38139           - Added message loop for modal dialogs
38140
38141 2004-09-22 14:02  pbartok
38142
38143         * GroupBox.cs:
38144           - Fixed wrong types for events
38145
38146 2004-09-22 14:00  pbartok
38147
38148         * Shortcut.cs, FormWindowState.cs:
38149           - Fixed wrong values
38150
38151 2004-09-22 12:01  jackson
38152
38153         * Control.cs: Text is never null
38154
38155 2004-09-20 22:14  pbartok
38156
38157         * XplatUIWin32.cs:
38158           - Fixed accessibility level for Idle handler
38159
38160 2004-09-20 18:54  jackson
38161
38162         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38163           XplatUIX11.cs: New message loop that uses poll so we don't get a
38164           busy loop
38165
38166 2004-09-17 10:43  pbartok
38167
38168         * ScrollBar.cs:
38169           - Fixed behaviour of arrow buttons. Now properly behaves like
38170             Buttons (and like Microsoft's scrollbar arrow buttons)
38171
38172 2004-09-17 10:14  pbartok
38173
38174         * ScrollBar.cs:
38175           - Added missing release of keyboard/mouse capture
38176
38177 2004-09-17 06:18  jordi
38178
38179         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
38180           Theme.cs: Very early menu support
38181
38182 2004-09-16 17:45  pbartok
38183
38184         * XplatUIWin32.cs:
38185           - Fixed sending a window to the front
38186           - Added overload for SetWindowPos to avoid casting
38187
38188 2004-09-16 17:44  pbartok
38189
38190         * Control.cs:
38191           - Added SendToBack and BringToFront methods
38192
38193 2004-09-16 07:00  ravindra
38194
38195         * Copyright: Added Novell URL.
38196
38197 2004-09-16 07:00  ravindra
38198
38199         * ToolBar.cs: Invalidate should be done before redrawing.
38200
38201 2004-09-15 21:19  ravindra
38202
38203         * ColumnHeaderStyle.cs: Enum for ListView Control.
38204
38205 2004-09-15 21:18  ravindra
38206
38207         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
38208           ListView Control.
38209
38210 2004-09-13 18:26  jackson
38211
38212         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
38213           properly
38214
38215 2004-09-13 18:13  jackson
38216
38217         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
38218           a second thread and post messages into the main threads message
38219           queue. This makes timing much more consistent. Both win2K and XP
38220           have a minimum timer value of 15 milliseconds, so we now do this
38221           too.
38222
38223 2004-09-13 15:18  pbartok
38224
38225         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38226           XplatUIX11.cs:
38227           - Added Z-Ordering methods
38228
38229 2004-09-13 10:56  pbartok
38230
38231         * Form.cs:
38232           - Fixed #region names
38233           - Moved properties and methods into their proper #regions
38234
38235 2004-09-13 10:51  pbartok
38236
38237         * Form.cs:
38238           - Added Accept and CancelButton properties
38239           - Added ProcessDialogKey() method
38240
38241 2004-09-13 08:18  pbartok
38242
38243         * IWindowTarget.cs:
38244           - Initial check-in
38245
38246 2004-09-10 21:50  pbartok
38247
38248         * Control.cs:
38249           - Added DoDragDrop() [incomplete]
38250           - Properly implemented 'Visible' handling
38251           - Added SetVisibleCore()
38252           - Implemented FindChildAtPoint()
38253           - Implemented GetContainerControl()
38254           - Implemented Hide()
38255
38256 2004-09-10 19:28  pbartok
38257
38258         * Control.cs:
38259           - Moved methods into their appropriate #regions
38260           - Reordered methods within regions alphabetically
38261
38262 2004-09-10 18:57  pbartok
38263
38264         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38265           - Added method to retrieve text from window
38266
38267 2004-09-10 18:56  pbartok
38268
38269         * Control.cs:
38270           - Moved some internal functions into the internal region
38271           - Implemented FontHeight
38272           - Implemented RenderRightToLeft
38273           - Implemented ResizeRedraw
38274           - Implemented ShowFocusCues
38275           - Implemented ShowKeyboardCues
38276           - Implemented FromChildHandle
38277           - Implemented FromHandle
38278           - Implemented IsMnemonic
38279           - Implemented ReflectMessage
38280           - All public and protected Static Methods are now complete
38281
38282 2004-09-10 16:54  pbartok
38283
38284         * Control.cs:
38285           - Implemented remaining missing public instance properties
38286           - Alphabetized some out of order properties
38287
38288 2004-09-10 05:51  ravindra
38289
38290         * PictureBox.cs: Added a check for null image.
38291
38292 2004-09-10 00:59  jordi
38293
38294         * GroupBox.cs: remove cvs tag
38295
38296 2004-09-09 05:25  ravindra
38297
38298         * ToolBar.cs: Make redraw accessible from ToolBarButton.
38299
38300 2004-09-09 05:23  ravindra
38301
38302         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
38303           parent redraw.
38304
38305 2004-09-09 02:28  pbartok
38306
38307         * ThemeWin32Classic.cs:
38308           - Improve disabled string look
38309
38310 2004-09-09 01:15  jordi
38311
38312         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
38313           args and handler
38314
38315 2004-09-08 23:56  ravindra
38316
38317         * ItemBoundsPortion.cs: It's enum, not a class!
38318
38319 2004-09-08 23:47  ravindra
38320
38321         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
38322           Enums for Form.
38323
38324 2004-09-08 21:13  ravindra
38325
38326         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
38327           ListView control.
38328
38329 2004-09-08 21:03  ravindra
38330
38331         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
38332           avoid crash.
38333
38334 2004-09-08 21:01  ravindra
38335
38336         * ScrollableControl.cs: Removed unreachable code.
38337
38338 2004-09-08 06:45  jordi
38339
38340         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
38341
38342 2004-09-08 01:00  jackson
38343
38344         * XplatUIX11.cs: Only run the timers when updating the message
38345           queue. This effectively gives X messages a higher priority then
38346           timer messages. Timers still need love though
38347
38348 2004-09-07 14:01  jackson
38349
38350         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
38351           this for us and the handle is no longer valid.
38352
38353 2004-09-07 13:59  jackson
38354
38355         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
38356           loop that manages to not crash. TODO: Add poll and cleanup timers
38357
38358 2004-09-07 11:12  jordi
38359
38360         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
38361
38362 2004-09-07 03:40  jordi
38363
38364         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
38365           fixes, methods, multiple links
38366
38367 2004-09-06 06:55  jordi
38368
38369         * Control.cs: Caches ClientRectangle rectangle value
38370
38371 2004-09-05 02:03  jordi
38372
38373         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
38374           certain situations
38375
38376 2004-09-04 11:10  jordi
38377
38378         * Label.cs: Refresh when font changed
38379
38380 2004-09-02 16:24  pbartok
38381
38382         * Control.cs:
38383           - Added sanity check to creation of double buffer bitmap
38384
38385 2004-09-02 16:24  pbartok
38386
38387         * ButtonBase.cs:
38388           - Fixed selection of text color
38389           - Fixed handling of resize event; now properly recreates double
38390             buffering bitmap
38391           - Added missing assignment of TextAlignment
38392           - Added proper default for TextAlignment
38393
38394 2004-09-02 14:26  pbartok
38395
38396         * RadioButton.cs:
38397           - Added missing RadioButton.RadioButtonAccessibleObject class
38398
38399 2004-09-02 14:26  pbartok
38400
38401         * Control.cs:
38402           - Added missing Control.ControlAccessibleObject class
38403           - Started to implement Select()ion mechanisms, still very incomplete
38404
38405 2004-09-02 14:25  pbartok
38406
38407         * AccessibleObject.cs:
38408           - Added missing methods
38409
38410 2004-09-02 14:23  pbartok
38411
38412         * AccessibleNavigation.cs, AccessibleSelection.cs:
38413           - Initial check-in
38414
38415 2004-09-02 10:32  jordi
38416
38417         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
38418           pool for pens, brushes, and hatchbruses
38419
38420 2004-09-01 15:30  jackson
38421
38422         * StatusBar.cs: Fix typo
38423
38424 2004-09-01 14:44  pbartok
38425
38426         * RadioButton.cs:
38427           - Fixed state
38428
38429 2004-09-01 14:39  pbartok
38430
38431         * Button.cs, RadioButton.cs:
38432           - Functional initial check-in
38433
38434 2004-09-01 14:01  pbartok
38435
38436         * CheckBox.cs:
38437           - Added missing default
38438           - Added missing region mark
38439
38440 2004-09-01 09:10  jordi
38441
38442         * Label.cs: fixes method signatures, new methods, events, fixes
38443           autosize
38444
38445 2004-09-01 07:19  jordi
38446
38447         * Control.cs: Init string variables with an empty object
38448
38449 2004-09-01 04:20  jordi
38450
38451         * Control.cs: fires OnFontChanged event
38452
38453 2004-08-31 20:07  pbartok
38454
38455         * ButtonBase.cs:
38456           - Enabled display of strings
38457
38458 2004-08-31 20:05  pbartok
38459
38460         * Form.cs:
38461           - Added (partial) implementation of DialogResult; rest needs to be
38462             implemented when the modal loop code is done
38463
38464 2004-08-31 19:55  pbartok
38465
38466         * CheckBox.cs:
38467           - Fixed to match the removal of the needs_redraw concept
38468
38469 2004-08-31 19:55  pbartok
38470
38471         * ButtonBase.cs:
38472           - Removed the rather odd split between 'needs redraw' and redrawing
38473           - Now handles the events that require regeneration (ambient
38474             properties and size)
38475
38476 2004-08-31 19:41  pbartok
38477
38478         * Control.cs:
38479           - Added firing of BackColorChanged event
38480           - Added TopLevelControl property
38481           - Fixed handling of WM_ERASEBKGRND message
38482
38483 2004-08-31 12:49  pbartok
38484
38485         * ButtonBase.cs:
38486           - Removed debug
38487           - Minor fixes
38488
38489 2004-08-31 12:48  pbartok
38490
38491         * CheckBox.cs:
38492           - Finished (famous last words)
38493
38494 2004-08-31 04:35  jordi
38495
38496         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
38497           scrolling bugs, adds new methods
38498
38499 2004-08-30 14:42  pbartok
38500
38501         * CheckBox.cs:
38502           - Implemented CheckBox drawing code
38503
38504 2004-08-30 14:42  pbartok
38505
38506         * ButtonBase.cs:
38507           - Made Redraw() and CheckRedraw() virtual
38508           - Improved mouse up/down/move logic to properly track buttons
38509
38510 2004-08-30 09:44  pbartok
38511
38512         * CheckBox.cs:
38513           - Updated to fix broken build. Not complete yet.
38514
38515 2004-08-30 09:28  pbartok
38516
38517         * CheckState.cs:
38518           - Initial checkin
38519
38520 2004-08-30 09:17  pbartok
38521
38522         * Appearance.cs:
38523           - Initial check-in
38524
38525 2004-08-27 16:12  ravindra
38526
38527         * ToolBarButton.cs: Added TypeConverter attribute.
38528
38529 2004-08-27 16:07  ravindra
38530
38531         * ImageIndexConverter.cs: Implemented.
38532
38533 2004-08-27 14:17  pbartok
38534
38535         * Control.cs:
38536           - Removed unneeded stack vars
38537           - First attempt to fix sizing issues when layout is suspended
38538
38539 2004-08-25 15:35  jordi
38540
38541         * ScrollBar.cs: more fixes to scrollbar
38542
38543 2004-08-25 14:04  ravindra
38544
38545         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
38546           Added the missing divider code and grip for ToolBar Control.
38547
38548 2004-08-25 13:20  pbartok
38549
38550         * Control.cs:
38551           - Control now properly passes the ambient background color to child
38552             controls
38553
38554 2004-08-25 13:20  jordi
38555
38556         * ScrollBar.cs: small bug fix regarding bar position
38557
38558 2004-08-25 12:33  pbartok
38559
38560         * Timer.cs:
38561           - Now only calls SetTimer or KillTimer if the enabled state has
38562           changed
38563
38564 2004-08-25 12:33  pbartok
38565
38566         * XplatUIWin32.cs:
38567           - Fixed timer handling, now seems to work
38568           - Improved error message for window creation
38569
38570 2004-08-25 12:32  pbartok
38571
38572         * Control.cs:
38573           - Fixed generation of MouseUp message
38574
38575 2004-08-25 12:29  jordi
38576
38577         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
38578           and fixes for progressbar
38579
38580 2004-08-24 18:43  ravindra
38581
38582         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
38583           in ToolBar control.
38584
38585 2004-08-24 17:15  pbartok
38586
38587         * Panel.cs:
38588           - Added #region
38589           - Added missing events
38590           - Alphabetized
38591
38592 2004-08-24 17:14  pbartok
38593
38594         * StatusBar.cs, PictureBox.cs:
38595           - Now uses Control's CreateParams
38596
38597 2004-08-24 16:36  pbartok
38598
38599         * XplatUIX11.cs:
38600           - Fixed background color handling
38601           - Fixed sending of enter/leave events on a grab
38602
38603 2004-08-24 16:35  pbartok
38604
38605         * X11Structs.cs:
38606           - Refined definitions for CrossingEvent
38607
38608 2004-08-24 12:37  jordi
38609
38610         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
38611           formmating, methods signature, and adds missing events
38612
38613 2004-08-24 12:24  jordi
38614
38615         * Control.cs: fire OnEnabledChanged event
38616
38617 2004-08-24 11:17  pbartok
38618
38619         * XplatUIWin32.cs:
38620           - Implemented SetTimer() and KillTimer()
38621
38622 2004-08-24 11:16  pbartok
38623
38624         * XplatUIX11.cs:
38625           - Now uses Remove instead of Add to kill the timer
38626
38627 2004-08-24 10:16  jackson
38628
38629         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
38630           picture boxes in the theme now. Draw picture box borders and obey
38631           sizing modes
38632
38633 2004-08-24 05:49  jackson
38634
38635         * Timer.cs: Remove top secret debugging code
38636
38637 2004-08-24 05:34  jackson
38638
38639         * PictureBox.cs: Temp hack to make picture boxes draw their full
38640           image
38641
38642 2004-08-24 05:29  jackson
38643
38644         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38645           XplatUIX11.cs: Move timers to the driver level. On X they are
38646           queued by the driver and checked on idle.
38647
38648 2004-08-24 01:07  jackson
38649
38650         * XplatUIX11.cs: Use a queue for async messages instead of passing
38651           them as ClientMessages since that was totally broken. Also simply
38652           check for events and return an idle message if none are found. This
38653           gives us an idle handler, and prevents deadlocking when no messages
38654           are in the queue.
38655
38656 2004-08-23 18:19  ravindra
38657
38658         * XplatUIWin32.cs: Removed the unwanted destructor.
38659
38660 2004-08-23 17:27  pbartok
38661
38662         * ButtonBase.cs:
38663           - Finishing touches. Works now, just needs some optimizations.
38664
38665 2004-08-23 16:53  jordi
38666
38667         * ScrollBar.cs: small fix
38668
38669 2004-08-23 16:45  pbartok
38670
38671         * Application.cs:
38672           - Removed debug output
38673           - Simplifications
38674
38675 2004-08-23 16:43  jordi
38676
38677         * ScrollBar.cs: [no log message]
38678
38679 2004-08-23 16:10  pbartok
38680
38681         * Form.cs:
38682           - Fixed handling of WM_CLOSE message
38683           - Removed debug output
38684
38685 2004-08-23 16:09  pbartok
38686
38687         * Application.cs:
38688           - Added handling of Idle event
38689           - Added handling of form closing
38690           - Fixed reporting of MessageLoop property
38691           - Removed some unneeded code, should provide a bit of a speedup
38692
38693 2004-08-23 15:22  pbartok
38694
38695         * Control.cs:
38696           - Added InitLayout() method
38697           - Added code to properly perform layout when Anchor or Dock property
38698             is changed
38699           - Changed 'interpretation' of ResumeLayout. MS seems to have a
38700             LAMESPEC, tried to do it in a way that makes sense
38701
38702 2004-08-23 14:10  jordi
38703
38704         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
38705           properties and methods
38706
38707 2004-08-23 13:55  pbartok
38708
38709         * Control.cs:
38710           - Properly fixed Jordi's last fix
38711           - Now uses Cursor's Position property instead of calling XplatUI
38712           directly
38713
38714 2004-08-23 13:44  jordi
38715
38716         * PaintEventHandler.cs: Adding missing attribute
38717
38718 2004-08-23 13:39  pbartok
38719
38720         * Cursor.cs:
38721           - Implemented Position property
38722
38723 2004-08-23 13:39  pbartok
38724
38725         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38726           - Added method to move mouse cursor
38727
38728 2004-08-23 13:39  pbartok
38729
38730         * XplatUIX11.cs:
38731           - Fixed setting of background color
38732           - Added method to move mouse cursor
38733
38734 2004-08-23 13:16  jordi
38735
38736         * Control.cs: avoids null exception
38737
38738 2004-08-22 17:46  jackson
38739
38740         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
38741           PictureBox
38742
38743 2004-08-22 17:40  jackson
38744
38745         * XplatUIX11.cs: Add some missing locks
38746
38747 2004-08-22 15:10  pbartok
38748
38749         * Control.cs, Form.cs:
38750           - Removed OverlappedWindow style from Control, instead it's default
38751             now is child
38752           - Made form windows OverlappedWindow by default
38753
38754 2004-08-22 13:34  jackson
38755
38756         * ScrollBar.cs: Update the position through the Value property so
38757           the OnValueChanged event is raised.
38758
38759 2004-08-22 12:04  pbartok
38760
38761         * SWF.csproj:
38762           - Added Cursor.cs and UserControl.cs
38763
38764 2004-08-22 12:03  pbartok
38765
38766         * Cursor.cs:
38767           - Started implementation, not usable yet
38768
38769 2004-08-22 12:00  pbartok
38770
38771         * UserControl.cs:
38772           - Implemented UserControl (complete)
38773
38774 2004-08-21 19:20  ravindra
38775
38776         * ToolBar.cs: Correcting the formatting mess of VS.NET.
38777
38778 2004-08-21 18:49  ravindra
38779
38780         * ToolBar.cs: Probably this completes the missing attributes in
38781           toolbar control.
38782
38783 2004-08-21 18:03  ravindra
38784
38785         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
38786           Fixed toolbar control signatures.
38787
38788 2004-08-21 16:32  pbartok
38789
38790         * LinkLabel.cs:
38791           - Signature Fixes
38792
38793 2004-08-21 16:30  pbartok
38794
38795         * Label.cs:
38796           - Signature fixes
38797
38798 2004-08-21 16:19  pbartok
38799
38800         * Control.cs, Label.cs:
38801           - Signature fixes
38802
38803 2004-08-21 15:57  pbartok
38804
38805         * ButtonBase.cs:
38806           - Added loads of debug output for development
38807           - Fixed typo in method name
38808
38809 2004-08-21 15:52  pbartok
38810
38811         * ToolBarButtonClickEventArgs.cs:
38812           - Added missing base class
38813
38814 2004-08-21 14:53  pbartok
38815
38816         * Control.cs:
38817           - Updated to match new GrabWindow signature
38818
38819 2004-08-21 14:51  pbartok
38820
38821         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38822           - Added method to get default display size
38823
38824 2004-08-21 14:23  pbartok
38825
38826         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38827           - Added method to query current grab state
38828           - Added argument to allow confining a grab to a window
38829
38830 2004-08-21 14:22  pbartok
38831
38832         * Keys.cs:
38833           - Added [Flags] attribute so that modifiers can be used in bitwise
38834           ops
38835
38836 2004-08-21 14:21  pbartok
38837
38838         * TrackBar.cs, ScrollBar.cs:
38839           - Replaced direct XplatUI calls with their Control counterpart
38840
38841 2004-08-21 13:32  pbartok
38842
38843         * Control.cs:
38844           - Implemented Created property
38845
38846 2004-08-21 13:28  pbartok
38847
38848         * Control.cs:
38849           - Implemented ContainsFocus
38850
38851 2004-08-21 13:26  pbartok
38852
38853         * Control.cs:
38854           - Implemented CausesValidation
38855
38856 2004-08-21 13:21  pbartok
38857
38858         * Control.cs:
38859           - Implemented CanFocus
38860           - Implemented CanSelect
38861           - Implemented Capture
38862
38863 2004-08-21 12:35  pbartok
38864
38865         * XplatUIWin32.cs:
38866           - Fixed bug with Async message handling
38867           - Implemented getting the ModifierKeys
38868
38869 2004-08-21 12:32  jackson
38870
38871         * AsyncMethodResult.cs: Make sure we have the mutex before we
38872           release it. Fixes BeginInvoke on windows
38873
38874 2004-08-21 11:31  pbartok
38875
38876         * XplatUIWin32.cs, XplatUIX11.cs:
38877           - Drivers now return proper mouse state
38878
38879 2004-08-21 10:54  jackson
38880
38881         * Control.cs: Implement EndInvoke
38882
38883 2004-08-21 10:48  jackson
38884
38885         * Timer.cs: Remove unneeded finalizer
38886
38887 2004-08-20 19:52  ravindra
38888
38889         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
38890           in mouse event handling in the ToolBar control.
38891
38892 2004-08-20 19:50  ravindra
38893
38894         * ImageList.cs: Changed draw method to use the arguments passed in
38895           to draw the image.
38896
38897 2004-08-20 18:58  pbartok
38898
38899         * XplatUIStructs.cs:
38900           - Added private message for async communication
38901
38902 2004-08-20 17:38  ravindra
38903
38904         * Control.cs: Made RightToLeft property virtual and removed a
38905           Console.WriteLine.
38906
38907 2004-08-20 14:39  jordi
38908
38909         * ThemeGtk.cs: use style_attach
38910
38911 2004-08-20 14:39  pbartok
38912
38913         * XplatUIWin32.cs:
38914           - Added jackson's Async code from X11 to Win32
38915
38916 2004-08-20 14:09  pbartok
38917
38918         * SWF.csproj:
38919           - Added all new files
38920
38921 2004-08-20 14:09  pbartok
38922
38923         * Control.cs:
38924           - Added call to set window background color
38925
38926 2004-08-20 14:03  pbartok
38927
38928         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38929           - Added method for setting the window background
38930
38931 2004-08-20 14:02  pbartok
38932
38933         * XplatUIWin32.cs:
38934           - Added method for setting the background color
38935           - Added handling for erasing the window background
38936
38937 2004-08-20 13:45  jordi
38938
38939         * TrackBar.cs: fixes timer, new properties and methods
38940
38941 2004-08-20 13:34  jackson
38942
38943         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
38944           correct thread
38945
38946 2004-08-20 13:22  jackson
38947
38948         * Timer.cs: Timer Tick events are now handed through Controls Async
38949           mechanism so the callbacks are executed in the same thread as X
38950
38951 2004-08-20 13:19  jackson
38952
38953         * XplatUIDriver.cs: Expose functionality to send async messages
38954           through the driver
38955
38956 2004-08-20 13:18  jackson
38957
38958         * Control.cs: Implement Begininvoke
38959
38960 2004-08-20 13:14  jackson
38961
38962         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
38963           messages through the driver
38964
38965 2004-08-20 13:12  jackson
38966
38967         * XplatUIX11.cs: Lock before all X operations. Also added Async
38968           method functionality through XSendEvent
38969
38970 2004-08-20 13:11  jackson
38971
38972         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
38973           This will screw up on 64 bit systems)
38974
38975 2004-08-20 13:10  jackson
38976
38977         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
38978           Async messages through X/Win32
38979
38980 2004-08-19 19:39  pbartok
38981
38982         * XplatUIX11.cs:
38983           - Updated code to match new HandleData.DeviceContext type
38984
38985 2004-08-19 19:38  pbartok
38986
38987         * HandleData.cs:
38988           - Made DeviceContext a generic object to allow usage from various
38989           drivers
38990           - Added support for queueing Windows messages
38991
38992 2004-08-19 19:37  pbartok
38993
38994         * XplatUIWin32.cs:
38995           - Added generation of MouseEnter, MouseLeave and MouseHover events
38996           - Added cleanup on EndPaint
38997
38998 2004-08-19 19:17  pbartok
38999
39000         * Control.cs:
39001           - Added handling of WM_MOUSEHOVER
39002           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
39003           code
39004
39005 2004-08-19 18:55  jordi
39006
39007         * ThemeGtk.cs: fixes button order
39008
39009 2004-08-19 18:12  jordi
39010
39011         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
39012
39013 2004-08-19 17:09  pbartok
39014
39015         * Control.cs:
39016           - Added Right property
39017           - Added RightToLeft property
39018
39019 2004-08-19 16:27  jordi
39020
39021         * ThemeGtk.cs: experimental GTK theme support
39022
39023 2004-08-19 16:26  jordi
39024
39025         * ITheme.cs, Theme.cs: move themes from an interface to a class
39026
39027 2004-08-19 16:25  jordi
39028
39029         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
39030           theme enhancaments
39031
39032 2004-08-19 16:04  pbartok
39033
39034         * XplatUIX11.cs:
39035           - Added colormap basics
39036           - Added a way to re-initialize with a different display handle
39037           - Fixed setting of the window background color
39038           - Added various X11 imports related to colors and colormaps
39039
39040 2004-08-19 15:51  pbartok
39041
39042         * X11Structs.cs:
39043           - Removed packing hints (Paolo suggested this a while back)
39044           - fixed colormap type
39045           - Added default Atom types
39046           - Added Screen and color structs and enums
39047
39048 2004-08-19 15:39  pbartok
39049
39050         * ImageList.cs:
39051           - Added missing Draw() method
39052           - Added missing RecreateHandle event
39053
39054 2004-08-19 15:30  pbartok
39055
39056         * Form.cs:
39057           - Added handling of WM_CLOSE
39058
39059 2004-08-18 13:16  jordi
39060
39061         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
39062           a table
39063
39064 2004-08-18 09:56  jordi
39065
39066         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
39067
39068 2004-08-17 15:31  ravindra
39069
39070         * SWF.csproj: Updated project.
39071
39072 2004-08-17 15:25  pbartok
39073
39074         * Control.cs:
39075           - Drawing improvement; don't call UpdateBounds if we are not visible
39076             (or have been minimized)
39077
39078 2004-08-17 15:24  pbartok
39079
39080         * XplatUIWin32.cs:
39081           - Finished IsVisible
39082           - Added Win32GetWindowPlacement
39083
39084 2004-08-17 15:08  jackson
39085
39086         * Panel.cs: Initial checkin of the Panel
39087
39088 2004-08-17 14:25  pbartok
39089
39090         * Control.cs:
39091           - Fixed broken handling of default window sizes
39092
39093 2004-08-17 13:29  jackson
39094
39095         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
39096           has a large startup time.
39097
39098 2004-08-17 10:25  jackson
39099
39100         * HandleData.cs: union areas properly
39101
39102 2004-08-17 10:12  jackson
39103
39104         * HandleData.cs: union areas properly
39105
39106 2004-08-16 20:00  ravindra
39107
39108         * ToolBar.cs, ToolBarButton.cs: Added attributes.
39109
39110 2004-08-16 18:48  ravindra
39111
39112         * ToolBar.cs: Added attributes.
39113
39114 2004-08-16 17:17  ravindra
39115
39116         * SWF.csproj: Updated project.
39117
39118 2004-08-16 17:16  jackson
39119
39120         * XplatUIX11.cs: Check for more expose events before sending a
39121           WM_PAINT so they can all be grouped together. This makes dragging a
39122           window across another window redraw in a sane way.
39123
39124 2004-08-16 15:47  pbartok
39125
39126         * Control.cs:
39127           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
39128             support OnMouseEnter/Leave()
39129           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
39130             exposure handling
39131
39132 2004-08-16 15:46  pbartok
39133
39134         * XplatUIStructs.cs, XplatUIX11.cs:
39135           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
39136           OnMouseEnter/Leave()
39137
39138 2004-08-16 15:34  jackson
39139
39140         * XplatUIX11.cs: Group multiple expose events in HandleData, make
39141           sure messages get the message field set to WM_NULL if they are not
39142           handled.
39143
39144 2004-08-16 15:24  jackson
39145
39146         * HandleData.cs: HandleData is used for storing message information
39147           for window handles
39148
39149 2004-08-15 17:23  ravindra
39150
39151         * ColorDepth.cs: Added attribute.
39152
39153 2004-08-15 17:23  ravindra
39154
39155         * SWF.csproj: Updated project for ToolBar Control.
39156
39157 2004-08-15 17:20  ravindra
39158
39159         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
39160           control and also dos2unix format.
39161
39162 2004-08-15 17:13  ravindra
39163
39164         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
39165           ToolBarButtonClickEventArgs.cs,
39166           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
39167           ToolBarTextAlign.cs: First Implementation of ToolBar control.
39168
39169 2004-08-15 15:31  pbartok
39170
39171         * ButtonBase.cs:
39172           - First (mostly) working version
39173
39174 2004-08-13 16:15  pbartok
39175
39176         * Control.cs:
39177           - Fixed Anchor default
39178
39179 2004-08-13 15:43  pbartok
39180
39181         * Control.cs:
39182           - Changed GetCursorPos signature
39183
39184 2004-08-13 15:42  pbartok
39185
39186         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
39187           - Changed signature for GetCursorPos
39188
39189 2004-08-13 15:25  pbartok
39190
39191         * XplatUIX11.cs:
39192           - Cleanup
39193           - Fixed resizing/exposure handling
39194
39195 2004-08-13 15:22  jordi
39196
39197         * ThemeWin32Classic.cs: removes redundant code and fixes issues
39198           with tickposition
39199
39200 2004-08-13 14:55  jordi
39201
39202         * TrackBar.cs: change from wndproc to events
39203
39204 2004-08-13 13:00  jordi
39205
39206         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39207           XplatUIX11.cs: implements PointToClient (ScreenToClient)
39208
39209 2004-08-13 12:53  pbartok
39210
39211         * XplatUIWin32.cs:
39212           - Changed GetWindowPos to also provide client area size
39213           - Fixed broken prototypes for several win32 functions
39214
39215 2004-08-13 12:53  pbartok
39216
39217         * XplatUI.cs, XplatUIDriver.cs:
39218           - Changed GetWindowPos to also provide client area size
39219
39220 2004-08-13 12:52  pbartok
39221
39222         * XplatUIX11.cs:
39223           - Added generation of WM_POSCHANGED
39224           - Changed GetWindowPos to also provide client area size
39225
39226 2004-08-13 12:52  pbartok
39227
39228         * Control.cs:
39229           - Added Dispose() and destructor
39230           - Fixed resizing and bounds calculation
39231           - Fixed Layout
39232           - Added memory savings for invisible windows
39233
39234 2004-08-13 12:46  jordi
39235
39236         * TrackBar.cs: adds timer and grap window
39237
39238 2004-08-13 10:25  jackson
39239
39240         * Timer.cs: SWF Timer
39241
39242 2004-08-12 16:59  pbartok
39243
39244         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39245           - Implemented method to get current mouse position
39246
39247 2004-08-12 14:29  jordi
39248
39249         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
39250           enhancement, fix mouse problems, highli thumb, etc
39251
39252 2004-08-12 13:31  pbartok
39253
39254         * Control.cs:
39255           - Fixed Anchoring bugs
39256
39257 2004-08-12 13:01  jackson
39258
39259         * StatusBar.cs: Don't forget things
39260
39261 2004-08-12 12:54  jackson
39262
39263         * ThemeWin32Classic.cs: Handle owner draw status bars
39264
39265 2004-08-12 12:54  jackson
39266
39267         * StatusBar.cs: Implement missing properties, events, and methods.
39268           Handle mouse clicking
39269
39270 2004-08-12 10:19  jackson
39271
39272         * StatusBarPanelClickEventArgs.cs,
39273           StatusBarPanelClickEventHandler.cs: Classes for handling status
39274           bar panel click events
39275
39276 2004-08-12 10:10  jackson
39277
39278         * Control.cs: Add missing properties
39279
39280 2004-08-12 09:46  pbartok
39281
39282         * BindingsManagerBase.cs:
39283           - Name changed to BindingManagerBase.cs
39284
39285 2004-08-12 09:25  jordi
39286
39287         * ScrollableControl.cs: calls ctrlbase instead of exeception
39288
39289 2004-08-11 16:28  pbartok
39290
39291         * InputLanguageChangingEventArgs.cs:
39292           - Never check in before compiling. Fixes the last check-in
39293
39294 2004-08-11 16:26  pbartok
39295
39296         * InputLanguageChangingEventArgs.cs:
39297           - More signature fixes
39298
39299 2004-08-11 16:20  pbartok
39300
39301         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
39302           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
39303           ImageListStreamer.cs, InputLanguage.cs,
39304           InputLanguageChangedEventArgs.cs,
39305           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
39306           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
39307           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
39308           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39309           - Signature fixes
39310
39311 2004-08-11 16:16  pbartok
39312
39313         * Application.cs:
39314           - Fixed Signature
39315           - Added .Net 1.1 method
39316
39317 2004-08-11 15:25  pbartok
39318
39319         * SWF.csproj:
39320           - Fixed BindingManagerBase.cs filename
39321
39322 2004-08-11 15:22  pbartok
39323
39324         * BindingManagerBase.cs:
39325           - Was checked in with wrong filename
39326
39327 2004-08-11 14:50  pbartok
39328
39329         * SWF.csproj:
39330           - Updated
39331
39332 2004-08-11 13:41  jordi
39333
39334         * XplatUIWin32.cs: Fixes ClientRect
39335
39336 2004-08-11 13:19  pbartok
39337
39338         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39339           XplatUIX11.cs:
39340           - We had SetWindowPos and MoveWindow to set window positions and
39341             size, removed MoveWindow. We have GetWindowPos, so it made sense to
39342             keep SetWindowPos as matching counterpart
39343           - Added some X11 sanity checking
39344
39345 2004-08-11 12:59  pbartok
39346
39347         * Control.cs:
39348           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
39349             (It seems that SetBounds is just a front for SetBoundsCore and
39350              SetBoundsCore updates the underlying window system and
39351              UpdateBounds is responsible for updating the variables associated
39352              with the Control and sending the events)
39353           - Major cleanup of Size handling; we now have two sizes, client_size
39354             and bounds. Bounds defines the window with decorations, client_size
39355             without them.
39356
39357 2004-08-11 12:55  pbartok
39358
39359         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39360           - Added method to calculate difference between decorated window and
39361             raw client area
39362
39363 2004-08-11 12:54  pbartok
39364
39365         * Label.cs:
39366           - Forcing redraw on resize
39367
39368 2004-08-11 11:43  pbartok
39369
39370         * ImageList.cs:
39371           - Removed disposing of the actual images when the list is disposed
39372
39373 2004-08-11 09:13  pbartok
39374
39375         * Control.cs:
39376           - Now properly reparents windows
39377
39378 2004-08-11 08:37  pbartok
39379
39380         * Control.cs:
39381           - Duh!
39382
39383 2004-08-11 07:47  pbartok
39384
39385         * Control.cs:
39386           - Rewrote the collection stuff. Might not be as fast now, not
39387             keeping the number of children around and accessible directly, but
39388             it's more straightforward
39389
39390 2004-08-11 07:44  pbartok
39391
39392         * AccessibleObject.cs:
39393           - Fixed to match ControlCollection rewrite
39394
39395 2004-08-11 07:43  pbartok
39396
39397         * ImageList.cs:
39398           - Added missing creation of the collection list
39399
39400 2004-08-10 20:08  jackson
39401
39402         * StatusBar.cs: Get the paint message from WndProc
39403
39404 2004-08-10 19:31  jackson
39405
39406         * ThemeWin32Classic.cs: Create Brushes as little as possible
39407
39408 2004-08-10 19:20  jackson
39409
39410         * UICues.cs: Add Flags attribute
39411
39412 2004-08-10 19:19  jackson
39413
39414         * StatusBarPanel.cs: Signature cleanup
39415
39416 2004-08-10 19:10  jackson
39417
39418         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
39419           Initial implementation of status bar item drawing
39420
39421 2004-08-10 17:27  jordi
39422
39423         * TrackBar.cs: add missing methods, properties, and restructure to
39424           hide extra ones
39425
39426 2004-08-10 16:24  jackson
39427
39428         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
39429           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
39430           attribute
39431
39432 2004-08-10 13:21  jordi
39433
39434         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
39435           enhancements and standarize on win colors defaults
39436
39437 2004-08-10 12:52  jackson
39438
39439         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
39440           ThemeWin32Classic.cs: Implement DrawItem functionality
39441
39442 2004-08-10 12:47  jordi
39443
39444         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
39445
39446 2004-08-10 12:32  jordi
39447
39448         * Control.cs: throw ontextchange event
39449
39450 2004-08-10 11:43  pbartok
39451
39452         * Control.cs:
39453           - Added more to the still unfinished Dock/Anchor layout code
39454
39455 2004-08-10 11:39  pbartok
39456
39457         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
39458           - Added GetWindowPos method
39459
39460 2004-08-10 11:36  pbartok
39461
39462         * XplatUIWin32.cs:
39463           - Implemented several methods
39464
39465 2004-08-10 09:47  jackson
39466
39467         * TrackBar.cs: Allow control to handle buffering
39468
39469 2004-08-10 09:41  jackson
39470
39471         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
39472
39473 2004-08-10 09:24  jackson
39474
39475         * Label.cs, LinkLabel.cs: Let Control handle buffering.
39476
39477 2004-08-10 09:09  jackson
39478
39479         * StatusBar.cs: Let Control handle all the buffering.
39480
39481 2004-08-10 09:08  jackson
39482
39483         * Control.cs: Control will now handle the buffering code, so each
39484           control does not have to implement this.
39485
39486 2004-08-10 08:34  jackson
39487
39488         * XplatUIDriver.cs: Use default colors from the theme
39489
39490 2004-08-09 17:12  pbartok
39491
39492         * ImageList.cs:
39493           - Fixed several bugs Ravindra pointed out
39494
39495 2004-08-09 16:11  pbartok
39496
39497         * Control.cs:
39498           - Added incomplete dock layout code
39499           - Added support for mouse wheel
39500
39501 2004-08-09 16:09  pbartok
39502
39503         * XplatUIX11.cs:
39504           - Added handling for middle and right mousebutton
39505           - Added handling for mouse wheel
39506           - Added handling for key state and mouse state and position
39507           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
39508           messages
39509
39510 2004-08-09 15:40  jackson
39511
39512         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
39513           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
39514           checkin
39515
39516 2004-08-09 15:37  jackson
39517
39518         * StatusBar.cs: Initial implementation of StatusBar
39519
39520 2004-08-09 15:36  jackson
39521
39522         * ITheme.cs: Add support for drawing status bar and getting status
39523           bar item sizes
39524
39525 2004-08-09 15:35  pbartok
39526
39527         * MouseButtons.cs:
39528           - Fixed values
39529
39530 2004-08-09 15:34  jackson
39531
39532         * ThemeWin32Classic.cs: Add support for drawing status bar and get
39533           status bar item sizes
39534
39535 2004-08-09 15:21  jackson
39536
39537         * ThemeWin32Classic.cs: Use known colors for default control
39538           colours
39539
39540 2004-08-09 15:12  jackson
39541
39542         * ThemeWin32Classic.cs: Make the default font static, it is static
39543           in control so this doesn't change functionality and creating fonts
39544           is sloooooow.
39545
39546 2004-08-09 14:56  pbartok
39547
39548         * X11Structs.cs:
39549           - Added GrabMode enum
39550
39551 2004-08-09 14:55  pbartok
39552
39553         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39554           - Removed Run method, was only required for initial development
39555
39556 2004-08-09 14:51  pbartok
39557
39558         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39559           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
39560           capture
39561
39562 2004-08-09 13:48  pbartok
39563
39564         * XplatUIX11.cs:
39565           - Fixed default sizing for child windows
39566
39567 2004-08-09 12:56  pbartok
39568
39569         * XplatUIX11.cs:
39570           - Added generation of WM_DESTROY message
39571           - Added handling of window manager induced shutdown
39572
39573 2004-08-09 11:31  jackson
39574
39575         * ThemeWin32Classic.cs: New names for control properties
39576
39577 2004-08-09 11:25  jackson
39578
39579         * Control.cs: Use new color names
39580
39581 2004-08-09 11:02  jackson
39582
39583         * XplatUI.cs: Get default window properties from the theme
39584
39585 2004-08-09 11:01  jackson
39586
39587         * ITheme.cs: The theme engine now controls default window
39588           properties
39589
39590 2004-08-09 11:00  jackson
39591
39592         * ThemeWin32Classic.cs: Add default window color properties
39593
39594 2004-08-09 10:17  jackson
39595
39596         * ThemeWin32Classic.cs: Use correct default back color
39597
39598 2004-08-09 10:05  jackson
39599
39600         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
39601           the theme now.
39602
39603 2004-08-09 09:56  jackson
39604
39605         * XplatUI.cs: Remove defaults, these are handled by the theme now.
39606
39607 2004-08-09 09:54  jackson
39608
39609         * Control.cs: Get default properties from the theme.
39610
39611 2004-08-09 09:53  jackson
39612
39613         * ITheme.cs: Themes now handle default control properties
39614
39615 2004-08-09 09:53  jackson
39616
39617         * ThemeWin32Classic.cs: Themes now handle default control
39618           properties so coloring will be consistent
39619
39620 2004-08-08 16:54  jordi
39621
39622         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
39623
39624 2004-08-08 15:08  jordi
39625
39626         * XplatUIX11.cs: fixes keyboard crash
39627
39628 2004-08-08 13:47  jordi
39629
39630         * Label.cs: add cvs header info
39631
39632 2004-08-08 12:09  jackson
39633
39634         * ThemeWin32Classic.cs: Add pen_buttonface
39635
39636 2004-08-08 11:52  jordi
39637
39638         * Label.cs, LinkLabel.cs: [no log message]
39639
39640 2004-08-08 11:34  jordi
39641
39642         * ThemeWin32Classic.cs: Use Windows Standard Colours
39643
39644 2004-08-07 17:32  jordi
39645
39646         * TrackBar.cs: throw exceptions of invalid enums values
39647
39648 2004-08-07 17:31  jordi
39649
39650         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
39651           draw method name
39652
39653 2004-08-07 16:56  jackson
39654
39655         * HorizontalAlignment.cs: Initial checkin
39656
39657 2004-08-07 13:16  jordi
39658
39659         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
39660           methods
39661
39662 2004-08-07 13:05  jordi
39663
39664         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
39665           GetSysColor defines
39666
39667 2004-08-06 18:01  pbartok
39668
39669         * ThemeWin32Classic.cs:
39670           - Fixed some rounding issues with float/int
39671
39672 2004-08-06 18:00  jackson
39673
39674         * DockStyle.cs, AnchorStyles.cs:
39675
39676                   Add flags and serializable attributes.
39677
39678 2004-08-06 17:46  pbartok
39679
39680         * XplatUIX11.cs:
39681           - Implemented GetParent
39682
39683 2004-08-06 17:18  pbartok
39684
39685         * TrackBar.cs:
39686           - Fixed some rounding issues with float/int
39687
39688 2004-08-06 17:17  pbartok
39689
39690         * X11Structs.cs, XplatUIX11.cs:
39691           - Fixed Refresh and Invalidate
39692
39693 2004-08-06 15:30  pbartok
39694
39695         * Control.cs, X11Structs.cs, XplatUIX11.cs:
39696           - Fixed recursive loop when resizing
39697           - Improved/fixed redrawing on expose messages
39698
39699 2004-08-06 09:53  jordi
39700
39701         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
39702           keyboard navigation
39703
39704 2004-08-06 08:02  pbartok
39705
39706         * X11Structs.cs, XplatUIX11.cs:
39707           - Fixed reparenting
39708           - Fixed window border creation
39709
39710 2004-08-05 15:38  pbartok
39711
39712         * XplatUIX11.cs:
39713           - Attempted fix for reparenting problems
39714
39715 2004-08-04 15:14  pbartok
39716
39717         * Control.cs:
39718           - Fixed Invalidation bug (calculated wrong client area)
39719           - Added ClientSize setter
39720
39721 2004-08-04 15:13  pbartok
39722
39723         * Form.cs:
39724           - Added AutoScale properties
39725
39726 2004-08-04 15:13  pbartok
39727
39728         * SWF.csproj:
39729           - Added latest files
39730
39731 2004-08-04 14:11  pbartok
39732
39733         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39734           XplatUIX11.cs:
39735           - Added Invalidate handling
39736
39737 2004-08-03 17:09  jordi
39738
39739         * XplatUIDriver.cs: fixes spelling mistake
39740
39741 2004-07-27 09:53  jordi
39742
39743         * TrackBar.cs: fixes trackbar events, def classname, methods
39744           signature
39745
39746 2004-07-27 09:29  jordi
39747
39748         * ScrollBar.cs: fixes scrollbar events
39749
39750 2004-07-27 04:38  jordi
39751
39752         * Control.cs: changes to be able to run winforms samples
39753
39754 2004-07-26 11:42  jordi
39755
39756         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
39757           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
39758
39759 2004-07-26 05:41  jordi
39760
39761         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
39762           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
39763           implementation
39764
39765 2004-07-22 09:22  jordi
39766
39767         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
39768           check link overlapping, implement events, and fixes
39769
39770 2004-07-21 10:28  jordi
39771
39772         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
39773
39774 2004-07-21 10:19  jordi
39775
39776         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
39777           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
39778           LinkLabelLinkClickedEventArgs.cs,
39779           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
39780           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
39781           implementation
39782
39783 2004-07-19 13:09  jordi
39784
39785         * Control.cs, Label.cs: label control re-written: added missing
39786           functionlity, events, and properties
39787
39788 2004-07-19 10:49  jordi
39789
39790         * Control.cs: fixes SetBounds logic
39791
39792 2004-07-19 01:29  jordi
39793
39794         * Control.cs: Call RefreshWindow only if the window has created
39795
39796 2004-07-15 14:05  pbartok
39797
39798         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
39799           - Implemented ImageList and ImageList.ImageCollection classes
39800           - Added ColorDepth enumeration
39801           - Updated SWF VS.Net project
39802
39803 2004-07-15 11:06  jordi
39804
39805         * XplatUIStructs.cs: added MsgButons enum
39806
39807 2004-07-15 11:03  jordi
39808
39809         * Control.cs: added basic mouse handeling events
39810
39811 2004-07-15 03:38  jordi
39812
39813         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
39814           Vertical TrackBar control implementation
39815
39816 2004-07-13 09:33  jordi
39817
39818         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
39819
39820 2004-07-13 09:31  jordi
39821
39822         * Control.cs, Form.cs: commit: new properties and fixes form size
39823           problems
39824
39825 2004-07-09 14:13  miguel
39826
39827         * ProgressBar.cs: Spelling
39828
39829 2004-07-09 11:25  pbartok
39830
39831         * ProgressBar.cs:
39832           - Removed usage of Rectangle for drawing. Miguel pointed out it's
39833           faster
39834
39835 2004-07-09 11:17  miguel
39836
39837         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
39838
39839                 * ProgressBar.cs: Fixed spelling for `block'
39840
39841                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
39842                 style guidelines.
39843
39844                 Avoid using the += on rect.X, that exposed a bug in the compiler.
39845
39846 2004-07-08 23:21  pbartok
39847
39848         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
39849           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
39850           BaseCollection.cs, Binding.cs, BindingContext.cs,
39851           BindingMemberInfo.cs, BindingsCollection.cs,
39852           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
39853           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
39854           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
39855           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
39856           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
39857           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
39858           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
39859           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
39860           FrameStyle.cs, GiveFeedbackEventArgs.cs,
39861           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
39862           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
39863           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
39864           InputLanguageChangedEventArgs.cs,
39865           InputLanguageChangedEventHandler.cs,
39866           InputLanguageChangingEventArgs.cs,
39867           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
39868           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
39869           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
39870           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
39871           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
39872           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
39873           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
39874           QueryAccessibilityHelpEventArgs.cs,
39875           QueryAccessibilityHelpEventHandler.cs,
39876           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
39877           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
39878           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
39879           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
39880           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
39881           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
39882           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
39883           XplatUIX11.cs, lang.cs:
39884           - Initial check-in
39885
39886