2009-06-16 Ivan N. Zlatev <contact@i-nz.net>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
2
3         * DataGridView.cs: Scrolling fixes.
4         [Fixes bug #512816]
5
6 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
7
8         * DataGridView.cs, DataGridViewRowCollection.cs: Clean up a bit and 
9         optimize for batch adding rows.
10
11 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
12
13         * DataGridView.cs: Avoid calling ReBind twice during the initial data 
14         binding.
15         [Fixes bug #512807]
16
17 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
18
19         * DataGridView.cs: Suppress invalidation during data binding.
20         [Fixes part of bug #512807]
21
22 2009-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23
24         * PrintPreviewDialog.cs: Tune the navigation among the buttons and
25         controls that are part of our ToolBar, so we can mimic the behaviour
26         observed in .Net, by handling also the arrow keys and doing the
27         preprocess for them too.
28         Fixes the remaining bits of #509142.
29
30 2009-06-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
31
32         * ToolBar.cs: Expose the current item as internal.
33         * PrintPreviewDialog.cs: Tune the TabStop property for
34         PrintPreviewControl/ToolBar so we match the .net scenario regarding
35         Tab navigation. Also implement support to navigate throughout the
36         items in the ToolBar.
37         Fixes #509142.
38
39 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
40
41         * DataGridViewComboBoxCell.cs, DataGridViewComboBoxColumn.cs: 
42         Implement items syncing in the non-databound scenario.
43         [Fixes bug #494031]
44
45 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
46
47         * DataGridView.cs: Call OnCellValidating and OnCellValidated and 
48         handle the Cancel accordingly.
49         [Fixes bug #506838]
50
51 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
52
53         * DataGridViewBand.cs: Fix a typo in DefaultHeaderCellType.
54         [Fixes bug #506796]
55
56 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
57
58         * DataGridViewColumnCollection.cs, DataGridViewRowCollection.cs, 
59         DataGridView.cs: Fire CollectionChangeAction.Refresh collection 
60         changed when Clearing the collections so that the DataGridView 
61         can know and reset the current cell.
62         [Fixes bug #492549]
63
64 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
65
66         * BindingSource.cs: In ResetBindings use the ListChangedEventArgs ctor 
67         with the PropertyDescriptor parameter instead of index, because the 
68         latter will set some irelevant indices. Fixes a bug uncovered by recent
69          fix to ListChangedEventArgs.
70
71 2009-06-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
72
73         * DataObject.cs: When looking for any specific format, do a case
74         insensitive search, as .net does.
75         Fixes #509199.
76
77 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
78
79         * CurrencyManager.cs: In AllowNew firstly check if the list is a 
80         IBindingList and proxy to AllowNew. IBindingList has slightly differet 
81         logic and eventhough it's an IList IsReadOnly should not be used in this 
82         case as it might be True but AllowNew could be True as well.
83         Fixes a bug uncovered by a fix to the Array class.
84
85 2009-06-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
86
87         * ListBindingHelper.cs: In GetListItemType do a null check when
88         looking for IList.Item, since the impl could be explicit, and thus
89         private. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
90         Fixes the remaining part of #507120
91
92 2009-06-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
93
94         * DataObject.cs: Map StringFormat/Text/UnicodeText formats properly,
95         to match them in all the cases, as this is exactly what .net does.
96         Fixes #510728.
97
98 2009-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
99
100         * ListBindingHelper.cs: In GetListItemType handle gracefully the case
101         where an instance of IEnumerator returns a null value for its Current
102         property. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
103         Fixes #507120.
104
105 2009-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
106
107         * ComboBox.cs: Properly detect whether we need to use our vertical
108         scrollbar or not, specially for DropDownList/DropDown styles,
109         depending on the value of DropDownHeight.
110         Fixes #508541.
111
112 2009-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
113
114         * ToolTip.cs: Call the base implementation in Dispose, but do it
115         before anything else to avoid a regression. This way we do the default
116         routines related to any System.ComponentModel.Container.
117         Fixes #508586.
118
119 2009-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
120
121         * Clipboard.cs:
122         * XplatUIX11.cs:
123         * DataFormats.cs: Implement support for serializable types in our
124         clipboard.
125         Fixes #357642.
126
127 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
128
129         * ColorDialog.cs: Actually add the help button to the form, so it can
130         be visible.
131         Fixes #478555.
132
133 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
134
135         * PrintPreviewDialog.cs: Don't use Dock.Fill for the
136         PrintPreviewControl, since it will be hidden in the top by our
137         toolbar. Use manual location and anchoring instead.
138         Fixes #474889.
139
140 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
141
142         * FileDialog.cs: When saving the size of the dialog, use the
143         ClientSize instead of Size, so we have always the same size for the
144         form. Patch by Alex Shulgin.
145         Fixes #503064.
146
147 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
148
149         * MessageBox.cs: When showing the dialog call XplatUI.AudibleAlert to
150         show a beep, similar to what .net does. 
151         Fixes #473725.
152
153 2009-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
154
155         * ContainerControl.cs:
156         * MenuStrip.cs
157         * ToolStrip.cs: Implicit mnemonic processing should happen for every
158         ToolStrip child, not only for MenuStrip, so we are going to do that in
159         ToolStrip.ProcessMnemonic, where we already had that exactly
160         functionality, but we are only just checking that either this instance
161         is a ToolStripDropDownMenu instance or Alt has been pressed. Finally
162         remove the extra code, since we are not going to use it now.
163         Fixes the remaining bits of #503663.
164
165 2009-05-21  Neville Gao  <nevillegao@gmail.com>
166
167         * ContextMenu.cs: Cleaned up UIA properties.
168
169 2009-05-20  Dick Porter  <dick@acm.org>
170
171         * XplatUICarbon.cs: Add more locking around MessageQueue
172         manipulations.
173
174 2009-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
175
176         * DateTimePicker.cs: Call Focus in HideMonthCalendar to avoid
177         duplication of code, as well as actually getting the focus back in
178         *any* scenario where the drop down is closed.
179
180 2009-05-18 Tom Hindle <tom_hindle@sil.org>
181         * ScrollableControl.cs: Ignore setting properties HScroll and 
182         VScroll when AutoScroll is true.
183         [Fixes bug #500213]
184
185 2009-05-18  Jonathan Pobst  <monkey@jpobst.com>
186
187         * ToolStripRenderer.cs: Apply patch from Thomas Goldstein to make
188         disabled graphics look closer to the ones that .Net produces.
189         [Fixes bug #473660]
190
191 2009-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
192
193         * DateTimePicker.cs: When calculating the max width for the year part,
194         use the current value, since *all* the possible values are exactly a 4
195         digits number. This way we avoid a ArgumentOutOfRangeException trying
196         to check against different values.
197         Fixes #500917.
198
199 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
200
201         * MessageBox.cs: When handling ProcessDialogChar, check that
202         CancelButton is not null before trying to use it, to avoid a null ref
203         exception. We don't need to do that on the ok/yes buttons, since they
204         always exist.
205         Fixes #503935.
206
207 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
208
209         * ListBox.cs: Handle the key down event in WndProc instead of doing it
210         in an event handler, as we need to avoid any operation in case
211         the user has handled it in its own OnKeyDown handler, and this can't
212         be achieved since our handler would be the first one always.
213         * FontDialog.cs: Update the calls since our method handling key down
214         has been renamed.
215         Fixes #503469.
216
217 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
218
219         * Application.cs: We should dismiss the active ToolStrip when we
220         receive a WM_SYSKEYDOWN message, instead of WM_SYSKEYUP, so the next
221         keyboard short cut can be properly processed by another menu item.
222         Fixes part of #503663.
223
224 2009-05-13  Andreia Gaita  <avidigal@novell.com>
225
226         * HtmlDocument.cs: If the objects are strings, wrap them in ""
227
228 2009-05-13  Andreia Gaita  <avidigal@novell.com>
229
230         * HtmlDocument.cs: Fix InvokeScript call (duh).
231
232 2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
233
234         * TextBox.cs: Expose IsAutoCompleteAvailable as internal.
235         * ComboBox.cs: If auto complete is being used, it is needed to update
236         the actual value of the combo box, doing it immediately if the user
237         presses Enter, or doing it when our combo box loses focus. Finally,
238         when handling Enter and Escape keys for the combobox, don't try to
239         hide the listbox if it is not visible in the first place. 
240         Fixes part of #489339.
241
242 2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
243
244         * ToolStripDropDownMenu.cs: Use the height returned by
245         ToolStripItem.GetPreferredHeight to calculate our own height.
246
247 2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
248
249         * TreeNode.cs: When setting Checked, do a double null check, since the
250         current node can still get a null parent handling
251         TreeView.OnAfterCheck.
252         Fixes #502567.
253
254 2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
255
256         * Control.cs: When assigning ContextMenu, do a null check before
257         assigning its container field.
258
259 2009-05-08  Brad Taylor  <brad@getcoded.net>
260
261         * DateTimePicker.cs: Add a UIA-specific property to ensure that if
262         is_checkbox_checked is changed, we won't break.
263
264 2009-05-08  Andrés G. Aragoneses  <aaragoneses@novell.com>
265
266         * ToolStripItem.cs: Prevent NRE when our holder is a
267         ToolStripDropDownButton and we get Select()ed.
268
269 2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
270
271         * ToolStripControlHost.cs: DefaultSize must return the current size of
272         the Control, not the value returned by GetPreferredSize. Also connect
273         a handle to the control Resize event, and use it to fire
274         OnHostedControlReize.
275         Fixes the remaining bits of #483146.
276
277 2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
278
279         * ToolStripDropDown.cs: When performing the layout, use
280         ToolStripItem.GetPreferredSize ().Height instead of
281         ToolStripItem.Height, since we are already using it that way in this
282         same method.
283         Fixes part of ##483146.
284
285 2009-05-08  Brad Taylor  <brad@getcoded.net>
286
287         * DateTimePicker.cs: Wrap UIA specific code in NET_2_0 wrappers.  Send
288         OnUIASelectionChanged when ShowCheckbox is true and the checkbox
289         recieves focus.  Part of fix for #502029.
290
291 2009-05-06  Mike Gorse  <mgorse@novell.com>
292
293         * FileDialog.cs: Add UIAFocusedItemChanged to PopupButtonPanel.
294         Add PerformClick and PerformDoubleClick to PopupButton.
295         Fixes #499851.
296
297 2009-05-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
298
299         * TabControl.cs: call Focus() to emit GotFocus event at the
300         proper time when SelectionIndex changes. Fixes #499887.
301
302 2009-05-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
303
304         * MonthCalendar.cs: In SetBoundsCore always do the bounds check to
305         have valid values, even if BoundSpecified is not including
306         Size/Height/Width - this is useful when we are in a control using Dock
307         or Anchor.
308         Fixes part of #483146.
309
310 2009-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
311
312         * ComboBox.cs: When losing the focus, if our textbox is not null,
313         close its auto complete list, if any.
314         Fixes part of #489339.
315
316 2009-04-27  Andrés G. Aragoneses  <aaragoneses@novell.com>
317
318         * ListView.cs: Make OnColumnClick +internal to be used by a11y.
319
320 2009-04-27  Brad Taylor  <brad@getcoded.net>
321
322         * ToolStripButton.cs: Emit an internal event when CheckOnClick is
323         changed.
324
325 2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
326
327         * XplatUIX11.cs: Properly support UTF8 when handling the
328         SelectionRequest event - this is helpful supporting some window
329         managers, such KDE, that explictly request the text in utf8, as
330         opposed to gnome, that supports ascii.
331         Fixes #489393.
332
333 2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
334
335         * ToolStripDropDownItem.cs: When assigning a new
336         ToolStripDropDownMenu, let it know we are its OwnerItem. This way the
337         Capture duties performed by Application/ToolStripManager are handled
338         nicely and we don't end up in an inconsisten stat.
339         Fixes #492815.
340
341 2009-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
342
343         * ToolStrip.cs: Even if we are not exactly a MenuStrip instance, close
344         any ToolStripDropDownItem when receiving a mouse down event in an
345         empty area.
346
347 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
348
349         * ToolBarButton.cs: add UIA events for style and dropdownmenu changes.
350
351 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
352
353         * ToolBarButton.cs: rename a method to include UIA prefix.
354
355 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
356
357         * ToolBarButton.cs: change visibility of some UIA methods from
358         protected virtual to private.
359
360 2009-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
361
362         * ToolStripDropDown.cs: In OnVisibleChanged, if we have an OwnerItem,
363         fire OnDropDownOpened/OnDropDownClosed depending on the new
364         visibility. This also ensures that any direct access to this instance
365         will fire the mentioned events for the OwnerItem.
366         * ToolStripDropDownItem.cs: Remove the invocations to
367         OnDropDownOpened/OnDropDownClosed, since they are handled in
368         ToolStripDropDown, as well as updating the
369         OnDropDownHide/OnDropDownShow calls to be in the right order.
370         Fixes #496193.
371
372 2009-04-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
373
374         * Control.cs, ContextMenuStrip.cs, ToolStripMenuItem.cs: Only process any 
375         shortchut in ToolStripMenuItem.ProcessCmdKey if the control generating the 
376         event is the same as the owner of the menu item. Also set properly 
377         SourceControl for ContextMenuStrip, as well as add an internal field to 
378         contain the control that owns the ContextMenuStrip (we need to know this 
379         even before the public property is assigned).
380         Fixes bits of #393775.
381
382 2009-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
383
384         * StatusStrip.cs: Use the same icon as .net when the mouse is over the
385         size grip.
386         Fixes #492828.
387
388 2009-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
389
390         * ComboBox.cs: When calculating the height of the ComboListBox,
391         specially for the 2.0 profile, use MaxDropDownItems if the
392         DropDownHeight property hasn't been set, and use the later if it has
393         been set. This way we support both properties.
394         Fixes #493308.
395
396 2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
397
398         * ThreadExceptionDialog.cs: Draw the error icon, previously missing.
399         Fixes #474253.
400
401 2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
402
403         * ContainerControl.cs: Implement support for Control.CausesValidation,
404         by adding a pending list of controls to be validated in the top
405         container control, and postpone validation as needed. 
406         Also remove any control in the validation chain in case it gets removed 
407         from its owner before the pending validation actually happens.
408         Fixes #457170.
409
410 2009-04-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
411
412         * ListBox.cs: The default instance StringFormat field used to draw our
413         items should use the StringFormatFlags.NoWrap value, so it doesn't try
414         to put in a different line the text that doesn't fit our bounds, but
415         show it partially.
416         Fixes #475581.
417
418 2009-04-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
419
420         * CheckedListbox.cs: When executing OnItemClick check that the index
421         is different to -1 before trying to retrieve an item using that value.
422         Fixes a ArgumentOutOfRangeException thrown when the horizontal
423         scrollbar was visible but not needed, and then a clicked was received
424         on its area.
425
426 2009-04-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
427
428         * MaskedTextBox.cs: If Insert is pressed, change the internal
429         overwrite mode for our default value.
430         Fixes some bits of #477395.
431
432 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
433
434         * ListView.cs: In EnsureVisible avoid any direct access to items if we
435         are using virtual mode - otherwise use the bounds stored in a specific
436         item in a given index. This is specially important when using groups
437         or when items are re-arranged, since the position in the items
438         collection can be different than that one being displayed.
439         Fixes the rest of ##491978.
440
441 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
442
443         * ThemeWin32Classic.cs: Include the previous check for ListView in a
444         2.0 define as needed.
445
446 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
447
448         * ThemeWin32Classic.cs: Don't draw ListView's gridlines if we are using groups.
449         Fixes part of #491978.
450
451 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
452
453         * ToolTip.cs: New fields to store the title/icon information.
454         * ThemeWin32Classic.cs: Implement support for tooltip's title and
455         icon.
456         Fixes #491978.
457
458 2009-04-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
459
460         * TabControl.cs: When removing a tab that was previously selected, set
461         internally the value of selected_index to -1, to avoid trying to
462         access the previous one when trying to set the new one (and was
463         already removed from the collection). This is what .net seems to do
464         too.
465         Fixes #490937.
466
467 2009-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
468
469         * XplatUIX11.cs, X11Clipboard.cs: Text and Rtf formats must be
470         separated, and we cannot fallback on Text if Rtf is requested but not
471         present.
472         * Clipboard.cs: Actually use the format specified by our user when
473         putting data.
474
475 2009-03-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
476
477         * X11Clipboard.cs: Actually look for the RtfText format when calling
478         GetRftText in our clipboard formats list, instead of using the
479         generical Text format.
480
481 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
482
483         * TextBox.cs: Process auto completion properly when we are using the
484         internal source provided by ComboBox, and also remove some repeated
485         checks.
486         Fixes #489339.
487
488 2009-03-30 Tom Hindle <tom-hindle@sil.org>
489         
490         * DataGridView added Support for Invisible Columns to 
491         AutoFillColumnsInternal method.
492
493 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
494
495         * X11Structs:
496         * X11Clipboard.cs: Move internal ClipboardStruct from X11Structs to
497         its own file, since it is adding some functionality and thus is not a
498         simple struct as before.
499         * XplatUIX11.cs: Add support to store different formats that could
500         have been specified by the user when puting data in the Clipboard -
501         this is important when more than one format is supported (such plain
502         text and rtf text). Update in the needed places, as well as simplify
503         the code.
504         Fixes #489625.
505
506 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
507
508         * XplatUIX11.cs: When handling the SelectionRequest event, use
509         SelectionRequestEvent instead of SelectionEvent, so we get the right
510         data for the app asking for clipboard data. Set the member of
511         SelectioneEvent.property to indicate the place where we are storing
512         the information as well - this is specially important for gnome/kde
513         apps using the TARGETS atom to ask for the supported permission before
514         actually asking for a specific format.
515         Fixes #489393.
516
517 2009-03-28  Ivan N. Zlatev  <contact@i-nz.net>
518
519         * DataGridViewCell.cs: We don't support drawing all types of cell borders, 
520         so fallback and at least draw something instead of nothing.
521
522 2009-03-27  Ivan N. Zlatev  <contact@i-nz.net>
523
524         * DataGridView.cs: If the column header isn't visible allow resizing 
525         using the cell column border. Also be sure to reset the cursor properly.
526         [Fixes bug #489929]
527
528 2009-03-26   Carlos Alberto Cortez <calberto.cortez@gmail.com>
529
530         * ToolStrip.cs: When disposing, iterate over the items in reverse
531         order, since disposing the items modifies the collection.
532         * ToolStripItem.cs: Remove from the owner when disposing.
533         Fixes #485769.
534
535 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
536
537         * DataGridView.cs: Add an implementation for UpdateRowHeightInfo. No 
538         longer throws a NotImplementedException.
539           Based on a patch by Tom Hindle <tom_hindle@sil.org>
540         [Fixes bug #488319]
541
542 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
543
544         * DataGridView.cs: Implement IsCurrentRowDirty. No longer throws 
545         NotImplementedException.
546
547 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
548
549         * DataGridViewColumn.cs, DataGridViewTextBoxColumn.cs: 
550         Fix SortMode clash handling.
551         [Fixes bug #488263]
552
553 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
554
555         * DataGridView.cs: Do not show the vertical scrollbar if there is only 
556         one row or less. For the sake of MSNET compatibility.
557         [Fixes bug #487988]
558
559 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
560
561         * DataGridView.cs: When the current cell is moved out of the editing row 
562         be sure to reset it back to a place holder row.
563
564 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
565
566         * DataGridView.cs: If IsHandleCreated and the very first row is added 
567         to the grid in a non-databound scenario - select the first cell.
568         [Fixes bug #486881]
569
570 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
571
572         * DataGridView.cs: If we are not databound and empty once the first row 
573         gets added select the first cell.
574         [Fixes bug #486881]
575
576 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
577
578         * DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's
579         DataGridView. They do not belong to a DataGridView.
580         [Fixes bug #486645]
581
582 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
583
584         * DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs: 
585         Set indices and associate with DataGridView only after the item is 
586         add to the internal list.
587         [Fixes part of bug #486645]
588
589 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
590
591         * DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount. 
592         FullRowTemplate already contains all the cells.
593         [Fixes part of bug #486645]
594
595 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
596
597         * DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal 
598         to perform Pre and Post removal actions to allow the current cell to be 
599         moved and all events fired properly before the column is removed.
600
601 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
602
603         * DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and 
604         Post removal action to allow the current cell to be moved and all events fired 
605         properly before the row is removed.
606
607 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
608
609         * DataGridView.cs: Fire CellEnter and CellLeave events for the Cell.
610         [Fixes bug #486640]
611
612 2009-03-18  Jonathan Pobst  <monkey@jpobst.com>
613
614         * XplatUICarbon.cs: Commit patch from Alex Shulgin that fixes window
615         placement of popup windows on OSX.
616
617 2009-03-18  Matt Guo  <matt@mattguo.com>
618
619         * FontDialog.cs: Override "ToString" for FontDialog.ColorComboBox.ColorComboBoxItem
620         [Fixes bug #482690]
621
622 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
623
624         * DataGridView.cs: Implement the CellMouseDoubleClick event.
625         [Fixes bug #486262]
626
627 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
628
629         * DataGridView.cs: Fix scrolling to take into account that the 
630         scrollbars are actually inside the client area of the datagridview.
631
632 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
633
634         * DataGridView.cs: Implement mouse wheel scrolling.
635         [Fixes bug #486159]
636
637 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
638
639         * DataGridView.cs: When DataSource changes the rebinding should happen 
640         not if IsHandleCreated but if BindingContext != null.
641         [Fixes bug #486013]
642
643 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
644
645         * DataGridView.cs: Browsable(false) properties should be skipped when 
646         autogenerating the columns.
647         [Fixes bug #486021]
648
649 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
650
651         * DomainUpDown.cs: When ReadOnly is true, all the text entered by the
652         user should use a different handling, trying to use every pressed char
653         as a unique and only one prefix to compare against the items. Also,
654         refactor some input check code to avoid duplication.
655         Fixes #458607.
656
657 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
658
659         * DataGridViewCell.cs: In OwningColumng Handle invalid column index 
660         silently.
661         [Fixes bug #485278]
662
663 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
664
665         * DataGridViewBand.cs: Update our State whenever a property changes.
666         * DataGridView.cs: Don't be so generous in reseting Displayed, because 
667         it will spawn lots and lots of unneeded State changed events.
668         [Fixes bug #484989]
669
670 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
671
672         * DataGridView.cs, DataGridViewRow.cs, DataGridViewColumn.cs: 
673         Add support for invisible rows and columns.
674         [Fixes bug #484951]
675
676 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
677
678         * DataGridViewCell.cs: Escape literal { in ToString.
679         * DataGridViewTextBoxCell.cs: Fix ToString.
680         [Fixes bug #484923]
681
682 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
683
684         * MenuAPI.cs: When navigating items using the keyboard properly handle
685         the case when no item is selected - this way we should try to select
686         the first or the last item depending on the direction, but no the
687         second or third one, etc.
688
689 2209-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
690
691         * Form.cs: When calling ProcessCmdKey, just after checking for any
692         MainMenu, check if there's an active ContextMenu that is *not* owned
693         by the form - this is needed when a non-focusable control owns a
694         ContextMenu but its ProcessCmdKey method can't be called since it
695         can't receive any input.
696         Fixes #477655.
697
698 2009-03-13  Neville Gao  <nevillegao@gmail.com>
699
700         * ToolBar.cs: Sent ButtonClick events when button style is DropDown.
701         * ContextMenu.cs: Add UIA Framework property UIAVisible to detect if
702         ContextMenu is displayed.
703
704 2009-03-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
705
706         * XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
707         WM_HELP message for the associated window, don't call
708         NativeWindow.WndProc *at all*, since this could send a WM_*
709         key-related to Control.WndProc. Also, return the keypress message, in
710         case it needs to be preprocessed for any menu.
711         Fixes #478476.
712
713 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
714
715         * DataGridView.cs: When removing the first displayed row and moving 
716         the current cell up one we must invalidate the first displayed row 
717         index before calculating the row heights, etc.
718         [Fixes bug #483202]
719
720 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
721
722         * DataGridView.cs: Fix three column bugs:
723            - Rows should be cleared (but not removed) if columns become 0.
724            - The current cell should get moved
725            - ColumnCount increase was adding too many columns.
726
727 2009-03-07  Ivan N. Zlatev  <contact@i-nz.net>
728
729         * DataGridView.cs: Fix RowCount decrease which wasn't working well 
730         in both scenarions - with and without editing row.
731
732 2009-03-06  Ivan N. Zlatev  <contact@i-nz.net>
733
734         * DataGridView.cs: Be compatible with MS in that the scroll to 
735         selection has a synchronous effect. The trick here is that in 
736         order to avoid unnecessary calculations each time a row/column 
737         is added/removed we recalculate the whole grid size just before 
738         just before the scroll to selection.
739         [Fixes bug #482478]
740
741 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
742
743         * RichTextBox.cs: LoadFile(string path) should pass by default
744         RichTextBoxStreamType.RichText, without caring about the detection or
745         extension of the file.
746
747 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
748
749         * RichTextBox.cs: When calling LoadFile, remove the extra EOL
750         introduced by StreamReader, since it will convert the EOF to an EOL.
751         Fixes #479646.
752
753 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
754
755         * ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
756         preferred size twice.
757
758 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
759
760         * ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
761         string if we aren't on a ToolStripDropDownMenu.
762
763 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
764
765         * ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
766         code from Item to Button.  Patch from Alex Shulgin.
767
768 2009-03-05  Jonathan Pobst  <monkey@jpobst.com>
769
770         * ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
771         * ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
772         not a ToolStripDropDown.
773         * ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.
774
775 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
776
777         * DataGridView.cs: Fix RowCount/ColumnCount decreasing.
778
779           Based on a patch by Tom Hindle <tom_hindle@sil.org>
780           [Fixes bug #482133]
781
782 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
783
784         * DataGridView.cs, DataGridViewElement.cs: 
785            - Always calls OnDataGridViewChanged() if the new DGV is 
786            not the same/null as the current one.
787            - Do not throw NREs when setting TopLeftHeaderCell to null
788            - Unset the DGV for TopLeftHeaderCell when replacing it
789           Based on a patch by Tom Hindle <tom_hindle@sil.org>
790           [Fixes bug #481681]
791
792 2009-03-04  Jonathan Pobst  <monkey@jpobst.com>
793
794         * ToolStripDropDown.cs: When dismissing control due to ESC, don't
795         hit a NRE if we are a ContextMenuStrip and do not have a parent.
796         [Fixes bug #478616]
797
798 2009-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
799
800         * ListView.cs: When removing items from a ListViewItemCollection
801         contained in ListView (not in ListViewGroup), before actually removing
802         the items remove them also from their -if any- associated groups. If
803         the item is present in ListViewGroup.Items but not in ListView.Items,
804         then don't remove it - this is *exactly* what .net seems to do.
805         Fixes the remaining bits of #478689.
806
807 2009-02-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
808
809         * ListView.cs: In our MouseDown handler in ItemControl use the item in
810         the very specific *real* position where the mouse was pressed, using
811         GetItemAtDisplayIndex for that purpose, instead of directly accessing
812         Items - this is specially useful when groups with Details view is
813         used. This is what we do in other places when using groups.
814         Fixes part of #478689.
815
816 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
817
818         * MaskedTextBox.cs: Properly replace selection when a new valid key
819         is pressed - even when IsOverwriteMode is false. This is what .net
820         does.
821
822 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
823
824         * MaskedTextBox.cs: When setting Text and RejectOnFirstFailure is
825         true, use MaskedTextProvider.Set instead of MaskedTextProvider.Replace, 
826         since Set will keep the previous value in case of error (just what we
827         need), but still call MaskedTextProvider.Clear if
828         RejectOnFirstFailure is false - match .net.
829
830 2009-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
831
832         * MaskedTextBox.cs: When setting Text use the very precise algorithm
833         that .net uses: iterate over every char of the new value, trying to
834         use every char, and use a normal call to MaskedTextProvider.Replace
835         call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected 
836         in case of error in both cases, as well.
837         Fixes #477408.
838
839 2009-02-25  Neville Gao  <nevillegao@gmail.com>
840
841         * ColorDialog.cs: Added UIA Framwork Property:
842         UIASelectedSmallColorControl.
843
844 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
845
846         * MaskedTextBox.cs: Forgot to update the call of the new method
847         introduces in the previous patch.
848
849 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
850
851         * MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
852         key. Also create a new method to avoid code duplication between
853         OnKeyDown and OnKeyPress.
854         Fixes #477388.
855
856 2009-02-24  Ivan N. Zlatev  <contact@i-nz.net>
857
858         * DataGridViewCell.cs: Invalidate the datagrid when the cell is selected 
859         or deselected.
860         [Fixes bug #479124]
861
862 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
863
864         * MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
865         actually inversed, so put it the right way. Also, don't automatically
866         look for the next editable item after adding a new one, but way for
867         the next insertion (this is what .net does) - this is not needed when
868         MaskedTextProvider.InsertAt is called however, since it already looks for the
869         next editable position.
870         Fixes the remaining bits of #477383.
871
872 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
873
874         * MaskedTextBox.cs: In OnKeyPress handle backspace by calling
875         MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
876         property after the text was modified, adjust the testPosition value
877         depending on what method was called.
878         Fixes part of #477383.
879
880 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
881
882         * ListView.cs: For EnsureVisible, adjust the view port bounds based on
883         the existence of the column headers, as well as using this information
884         to adjust the vscrollbar value, so items never get hidden by the
885         column headers.
886         Fixes #478498.
887
888 2009-02-23  Ivan N. Zlatev  <contact@i-nz.net>
889
890         * DataGridView.cs: Make the ScrollBars property work properly.
891
892 2009-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
893
894         * TextBox.cs: Some code lifting for AutoComplete's support. First,
895         when handling non-navigation keys, save the original Text typed by the
896         user, and don't motify it BEFORE. This was a design mistake, since the
897         re-assignation happens only when navigating the append/suggest list,
898         not while creating the matches. Also, process the Delete key just like 
899         the backspace one. Finally, when handling WM_CHAR, ignore both Escape
900         and Enter keys.
901         Fixes some missing bits of #469967.
902
903 2009-02-22  Ivan N. Zlatev  <contact@i-nz.net>
904
905         * DataGridView.cs: Fix row removal in the data-bound scenario.
906
907 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
908
909         * DataGridViewCell.cs: Use strict equality comparison in order to 
910         prevent superfluous CellValueChanged events.
911
912 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
913
914         * DataGridView.cs: Do not reset the columns when the data list changes, 
915         but only the rows. Fixes multiple bugs related to sorting, custom 
916         column styles being reset and more.
917
918 2009-02-19  Jonathan Pobst  <monkey@jpobst.com>
919
920         * ThemeWin32Classic.cs: Respect a PictureBox's Padding when
921         drawing the image.
922
923 2009-02-18  Andrés G. Aragoneses  <aaragoneses@novell.com>
924
925         * ToolBarButton.cs: Oops, use the correct event (fix r127298).
926
927 2009-02-17  Andrés G. Aragoneses  <aaragoneses@novell.com>
928
929         * ToolBarButton.cs: Event for Enabled property (needed to fix
930           UIA #474197).
931
932 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
933
934         * TextBox.cs: When handling WndProc with autocomplete activated,
935         event if the new text is not causing any change in the look up
936         algorithm, save it as we normally do when numbers and letters.
937         Fixes #469967.
938
939 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
940
941         * TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
942         Invalidate the proper bounds in the TreeView, not only resetting the
943         width.
944         Fixes #475542.
945
946 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
947
948         * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
949         BackColor property. This is what .net does in both 1.1 and 2.0.
950         * TreeView.cs: When selected_node is not the same as highlighted_node,
951         we need to handle the back color in a different way, trying to use the
952         node's BackColor if it's not Color.Empty.
953         Fixes #464200.
954
955 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
956
957         * TreeView.cs: When canceling selection in our MouseUp handler,
958         invalidate also the previous selected node bounds.
959         Fixes #464191.
960
961 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
962
963         * DataGridView.cs: End or if end fails then cancel the current edit 
964         operation before clearing the data source.
965
966 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
967
968         * DataGridView.cs: Data-bind only after the handle is created.
969         [Fixes bug #473680]
970
971 2009-02-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
972
973         * TreeView.cs: When handling the MouseMove event, check if
974         focused_node and selected_node fields are null - usually they are non
975         null, since we have always a selected node, but canceling selection by
976         handling BeforeSelect event leaves the two of them as null.
977         Fixes #470451.
978
979 2009-02-06  Neville Gao  <nevillegao@gmail.com>
980
981         * TabControl.cs: Control enabled to support accessibility.
982         [Fixes Bug #472428]
983
984 2009-02-05  Ivan N. Zlatev  <contact@i-nz.net>
985
986         * DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation: 
987            - Use ArrayList.Insert instead of the Item property so that the item 
988            is actually inserted and not an existing item replaced.
989            - Call DataGridView.OnRowsAddedInternal and drop internal from 
990            OnRowsAdded for binary compitability. This also fixes several 
991            redrawing issues.
992         [Fixes bug #472968]
993
994 2009-02-05  Andrés G. Aragoneses  <aaragoneses@novell.com>
995
996         * ToolBarButton.cs: Doh, fire OnUIATextChanged *after* setting
997           the value.
998
999 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1000
1001         * ToolBarButton.cs: Add another event (OnUIATextChanged).
1002
1003 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1004
1005         * ToolBarButton: Fix typo in previous commit (r125704).
1006
1007 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1008
1009         * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
1010         when a button gets focus, firing the events from the ToolBar.
1011         r: jpobst
1012
1013 2009-02-04  Mario Carrion  <mcarrion@novell.com>
1014
1015         * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting 
1016         Width.
1017         * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
1018         ColumnHeader to raise ColumnWidthChanged.
1019         [Fixes Bug #467086]
1020
1021 2009-02-03  Ivan N. Zlatev  <contact@i-nz.net>
1022
1023         * DataGridViewRowCollection.cs, DataGridView.cs: Move row completion 
1024         code in the row collection code, so that the completion happens before 
1025         the CollectionChanged event, also better encapsulation.
1026         [Fixes bug #471987]
1027
1028 2009-02-02  Ivan N. Zlatev  <contact@i-nz.net>
1029
1030         * DataGridView.cs: When editing is finished do not remove the editing 
1031         row, because it has already become a real one. Instead add a new one.
1032         [Fixes bug #471754]
1033
1034 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1035
1036         * TreeView.cs: When drawing the node's image, check that the index
1037         specified by the node is valid for the ImageList.
1038         Fixes #471094.
1039
1040 2009-02-02  Andrés G. Aragoneses  <aaragoneses@novell.com>
1041
1042         * ToolBar.cs: Add new UIAPerformClick method to be called by
1043         UIAutomationWinforms when someone calls Invoke() on the
1044         ToolBarButtonProvider. r: jpobst
1045
1046 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1047
1048         * XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
1049         MapNotify/UnmapNotify events - we are already firing those events in
1050         the proper places, so we avoid this way to send the same message two
1051         times. I'm leaving the handling code in case we could break something
1052         in the future, as this change seems dangerous (but needed).
1053         Fixes #467546.
1054
1055 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1056
1057         * DataGridView.cs: Complete incomplete rows when they are added to 
1058         the grid.
1059         [Fixes bug #471068]
1060
1061 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1062
1063         * DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the 
1064         binding is cleared prior to setting it to null. Fixes a regression 
1065         causing exceptions when the DataSource is set to null and then set 
1066         again to a data source.
1067
1068 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1069
1070         * DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs: 
1071            - Make Image/Bitmap cells work.
1072            - Handle images with size greater than the cell.
1073            - Default to MiddleCenter alignment for image cells.
1074         [Fixes bug #471101]
1075
1076 2009-01-30  Ivan N. Zlatev  <contact@i-nz.net>
1077
1078         * UpDownBase.cs: Force Height to PreferredHeight.
1079
1080 2009-01-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1081
1082         * XplatUIX11.cs: We should use utf8 handling clipboard transference
1083         with other x11 applications, and use utf16 when handling clipboard
1084         data in the class library. Update the related points as well.
1085         Fixes #468683.
1086
1087 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
1088
1089         * DataGridViewCell.cs: Format strings according to the supplied 
1090         CellStyle.Format.
1091         [Fixes bug #470384]
1092
1093 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
1094
1095         * DataGridView.cs: Reset the hover cell if it gets moved due to row(s) 
1096         addition or removal. Fixes multiple crashes in OnMouseMove.
1097
1098 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
1099
1100         * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
1101
1102 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
1103
1104         * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the 
1105         current context.
1106         [Fixes bug #469239]
1107
1108 2009-01-26  Andreia Gaita  <avidigal@novell.com>
1109
1110         * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
1111         won't be disabled by default.
1112         Fixes #468690
1113
1114 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
1115
1116         * DataGridView.cs: Do not clear the rows if we are not databound.
1117
1118 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
1119
1120         * DataGridView.cs: Do not be too smart about selecting the first cell 
1121         when the first row is added as this is not what MS does. Fixes the 
1122         failing unit tests.
1123
1124 2009-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1125
1126         * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
1127         take into account the fact that OpenTreeNodeEnumerator needs to call
1128         MoveNext/MovePrevious to actually put the passed node as the one
1129         retrieved in Current. This way this property should work as really
1130         expected in .net.
1131         Fixes part of #467225.
1132
1133 2000-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1134
1135         * TreeView.cs: When calculating the scrollbars, don't use
1136         TreeNode.Bounds, since it still can have the values of the previous
1137         -and now invalid- layout -which depends on TreeView.skipped_nodes, and
1138         could not have been updated as well-, and use the actual number of
1139         visible number of nodes to compute the height needed to contain all
1140         the nodes. Also reset the value of vbar to 0 when disabled - this way
1141         we make sure that, when re-enabled, it will update the visible area of
1142         the treeview, even if the previous value before disabling it is the
1143         same as now. Finally don't do anything for the vbar.ValueChanged
1144         handler - for the case wheer we manually set the value but don't the
1145         vbar is disabled already.
1146         Fixes part of #467225.
1147
1148 2009-01-23  Jonathan Pobst  <monkey@jpobst.com>
1149
1150         * ToolStrip.cs: Switch from foreach to for, in case the collection
1151         somehow changes while enumerating it.
1152
1153 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
1154
1155         * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no 
1156         editing control.
1157
1158 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
1159
1160         * DataGridView.cs: Fix new row adding/editing in the non-databound 
1161         scenario.
1162
1163 2009-01-21  Mike Gorse  <mgorse@novell.com>
1164
1165         * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
1166           use them.
1167           Added UIAValueParamChangedEvent.
1168
1169 2009-01-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1170
1171         * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
1172         of trying to set as top node the highest parent of the previous top
1173         node. Moving to the bottom of the TreeView after a call to CollapseAll
1174         is exactly what .net does. This should avoid some nasty issue when
1175         CollapseAll is called and we don't need the vertical scroll bar.
1176
1177 2009-01-21  Mario Carrion <mcarrion@novell.com>
1178
1179         * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
1180         and UIATopMostChanged.
1181
1182 2009-01-21  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1183
1184         * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
1185         UIAEnabledChanged, and UIATextChanged events.
1186
1187         * Form.cs: Add UIAMenuChanged event.
1188
1189         * Menu.cs:
1190         * MenuAPI.cs: Note which internal APIs are being used by UIA.
1191
1192 2009-01-21  Neville Gao  <nevillegao@gmail.com>
1193
1194         * ToolBar.cs: Control enabled to support accessibility.
1195         [Fixes Bug #455950]
1196
1197 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1198
1199         * TreeView.cs: When handling mouse up event, check whether
1200         highlighted_node is null or not - usually it should be non-null
1201         alwaays, since the mouse down handler sets it, but some externa
1202         operations, such TreeNodeCollection.Clear, could set it to null.
1203         Fixes #438650.
1204
1205 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
1206
1207         * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu 
1208         item is disabled.
1209
1210 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
1211
1212         * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
1213         [Fixes bug #467285]
1214
1215 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1216
1217         * MonthCalendar.cs: When handling the selection changes using the
1218         mouse, don't set SelectionRange if the selection range didn't actually
1219         change. This matters because, even if we set the range to the same
1220         previous range, an extra DateChanged event is fired. Just to be clear:
1221         SelectionRage property doesn't check whether the new value is
1222         different to the previous one (by ref equals doesn't work here).
1223         Fixes other bits of #364914.
1224
1225 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1226
1227         * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
1228         selection using the keyboard, since we are already firing this event
1229         when setting SelectionRange. Also don't set SelectionRange if the
1230         previous and the new value are the same (the property, just as .net
1231         does, doesn't check whether the previous value and the new one are the
1232         same). This saves us from firing OnDateChanged event if the selection
1233         range didn't change actually.
1234         Fixes the remaining bits of #364914.
1235
1236 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1237
1238         * ListBox.cs: When removing an item and the last item is selected,
1239         remove it from the selection, and if selection mode is One try to
1240         select the new last item.
1241         Fixes #465422.
1242
1243 2009-01-16  Mike Gorse  <mgorse@novell.com>
1244
1245         * Splitter.cs: Make MaxSize internal so that UIA code can use it.
1246
1247 2009-01-16  Mario Carrion <mcarrion@novell.com>
1248
1249         * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged 
1250         when changing Text. 
1251
1252 2009-01-16  Carlos Alberto Cortez <calberto.cortez@ggmail.com>
1253
1254         * X11Structs.cs:
1255         * XplatUIX11.cs: Properly encode/decode the unicode strings we
1256         store/retrieve in the Clipboard. Also, since we try to convert the
1257         data to different formats, separate the source and the result of
1258         it, so we can always fallback to the original and don't mix wrong
1259         conversions.
1260
1261 2009-01-16  Mike Gorse  <mgorse@novell.com>
1262
1263         * TextControl.cs: Add UIASelectionChanged event.
1264
1265 2009-01-16  Ivan N. Zlatev  <contact@i-nz.net>
1266
1267         * DataGridView.cs: Forward the first key events to the editing control.
1268         [Fixes bug #457307]
1269
1270 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1271
1272         * Application.cs: Oops, launch the copied handler of PreRun instead of
1273         the global one (gendarme would bark otherwise). (Improving r123375)
1274
1275 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1276
1277         * XplatUI.cs:
1278         * Application.cs: Move the PreRun event fire to the end of the XplatUI
1279         static ctor (we don't move the PreRun event to this class because its
1280         usage would cause the call to the static ctor). This way we can get
1281         a11y support for dialogs that run without App.Run.
1282
1283 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1284
1285         * ListView.cs: New internal property to know the inner array's length of
1286         the location of items, in order to avoid a try-catch strategy for the
1287         case when this array has not been resized yet (for reference, look at
1288         r123288). r: jpobst
1289
1290 2009-01-13  Andrés G. Aragoneses  <aaragoneses@novell.com>
1291
1292         * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
1293         reflection calls. This requires UIAutomationWinforms r123213.
1294
1295 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1296
1297         * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
1298         handlers and fire the DateSelected event until MouseUp is reached,
1299         like .net does, instead of firing it for each mouse event.
1300         Fixes part of #364914.
1301
1302 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1303
1304         * TreeView.cs: When the selection gets canceled using the BeforeSelect
1305         event, invalidate the previous highlighted_node bounds, to show the
1306         user that the item was *not* selected.
1307         Fixes #464191.
1308
1309 2009-01-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1310
1311         * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
1312         well as -in DropDown and Simple modes- writing in the textbox should
1313         try to set the requested item as the top one, but navigating with the
1314         keyboard and handling mouse selection don't need that behaviour. Also,
1315         when resetting selected_index handling key press events, reset
1316         ComboListBox.HighlightIndex. 
1317         Fixes the remaining bits of #464188.
1318
1319 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1320
1321         * DataGridView.cs: Fix crashes when shortcut keys are pressed, but 
1322         there are no cells:
1323            - CurrentCellAddress should be -1, -1 and not 0, 0.
1324            - Be tolerant and fall back to clearing the current cell if either 
1325            column or row is -1 in MoveCurrentCell.
1326            - Misc. more -1 checks.
1327
1328 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1329
1330         * DataGridView.cs: Preserve the column index. Fixes a regression 
1331         introduced by the data binding position tracking code.
1332
1333 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1334
1335         * DataGridView.cs: If the bottom of the row matches the client height 
1336         do not regard the row as partially visible. Fixes the weird scrolling 
1337         when there is no scrollbar.
1338
1339 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1340
1341         * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
1342
1343 2009-01-09  Mario Carrion  <mcarrion@novell.com>
1344
1345         * MessageBox.cs: Fixed internal UIAIconRectangle property.
1346
1347 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1348
1349         * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
1350
1351 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1352
1353         * DataGridView.cs: Track the Position in the CurrencyManager.
1354
1355 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1356
1357         * DataGridView.cs: Implement data-bound new item editing/addition.
1358         * DataGridViewRowCollection.cs: Make it possible for us to internally 
1359         remove the edit row.
1360         [Fixes bugs #457107, #457308, #325240]
1361
1362 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1363
1364         * CurrencyManager.cs: Even if Position is set to a greater value than the 
1365         list count reset it to position of the last item.
1366
1367 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1368
1369         * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList. 
1370         Fix that in order to make CancelNew to work.
1371
1372 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1373
1374         * BindingSource.cs: When adding a new item try to delegate to the internal 
1375         list first before throwing an exception.
1376
1377 2009-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1378
1379         * ComboBox.cs: When setting the text and adjusting the top_item, do it
1380         *only* if the current item is *not* visible already.
1381         Fixes part of #464188.
1382
1383 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1384
1385         * DataGridView.cs: Requesting the CurrencyManager for the first time can 
1386         lead to unexpected OnBindingContextChanged calls and recursive rebinding. 
1387         Fix that.
1388         [Fixes bug #464493]
1389
1390 2009-01-08  Brad Taylor  <brad@getcoded.net>
1391
1392         * ComboBox.cs: Expose a few private fields as internal UIA properties.
1393
1394 2009-01-07  Mario Carrion <mcarrion@novell.com>
1395         
1396         * DataGrid.cs: CWL removed.
1397
1398 2009-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1399
1400         * RadioButton.cs: When setting Checked, we should first update the
1401         check state of the current RadioButton, as well as invalidating it,
1402         and after that actually update the siblings. This is done to match
1403         .net.
1404         Fixes the remaining bits of #463028.
1405
1406 2009-01-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1407
1408         * RadioButton.cs: Setting Checked to false should set TabStop to stop
1409         as well. Also, when we get the focus and no other RadioButton is
1410         selected in the parent control, we should mark ourselves as Checked.
1411         Fixes part of #463028.
1412
1413 2009-01-05  Mario Carrion <mcarrion@novell.com>
1414
1415         * DataGrid.cs: UIA suppport. internal events: 
1416         UIAGridCellChanged, UIAColumnsHeadersVisibleChanged, 
1417         UIASelectionChanged, UIACollectionChanged. Internal properties: 
1418         UIARowHeight, UIACellsArea, UIACaptionArea, 
1419         UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle, 
1420         UIAVScrollBar and UIAHScrollBar.
1421
1422 2009-01-05  Jonathan Pobst  <monkey@jpobst.com>
1423
1424         * ToolStripSplitStackLayout.cs: Enable the overflow button if any
1425         of the buttons are set to Overflow = Always.
1426         [Fixes bug #463013]
1427
1428 2009-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1429
1430         * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
1431         based on whether the binding source is availble or not. Fixes #463008.
1432
1433 2009-01-03  Ivan N. Zlatev  <contact@i-nz.net>
1434
1435         * DataGridViewCell.cs: We should return a value even if we are not bound 
1436         to a DataGridView.
1437
1438 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1439
1440         * CurrencyManager.cs, DataGrid.cs: 
1441            - Rename CanAddRows to AllowNew. The CurrencyManager has no 
1442            concept of "rows".
1443            - Add two more internal properties AllowRemove and AllowEdit.
1444         * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows, 
1445         AllowUserToDeleteRows and cell ReadOnly state to be also checked against the 
1446         CurrencyManager data source.
1447
1448 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1449
1450         * DataGridView.cs: Fix crashes caused by assigning negative values to 
1451         ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than 
1452         the column/row heights/widths.
1453         [Fixes bug #462684]
1454
1455 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1456
1457         * DataGridView.cs: Non-autogenerated columns that have a data property 
1458         set that exists in the current datasource should be set to be data-bound.
1459
1460 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1461
1462         * DataGridView.cs: Fix column sorting for columns containing null 
1463         values. A "null" value is not always "null" (e.g could be String.Empty) 
1464         and thus parsing numeric types throwed an exception for "null" values.
1465
1466 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1467
1468         * DataGridView.cs: Detach the editing control when the edit is 
1469         finished.
1470
1471 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1472
1473         * DataGridView.cs: Multiple fixes to handle last column/row removal 
1474         and cell movement after that instead of throwing exceptions.
1475
1476 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1477
1478         * DataGridViewCellCollection.cs: When cells are removed the column 
1479         indices become invalid if the cell is not the last one and have to 
1480         be refreshed.
1481
1482 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1483
1484         * DataGridView.cs: Return false in CommitEdit if there was an error.
1485
1486 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1487
1488         * DataGridView.cs: Remove a leftover Console.WriteLine.
1489
1490 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1491
1492         * DataGridViewRow.cs: Access the indexer of the data manager directly 
1493         instead of the internal list.
1494
1495 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1496
1497         * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs: 
1498         Rewrite the value getting, setting, parsing, formatting logic:
1499            - If data-bound value get/set should actually get and set from the 
1500              data source.
1501            - Make proper usage of TypeConverters for value parsing/formatting.
1502            - Raise DataError if setting the new value fails.
1503            - Get rid off the internal valueType field and get/set the ValueType 
1504            property instead.
1505         [Fixes bug #462051]
1506
1507 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1508
1509         * DataGridView.cs: Rewrite the DataBinding layer:
1510            - Get rid off all BindingSource/IBindingList/DataSet/DataTable 
1511            specific code.
1512            - Get rid off the per DataSource type column autogeneration code.
1513            - Use the CurrencyManager for everything that is DataBinding related.
1514
1515 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1516
1517         * CurrencyManager.cs: Do not fire duplicate ListChanged events.
1518
1519 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
1520
1521         * DataGridView.cs, DataGridViewRow.cs: Add a new internal property 
1522         DataManager to fetch the CurrencyManager for the DataGridView and to 
1523         spare this logic for the other components to follow.
1524
1525 2008-12-31  Mario Carrion  <mcarrion@novell.com>
1526
1527         * MessageBox.cs: UIA support: new properties: UIAMessage, 
1528         UIAMessageRectangle and UIAIconRectangle.
1529
1530 2008-12-31  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1531
1532         * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
1533         and DirComboBox.DirComboBoxItem.ToString override for UIA support.
1534
1535 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
1536
1537         * DataGridView.cs: Do not autogenerate duplicate column for a 
1538         data member that has already problematically been assigned one.
1539         [Fixes bug #457305]
1540
1541 2008-12-30  Jonathan Pobst  <monkey@jpobst.com>
1542
1543         * ProfessionalColorTable.cs: Better detection of user's theme.
1544         [Fixes bug #462766]
1545
1546 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
1547
1548         * DataGridView.cs: In the case where there are no autogenerated 
1549         columns and the user adds columns problematically we must generate 
1550         the rows after the very first column is added.
1551
1552 2008-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1553
1554         * DateTimePicker.cs: When increasing/decreasing the value of month
1555         with ShowUpDown set to true, moving from december to january, and
1556         moving from january to december should adjust the year to the next and
1557         the previous year, respectively.
1558         Fixes the remaining bits of #459674.
1559
1560 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
1561
1562         * DataGridView.cs: If a new cell is selected edit mode should be 
1563         immediately enabled only if EditOnEnter is set. Whether the mouse 
1564         or not was used to select the cell is irrelevant.
1565
1566 2008-12-29  Ivan N. Zlatev  <contact@i-nz.net>
1567
1568         * DataGridView.cs: Remove a bogus ReBind call, which was causing 
1569         recursive rebinding.
1570
1571 2008-12-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1572
1573         * DateTimePicker.cs: Handle the "MMMM" month format.
1574         Fixes #459674.
1575
1576 2008-12-23  Ivan N. Zlatev  <contact@i-nz.net>
1577
1578         * DataGridView.cs: 
1579            - Make ReBind private and refactor various calls to call ReBind 
1580            instead of ClearBinding/DoBinding
1581            - Rebind when the column collection changes
1582         * DataGridViewColumnCollection.cs: 
1583            - Leave the rebinding on change to be handled by the DataGridView.
1584
1585 2008-12-23  Jonathan Pobst  <monkey@jpobst.com>
1586
1587         * DataGridView.cs: Add a ReBind convenience method.
1588         * DataGridViewColumnCollection.cs: Rebind when a column is added.
1589         [Fixes bug #462019]
1590
1591 2008-12-23  Neville Gao  <nevillegao@gmail.com>
1592
1593         * StatusBar.cs: Modified argument variable.
1594         * SplitContainer.cs: Control enabled to support accessibility.
1595         [Fixes Bug #455950]
1596
1597 2008-12-22  Jonathan Pobst  <monkey@jpobst.com>
1598
1599         * ToolStripMenuItem.cs: Guard against an NRE.
1600         [Fixes bug #457110]
1601
1602 2008-12-22  Mario Carrion  <mcarrion@novell.com>
1603
1604         * Control.cs: AccessibleXXXX properties don't return 
1605         AccessibleObject.XXXX, instead a local referece is returned.
1606
1607 2008-12-22  Neville Gao  <nevillegao@gmail.com>
1608
1609         * PrintPreviewControl.cs: Added internal properties to support
1610         accessibility.
1611         [Fixes Bug #459699]
1612
1613 2008-12-19  Mario Carrion  <mcarrion@novell.com>
1614
1615         * Control.cs: Reverted r121561. 
1616
1617 2008-12-19  Andrés G. Aragoneses  <aaragoneses@novell.com>
1618
1619         * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
1620         it has been moved to the bridge.
1621
1622 2008-12-18  Brad Taylor  <brad@getcoded.net>
1623
1624         * DateTimePicker.cs: Add a few UIA specific events, and a couple
1625         internal methods useful for UIA.
1626
1627 2008-12-18  Mario Carrion <mcarrion@novell.com>
1628
1629         * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
1630         [Fixes Bug #455752]
1631
1632 2008-12-17  Mike Gorse  <mgorse@novell.com>
1633
1634         * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
1635           item's Focused property is set.
1636
1637 2008-12-17  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1638
1639         * TreeView.cs:
1640         * TreeNode.cs:
1641         * TreeNodeCollection.cs: Add events for UIA support:
1642         UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
1643         UIACollectionChanged.
1644
1645 2008-12-17  Bill Holmes  <billholmes54@gmail.com>
1646
1647         * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the 
1648           SubItemStyle member field. 
1649
1650         Contributed under MIT/X11 license.
1651
1652 2008-12-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1653
1654         * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
1655         y coord, since it's useless in this case, and we need to rely only on
1656         the number of rows and ItemHeight to compute this value.
1657         Fixes part of #257471.
1658
1659 2008-12-15  Mike Gorse  <mgorse@novell.com>
1660
1661         * StatusBar.cs: Send OnUIACollectionChanged in Remove().
1662
1663 2008-12-15  Mario Carrion  <mcarrion@novell.com>
1664
1665         * Control.cs: Accessibility properties instantiate AccessibilityObject when
1666         needed.
1667         [Fixes Bug #459223]
1668
1669 2008-12-15  Brad Taylor  <brad@getcoded.net>
1670
1671         * ToolStripItem.cs: Add a UIA specific event for listening for when a
1672         ToolStripItem becomes selected or deselected.
1673
1674 2008-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1675
1676         * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
1677         .net does. Use the date in the point of the mouse move coords as the
1678         new range as well, if the left button of the mouse is being pressed.
1679         Fixes #364914.
1680
1681 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1682
1683         * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
1684         MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
1685         effectively repaint the control.
1686         Fixes the remaining bits of #417961.
1687
1688 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1689
1690         * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
1691         range to contain only dates within the new possible range.
1692         Fixes part of #417961.
1693
1694 2008-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1695
1696         * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
1697         length of the text, but the end position, so we need to substract 1 to
1698         have a valid value. Also, in the same InputText method, don't use
1699         SelectionLength as the length of the text, since the selected text
1700         could actually be empty, but we need to set the value anyway.
1701         Fixes #457370.
1702
1703 2008-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1704
1705         * TextBox.cs: Don't do any auto complete task if the custom source is
1706         null or empty. Also avoid duplication of code.
1707         Fixes #457743.
1708
1709 2008-12-09  Ivan N. Zlatev  <contact@i-nz.net>
1710
1711         * DataGridView.cs: Refresh column sizes when new rows are added.
1712         [Fixes bug #457050]
1713
1714 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1715         * RichTextBox.cs: When parsing the contents of a rtf file, don't call
1716         Split to create a line - we are already doing this, by _adding_ a new
1717         one when rtf_cursor_x is 0 (this field gets this value just after we
1718         receive the newline param as true). This avoids having a proportional number
1719         of empty lines in the end of the rich text box.
1720         Fixes #396664.
1721
1722 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1723
1724         * RichTextBox.cs: When saving the contents as a plain text, don't add
1725         a new line for every Line structure, since the data in Document
1726         already contains the new line characters. This avoids duplicated new
1727         lines using the Save methods.
1728         Fixes #445618.
1729
1730 2008-12-09  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1731
1732         * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
1733         framework.  Fixes bug #457678.
1734
1735 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1736
1737         * DataGridViewRow.cs: Prevent an exception on a not yet databound grid, 
1738         where datasource is null.
1739         [Fixes exception reported in bug 441240]
1740
1741 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1742
1743         * DataGridView.cs: EndEdit validation fixes.
1744
1745 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1746
1747         * DataGridView.cs: This is the cool patch that adds support for 
1748         actually updating the data in the databinding backend after editing. 
1749         With bonus firing and handling the DataError event.
1750
1751 2008-12-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1752
1753         * Line.cs: When calculating the text tags's Shift value, store it as
1754         pixels instead of points. This way we can actually handle different
1755         fonts in the same RichTextBox, as well as the right size of the caret.
1756         Fixes part of #351938.
1757
1758 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1759
1760         * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was 
1761         casted to CheckState causing InvalidCastExceptions.
1762
1763 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1764
1765         * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior 
1766         to not depend on the item being clicked.
1767
1768 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1769
1770         * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no 
1771         longer throws a NotImplementedException.
1772
1773 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1774
1775         * DataGridView.cs: Set EditingControlFormattedValue when preparing an 
1776         IDataGridViewEditingControl for editing.
1777
1778 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1779
1780         * DataGridViewComboBoxCell.cs: Implement data binding support.
1781
1782 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1783
1784         * DataGridView.cs: Use the CurrencyManager to update the data source 
1785         binding position instead of casting the data sourcde to BindingSource.
1786         This enables position updating for other type of data sources.
1787
1788 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1789
1790         * ComboBox.cs: Update the SelectedIndex before updating the Text 
1791         in OnDisplayMemberChanged.
1792
1793 2008-12-07  Ivan N. Zlatev  <contact@i-nz.net>
1794
1795         * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
1796         [Fixes bug #457112]
1797
1798 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1799
1800         * DataGridView.cs: Sorting fixes:
1801            - Be strict when sorting is enabled.
1802            - If there is a data source delegate the sorting request.
1803
1804 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1805
1806         * Binding.cs: When converting the data also try with the destination 
1807         type typeconverter. This indirectly adds support for Nullable types 
1808         in our databinding layer.
1809
1810 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1811
1812         * DataGridView.cs: When cell editing is finished focus back the 
1813         DataGridView. Fixes keyboard navigation post-editing.
1814
1815 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1816
1817         * DataGridView.cs: Fix the cell editing by delaying the currentCell 
1818         setting to after EndEdit is called for the old cell.
1819
1820 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1821
1822         * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
1823
1824 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1825
1826         * XplatUIX11.cs: Send WM_HELP only to the focused window.
1827
1828 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1829
1830         * CurrencyManager.cs: Fix exceptions when resetting the data source 
1831         for the same time (e.g. in ComboBox): 
1832            - Do not set the list position if we are still transferring data
1833            - When resetting the list firstly push the data then update the 
1834            binding.
1835         * Binding.cs: Check BindingManager.Position == -1 instead of 
1836         BindingManager.Current == null in order to avoid unexpected 
1837         exceptions.
1838
1839 2008-12-05  Brad Taylor  <brad@getcoded.net>
1840
1841         * MonthCalendar.cs: Add UIA specific events so that we can know when
1842         the selection changes, and when MaxSelectedCount changes.
1843
1844 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1845
1846         * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not 
1847         used for anything.
1848
1849 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1850
1851         * DataGridView.cs: Fix scrolling and selection of cells/rows prior
1852         to the control being drawn for the first time by:
1853            - Implement DisplayedRowsCount to not rely on the control being
1854            already painted. Also added support for the partial row flag.
1855            - Fix scrolling to take into account partial rows and scroll to
1856            them.
1857         [Fixes bug #456527]
1858
1859 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1860
1861         * DataGridView.cs: Do not reset the CurrentCell when the handle is
1862         created if the user has already set it.
1863
1864 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1865
1866         * DataGridView.cs: Fix CurrentCell to actually select the cell.
1867
1868 2008-12-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1869
1870         * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
1871         text and then let the underneath users of IDataObject interpret and
1872         parse by themselves. 
1873         Fixes #439251.
1874
1875 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1876
1877         * DataGridView.cs: Fix my previous commit to actually update what it 
1878         was supposed to.
1879
1880 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1881
1882         * DataGridView.cs: Ensure that when a row is removed the all the 
1883         current row/column/cell get updated. Fixes multiple exceptions.
1884
1885 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1886
1887         * DataGridView.cs: Fix scrolling to the current cell when key navigation 
1888         is used.
1889         [Fixes bug #443560]
1890
1891 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1892
1893         * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
1894         * DataGridViewCell.cs: Set the cell as selected prior to setting the 
1895         new state.
1896         [Fixes issue 1 in bug #443560]
1897
1898 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1899
1900         * DataGridView.cs: Invalidate after the current row/column seletion 
1901         chagnes.
1902         [Fixes bug #438434]
1903
1904 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1905
1906         * DataGridView.cs: Refresh the data if the data list is reset, etc.
1907
1908 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1909
1910         * DataGridView.cs: Handle datasource state changes:
1911            - IBindingList - list changes
1912            - BindingSource - list changed and datasource changes
1913
1914 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1915
1916         * DataGridView.cs: Select the first cell when databound. 
1917         Visually select when CurrentCell is set.
1918
1919 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1920
1921         * DataGridView.cs: Set the current cell before raising CellClick.
1922
1923 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1924
1925         * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter, 
1926         CellLeave events as this is already done in SetCurrentCellAddressCore.
1927
1928 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1929
1930         * DataGridView.cs: Set the minimum size for the columns to be the 
1931         width of their header, so that the columns don't get squashed 
1932         all together.
1933
1934 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1935
1936         * DataGridView.cs: After the data is bound PerformLayout, so that 
1937         the columns get autosized.
1938
1939 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1940
1941         * DataGridView.cs: Move all currentCell setting code into 
1942         one central place - SetCurrentCellAddressCore. That way the 
1943         current cell is properly updated when programatically set.
1944         Fire RowEnter/Leave events.
1945
1946 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1947
1948         * DataGridView.cs: Update the CurrencyManager.Position, so that 
1949         when a BindingSource is used BindingSource.Current will be correct.
1950
1951 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1952
1953         * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
1954            - No caption text is drawn because Color.Empty is used.
1955            - Fix top and height off by 1.
1956
1957 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1958
1959         * DataGridViewRow.cs: Implement DataBoundItem.
1960
1961 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1962
1963         * BindingSource.cs: Return null for Current if there is no data present.
1964
1965 2008-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1966
1967         * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
1968         menus using the arrow keys. Also when handling the left arrow key, don't 
1969         assign the current menu to the parent one, if the parent is null.
1970         Fixes #446392.
1971
1972 2008-11-24  Everaldo Canuto  <ecanuto@novell.com>
1973
1974         * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
1975         #413501.
1976
1977 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1978
1979         * Scrollbar.cs:
1980         * ScrollableControl.cs: Simplify the code to manually set the size of
1981         the thum area, avoiding duplication of code, and also preserving the
1982         right value for different code paths - this can happen when size
1983         changes are made to the scrollbar after setting LargeChange, Maximum
1984         or related properties for the ScrollBar.
1985
1986 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1987
1988         * ScrollableControl.cs: When scrolling, don't invalidate the entire
1989         area, and call to XplatUIX11.ScrollWindow instead. This is exactly
1990         what .Net does: copy the visible area, and only invalidate the part of
1991         the area that wasn't visible before scrolling.
1992         Fixes #441738.
1993
1994 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
1995
1996         * DataGridView.cs: Listen for a DataTable's TableCleared event so we
1997         can clear ourselves when it is raised, we don't have a newrowindex
1998         if we don't have any columns.
1999         * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
2000         re-index after each delete so the NewRow will have the correct index.
2001         [Fixes bug #448005]
2002
2003 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
2004
2005         * Form.cs: Don't change min/max size if it is empty.
2006         [Fixes bug #447873]
2007
2008 2008-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2009
2010         * ScrollBar.cs:
2011         * ScrollableControl.cs: When the manual thumb size is used, the
2012         maximum allowed value should depend on that thumb size, instead of
2013         LargeChange (using the maximum - LargeChange + 1 value). But
2014         LargeChange should be used normally when incrementing/decrementing.
2015         Fixes the remaining part of #441546.
2016
2017 2008-11-23  Andreia Gaita  <avidigal@novell.com>
2018
2019         * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream 
2020         until an about:blank has been loaded (according to spec). Fix 
2021         ScrollbarsEnabled to set when a document is loaded (since we use js 
2022         for it). Fix url so it reflects the current loading document and not 
2023         the previous one. Send StatusChanged events.
2024
2025 2008-11-23  Andreia Gaita  <avidigal@novell.com>
2026
2027         * Application.cs: If a message comes in for an embedded control
2028         (like webbrowser) when we're capturing the keyboard, release the
2029         capture and continue.
2030         [fixes #429462]
2031
2032 2008-11-22  Andreia Gaita  <avidigal@novell.com>
2033
2034         * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
2035
2036 2008-11-21  Andreia Gaita  <avidigal@novell.com>
2037
2038         * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
2039         
2040 2008-11-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2041
2042         * ScrollBar.cs:
2043         * ScrollableControl.cs: Set manually the thumb size for the
2044         ScrollableControl scrollbars, so any further changes to the underneath
2045         scrollbars respect the original size.
2046         Fixes part of #441546.
2047
2048 2008-11-21  Geoff Norton  <gnorton@novell.com>
2049
2050         * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
2051         PlatformID.MacOSX now exists.
2052
2053 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2054
2055         * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
2056         Having something internal abstract isn't very nice for people who want
2057         to inherit from this class.
2058
2059 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2060
2061         * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
2062         invalid value.  Just return null for the Image, and use the ImageList's
2063         ImageSize for calculations.
2064
2065 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2066
2067         * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
2068         through DroppedDown so the proper events get called and state gets reset.
2069         [Fixes bug #446805]
2070
2071 2008-11-18  Jonathan Pobst  <monkey@jpobst.com>
2072
2073         * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
2074         the collection is modified.
2075
2076 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
2077
2078         * DomainUpDown.cs: Remove string cache and reflection optimizations.  They
2079         aren't always correct, and fixing them for every case is not worth the
2080         negligible benefit they provide.
2081         [Fixes bug #445713]
2082
2083 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
2084
2085         * DataGridView.cs: We should never add actual cells to the RowTemplate.
2086         Internally, use RowTemplateFull to give us a new row with cells.
2087         * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
2088         * DataGridViewRowCollection.cs: Use RowTemplateFull.
2089
2090 2008-11-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2091
2092         * XplatUIX11.cs: Forms without borders should be able to change its
2093         size - specially they should be able to be maximized, adding the
2094         respective MotifFunctions.Resize bit when setting window properties as
2095         well as *not* marking the Hwnd as size fixed.
2096         Fixes #444347.
2097
2098 2008-11-12  Jonathan Pobst  <monkey@jpobst.com>
2099
2100         * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
2101         an alpha value.
2102         [Fixes bug #444348]
2103
2104 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
2105
2106         * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
2107         * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes.  Raise
2108         AutoSizeColumnModeChanged.
2109         [Fixes bug #443609]
2110
2111 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
2112
2113         * DataGridViewRowCollection.cs: Guard against the user deleting the
2114         NewRow.  Add an internal delete so we can still delete it.
2115         * DataGridView.cs: Use the new internal delete when deleting the NewRow.
2116         [Fixes bug #442181]
2117
2118 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
2119
2120         * TextControl.cs: Add some order of operation to our math so
2121         we don't end up with a negative height for our invalidate rect.
2122         [Fixes bug #381889]
2123
2124 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
2125
2126         * Control.cs: When our enabled changes, notify our implicit children
2127         controls as well as our regular controls.
2128         [Fixes bug #441523]
2129
2130 2008-11-08  Andreia Gaita <shana@jitted.com> 
2131
2132         * HtmlElement.cs: Small code cleanup
2133
2134 2008-11-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2135
2136         * BindingNavigator.cs: MoveFirstItem should be enabled only if
2137         position is larger than 0, not only different than 0. Also Position
2138         and Count items should be enabled if the BindingSource is non null and
2139         non empty.
2140         Fixes #439961.
2141
2142 2008-11-05  Jonathan Pobst  <monkey@jpobst.com>
2143
2144         * TabControl.cs: Don't raise SelectedIndexChanged until we have
2145         actually modified the tab collection, so TabCount will be correct.
2146         [Fixes bug #441896]
2147
2148 2008-11-05  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2149
2150         * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
2151         NonSerialized to fix serialization of ListViewItem.
2152
2153 2008-11-04  Mike Gorse  <mgorse@novell.com>
2154
2155         * ListView.cs: Call OnUIAFocusedItemChanged after completing the
2156           focus change, and always call in SetFocusedItem.
2157         * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
2158
2159 2008-11-04  Jonathan Pobst  <monkey@jpobst.com>
2160
2161         * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
2162         mode.  Based on a patch by John Mortlock.
2163         [Fixes bug #436790]
2164
2165 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2166
2167         * ListView.cs: Use the UsingGroups property where needed, instead of
2168         duplicating the check in other places.
2169
2170 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2171
2172         * ListView.cs: When calculating layout, refresh the count of items
2173         belonging to the default item, insteas of doing it only one time. This
2174         was already working fine for icon views, not not for details.
2175         Fixes #438948.
2176
2177 2008-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2178
2179         * ListView.cs:
2180         * ListViewItem.cs:
2181         * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
2182         to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
2183         does.
2184         Fixes #437933.
2185
2186 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2187
2188         * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
2189
2190 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2191
2192         * ListView.cs: Add internal UIAFocusedItemChanged event.  Fixes bug
2193         #441280, patch by Mike Gorse <mgorse@novell.com>.
2194
2195 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2196
2197         * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
2198         if there is no scrollbar.
2199         [Fixes bug #440885]
2200
2201 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2202
2203         * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
2204         patch from Andy Hume that fixes many issues with ProgressBar.
2205         [See bug #440220]
2206
2207 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2208
2209         * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
2210         [Fixes bug #438866]
2211
2212 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2213
2214         * UpDownBase.cs:
2215         * DomainUpDown.cs:
2216         * NumericUpDown.cs: Internal events added to UpDownBase:
2217         UIAUpButtonClick and UIADownButtonClick.  Patch by Neville Gao
2218         <ngao@novell.com>.
2219
2220 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2221
2222         * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
2223
2224 2008-11-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2225
2226         * ListView.cs:
2227         * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
2228         Application.EnableVisualStyles hasn't been called.
2229         Fixes part of #437933.
2230
2231 2008-10-31  Andreia Gaita  <shana@jitted.com>
2232
2233         * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
2234           if the container is not focused already, we need to specifically set
2235           focus to the first available control, or to the form itself if there
2236           are no controls.
2237
2238 2008-10-31  Andreia Gaita  <shana@jitted.com>
2239
2240         activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
2241         WM_ACTIVATE have been processed before returning, so it is guaranteed that
2242         once it returns and the form is visible, it is actually on the screen on X11
2243
2244         * ContainerControl.cs: Only send focus to the control if the top container
2245           is already focused. This is so that, when a form is first shown, all
2246           the enter/leave events are done first before any focus stuff comes in.
2247           If a control has no top container, there's an extra check on Control.Focus
2248           to make sure it gets focused in this particular case.
2249
2250         * Control.cs: Force focus if the control is active but did not receive
2251           focus after being set as active.
2252
2253         * MdiClient.cs: Dispose the form when closing
2254
2255         * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
2256           doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
2257           if the window is a top Form.
2258           Reset all hwnd properties when the window has been destroyed so that
2259           we don't land in any codepaths that might try to do something with it.
2260           Added a bunch of debugging messages. If TRACE is defined, all X calls
2261           are logged through DebugHelper. Set a few missing EntryPoint attributes.
2262
2263 2008-10-29  Mario Carrion <mcarrion@novell.com>
2264
2265         * ListViewItem.cs: Control enabled to support Accessibility:
2266         - Internal events: UIATextChanged, UIASubItemTextChanged.
2267         - Internal event UIATextChanged in ListViewSubItem that triggers
2268         UIASubItemTextChanged.
2269         * ListView.cs: Control enabled to support Accessibility:
2270         - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged, 
2271         UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
2272         - Internal event UIACollectionChanged in ColumnHeaderCollection.
2273         - Internal event UIACollectionChanged in ListViewItemCollection.
2274         - Internal properties: UIAHeaderControl, UIAColumns, UIARows, 
2275         UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
2276         - Internal methods: UIAGetHeaderBounds.
2277
2278 2008-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2279
2280         * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
2281         the event from the respective scrollbars.
2282         Fixes #436709.
2283
2284 2008-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2285
2286         * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
2287         textbox to know whether any navigation key will be handled or not. If
2288         not, don't pass the message to the textbox, and use it here instead. 
2289         * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
2290         is more precise- than the previous AutoCompleteMatches one.
2291         This should the keyboard navigation in ComboBox when using auto
2292         complete modes.
2293
2294 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
2295
2296         * ComboBox.cs: Fix item height calculation based off Font to match .Net.
2297         [Fixes bug #436730]
2298
2299 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
2300
2301         * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
2302         overridden methods will get called.
2303         * ToolStripItem.cs: Raise Click before MouseUp.
2304         * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
2305         the item's location into account.
2306         [Fixes bug #437683]
2307
2308 2008-10-24  Neville Gao  <nevillegao@gmail.com>
2309
2310         * NumericUpDown.cs: Control enabled to support accessibility.
2311         [Fiexes bug #438135]
2312
2313 2008-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2314
2315         * TextBox.cs: Check that we actually have items no navigate, select
2316         text when pressing enter, as well as handle direction keys only if
2317         mode is different to Suggest or the suggest listbox is visible.
2318
2319 2008-10-23  Andreia Gaita  <shana@jitted.com>
2320
2321         * WebBrowser.cs: Use the new ContentStream property to retrieve
2322           a stream encoded from the document content
2323
2324 2008-10-23  Andreia Gaita  <shana@jitted.com>
2325
2326         * HtmlDocument.cs,
2327           HtmlElement.cs,
2328           HtmlWindow.cs: Fix GetHashcode for null objects
2329
2330 2008-10-22  Andreia Gaita  <shana@jitted.com>
2331
2332         * HtmlDocument.cs,
2333           HtmlElement.cs,
2334           HtmlWindow.cs: Fix equality operators (fixes #428173)
2335
2336 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
2337
2338         * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
2339         mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
2340         [Fixes bug #436772]
2341
2342 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
2343
2344         * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
2345         same item with the mouse as was already selected.
2346         [Fixes bug #436789]
2347
2348 2008-10-21  Brad Taylor  <brad@getcoded.net>
2349         
2350         * TextControl.cs: Break out code to get the visible range into
2351           GetVisibleLineIndexes to be used in UIA code.
2352         
2353         * Line.cs:
2354         * TextControl.cs:
2355         * TextBoxBase.cs: Add comments indicating that the method or property
2356           is used via reflection from UIA code.
2357
2358 2008-10-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2359
2360         * ListViewItem.cs: Match .net serialization.
2361         Fixes remaining part of #417520.
2362
2363 2008-10-20  Jonathan Pobst  <monkey@jpobst.com>
2364
2365         * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
2366
2367 2008-10-20  Mario Carrion <mcarrion@novell.com>
2368
2369         * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property 
2370         added: UIAToolTipRectangle.
2371
2372 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2373
2374         * ListViewItem.cs: When deserializing enumerate over the data, instead
2375         of accessing the data directly. This way we handle much better the
2376         cases were we lack information.
2377         Fixes #417520.
2378
2379 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2380
2381         * ListView.cs: When removing an item from a main ListView.Items
2382         collection (and not a ListViewGroupCollection.Items one), remove it
2383         also from the group, as .net does. Patch by Mario Carrion (mario at
2384         novell dot com).
2385         Fixes #436653.
2386
2387 2008-10-19  Andreia Gaita  <avidigal@novell.com>
2388
2389         * Form.cs: Forms that get closed without a handle being created are
2390         disposed in 2.0. Fixes failing FormTest.FormClose and
2391         FormTest.FormClose2 on windows.
2392
2393 2008-10-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2394
2395         * ListView.cs: If both scrollbars are visible, the vertical one
2396         shouldn't extend too far down.
2397         Fixes #435771.
2398
2399 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
2400
2401         * DataGridView.cs: Add the ability to resize columns and rows with
2402         the mouse.  Also support double-clicking to autoresize.
2403         * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
2404         * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
2405         * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
2406         isn't shown on autoresize.
2407         [Fixes bug #420193]
2408
2409 2008-10-17  Mario Carrion <mcarrion@novell.com>
2410
2411         * ComboBox.cs: Remove UIAListbox.
2412
2413 2008-10-17  Mario Carrion <mcarrion@novell.com>
2414
2415         * ComboBox.cs, ListBox.cs: Using added/removed item in 
2416           OnUIACollectionChangedEvent instead of index.
2417
2418 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
2419
2420         * ComboBox.cs: When we are sorting the items, if the item's type
2421         doesn't support IComparer, use a default one that compares based
2422         off the item's visible text.
2423         [Fixes bug #436328]
2424
2425 2008-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2426
2427         * ColumnHeader.cs: Invalidate ListView.header_control when setting
2428         ImageIndex/ImageKey.
2429         * ThemeWin32Classic.cs: When drawing the column header, draw a image
2430         for the column if available, and make the required adjustments to the
2431         text location.
2432         Fixes #435105.
2433
2434 2008-10-17  Neville Gao  <nevillegao@gmail.com>
2435
2436         * StatusBarPanel.cs: Control enabled to support accessibility.
2437         [Fixes bug #435988]
2438
2439 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2440
2441         * DataGridView.cs: When a user begins an edit in the 'new row',
2442         make that a real row, and add a new 'new row'.  If the user
2443         cancels the edit, remove the new 'new row' and reset everything.
2444         Also, ensure UserAddedRow and UserRemovedRow events are raised.
2445         [Fixes bug #430954]
2446
2447 2008-10-16  Ivan N. Zlatev  <contact@i-nz.net>
2448
2449         * TableLayoutSettings.cs: Fix NREs when deserializing and 
2450         panel is not yet set.
2451         [Fixes bug #436199]
2452
2453 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2454
2455         * DataGridView.cs: Invalidate after deleting a row.
2456
2457 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2458
2459         * DataGridView.cs: Handle Enter and Escape keys.
2460           - Move call to EndEdit to MoveCurrentCell.
2461           - Remove call to EndEdit from navigation key routines.
2462           - Fire CellLeave and CellEnter.
2463
2464 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2465
2466         * DataGridViewCell.cs: Some fixes to the new cell border
2467         painting code.
2468
2469 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2470
2471         * ThemeEngine.cs: Enable visualstyles rendering by default
2472         (on platforms that support it).
2473
2474 2008-10-15  Ivan N. Zlatev  <contact@i-nz.net>
2475
2476         * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before 
2477         MainForm.OnLoad has completed unless DoEvents is forced.
2478         [Fixes bug #412536]
2479
2480 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
2481
2482         * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
2483
2484 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
2485
2486         * Control.cs: Make our implementation of DrawToBitmap better 
2487         match WmPaint.  [Fixes bug #435579]
2488
2489 2008-10-14  Andreia Gaita  <avidigal@novell.com>
2490
2491         * WebBrowser.cs: Use DocumentElement as the document's root for the
2492         whole content. Should fix DocumentText and DocumentStream problems.
2493
2494 2008-10-14  Jonathan Pobst  <monkey@jpobst.com>
2495
2496         * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
2497         these will get called in DGV.OnCollectionChanged.  Make sure 
2498         OnCollectionChanged always gets called.
2499         * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
2500         from every row.  Call this in OnCollectionChanged.
2501         [Fixes bug #433669]
2502
2503 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2504
2505         * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
2506         textbox if auto complete is used, since we need to navigate over it.
2507         And in this case don't pass this messages to the base impl. Also hide
2508         the auto complete list box when displaying the drop down listbox.
2509         * TextBox.cs: new internal members to expose some of the auto complete
2510         functionality to combobox.
2511
2512 2008-10-13  Ivan N. Zlatev  <contact@i-nz.net>
2513
2514         * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before 
2515         MainForm.OnLoad has completed.
2516         [Fixes bug #412536]
2517
2518 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2519
2520         * TextBox.cs: Apply an old-approved patch that adds autocomplete's
2521         Append support to this controls. We need it to apply new patches.
2522
2523 2008-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2524
2525         * Control.cs: When updating z order in child controls, send to back
2526         the implicit controls. Also, do it explicitly, instead of making
2527         GetAllControls return the implicit controls in a specific order, and
2528         thus avoid depending on that, which could change in the future.
2529         Fixes #434304.
2530
2531 2008-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2532
2533         * X11Dnd.cs: Try to call Application.DoEvents before returning in a
2534         call to StartDrag, since we must fire DragDrop/DragLeave *before*
2535         that, as .net does - instead of firing DragDrop/DragLeave *after* the
2536         call to Control.DoDragDrop has completed. This is needed since at the
2537         point of returning, we have sent related dnd ClientMessages, but we
2538         need to wait for them to fire the wmf respective ones.
2539         Fixes #325076.
2540
2541 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
2542
2543         * LinkLabel.cs: Recreate link pieces when change Padding.
2544
2545 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
2546
2547         * LinkLabel.cs: Take Padding into account when recreate link pieces.
2548         [Fixes bug #412530]
2549
2550 2008-10-08  Everaldo Canuto  <ecanuto@novell.com>
2551
2552         * Control.cs: Implement internal property PaddingClientRectangle, it will be
2553         useful for drawing controls that must take care about Padding property.
2554
2555 2008-10-08  Jonathan Pobst  <monkey@jpobst.com>
2556
2557         * BindingSource.cs: Make item_type internal so we can access it in DGV.
2558         * DataGridView.cs: Add support for autogenerating columns from a
2559         BindingSource.
2560
2561 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2562
2563         * DataGridView.cs: Comment out an exception that is getting thrown
2564         too often currently.
2565
2566 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2567
2568         * DataGridView.cs: Always rebind to the datasource, as things may
2569         have changed in it that we aren't capturing yet.
2570
2571 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2572
2573         * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
2574         drawing mode.  If we are top aligned, give ourselves some top padding.
2575
2576 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2577
2578         * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
2579         events on the control under the mouse pointer, instead of firing them
2580         on the window generating the dnd operation. To achieve this re-use the
2581         code used to get the window under the pointer when getting MouseMove
2582         events.
2583         Fixes #381876.
2584
2585 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2586
2587         * X11Dnd.cs: Don't check that that the window sending the dnd events
2588         is the owner of the selection. Although Gtk+ sets it that way, it's
2589         not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
2590         So, just as Gtk+ does, we set our window sending the dnd events as the
2591         owner of the selection, but don't check it when receiving them. This
2592         should fix interoperability with Qt/Kde.
2593         Fixes #324251.
2594
2595 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
2596
2597         * DataGridView.cs: Make sure we take the vertical scrollbar into
2598         account when autosizing columns.
2599
2600 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
2601
2602         * DataGridView.cs: Handle sorting datetimes.
2603
2604 2008-10-04  Ivan N. Zlatev  <contact@i-nz.net>
2605
2606         * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs, 
2607         TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup 
2608         compilation warnings.
2609
2610 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2611
2612         * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs, 
2613         ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs, 
2614         ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs, 
2615         ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup 
2616         compilation warnings.
2617
2618 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2619
2620         * DataGridView.cs, DataGridViewCell.cs, 
2621         DataGridViewCellValidatingEventArgs.cs, 
2622         DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs, 
2623         DataGridViewRow.cs, DataGridViewRowHeaderCell.cs, 
2624         DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
2625
2626 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2627
2628         * HtmlElementEventArgs.cs, HtmlWindowCollection.cs: 
2629         Cleanup compilation warnings.
2630
2631 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2632
2633         * XplatUIWin32.cs: Cleanup compilation warnings.
2634
2635 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2636
2637         * PropertyGrid.cs: Cleanup compilation warnings.
2638
2639 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2640
2641         * DataGridViewRow.cs: Only clear the row background if we
2642         are going to paint a new background.
2643
2644 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2645
2646         * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
2647         DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
2648         use PaintBorder instead.        
2649
2650 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2651
2652         * DataGridView.cs: When CellBorderStyle is set, update the
2653         AdvancedCellBorderStyle to match.
2654
2655 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2656
2657         * DataGridViewCell.cs: Add helper methods to convert Alignment
2658         to TextFormatFlags and align rectangles.
2659         * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
2660         * DataGridViewImageCell.cs: Use Alignment when painting the image.
2661
2662 2008-10-02  Ivan N. Zlatev  <contact@i-nz.net>
2663
2664         * ToolTip.cs: Display tooltips only for controls on the active form.
2665         [Fixes bug #428115]
2666
2667 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2668
2669         * DataGridView.cs: Make OnCellValueNeeded internal.
2670         * DataGridViewCell.cs: Raise the CellValueNeeded event so the
2671         user can supply their own value if they choose.
2672
2673 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2674
2675         * DataGridViewColumnHeaderCell.cs: Create a new style object
2676         so the DefaultCellStyle doesn't get changed.
2677
2678 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2679
2680         * ToolStripItem.cs: Check to make sure the owner is actually
2681         changing in InternalOwner before doing any work.  Fixes some
2682         failing tests.
2683
2684 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2685
2686         * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
2687         * DataGridView.cs: Use a column header's inherited style instead
2688         of just using the default.
2689
2690 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2691
2692         * SplitContainer.cs: Raise SplitterMoved when the splitter is
2693         moved through code.
2694
2695 2008-10-01  Mario Carrion <mcarrion@novell.com>
2696
2697         * ScrollBar.cs: Internal property added: UIAThumbPosition.
2698
2699 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2700
2701         * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
2702
2703 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2704
2705         * ToolStripItem.cs: When the user sets Owner, we need to remove
2706         it from its previous owner and then add it to the new owner's
2707         item collection.  Also, create InternalOwner, so we can set the owner
2708         that doesn't do this new stuff.
2709         * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
2710
2711 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2712
2713         * ToolStripItem.cs: When our parent changes, recalculate our text
2714         size, since we may be getting our Font from our parent.  When our
2715         owner's Font changes, recalculate ourselves as we may be using
2716         that font.
2717
2718 2008-10-01  Everaldo Canuto  <ecanuto@novell.com>
2719
2720         * MenuAPI.cs: Select the first option of a popup when opening the popup via
2721         return key. [Fixes bug #413792].
2722
2723 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2724
2725         * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
2726         ambient properties.  (Get their value from their parents if
2727         values haven't been set.)
2728
2729 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2730
2731         * ToolStripSystemRenderer.cs: Call overridden methods' bases
2732         after our logic, so users can do painting by handling the events.
2733         Currently, we draw over any user painting.
2734
2735 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2736
2737         * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
2738         after our logic, so users can do painting by handling the events.
2739         Currently, we draw over any user painting.
2740
2741 2008-09-30  Everaldo Canuto  <ecanuto@novell.com>
2742
2743         * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
2744
2745 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2746
2747         * TreeNode.cs, TreeView.cs: Move logic that determines the node
2748         image to draw to TreeNode.  Give Index/Keys put on the node
2749         precedence over the global one for the TreeView.
2750
2751 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2752
2753         * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
2754
2755 2008-09-29  Mario Carrion <mcarrion@novell.com>
2756
2757         * ListBox.cs: Index fixed.
2758
2759 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2760
2761         * TabControl.cs: When expanding the tab -because it's selected now-,
2762         using Right alignment, instead of adding some selected delta value to
2763         the X origin, substract it, so it gets a location adjacent to the panel, 
2764         instead of be more separated.
2765         Fixes #409170.
2766
2767 2008-09-29  Jonathan Pobst  <monkey@jpobst.com>
2768
2769         * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
2770         own copies of them.
2771
2772 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2773
2774         * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
2775         as well as the other static fields, to avoid using their previous
2776         values my mistake when handling the dnd events. This should avoid
2777         handling any status event after the drop has been finalized/cancelled.
2778
2779 2008-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2780
2781         * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
2782         operation, instead of waiting until we get any movement - this will
2783         help us to have the data available in case no movement was detected
2784         and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
2785         Finally add a windows.forms-only fallback to fire the mentioned events
2786         if no movement at all was detected, just like .net does.
2787         Fixes #381876.
2788
2789 2008-09-27  Jonathan Pobst  <monkey@jpobst.com>
2790
2791         * ThemeWin32Classic.cs: When drawing a status bar panel, don't
2792         return early if the text is empty because the icon doesn't get
2793         drawn then.  [Fixes bug #428113]
2794
2795 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2796
2797         * FileDialog.cs: Implement basic support for sorting by columns in
2798         Details view. Patch by Eric Petit.
2799         Fixes #428006.
2800
2801 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2802
2803         * ThemeWin32Classis.cs: When drawing gridlines take into account the
2804         case where ListView.ItemSize hasn't been computed, and provide a
2805         fallback as well. This prevents a division by 0.
2806
2807 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2808
2809         * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
2810         correctly draw tooltip backgrounds.
2811
2812 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2813
2814         * ImageList.cs: Change CopyTo implementation to ensure clones are
2815         created of our images.
2816         [Fixes bug #409169]
2817
2818 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2819
2820         * Control.cs: When setting fonts, we need to ensure we change our
2821         reference to the new font object, even if it represents the same
2822         font as before.  If we don't, the original font can get disposed
2823         and we will still try to use it.
2824         [Fixes bug #386450]
2825
2826 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2827
2828         * FileDialog.cs: Take into account Tile view when selecting the view
2829         (2.0 profile).
2830
2831 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2832
2833         * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
2834         the item bounds, since we can't iterate over them in virtual mode.
2835         Also fix wrong calculation of the gridlines when using scrolling.
2836         Fixes #400390.
2837
2838 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2839
2840         * XplatUIX11.cs: When handling EnterNotify events, take into account
2841         both the public and implicit controls when trying to detect the
2842         grab/ungrab process. This should fix ListView selection in Details
2843         view.
2844
2845 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2846
2847         * TreeView.cs: Redraw the whole node area when the selected node changes.
2848         Things like state images were not getting redrawn because the invalid
2849         rectangle was too small.
2850         [Fixes bug #428211]
2851
2852 2008-09-23  Mario Carrion  <mcarrion@novell.com>
2853
2854         * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
2855         [Fixes bug #428993]
2856
2857 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2858
2859         * Form.cs: Do not set the Form's icon in the backend if showicon = false.
2860         [Fixes bug #428114]
2861
2862 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2863
2864         * ThemeWin32Classic.cs: Allow tooltips to be multiline.
2865         [Fixes bug #427884]
2866
2867 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2868
2869         * StatusBar.cs: Add tooltip support.
2870         [Fixes bug #428113]
2871
2872 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2873
2874         * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
2875         alignments of sub items in Details view. Patch by John Mortlock (johnm at 
2876         hlaustralia.com.au).
2877         Fixes #425360.
2878
2879 2008-09-23  Neville Gao  <nevillegao@gmail.com>
2880
2881         * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
2882         [Fixes bug #419079]
2883
2884 2008-09-22  Jonathan Pobst  <monkey@jpobst.com>
2885
2886         * TextBoxBase.cs: Set Text to "" instead of null in Clear().
2887         [Fixes bug #428107]
2888
2889 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2890
2891         * ListView.cs: Don't do anything when EnsureVisible is called inside a
2892         BeginUpdate/EndUpdate block.
2893         Fixes #425049.
2894
2895 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2896
2897         * ListViewItem.cs: The semantics for the public .ctor of
2898         ListViewSubItemCollection need us to already have a Text value for the
2899         item, which in our implementation have as available *after* adding the
2900         first sub item. So create an internal .ctor that satisfies our needs
2901         and let the public .ctor have the same semantics as .net.
2902         Fixes #427561.
2903
2904 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2905
2906         * ListControl.cs: Changes in Formatting related values should call
2907         RefreshItems, as .net does.
2908         * ComboBox.cs:
2909         * ListBox.cs: In the respective overrides of RefreshItems calculate
2910         layout as well as refreshing - again, this is what .net does.
2911         Fixes #426168.
2912
2913 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2914
2915         * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
2916         since we are already doing that when we change the value of the
2917         scrollbar or force the call to ScrollWindow in the same method. This
2918         way we don't cause a Invalidate call for all the listbox bounds for
2919         methods calling UpdateTopItem with an already updated top item. This
2920         was happening specially calling EnsureVisible with already visible
2921         items.
2922
2923 2008-09-18  Mike Gorse <mgorse@novell.com>
2924
2925         * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
2926           XplatUIStructs.cs: Added KeyFilter
2927         [Fixes bug #427039]
2928
2929 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2930
2931         * RelatedPropertyManager.cs: The properties returned by
2932         GetItemProperties should be that ones of the *actual* object returned
2933         by the property, not the property type - this is very special when the
2934         property exposes a type, but the returned object actually is a child
2935         class and implements more functionality and properties.
2936
2937 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2938
2939         * Binding.cs: Don't look for the property in the data source if the
2940         passed string is empty.
2941
2942 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2943
2944         * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to 
2945         fix unused variable warnings.
2946
2947 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2948
2949         * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
2950         [Fixes bug #427073]
2951
2952 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2953
2954         * XplatUIX11.cs: 
2955          - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this 
2956          leads to the window manager overriding our border style and zorder. 
2957          - Allow the activation of non-modal forms, which are children of a 
2958          modal form.
2959         [Fixes bug #423417]
2960
2961 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
2962
2963         * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should 
2964         ask the window manager to do the work instead of changing the property 
2965         directly.
2966         [Fixes bug #423417]
2967
2968 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2969
2970         * CurrencyManager.cs: Check for positon before call ChangeRecordState in
2971         AddNew to fix some navigation for empty datasets. [Fixes #323053]
2972
2973 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2974
2975         * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set 
2976         InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
2977         border and fixes some drawing issues when resize form.
2978
2979 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2980
2981         * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
2982         
2983         * ThemeWin32Classic.cs: We don't need to reduce button size when it is
2984         AcceptButton.
2985
2986 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
2987
2988         * TextBoxBase.cs: For standard textbox the scrollbars are always 
2989         visible if Multiline is true.
2990         [Fixes bug #426896]
2991
2992 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
2993
2994         * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
2995         patch.
2996         
2997 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
2998
2999         [Fixes most od DBNull and HeadersVisible problems]
3000         
3001         * DataGrid.cs:
3002         - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
3003         returns the value that we need.
3004         - Fixed FromPixelToColumn method that return zero for first     column and for
3005         row header cell, now it returns -1 for row header cell.
3006         - Fixed HitTest to check row header cell in column header area, it now
3007         returns HitTestType.None. [Fixes #322864]
3008         - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
3009         checks for RowHeadersVisible and other things.
3010         - If an exception occurs when setting CurrentCell and user type 'yes' in
3011         message dialog, invalidade current and new cell and set setting_current_cell
3012         to false to prevent future errors. [Partially fixes #323050]
3013
3014         * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
3015         value (SetColumnValueAtRow), it must be done by grid to properly show 
3016         messages. [Fixes #323050]
3017
3018         * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
3019         better draw column and row header. Also dont draw anything when column
3020         headers is not visible.
3021
3022 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3023
3024         * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
3025         logic.
3026
3027 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3028
3029         * TreeView.cs: Don't start editing a node on right click, only
3030         left click.
3031
3032 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3033
3034         * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
3035         disabled over a year ago.
3036         * Form.cs: Wrap calling Load in a try/catch because it can happen
3037         before the catch-all one in NativeWindow.
3038         [Fixes bug #425414]
3039
3040 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3041
3042         * ToolStripDropDownMenu.cs: Calculate the connected area better
3043         to take into account when the drop down is not directly under the
3044         owner item.
3045         * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
3046
3047 2008-09-16  Mario Carrion <mcarrion@novell.com>
3048
3049         * ScrollBar.cs: New event added: UIAValueChanged, generated when
3050           LargeChange, SmallChange, Maximum or Minimum values are changed.
3051         [Fixes bug #426464]
3052
3053 2008-09-16  Mario Carrion <mcarrion@novell.com>
3054
3055         * ErrorProvider.cs: Component enabled to support accessibility.
3056         * Application.cs: Updated to Initialize UIA in ErrorProvider.
3057         [Fixes bug #426459]
3058
3059 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3060
3061         * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
3062         so we don't highlight on first focus.
3063         [Fixes bug #360869]
3064
3065 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3066
3067         * TextControl.cs: Correctly calculate the height of the area we 
3068         need to invalidate when we have started scrolling and viewport_y
3069         is used.  [Fixes bug #387608]
3070
3071 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3072
3073         * TextControl.cs: When getting the SelectedText, don't add in
3074         NewLine characters, as they are already contained in the lines.
3075         [Fixes bug #388115]
3076
3077 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3078
3079         * TextBoxBase.cs: Replace the buggy Lines setter with one that
3080         simply concats the lines and send it to the Text setter.
3081         [Fixes issue #2 and #3 of 388115]
3082
3083 2008-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3084
3085         * Binding.cs: The default value of DataSourceNullValue should be
3086         Convert.DBNull actually. Also, the NullValue should only be used *if*
3087         itself is not null, and use the null/Convert.DBNull value instead.
3088
3089 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3090
3091         * TextControl.cs: Add a method to convert a string newline to the
3092         newline enum.
3093         * TextBoxBase.cs: When the user hits enter, insert a native newline.
3094         [Fixes part 1 of bug #388115]
3095
3096 2008-09-15  Mario Carrion <mcarrion@novell.com>
3097
3098         * ToolTip.cs: UnPopup event set to internal to match public API.
3099
3100 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3101
3102         * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
3103         have to remove the Ctrl in order for the focus moving code to kick in.
3104         [Fixes bug #426170]
3105
3106 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3107
3108         * CheckedListBox.cs: Return the real item index from Add.  It may not be
3109         the last item if the list is sorted.  The user can change the NewValue in
3110         the ItemCheck event, we need to use that value if so.
3111         * ListBox.cs: Return the real item index from a sorted Add.
3112         [Fixes bug #426166]
3113
3114 2008-09-15  Ivan N. Zlatev  <contact@i-nz.net>
3115
3116         * MimeIcon.cs: Add null checks in the GnomeHandler, because it might 
3117         happen that the icons from the theme is missing or the particular size 
3118         unavailable.
3119         [Fixes bug #424981]
3120
3121 2008-09-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3122
3123         * Binding.cs: When assigning null or DBNull depending on value/ref type,
3124         use IsValueType instead to get the precise desired value.
3125         Fixes #424276.
3126
3127 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3128
3129         * TreeNodeCollection.cs: When adding a new node to an opened node,
3130         we have to invalidate everything below the parent node because
3131         every node scoots down and we have to repaint them.
3132         [Fixes bug #411386]
3133
3134 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3135
3136         * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
3137         property into account when drawing.
3138         [Fixes bug #416064]
3139
3140 2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3141
3142         * ListBox.cs: When calling Items.Clear(), call
3143         SelectedIndexCollection.ClearCore instead of normal Clear method, to
3144         not fire any Selected*Changed event - this is done to match .net and
3145         don't have invalid values when changing the DataSourceProperty.
3146         Fixes #424273.
3147
3148 2008-09-12  Mario Carrion  <mcarrion@novell.com>
3149
3150         * HelpProvider.cs: Control enabled to support accessibility.
3151         * Application.cs: Updated to Initialize UIA in HelpProvider.
3152         [Fixes bug #425988]
3153
3154 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3155
3156         * Form.cs: When we are showing a dialog box, if its owner is TopMost,
3157         make the dialog TopMost as well.
3158         [Fixes bug #425984]
3159
3160 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3161
3162         * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
3163         clipboard data better.
3164         [Fixes bug #414446]
3165
3166 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3167
3168         * TextBoxBase.cs: Applied patch from John Mortlock that ensures
3169         TextChanged and SelectionChanged events fire in the same order as .Net.
3170         [Fixes bug #425725]
3171
3172 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3173
3174         * DataGridView.cs: When sorting a column, if it only contains numbers,
3175         do a numeric sort instead of a string sort.
3176         [Fixes bug #425849]
3177
3178 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3179
3180         * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
3181         against NRE's when the settings have a null panel.
3182         * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
3183         the panel gets set.
3184         [Fixes bug #425647]
3185
3186 2008-09-11  Mario Carrion  <mcarrion@novell.com>
3187
3188         * ToolTip.cs: Control enabled to support accessibility.
3189         * Application.cs: Updated to Initialize UIA in ToolTip.
3190         [Fixes bug #425277]
3191
3192 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3193
3194         * Control.cs: Make the custom Enumerator internal to fix build.
3195
3196 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3197
3198         * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
3199         already in edit mode, begin edit mode.  Generally edit mode isn't
3200         started until the second click, but CheckBoxes are special.
3201
3202 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3203
3204         * ErrorProvider.cs: Never try to add our icons to ContainerControl,
3205         since that can be set to anything.  Always add them to the Control's
3206         parent.  [Fixes bug #416058]
3207
3208 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3209
3210         * ListView.cs: Use a custom enumerator for ListViewItemCollection
3211         so items can be deleted in a foreach.
3212         [Fixes bug #425342]
3213
3214 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3215
3216         * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
3217         Store the user set explicit height so that the row can be AutoSized
3218         and then when AutoSize is turned off, it can get its original size back.
3219         * DataGridView.cs: Use the Row's GetPreferredHeight instead of 
3220         duplicating the logic.  When setting AutoSizeRowsMode to None, reset
3221         rows' heights back to their explicit values.
3222         [Fixes bug #415780]
3223
3224 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3225
3226         * DateTimePicker.cs: When getting focus, select the checkbox if we are
3227         already showing it. Also, don't change its value when pressing space
3228         if the checkbox is not visible (ShowCheckBox as false). Finally, the
3229         checkbox should remain selected as long as Checked is false, and the
3230         other parts are disabled.
3231         Fixes #424267.
3232         
3233 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3234
3235         * MessageBox.cs: Handle shortcut keys to dialog buttons.
3236         [Fixes bug #425425]
3237
3238 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3239
3240         * Binding.cs: When the value retrieved from the control property is
3241         null, don't return Convert.DBNull for Nullable instances, since they
3242         can *actually* get a null value.
3243         Fixes #424265.
3244
3245 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
3246
3247         * Control.cs: Add an internal field to force doublebuffering regardless
3248         of what the public mechanisms are set to.  This is because MS's native
3249         controls are doublebuffered even though their .Net bits are set to false.
3250         * ProgressBar.cs: Set force_double_buffer to true.
3251         [Fixes bug #406595]
3252
3253 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
3254
3255         * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
3256         the cell template.
3257         * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
3258         * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
3259         without EditingControls, paint background selection for types without
3260         EditingControls, reset the EditingCellValueChanged flag when the
3261         cell's value is committed.
3262         * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
3263         have EditingControls, remove a double call to a cell's OnContentClickInternal,
3264         don't do cell changing logic in OnMouseDown if the cell didn't change.
3265         [Fixes bug #420351]
3266
3267 2008-09-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3268
3269         * DateTimePicker.cs: Fix the edition of am/pm specifier.
3270
3271 2008-09-09  Jonathan Pobst  <monkey@jpobst.com>
3272
3273         * TextControl.cs: Add "&" to the list of valid characters in a URL.
3274
3275 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3276
3277         * DateTimePicker.cs: Before incrementing or decrementing any part in
3278         the textbox, end any current edit. Also when ending the current edit
3279         use the editing_part_index field instead of the current selected
3280         value, since they can be out of synch, and we really need to work on
3281         the *real* current edit part. Finally when PartData.Selected changes,
3282         always try to end any ongoing edit.
3283         This should fix some small errors handling mouse navigation and
3284         increase/decrease operations.
3285
3286 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3287
3288         * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
3289         respectively) should handled different, since the 12 hours format
3290         needs the value typed by the user to be adjusted depending on the
3291         a.m/p.m value, so it is preserved, and only changed when the value
3292         reaches the 12 value (when it changes from a.m to p.m).
3293         Fixes part of #416555.
3294
3295 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3296
3297         * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
3298         * ToolStripDropDownItem.cs: Don't fire events and such again if
3299         ShowDropDown is called on an already dropped down item.
3300         * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
3301         subitems, the user may add some in the DropDownOpening event.
3302         [Fixes bug #417877]
3303
3304 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3305
3306         * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
3307         [Fixes bug #424270]
3308
3309 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3310
3311         * MdiClient.cs: When looking for menustrips on a child form to merge,
3312         look inside ToolStripContainers.
3313         [Fixes bug #424264]
3314
3315 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
3316
3317         * ErrorProvider.cs: Unbreak my previous commit.
3318
3319 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
3320
3321         * ErrorProvider.cs: Icon should always be 16x16.
3322         [Fixes bug #424380]
3323
3324 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
3325
3326         * GridEntry.cs: Invalidate the child items cache when the property 
3327         value changes.
3328
3329 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
3330
3331         * GridEntry.cs, PropertyGridView.cs: 
3332            - Update the ReadOnly detection and rendering to finally hopefully 
3333            match the one of MSFT.
3334            - Niceify and move the debug CWLS.
3335         [Fixes bug #409028]
3336
3337 2008-09-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3338
3339         * ListView.cs: Don't call Invalidate at all from SetItemLocation,
3340         since we are already calling Invalidate for the entire control when
3341         needed - and call Redraw() when size changes, since we need to paint
3342         there by ourselved and not anymore from the mentioned method. 
3343         This should improve the layout process. Also clean some not needed calls 
3344         here and there.
3345
3346 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
3347
3348         * MenuAPI.cs: Add a null check to the Alt-F4 code.
3349         [Fixes bug #420309]
3350
3351 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
3352
3353         * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
3354         [Fixes bug #423040]
3355
3356 2008-09-04  Ivan N. Zlatev  <contact@i-nz.net>
3357
3358         * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs, 
3359         PropertyGridView.sc: Implement lazy/delayed propertygrid population 
3360         on item expansion. Improves performance and fixes bug #417955.
3361         [Fixes bug #417955]
3362
3363 2008-09-05  Stephane Delcroix  <sdelcroix@novell.com>
3364
3365         * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
3366         fix the build.
3367
3368 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3369
3370         * TextControl.cs: Add "_" to the list of valid characters in a URL.
3371         [Fixes bug #423408]
3372
3373 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3374
3375         * Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
3376         region gets set.
3377         [Fixes bug #414166]
3378
3379 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3380
3381         * FontDialog.cs: When storing our font size from the starting font,
3382         use SizeInPoints instead of Size in case Size is a different unit
3383         from Points.
3384         [Fixes bug #416489]
3385
3386 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3387
3388         * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
3389         don't use it for anything else, check if a directory is highlighted.
3390         If it is, navigate into it.
3391         [Fixes bug #422087]
3392
3393 2008-09-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3394
3395         * Binding.cs: When acquiring a BindingManagerBase for the first time,
3396         check that the specified property actually exists in the data source,
3397         and throw an ArgumentException if that's not the case - this is only
3398         done for this scenario, since for later cases (such Position changes)
3399         we throw different exceptions (match .Net).
3400
3401 2008-09-03  Ivan N. Zlatev  <contact@i-nz.net>
3402
3403         * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs, 
3404           FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs, 
3405           PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs, 
3406           TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs, 
3407           ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs, 
3408           ToolStripStatusLabel.cs: Add missing PerformLayout calls to various 
3409           properties.
3410           [Fixes bug #418684]
3411
3412 2008-09-03  Neville Gao  <nevillegao@gmail.com>
3413
3414         * StatusBar.cs: Control enabled to support accessibility.
3415         [Fixes bug #419079]
3416
3417 2008-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3418
3419         * Binding.cs: When connecting the event handler for the "Changed"
3420         event for the property, only do it for PropertyManager, and not for
3421         CurrencyManager - this is exactly what does .Net, totally ignoring any
3422         change in the property of the elements of a list.
3423         Fixes the tests.
3424
3425 2008-09-02  Jonathan Pobst  <monkey@jpobst.com>
3426
3427         * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
3428         to Windows when creating a window, as we fake MDI stuffs.
3429         [Fixes bug #421858]
3430
3431 2008-09-01  Ivan N. Zlatev  <contact@i-nz.net>
3432
3433         * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the 
3434         change takes effect.
3435
3436 2008-08-24  Ivan N. Zlatev  <contact@i-nz.net>
3437
3438         * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
3439         [Fixes bug #419001]
3440
3441 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
3442
3443         * DataGridView.cs: Raise CellContentClick event.
3444         [Fixes part of bug #420351]
3445
3446 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3447
3448         * ScrollBar.cs: Control enabled to support accessibility.
3449         [Fixes bug #416759]
3450
3451 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3452
3453         * ComboBox.cs: Control enabled to support accessibility.
3454         [Fixes bug #416663]
3455
3456 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3457
3458         * ListBox.cs: Control enabled to support accessibility.
3459         [Fixes bug #416640]
3460
3461 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
3462
3463         * ComboBox.cs: Don't suppress the TextChanged event when changing
3464         the SelectedIndex.
3465         * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
3466         and re-raise it.
3467         [Fixes bug #420673]
3468
3469 2008-08-26  Jonathan Pobst  <monkey@jpobst.com>
3470
3471         * ErrorProvider.cs: Fix a regression NRE when setting properties
3472         for a control before it has a parent.
3473         [Fixes bug #420305]
3474
3475 2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3476
3477         * Binding.cs: Use the BindingManagerBase.Current value to obtain
3478         connect the property "Changed" event, instead of using the data
3479         sources - this is useful when the property specifies actually a
3480         multiple objects path.
3481         Fixes part of #417973.
3482
3483 2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3484
3485         * RelatedPropertyManager.cs: PropertyManager instances associated to a
3486         nested properties should return not the properties of the data source
3487         itself, but the properties of the type of a specific property in the
3488         data source - match .net.
3489
3490 2008-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
3491
3492         * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
3493         AddRange overloads into AddItems method, and added missing NULL check.
3494         Added extra argument check to RemoveAt for compatibility with MS. 
3495         Modified IList implementation of Add, Contains, IndexOf and Remove to
3496         throw an ArgumentException if item is not an int. Modified IList.Insert
3497         to throw a NotSupportException instead of an Exception. Implemented
3498         ICollection.
3499         (ObjectCollection): To avoid duplication, use AddItems method from
3500         AddRange overloads. On 1.0 profile, first perform NULL check on items
3501         in AddItems.
3502
3503 2008-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
3504
3505         * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
3506          #419087.
3507
3508 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
3509
3510         * X11Keyboard.cs : comment out some Console.WriteLine().
3511
3512 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
3513
3514         * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
3515           even if premises are not filled. Also XLookupString() was not
3516           receiving correct input, which blocked precise input handling
3517           on non-XIM mode.
3518
3519 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3520
3521         * ListView.cs: When calling OnCacheVirtualItems, cast to the right
3522         type of delegate, instead of EventHandler - this was causing a type
3523         cast exception in all apps handling this event.
3524         Fixes #417876.
3525
3526 2008-08-20  Jonathan Pobst  <monkey@jpobst.com>
3527
3528         * ToolStripDropDownItem.cs: Always raise DropDownOpening in
3529         ShowDropDown to give the user a chance to dynamically add
3530         drop down items.  [Step 1 of fixing bug #417877]
3531
3532 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3533
3534         * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
3535         had any mouse motion since the call to StartDrag, to match the dnd
3536         behaviour of .net.
3537         Fixes part of #381876.
3538
3539 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3540
3541         * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
3542         if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
3543         Also, if we are actually moving into a different window after
3544         grabbing, generate a LeaveNotify event for the previous window, since
3545         we need to fire the leave events until the grab ends, not when
3546         actually moving outside of the control.
3547
3548 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3549
3550         * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
3551         events only for client windows was wrong - we need to compare the
3552         client window against the window receiving the EnterNotify event, not
3553         against zero (since client window is never Zero, btw).
3554         This prevents having unnecessary handling of EnterNotify events for
3555         non-client windows when a gran begins.
3556
3557 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3558
3559         * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
3560         MouseMove/MotionNotify events at all (which should only happen after
3561         MouseUp/ButtonRelease, as .Net does).
3562         This avoids firing an extra and unnecessary MouseMove event just after
3563         every MouseDown event.
3564
3565 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3566
3567         * LinkLabel.cs: Always clear any previous links when LinkArea
3568         is set.  [Fixes bug #410709]
3569
3570 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3571
3572         * ToolStripProfessionalRenderer.cs: Revert last change.
3573         * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
3574         for ToolStripDropDownBackground.
3575
3576 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3577
3578         * ToolStripProfessionalRenderer.cs: Use Window color for the 
3579         background of dropdowns to match .Net when the user is not
3580         using the default white.  [Fixes bug #418108]
3581
3582 2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>
3583
3584         * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
3585           it caused timer registration twice. Fixed bug #418107.
3586
3587 2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3588
3589         [Correction: This is the actual change to X11Dnd issue, not the
3590         previous one, which was actually a different issue.]
3591
3592         * X11Dnd.cs: Increase the interval for the Timer, to not fire our
3593         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3594         when the pointer is actually in motion, but only when the pointer
3595         seems to stop (as .net does).
3596         Fixes part of #381876.
3597
3598
3599 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
3600
3601         * ListBox.cs: Fix CopyTo implementation.
3602         [Fixes bug #409169]
3603
3604 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
3605
3606         * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
3607         drawing a ComboBox's background.  Fixes bad disabled rendering when
3608         the control is not at 0,0.
3609         [Fixes bug #416063]
3610
3611 2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>
3612
3613         * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the 
3614         ComponentModel layer, which will properly prioritize the attributes.
3615         Avoids wrong prioritization of duplicate attributes when retrieving 
3616         the converter and editor.
3617         [Fixes bug #417729]
3618
3619 2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3620
3621         * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
3622         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3623         when the pointer is actually in motion, but only when the pointer
3624         seems to stop (as .net does).
3625         Fixes part of #381876.
3626
3627 2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>
3628
3629         * GridEntry.cs: Perform stricter check for the ParentEntry's 
3630         PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor 
3631         implementation.
3632         [Fixes bug #417567]
3633
3634 2008-08-14  Geoff Norton  <gnorton@novell.com>
3635
3636         * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
3637         Fixes #396983.  Properly fix ActiveWindow trackin and do not
3638         prematurely show POPUP windows.
3639
3640 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3641
3642         * XplatUIX11.cs: Handle the obscured regions while scrolling using
3643         GraphicsExpose event, processing it just after we copy the scrolled
3644         area. This ensures that the next calls to ScrollWindow will copy
3645         regions already updated, and the scrolling will be smooth. Also remove
3646         the code that was trying to detect the obscured regions, since we are
3647         not using it anymore (too slow).
3648
3649 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3650
3651         * ListBox.cs: Fix the -temporary- broken selection in ListBox for
3652         MultiExtended mode, by separating some logic between the ctrl/shift
3653         handling. Also ignore any MouseMove events generated together with
3654         MouseDown events - we are only interested in the real motion event.
3655         Fixes part of #414963.
3656
3657 2008-08-08  Jonathan Pobst  <monkey@jpobst.com>
3658
3659         * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
3660         is selected.  [Fixes bug #414143]
3661
3662 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
3663
3664         * GridEntry.cs: Check if current property is a ICustomTypeDescriptor 
3665         and not the parent one (the propertyowner). Fixes the behavior of 
3666         GetConverter/GetEditor.
3667         [Fixes bug #415452]
3668
3669 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
3670
3671         * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
3672         [Fixes part of bug #415452]
3673
3674 2008-08-05  Ivan N. Zlatev  <contact@i-nz.net>
3675
3676         * GridEntry.cs: ITypeDescriptorContext should be relative to the parent 
3677         GridEntry, not the current.
3678         [Fixes bug #413896]
3679
3680 2008-08-04  Ivan N. Zlatev  <contact@i-nz.net>
3681
3682         * TextBoxBase.cs: De-internalize max_length field.
3683         * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox 
3684         share the same logic.
3685         [Fixes bug #414454]
3686
3687 2008-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3688
3689         * ListBox.cs: Selection changes made in the MouseDown handler should
3690         use the *Core versions of selection in SelectedIndices collection,
3691         since the SelectedIndexChanged/SelectedValueChanged events are fired
3692         until we get a MouseUp event, and thus we need to separate the logic
3693         from the events, as done in the keyboard navigation. Also, fire those
3694         selection events from keyboard navigation in SelectionMode.None, even
3695         if we don't have a selection, as .Net does.
3696
3697 2008-08-01  Jonathan Pobst  <monkey@jpobst.com>
3698
3699         * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
3700         last change introduced when an item is clicked but isn't on a toolstrip.
3701
3702 2008-07-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3703
3704         * ListBindingHelper.cs: When looking for an object's properties, check
3705         if it implements ICustomTypeDescriptor, in which case we should
3706         resolve the propertu based on its GetProperties method, not in its
3707         actual properties. This is what .Net seems to do.
3708         Fixes a UsingWebBrowser problem during initialization.
3709
3710 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3711
3712         * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
3713         sitting on a MenuStrip.
3714
3715 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3716
3717         * ToolStripButton.cs: If we "click" a top button on a menustrip that has
3718         no children with the keyboard, we need to release the keyboard capture.
3719         [Fixes bug #413567]
3720
3721 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3722
3723         * ToolStripMenuItem.cs: If we "click" a top level menu item that has
3724         no children with the keyboard, we need to release the keyboard capture.
3725         [Fixes bug #413567]
3726
3727 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
3728
3729         * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
3730         the GTK+-based implementation of VisualStyles.
3731         * ThemeWin32Classic.cs: Exposed various layout values for use in the
3732         GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
3733         ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
3734         ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
3735         TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
3736         TrackBarHorizontalTrackHeight.
3737
3738 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
3739
3740         * TabControl.cs: Added hot style handling for the scroll buttons.
3741         right_slider_state, left_slider_state are now of type PushButtonState to
3742         allow for a hot state. Added tracking of the mouse button being held down
3743         on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
3744         LeftScrollButtonArea.
3745         * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
3746         TabControlGetRightScrollRect.
3747
3748 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3749
3750         * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent 
3751         runtime errors.
3752
3753 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3754
3755         * Form.cs: Ensure that we reset the shown_raised flag after 
3756         the form is closed, so that we raise the show events the next 
3757         time the form is shown.
3758         [Fixes bug #413141]
3759
3760 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3761
3762         * Form.cs: Ensure closing events are raised only once.
3763         [Fixes bug #413143]
3764
3765 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3766
3767         * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode, 
3768         so that we can successfully generate the LParam in-place instead of 
3769         in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard 
3770         navigation for menus.
3771
3772 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3773
3774         * MenuAPI.cs: When montion don't set the keyboard navigation state to 
3775         'navigating'. Fixes bug #411356.
3776
3777 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3778
3779         [Fixed remaining issues of #406773 (#1)]
3780         * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
3781
3782         * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
3783         MainMenu (already done) and ContextMenu creation.
3784
3785         * ContextMenu.cs: Create tracker on construction. 
3786
3787 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3788
3789         * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
3790         possible to instantiate MenuTracker without GrabControl.
3791
3792 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3793
3794         * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
3795
3796         * MainMenu.cs: Set GrabControl on SetForm using current form.
3797
3798 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3799
3800         * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
3801
3802 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3803
3804         * MenuAPI.cs: Check if menu is activated before deactivate it in 
3805         ProcessShortcut.
3806
3807 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3808
3809         * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs, 
3810         ColumnStyle.cs: 
3811         Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
3812          - One style instance can only participate in a single style collection.
3813          - Styles can request their owner to layout whenever their properties 
3814          change.
3815          [Fixes bugs #412583 and #412582]
3816
3817 2008-07-29  Ivan N. Zlatev  <contact@i-nz.net>
3818
3819         * X11Keyboard.cs: Implement the generation of the LParam for 
3820         all keyboard messages.
3821         [Fixes bug #378728]
3822
3823 2008-07-29  Jonathan Pobst  <monkey@jpobst.com>
3824
3825         * ListBox.cs: Don't let the user set TopIndex so high that it
3826         scrolls up far enough to show empty items.
3827         [Fixes bug #412728]
3828
3829 2008-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3830
3831         * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
3832         (I'm an idiot and forgot to commit the actual changes, as well as
3833         specify the right file, which is this one, not ListView.cs).
3834
3835 2008-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3836
3837         * ListView.cs: Don't draw ListViewSubItem instances from
3838         DrawListViewItem - we need to reuse the main item's drawing for the
3839         first sub item in case owner draw is true, but wants the system to
3840         do the default draw for the first sub item, without incurring in a
3841         recursion problem.
3842         Fixes #410880.
3843
3844 2008-07-28  Jonathan Pobst  <monkey@jpobst.com>
3845
3846         * ToolStripButton.cs: Update Checked for CheckOnClick before
3847         raising the Click event.  [Fixes bug #412505]
3848
3849 2008-07-28  Ivan N. Zlatev  <contact@i-nz.net>
3850
3851         * Form.cs: Remove some seems leftover code for non-TopLevel's 
3852         CreateParams, which is breaking ClientSize sizing, because it 
3853         removes the border window styles.
3854
3855 2008-07-27  Ivan N. Zlatev  <contact@i-nz.net>
3856
3857         * PropertyGrid.cs: Invalidate the View when the PropertyTab 
3858         changes.
3859
3860 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>
3861
3862         * WebBrowser.cs: Removed debug output.
3863
3864 2008-07-25  Jonathan Pobst  <monkey@jpobst.com>
3865
3866         * FileDialog.cs: Apply patch from Ernesto to clean up some
3867         dialog messages.
3868
3869 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3870
3871         * TableLayoutPanel.cs: Perform layout on GrowStyle change, so 
3872         that the change has an immediate effect.
3873
3874 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3875
3876         * ScrollableControl.cs: Update PerformLayout calls to include 
3877         provide the name of the property that changed.
3878
3879 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3880
3881         * TableLayoutPanel.cs: Draw relative to the DisplayRectangle 
3882         location. Fixes drawing of border and cell borders if scrollable.
3883
3884 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3885
3886         * ScrollableControl.cs: Perform layouting after the AutoScroll 
3887         properties have changed, so that the changes have immediate 
3888         effect.
3889         [Fixes bug #409090]
3890
3891 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3892
3893         * XplatUIX11.cs: Non Client area is actually Client such in the 
3894         case of NotifyIcon, so double check WholeWindow == ClientWindow 
3895         when adding an expose.
3896         [Fixes bugs #324237 and #357022]
3897
3898 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3899
3900         * TableLayoutPanel.cs: Invalidate after layouting, so that we 
3901         repaint the cell borders.
3902
3903 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3904
3905         * PropertyGridTextBox.cs: Stop filtering messages prior to our 
3906         disposal to avoid unexpected ObjectDisposedExceptions.
3907
3908 2008-07-24  Ivan N. Zlatev  <contact@i-nz.net>
3909
3910         * TableLayoutPanel.cs: Layout on Row/Column count change.
3911
3912 2008-07-22  Gert Driesen  <drieseng@users.sourceforge.net>
3913
3914         * ListViewItem.cs: Changed binary serialization to match MS. Fixes
3915         bug #409351.
3916         * PictureBox.cs: When ImageLocation is set to null or an empty string,
3917         only set image to null if it was previously initialized from an url
3918         (or using ImageLocation). In ImageLocation, load specified image
3919         asynchronously if WaitOnLoad is false. Added support for local file
3920         paths to LoadAsync, and added missing argument check.
3921
3922 2008-07-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3923
3924         * DateTimePicker.cs: 
3925         * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
3926         order to set the value as required (which means: when selection
3927         changes for a part being edited, and not before that if not needed).
3928         Also use an enum to describe which part are we using, and use the
3929         selection as a property in PartData, in order to notify the
3930         DateTimePicker owner that we need to end the current edit.
3931         Fixes #383462.
3932
3933 2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
3934
3935         * PropertyGridTextBox.cs: Validation should be performed only if we 
3936         are focused. We can lose focus for example if the Return key is used 
3937         to set the entry and there is an error. When the message box is 
3938         displayed we would have validate on click in the message box.
3939
3940 2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
3941
3942         * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content 
3943         in order to determine that we are expandable is wrong. There was a bug, 
3944         now fixed, in TypeDescriptor that was causing the wrong converter to be 
3945         returned which caused GetPropertiesSupported == false in most cases.
3946         [Fixes bug #409027]
3947
3948 2008-07-15  Jonathan Pobst  <monkey@jpobst.com>
3949
3950         * ImageList.cs: Fix ICollection.CopyTo implementation for
3951         ImageListCollection.  [Fixes bug #409169]
3952
3953 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3954
3955         * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
3956         WorkingArea so that menus can appear on the second monitor
3957         when one has dual monitors.
3958
3959 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3960
3961         * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
3962         Fixes build.
3963
3964 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3965
3966         * TextBox.cs: Implement navigation support for auto complete in
3967         TextBox, as well as refactor the code to show the auto complete window
3968         when receiving a WM_CHAR message, instead of TextChanged, since
3969         autocomplete itself should be able to set the Text a lot of times and
3970         finally only typing should show it, not changes from code.
3971
3972 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3973
3974         * TabControl.cs: When expanding the selected tab, don't adjust the
3975         width if alignment is Right, since it has a different offset than 0,
3976         as opposed to the other alignments.
3977         Fixes the selected tab not being painted at all with alignment = Right
3978         and using FillToRight size mode.
3979
3980 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3981
3982         * TreeView.cs: Fix ToString to match MS.  [Fixes bug #409029]
3983
3984 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3985
3986         * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
3987         values from the textbox to the boundary values.  [Fixes bug #409026]
3988
3989 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3990
3991         * TreeNodeCollection.cs: We were copying one too many elements when
3992         doing our array copy.  Fixes a crash when RemoveAt is called.
3993         [Fixes bug #408999]
3994
3995 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3996
3997         * TabControl.cs: When doing the layout and need to call FillRow -using
3998         FillToRight size mode-, use the overload receiving a bool param
3999         indicating whether we need to do a vertical or horizontal calculation.
4000         Fixes part of #399583.
4001
4002 2008-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4003
4004         * TextBox.cs: When painting, use the value returned by
4005         GetLastVisibleItem instead of using the cached last_item field, since
4006         there could be a desynchronization between the layout and the
4007         painting. Fixes a AOOR exception in auto complete mode.
4008
4009 2008-07-12  George Giolfan  <georgegiolfan@yahoo.com>
4010
4011         * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
4012         NonClientAreaEnabled until our VisualStyles is modified to allow it.
4013
4014 2008-07-12  Gert Driesen  <drieseng@users.sourceforge.net>
4015
4016         * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
4017
4018 2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4019
4020         * TextBox.cs: When focus is lost, if the auto complete listbox is
4021         visible, hide it.
4022
4023 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
4024
4025         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
4026         tracking size for tool windows.
4027         * Theme.cs, ThemeWin32Classic.cs : Extracted
4028         ManagedWindowSpacingAfterLastTitleButton.
4029
4030 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
4031
4032         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
4033         They are bit-rotted and have always been listed as "unsupported".
4034
4035 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
4036
4037         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
4038
4039 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
4040
4041         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
4042
4043 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4044
4045         * ListBox.cs: Make sure last_item_visible gets reset before we try
4046         to do a layout due to scrollbars appearing or disappearing.
4047         [Fixes bug #408139]
4048
4049 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4050
4051         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
4052         for different window themes.  [Fixes bug #339140]
4053
4054 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4055
4056         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
4057         in ManagedWindowBorderWidth.
4058
4059 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4060
4061         * InternalWindowManager.cs: Change MouseMove to take a point, so
4062         we can use the same point later on.
4063         * MdiWindowManager.cs: Store point sent to MouseMove so we can
4064         later reset to it.  On Windows, the Cursor.Position had already
4065         changed by the time we were resetting to it.
4066         [Fixes bug #363239]
4067
4068 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4069
4070         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
4071         are inactive.
4072         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
4073         user requested it.
4074         [Fixes bug #398686]
4075
4076 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4077
4078         * MdiWindowManager.cs: Double-clicking on the title bar should not
4079         maximize a MDI form if MaximizeBox = false.
4080
4081 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4082
4083         * ThemeVisualStyles.cs: Fixed a warning.
4084
4085 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4086
4087         * ThemeVisualStyles.cs: Fixed warnings and formatted.
4088
4089 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4090
4091         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
4092         implementation produces a better result.
4093
4094 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4095
4096         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
4097         windows.
4098
4099 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4100
4101         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
4102         cannot be used from the ThemeEngine constructor.
4103         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
4104         Application.VisualStylesEnabled because it does not work on X11.
4105
4106 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
4107
4108         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
4109         that we did not always check for, as well as fixes to the IList
4110         implementations.  [Fixes bug #402703]
4111
4112 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4113
4114         * IDeviceContext.cs: Added Dispose.
4115
4116 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4117
4118         * Control.cs: Added OnSizeInitializedOrChanged.
4119         * Form.cs: OnLoadInternal: Added a call to
4120         Control.OnSizeInitializedOrChanged.
4121         * InternalWindowManager.cs:
4122          * HandleTitleBarMouseMove: No longer invalidates the parent window.
4123          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
4124          * TitleButton: Added Entered.
4125          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
4126         * MdiWindowManager.cs:
4127          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
4128          move over the maximized title buttons causes a change.
4129          * IsActive: Can now be called before the window is added to a MDI parent.
4130         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
4131         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4132         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
4133         * ThemeWin32Classic.cs:
4134          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
4135          * DrawTitleButton takes a new form parameter.
4136          * Added ManagedWindowTitleButtonHasHotElementStyle,
4137          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4138
4139 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4140
4141         * ThemeEngine.cs: ThemeVisualStyles is now selected if
4142         Application.EnableVisualStyles has been called, even if the current system
4143         configuration does not support rendering with Visual Styles.
4144         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
4145         Styles should not be used.
4146
4147 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
4148
4149         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
4150         ComboBox in FormsTest.
4151
4152 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
4153
4154         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
4155         for fixed toolwindows.
4156
4157 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
4158
4159         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
4160
4161 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4162
4163         * Control.cs: CreateControl just returns if the Control is diposed 
4164         and doesn't throw ObjectDisposedException.
4165         [Fixes bug #406566]
4166
4167 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4168
4169         * Control.cs: Do not create the control if the parent isn't created 
4170         yet, e.g in the case of a parented form on which .Show is called.
4171         It will be created when the parent is made visible/created.
4172         Improves #402446.
4173
4174 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4175
4176         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
4177         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
4178         [Fixes bug #406786]
4179
4180 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4181
4182         * Form.cs: When disposed set owner to null. Improves #402446.
4183
4184 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4185
4186         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
4187         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
4188         if not.
4189         * Form.cs: Take the Padding into account for the PreferredSize.
4190         [Fixes bug #402849]
4191
4192 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4193
4194         * TabControl.cs: Since we don't support more than one direction in
4195         TabControl rows alignment (this is, the row becomes the
4196         bottom row when selected), make Direction return always 1. This way
4197         the layout doesn't get confused about a bad calculation.
4198         Fixes #399582.
4199
4200 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4201
4202         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
4203         so that the wparam is properly set.
4204         Fixes form moving in the test case in bug 402446.
4205
4206 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
4207
4208         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
4209         the full tree instead of nothing.  [Improves bug #406584]
4210
4211 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
4212
4213         * ThemeWin32Classic.cs: Adjusted minimized window painting.
4214
4215 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
4216
4217         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
4218         children.
4219
4220 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
4221
4222         * TreeView.cs: Add a null check when using CollapseAll on an
4223         empty tree.  [Fixes bug #406449]
4224
4225 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4226
4227         * Form.cs: Make OnMenuComplete internal so we can call it.
4228         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
4229         [Fixes bug #399321]
4230
4231 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4232
4233         * TabControl.cs: Handle Up and Down keys when TabControl is in
4234         vertical alignment.
4235         [Fixes bug #399585]
4236
4237 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4238
4239         * TabControl.cs: Invalidate when we remove a tab.  Guard against
4240         an AOORE when trying to remove a tabpage that is not owned by the
4241         parent control.
4242         [Fixes bug #399927]
4243
4244 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4245
4246         * ScrollBar.cs: Change the LargeChange calculation to be correct.
4247         Ensure we are using LargeChange instead of large_change so we our
4248         calculations are correct.
4249         [Fixes bug #403122]
4250
4251 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4252
4253         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
4254         we need to ensure the ColumnCount/RowCount gets set.
4255         [Fixes bug #404851]
4256
4257 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4258
4259         * ListBox.cs: When handling item navigation, if selection mode is
4260         None, call EnsureVisible, since scrolling is normally handled by
4261         selection, that we are not calling in this case.
4262         Fixes #398345.
4263
4264 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
4265
4266         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
4267         a null check to our focus walking code.  [Fixes bug #394332]
4268
4269 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
4270
4271         * ComboBox.cs: Case missed in bug 379596 "Support item
4272         navigation by entering text": On _close_ drop-down select
4273         the first item matching the text in the textbox.  [Fixes bug #397265]
4274
4275 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
4276
4277         * DataGridView.cs: Fix a crash when sorting by column headers, 
4278         mentioned in bug #404841.  Remove some dead switch cases.
4279
4280 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4281
4282         * ComboBox.cs:
4283         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
4284         uses the AutoComplete support in the internal TextBox. Also TextBox
4285         can store a reference to ComboBox, in case AutoCompleteSource is set
4286         to ListItems (this is, ComboBox's items, and we don't want to pass an
4287         additional collection).
4288
4289 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4290
4291         * ListViewItem.cs: Restore the initial value of bounds rect to
4292         Rectangle.Empty, and is this value for Layout detection in virtual
4293         mode. Fixes the tests.
4294
4295 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
4296
4297         * XPlatUI.cs: Remove references to "new" X11 backend.
4298
4299 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
4300
4301         * Control.cs: Add an internal virtual OnDragDropEnd method 
4302         to allow controls such as ListBox, which depend on a sequence 
4303         of MouseDown+Move+End events, to handle the lack of a MouseUp 
4304         when a DnD operation is started in MouseDown.
4305         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
4306         get a MouseUp, so reset our state whenever a DnD operation ends.
4307
4308 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
4309
4310         * PropertyGrid.cs: Clear the root griditem first thing when 
4311         new object/s is/are selected. Fixes some rare cases where 
4312         the View will get a paint request and won't know that the 
4313         grid is in the process of repopulating.
4314
4315 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4316
4317         * XplatUIX11.cs, InternalWindowManager.cs: 
4318         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
4319         doesn't automagically update the FormBorderStyle, so we must 
4320         double check the CreateParams explicitly to determine if the 
4321         window is a toolwindow.
4322         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
4323         instead of doing custom checks.
4324
4325         Fixes toolwindows for the test case in bug #402446
4326
4327 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4328
4329         * Control.cs: Visibility of the control should be false 
4330         when the handle is destroyed in WmDestroy and not immediately 
4331         in Dispose(). This is effectively where the disposing process 
4332         ends even though the control is marked as Disposed immediately 
4333         after calling Dispose().
4334         [Fixes bug #402446]
4335
4336 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4337
4338         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
4339         when the textbox gets focus.
4340         [Fixes bug #402704]
4341
4342 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4343
4344         * PropertyGridTextBox.cs, PropertyGridView.cs: 
4345          - Alt + Down should show the drop down editor.
4346          - Focus the editor when showing it
4347         [Fixes bug #402710]
4348
4349 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
4350
4351         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
4352         that are not the first panel.
4353         * StatusBar.cs: Ensure that the X coordinate of panels is always
4354         stored.  Fix IList implementation of StatusBarPanelCollection to
4355         call the regular methods.
4356         [Fixes bug #403599, #402165]
4357
4358 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
4359
4360         * ThemeWin32Classic.cs: Fix position calculation for centered
4361         text on status bar panels.  [Fixes bug #402165]
4362
4363 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
4364
4365         * Splitter.cs: Fix Splitter to:
4366          - Work for arbitrary splitter size
4367          - Handle MinSize and MinExtra properly
4368          - Get rid of absolute positioning during drag and use relative
4369          - Multiple other fixes 
4370          [Fixes bug #338966]
4371
4372 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
4373
4374         * Cursor.cs: Show shouldn't hide the cursor.
4375
4376 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4377
4378         * ListViewItem.cs: When invalidating, add some extra space to bounds,
4379         since focus rectangle and selection can add some space and need to
4380         take into account those small offsets - specially in Details view.
4381         * ListView.cs: Instead of invalidate using item Bounds directly, call
4382         item.Invalidate, to have the code centralized.
4383         Fixes focused/selection garbage when selecting and deselecting items
4384         that are close.
4385
4386 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4387
4388         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
4389         mode we can check whether we have to force a Layout or not, and can
4390         cache based on this, instead of avoiding caching all the the time. Do
4391         this check in GetBounds and TextBounds.
4392         Fixes selection in Details view.
4393
4394 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4395
4396         * ListView.cs: Make HeaderControl internal, thus the theme engine can
4397         get its *real* height instead of trying to infere it.
4398         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
4399         get the position of them, since it's in general a bad idea in general,
4400         and because we can't do that in virtual mode. Instead get the first
4401         visible item as well as item height, and draw them.
4402         Fixes #400390.
4403
4404 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
4405
4406         * ToolStripSplitButton.cs: We can't add in extra width if
4407         the button is not AutoSize.  [Fixes bug #401279]
4408
4409 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
4410
4411         * PaddingConverter.cs: 
4412          - Implement conversion to InstanceDescriptor
4413          - Handle "All" in CreateInstance by using the supplied 
4414          ITypeDescriptorContext.
4415          [Fixes bugs #396076 and #396078]
4416
4417          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
4418          Code contributed under MIT/X11 license.
4419
4420 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
4421
4422         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
4423         ButtonBase.cs:
4424         Add Category attributes.
4425         Code is contributed under the MIT/X11 license.
4426
4427 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
4428
4429         * Form.cs: 
4430          - Fix a NRE when unparenting a form.
4431          - Do not recreate or destroy a parented form when 
4432         unparenting. 
4433
4434 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4435
4436         * TextBox.cs: Implement basic support for AutComplete with custom
4437         sources.
4438
4439 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
4440
4441         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
4442         DropDownButtonBounds should be from the origin of the button, not the
4443         ToolStrip.  [Fixes bug #401279]
4444
4445 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
4446
4447         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
4448           running gtk_init_check.  This prevents GAIL from loading
4449           unnecessarily, which was breaking UIA support.  Initial fix for bug
4450           #375987.
4451         * Application.cs: Add UIA support to Winforms.  New static constructor
4452           uses reflection to initialize UIAutomationWinforms assembly.  Added
4453           PreRun event so UIA can initialize before the mainloop starts, and
4454           FormAdded event so UIA can provide a11y support for new Forms in an
4455           Application.
4456
4457 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
4458
4459         * DataGridView.cs: When binding to a dataset, subscribe to table
4460         and column change events.  Unsubscribe to these when we clear bindings.
4461         [Fixes bug #399601]
4462
4463 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
4464
4465         [DataGrid drawing refactory]
4466
4467         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
4468
4469         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
4470         must be handle by Theme, now it call DataGridPaintColumnHeader.
4471
4472         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
4473         test cases must be also fixed because it checks for wrong size.
4474
4475         * ThemeWin32Classic.cs: 
4476                 - Draw the bottom line of grid caption.
4477                 - Prevent to draw caption text when it is empty.
4478                 - Use CPDrawBorder3D for 3D efects to simplify code.
4479                 - Uses 3D (when not flat) to paint corner shared between row and column
4480                 header.
4481                 - Fix header drawing issues on win32, now borders are drawing.
4482                 - Fix column header paint issues to mimic win32.
4483                 - Adjust header drawing for last column, like first one it must be draw
4484                 different.
4485                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
4486                 not an character.
4487                 - DataGridPaintColumnHeader created to draw column headers, it also
4488                 paint stuff right on Win32.
4489                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
4490                 class.
4491
4492         * Theme.cs: 
4493                 - DataGridPaintRowHeaderStar method added.
4494                 - DataGridPaintColumnHeader method added.
4495
4496 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
4497
4498         * Control.cs: Don't reset to Dock style layout if DockStyle is
4499         set to none.  [Fixes bug #399316]
4500
4501 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
4502
4503         * Win32DnD.cs: Fix the check for control not equal null.
4504         Fixes bug #341420 and #381886. 
4505
4506 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
4507
4508         * DataGridViewRowCollection.cs: Update the indexes of rows after
4509         one has been removed.
4510         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
4511         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
4512         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
4513         rows for the Rows collection, or deleting rows from the bound DataSet.
4514
4515 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
4516
4517         * DataGridView.cs: Listen to a DataSet's changed event even
4518         when autogeneratecolumns is false.  Refactor the changed event's
4519         add row code to use the same as the existing add row code.
4520         [Fixes bug #399601]
4521
4522 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4523
4524         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
4525         much any time the caret moves and there is text, not just when
4526         the selection changes as one would think.
4527         * RichTextBox.cs: Override RaiseSelectionChanged and fire
4528         SelectionChanged.
4529         [Fixes bug #397271]
4530
4531 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4532
4533         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
4534         instead of trying to duplicate the code.
4535         * ListBox.cs: Make method internal so we can send keyboard events.
4536         [Fixes bug #398344]
4537         
4538 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4539
4540         * TextBoxBase.cs: When pasting and checking the max length,
4541         subtract the selected text length (the text we will be replacing) from
4542         the document length.
4543         * TextControl.cs: Ensure every character insertion is reflected in
4544         charcount, so max length will work properly.
4545         [Fixes bug #398605]
4546
4547 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4548
4549         * ListBox.cs: Ensure scrollbars are updated when a single
4550         column listbox with an already set top-index is created.
4551         [Fixes bug #398342]
4552
4553 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4554
4555         * FontDialog.cs: Typing in the font/style textboxes should search
4556         the list boxes case-insensitively.  [Fixes bug #398343]
4557
4558 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
4559
4560         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
4561         widths of icon and buttons instead of hard coded values.
4562
4563 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4564
4565         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
4566         as well as generating a SelectedIndexChanged event, just like .Net does
4567         -surprise-.
4568         Fixes #398345.
4569
4570 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4571
4572         * ListBox.cs: When navigating items visually, use FocusedItem as the
4573         reference point instead of SelectedIndex, since even in
4574         SelectionMode.None we need to support navigation, and in that case we
4575         just can't use SelectedIndex.
4576         Fixes part of #398345.
4577
4578 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
4579
4580         * Control.cs: Make a SetBoundsInternal that avoids the new
4581         SetBounds code.
4582         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
4583         SetBoundsInternal instead of SetBoundsCoreInternal.
4584
4585 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
4586
4587         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
4588         SetBounds for the scrollbars.
4589
4590 2008-06-10  Andreia Gaita <avidigal@novell.com> 
4591
4592         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
4593           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
4594           OnMouseMove, OnMouseOver, OnMouseUp
4595         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
4596           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
4597         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
4598           to the WebControl object to pass to new collection objects
4599         * HtmlHistory.cs: Implement support for individual window histories.
4600         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
4601           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
4602           GotFocus, LostFocus, OnLoad, OnUnload
4603         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
4604           ContextMenu
4605         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
4606           security level changes and context menu event support.
4607
4608 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4609
4610         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
4611         as happens with Esc, patch my Andy Hume.
4612         Fixes #396294.
4613
4614 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4615
4616         * MdiWindowManager.cs: DrawMaximizedButtons now uses
4617         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
4618         * Theme.cs: Made MenuButtonSize platform dependent. Added
4619         ManagedWindowButtonSize.
4620         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
4621         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
4622
4623 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4624
4625         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
4626         Added support for rendering with VisualStyles.
4627
4628 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4629
4630         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4631         support for rendering the border with VisualStyles.
4632
4633 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4634
4635         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
4636         the icon is not shown.
4637         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
4638         its own logic.
4639
4640 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4641
4642         * InternalWindowManager.cs: Draw minimized windows even if they don't have
4643         borders.
4644
4645 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
4646
4647         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
4648
4649 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
4650
4651         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
4652         [Fixes bug #397943]
4653
4654 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4655
4656         * ComboBox.cs: When snaping height -because of IntegralHeight set to
4657         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
4658         if the requested height leaves the listbox area with *less* than the
4659         required are to see one item. We were setting it to PreferredHeight
4660         even for values matching the height for a single item.
4661         Fixes #396297.
4662
4663 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
4664
4665         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
4666
4667 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
4668
4669         * DataGridViewCell.cs: Use property instead of field.
4670
4671 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4672
4673         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
4674         null checks.
4675
4676 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4677
4678         * Theme.cs: Added #region around the managed window code. Made the managed
4679         window methods abstract.
4680         * ThemeWin32Classic.cs: Added #region around the managed window code.
4681
4682 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4683
4684         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
4685         if it has borders.
4686         * ThemeWin32Classic.cs: Removed HasBorders checks in
4687         DrawManagedWindowDecorations.
4688
4689 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4690
4691         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4692         Extracted ManagedWindowGetTitleBarIconArea.
4693
4694 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4695
4696         * DataGridViewCellStyle.cs: Don't clone the font.
4697
4698 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4699
4700         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
4701
4702 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4703
4704         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
4705         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
4706         in 64 bit machines.
4707
4708 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4709
4710         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
4711         Use Format/FormatProvider before trying converters.
4712         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
4713         are 'set'.  Change constructor to not use ApplyStyle since it wants
4714         everything applied.  Clone the Font.
4715         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
4716         ApplyStyle the rest.
4717
4718 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4719
4720         * ListView.cs: We need to calculate the scrollbars even if the handle
4721         hasn't been created - this is needed when methods using scrollbars
4722         info, such EnsureVisible, are called before control has been created.
4723         Fixes #397272.
4724
4725 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
4726
4727         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
4728         only if the elements are defined. 
4729
4730 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4731
4732         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
4733         section. Also, when setting bounds, snap height as well as save the
4734         requested height if Dock has any value affecting the height: Left,
4735         Right and Bottom - important if using IntegralHeight as true.
4736
4737 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4738
4739         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
4740         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
4741         instead of doing that only in our SetBoundsCore override, since the 
4742         bounds cached can be the same as saved one and we could not get the
4743         new height applied.
4744         Fixes #396297.
4745
4746 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4747
4748         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
4749         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
4750         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
4751         ToolWindowCaptionButtonSize.
4752         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
4753
4754 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4755
4756         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
4757         hard coded values.
4758         * Theme.cs: Made DoubleClickTime plaform dependent.
4759
4760 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4761
4762         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
4763         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4764         ToolWindowCaptionHeight.
4765
4766 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4767
4768         * InternalWindowManager.cs: The adjustment to ensure positive client area
4769         sizes is now platform dependent (disabled on Windows).
4770         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4771         RequiresPositiveClientAreaSize.
4772
4773 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4774
4775         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
4776
4777 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4778
4779         * InternalWindowManager.cs: Changed IconicSize to use
4780         SystemInformation.MinimizedWindowSize.
4781         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
4782         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
4783
4784 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4785
4786         * ComboBox.cs: If the combobox is anchored both on top and bottom,
4787         adjust height if IntegralHeight is true when calling SetBoundsCore (as
4788         likely the height was modified even if Height wasn't specified in
4789         BoundsSpecified parameter).
4790         Fixes part of #396297.
4791
4792 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
4793
4794         * InternalWindowsManager.cs: Changed minimum window size while resizing to
4795         SystemInformation.MinWindowTrackSize.
4796         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
4797         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
4798
4799 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
4800
4801         * MenuItem.cs: Fixed Dispose.
4802
4803 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
4804
4805         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
4806         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
4807         EnteredHeaderCell, PressedHeaderCell: Added.
4808         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
4809         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
4810         theme a chance to override default painting.
4811         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
4812         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
4813         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
4814         ListView and DataGridView header rendering.
4815         
4816 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
4817
4818         * RichTextBox.cs: GetPositionFromCharIndex should return the 
4819         visual position of the character relative to the viewport.
4820         [Fixes part of bug #396664]
4821
4822 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
4823
4824         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
4825         and not just for the existance of an UITypeEditor. In some cases 
4826         there is an editor associated just to do PaintValue, but which 
4827         doesn't actually support editing.
4828         [Fixes bug #396632]
4829
4830 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4831
4832         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
4833         if needed, instead of 0 - this should help us in the corner case where
4834         we have more than one item but we are only partially showing 1 item.
4835         Fixes part of #374713.
4836
4837 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4838
4839         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
4840         control, return immediately if the any parent control's handle hasn't
4841         been created or isn't visible, as well as avoiding creating the parent
4842         Form if the handle hasn't been previously created.
4843         Fixes tests.
4844
4845 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
4846
4847         * TableLayoutPanel.cs: Use border sizes when calculating the
4848         panel's preferred size.  [Fixes part of bug #396433]
4849
4850 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
4851
4852         * SplitContainer.cs:
4853          - Fix SplitterDistance to update only if needed. 
4854          - Make it force min and max validation.
4855          - Handle properly mouse moves outside the resizeable area.
4856          [Fixes bug #396232]
4857
4858 2008-06-02  Andreia Gaita <avidigal@novell.com> 
4859
4860         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
4861           (which also suppresses all popup dialogs). Throw NotSupported
4862           exceptions for activex getters/setters.
4863         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
4864           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
4865           StatusText, Version, GoSearch
4866         * HtmlDocument.cs: Add DocType support
4867
4868 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
4869
4870         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
4871         [Fixes bug 396124]
4872
4873 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
4874
4875         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
4876
4877 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
4878
4879         * TableLayoutPanel.cs: When calculating preferred size, use the
4880         actual number of columns and rows, not what the user set them to.
4881         [Fixes bug #396141]
4882
4883 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
4884
4885         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
4886         394311.
4887
4888 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4889
4890         * XplatUIX11.cs: When detecting areas obscured in a control by other
4891         toplevel windows while scrolling, return if the control hasn't a 
4892         container form.
4893         Fixes some tests.
4894
4895 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4896
4897         * XplatUIX11.cs: Properly detect the visible area of a control being
4898         scrolled (obscured by other winforms controls and any X toplevel
4899         windows), to mark as invalid the requested area to be scrolled that
4900         isn't visible and thus can't be copied.
4901         Fixes #324513.
4902
4903 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4904
4905         * ListBox.cs: Compute the precise amount to vertically scroll when
4906         using DrawMode.OwnerDrawVariable.
4907         Patch by jkeymer (j.keymer@gmx.net).
4908
4909 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4910
4911         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
4912         to avoid setting an invalid value for the verticall scrollbar 
4913         when navigating items. And, duh, also remove my silly debug messages
4914         from previous commits.
4915         Fixes #374713.
4916
4917 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
4918
4919         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
4920         make it MS compatible.
4921
4922 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
4923
4924         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
4925          - Allow the editing of entries even if their parent is read-only.
4926          - Do not render expandable properties read-only.
4927          - Refactor expansion checks form PropertyGrid into PropertyGrid.
4928
4929 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
4930
4931         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4932         support for the hover style.
4933
4934 2008-05-29  Andreia Gaita <avidigal@novell.com> 
4935
4936         * ContainerControl.cs: Check for null dead-end when traversing the tree
4937           of parent controls.
4938         
4939           [Fixes #394332, patch by Ernesto Carrea]
4940
4941 2008-05-29  Geoff Norton  <gnorton@novell.com>
4942
4943         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
4944         constant that it is.  Fixes #393981
4945
4946 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
4947
4948         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
4949         that the user probably doesn't want to set this.
4950
4951 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
4952
4953         * ThemeWin32Classic.cs: Don't let the text size be bigger than
4954         the control size for CheckBox/RadioBox.
4955         [Fixes part of bug #394645]
4956
4957 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4958
4959         * PropertyGrid.cs: Update the state of the sorting buttons in 
4960         the toolbar if PropertySort is set programatically.
4961
4962 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4963
4964         * GridItemCollection.cs: Add multiple items with conflicting names 
4965         support and also preserve name ordering.
4966         [Fixes #395345]
4967
4968 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4969
4970         * GridItemCollection.cs: Revert my multiple items with same 
4971         name patch.
4972
4973 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4974
4975         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
4976         or middle ones.
4977         Fixes part of #393908.
4978
4979 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
4980
4981         * ToolStripDrowDown.cs: When using the Show () methods that have a
4982         Control parameter, set the menu owner to that Control.
4983         [Fixes bug #394345]
4984
4985 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
4986
4987         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
4988         [Fixes bug #362756]
4989
4990 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4991
4992         * GridItemCollection.cs: Refactor to support multiple items with the 
4993         same name.
4994         [Fixes bug #394314]
4995
4996 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
4997
4998         * Control.cs: The 2.0 check for illegal cross thread calls in 
4999         Control.Handle were throwing an exception when we were getting
5000         the Handle in order to invoke correctly.  Created a private
5001         version that does not contain this check.
5002         [Fixes bug #394531]
5003
5004 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5005
5006         * PropertyGrid.cs: Respect DefaultTabType.
5007
5008 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5009
5010         * ListView.cs: SPACE selects an item.
5011         [Fixes bug #393023]
5012
5013 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5014
5015         * ListView.cs: Reset the search string whenever the items are 
5016         modified.
5017         [Fixes bug #393020]
5018
5019 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5020
5021         * ListControl.cs: For the first added item PositionChanged is fired
5022         _before_ ItemChanged, which leave us in a temporary invalid state - so
5023         we need to set the selected index from ItemChanged handler *if* we
5024         know that the first item has just been added *and* the items have been
5025         actually added to the ListControl.
5026         Fixes #369048.
5027
5028 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5029
5030         * TabControl.cs: Only clicks with the left button should be
5031         handled.
5032         Fixes #393908.
5033
5034 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5035
5036         * ComboBox.cs: 
5037         * FIleDialog.cs:
5038         * TextBox.cs: Expose an internal method in TextBox to restore the
5039         original context menu, and call it from ComboBox to re-use it in the
5040         combobox containing the file name in FileDialog.cs.
5041         Fixes part of #393775.
5042
5043 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
5044
5045         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
5046         style.
5047
5048 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
5049
5050         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
5051         down button style.
5052
5053 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5054
5055         * ComboBox.cs: Minor correction to previous patch: PageDown should
5056         also *try* to move by one item if the computed offset is negative,
5057         just like the PageUp case.
5058
5059 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5060
5061         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
5062         should be done for at least 1 item, and not stay at the same item.
5063         Fixes part of #374713.
5064
5065 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
5066
5067         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
5068         directories.  [Fixes bug #393931]
5069
5070 2008-05-22  Andreia Gaita <avidigal@novell.com> 
5071
5072         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
5073           Don't fire events until the initial about:blank page has finished
5074           loading. Clean up events.
5075
5076 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
5077
5078         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
5079           FocusIn() too. This should fix the issue on switching
5080           scim keyboards.
5081
5082 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
5083
5084         * X11Keyboard.cs : set XIM font size to somewhat reasonable
5085           number (ideally the input textbox size, but that could be
5086           too messy).
5087
5088 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
5089
5090         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
5091         the ToolStripItem's TextChanged.  [Fixes bug #393597]
5092
5093 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5094
5095         * TabControl.cs: When invalidating in SelectedIndex and we need to
5096         inflate to take into account the border of the tabs, make sure that
5097         the invalidated rect doesn't overflow the control bounds, since that
5098         would avoid updating at all.
5099
5100 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5101
5102         * TabControl.cs: Don't substract scroller width from the row width,
5103         since we need to take into account the total width of the control when
5104         calculating the position of the tabs. This avoids showing scroller
5105         when it is actually not needed.
5106         Fixes part of #322325.
5107
5108 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5109
5110         * ThemeVisualStyles.cs: Added support for TextBoxBase.
5111
5112 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5113
5114         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5115         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
5116
5117 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5118
5119         * DataGridView.cs: Only paint the top left header cell if there
5120         are columns.
5121
5122 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5123
5124         * DataGridView.cs: When binding to a BindingSource, get the underlying
5125         list to bind to.  [Fixes bug #345483]
5126
5127 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5128
5129         * DataGridView.cs: Do not bind to collection properties.
5130         [Fixes bug #337470]
5131
5132 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5133
5134         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
5135
5136 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5137
5138         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
5139         thumb style.
5140
5141 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5142
5143         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
5144
5145 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5146
5147         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
5148         background.
5149
5150 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5151
5152         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
5153
5154 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5155
5156         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
5157         checked styles.
5158
5159 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5160
5161         * TabControl.cs: Extended to handle the hot style.
5162
5163 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5164
5165         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
5166         Extended UpDownBase code to handle hot and disabled styles.
5167
5168 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5169
5170         * DataGridView.cs: Handle databinding to generic list type things.
5171         [Fixes bug #325239]
5172
5173 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5174
5175         * DataGridViewCellCollection.cs: Add a method to find the cell
5176         with the given DataPropertyName.
5177         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
5178         * DataGridViewColumnCollection.cs: Add a method to clear all
5179         autogenerated columns.
5180         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
5181         columns.
5182         [Fixes bug #348082]
5183
5184 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5185
5186         * DataGridView.cs: Don't try to update the RowTemplate with
5187         a null CellTemplate.
5188
5189 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5190
5191         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
5192         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
5193         * DataGridView.cs: Lots of fixes/enhancements to databinding to
5194         a DataSet.
5195
5196 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5197
5198         * Control.cs: Remove invalidating implicit child controls when
5199         control is invalidated.  It was causing too many redraws on
5200         controls with implicit scrollbars.
5201         * ListView.cs: Listen to the Invalidated event and invalidate
5202         child controls.
5203
5204 2008-05-20  Andreia Gaita <avidigal@novell.com> 
5205
5206         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
5207         * HtmlDocument.cs: Check for nulls
5208
5209 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5210
5211         * Control.cs: In ControlCollection.RemoveInternal, remove the
5212         internal control before calling PerformLayout and OnControlRemoved,
5213         which was leaving us in an invalid state and causing a X error (bad
5214         match). Observe that Remove () call has the same order.
5215         Fixes an X error changing ComboBoxStyle.DropDownStyle.
5216
5217 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5218
5219         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
5220         being fired if ControlStyles.UserPaint style is activated.
5221         Fixes #371905.
5222
5223 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5224
5225         * GridEntry.cs: Don't be so strict when setting the value - 
5226         do not check if what we set is what we get.
5227         [Fixes bug #389245]
5228
5229 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5230
5231         * XplatUIX11.cs: If there are no timers timeout should be 0
5232         [Fixes bug #363522]
5233
5234 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
5235
5236         * Control.cs: As a followup to invalidating implicit children when
5237         a control is invalidated, only invalidate them if they are in the
5238         clip rectangle.
5239
5240 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5241
5242         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
5243
5244 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5245
5246         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
5247
5248 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5249
5250         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
5251         * XplatUIWin32.cs: Made Win32DeleteObject public.
5252
5253 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5254
5255         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
5256         PropertyDescriptor.ShouldSerializeValue.
5257         [Fixes bug #391924]
5258
5259 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5260
5261         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
5262         in the classic theme.
5263
5264 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5265
5266         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
5267         ThumbPressed.
5268         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
5269         ScrollBarHasPressedThumbStyle.
5270
5271 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5272
5273         * TextRenderer.cs: Included some methods in the 1.1 profile.
5274
5275 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
5276
5277         * Control.cs: When we make a control visible, it may have been
5278         previously visible and while it wasn't visible, the z-order of
5279         things may have been shuffled, so the control needs to have its
5280         z-order updated just in case.  [Fixes bug #391518]
5281
5282 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5283
5284         * ThemeVisualStyles.cs: Added support for GroupBox.
5285
5286 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5287
5288         * GroupBoxRenderer.cs: Included in the 1.1 profile.
5289
5290 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
5291
5292         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
5293           bug #389996; XSelectInput() behaved as mouse handler robber,
5294           so remove extra call to it.
5295
5296 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5297
5298         * Control.cs: Simplify ControlCollection.Contains method.
5299
5300 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5301
5302         * DataGridViewRow.cs: Implement GetPreferredSize.
5303
5304 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5305
5306         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
5307
5308 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5309
5310         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
5311         painting and edit control fixes.
5312
5313 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5314
5315         * DataGridView.cs, DataGridViewCell.cs: Work around some external
5316         checks to make sure we are in an actual row/col for top left header cell.
5317         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
5318
5319 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5320
5321         * Control.cs: Use long instead of int when handling WParam from
5322         mousewheel scrolling.  Int was overflowing on Win64.
5323
5324 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5325
5326         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
5327         flow panel without scrolling first, and then calculate the 
5328         scrolling based on the new layout.  [Fixes bug #390149]
5329
5330 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5331
5332         * ListBox.cs: Invalidate after scrolling up when selected index
5333         changes.  [Fixes bug #390151]
5334
5335 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5336
5337         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
5338         set, default height to 150. I tried first with DefaultSize, but this
5339         is not generating a SetBoundsCore call before handle creation time, so
5340         we can take it into account. This is just what .net does.
5341
5342 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
5343
5344         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
5345         as it broke some stuff.  Calberto is filing a bug for eno to
5346         work with.
5347
5348 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5349
5350         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
5351         to 0 is the current value is -1, and if style is not Simple, just
5352         return, like .net does.
5353         Fixes part of #374713.
5354
5355 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
5356
5357         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
5358         progress bar stuffs, use doubles instead of ints to prevent
5359         overflow.  [Fixes bug #389798]
5360
5361 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
5362
5363         * XplatUIX11.cs, X11Keyboard.cs :
5364           Significant refactoring on XIM support. Now IM engine UI
5365           should show up, at mostly-correct preedit position.
5366           - Eliminated use of FocusWindow, as it is never mapped
5367             and hence blocks correct preedit position. XIC is now
5368             created per window, and it must be destroyed too when
5369             the window is destroyed.
5370           - WM_QUIT messages should not be filtered even when hwnd
5371             is zombie. Filtering it could cause endless loop.
5372           - Preedit position must move only when the window is alive.
5373           - Make it IDisposable and make sure to release XIM/XICs.
5374
5375 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
5376
5377         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
5378           XplatUIX11.cs, XplatUIWin32.cs :
5379           fix for bug #325033 and #387693;
5380           - WM_QUIT should not be sent when no running application
5381             exists.
5382           - SetTimer/KillTimer (especially on win32) should be
5383             invoked for the window that the timer is/will_be attached.
5384           - There could be unattached timers to a window when it's
5385             started. For those timers, hold pending timers and when
5386             a window is mapped, attach them to it.
5387           - WaitForHwndMessage() could run into loop when
5388             WM_SHOWWINDOW is handled before this method is called.
5389             So, strictly check wm_showwindow state.
5390           - Tick handler should not be invoked while one Tick handler
5391             call is still running (introduced Busy state).
5392
5393 2008-05-13  Andreia Gaita <avidigal@novell.com> 
5394
5395         * WebBrowserBase.cs: Override Internal alternative methods for
5396           SetBoundsCore and OnResize instead of the protected ones.
5397         * Control.cs: Move SetBoundsCore and OnResize implementations to
5398           SetBoundsCoreInternal and OnResizeInternal, so they can be
5399           overriden internally (WebBrowserBase needs to catch them but can't
5400           override the protected methods without api compat problems)
5401
5402 2008-05-13  Andreia Gaita <avidigal@novell.com> 
5403
5404         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
5405
5406 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5407
5408         * Binding.cs:
5409         * ListView.cs: Remove debug messages.
5410
5411 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5412
5413         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
5414         area is empty. Also calculate scrollbars in Simple mode based in area
5415         height and total number of items, not in MaxDropDownItems.
5416         Fixes part of #371991.
5417
5418 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5419
5420         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
5421
5422 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5423
5424         * BindingSource.cs: GetListSortDescription is not public.
5425
5426 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5427
5428         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
5429
5430 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5431
5432         * HtmlElement.cs: Fix parameter names to match MS.
5433         * HtmlWindowCollection.cs: Should not be sealed.
5434
5435 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5436
5437         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
5438         button, because the thumb button will not get drawn if the scrollbar
5439         is disabled.  [Fixes bug #389262]
5440
5441 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5442
5443         * ListBox.cs: Handle End key for multi-column listboxen.
5444         [Fixes bug #389266]
5445
5446 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5447
5448         * ListBox.cs: Fix algorithm to determine which column our item is in.
5449         [Fixes bug #389265]
5450
5451 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5452
5453         * ListBox.cs: Invalidate when the listbox is resized.
5454         [Fixes bug #389256]
5455
5456 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5457
5458         * ListBox.cs: There is always at least one row in the ListBox (if
5459         we are doing these calculations.)  [Fixes bug #389253]
5460
5461 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5462
5463         * ListBox.cs: There is always at least one column in the ListBox.
5464         [Fixes bug #389250]
5465
5466 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5467
5468         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
5469         ensure in Simple mode that the height is exactly the requested one.
5470         Also add the ComboBoxListControl to the controls collection in Simple
5471         mode even if handle hasn't been created.
5472         Fixes part of #371991.
5473
5474 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5475
5476         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
5477         our ComboBox owner instead of giving it back to the previous control (
5478         as done in other controls). Also remove the empty override of Select
5479         method, since we want to be selected *and* give focus to our owner.
5480         This should let the user do keys-navigation in Simple mode. 
5481
5482 2008-05-10  Geoff Norton  <gnorton@novell.com>
5483
5484         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
5485         problems with rapid scrolling of treeviews. Fixes #381084
5486
5487 2008-05-10  Geoff Norton  <gnorton@novell.com>
5488
5489         * XplatUICarbon.cs: Deactivate the active window before
5490         activating the desired window.  Completes fixing #386504
5491
5492 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5493
5494         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
5495         SmallChange to the item size width plus the padding, to match .net.
5496
5497 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5498
5499         * FileDialog.cs: Apply the custom filter typed by the user in the file
5500         name combobox as much as possible while navigating in the file dialog.
5501         Fixes #385261.
5502
5503 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5504
5505         * Binding.cs: Actually use NullValue if the retrieved value of
5506         data source is null or DBNull. Makes a test pass.
5507
5508 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
5509
5510         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
5511         * MimeIcon.cs: Provide a way to get icons from resources.
5512
5513 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5514
5515         * Binding.cs: When the value retrieved from the control to be assigned
5516         to the data source is null, actually use the 2.0 DataSourceNullValue
5517         value. Make pass a data binding test.
5518
5519 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5520
5521         * Control.cs: We need to invalidate implicit children even when
5522         invalidate is called with invalidatechildren = false.  (Implicit
5523         children are really part of the parent.)
5524         * ListView.cs: Double-buffer internal child controls for less
5525         flicker.
5526         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
5527         owner ListView subitems for greatly increased performance.
5528         [Fixes bug #388477]
5529
5530 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
5531
5532         * FileDialog.cs: When the user types a wildcard character in the
5533         filename combobox, update the contents of the folder using the text as
5534         a filter.
5535         Fixes part of #385261.
5536
5537 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5538
5539         * ListBox.cs: Various fixes for MultiColumn listboxen.
5540         [Fixes bug #388114]
5541
5542 2008-05-08  Andreia Gaita <avidigal@novell.com> 
5543
5544         * HtmlElement.cs: Implement Style property
5545
5546 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5547
5548         * ListBox.cs: Respect checkboxes when measuring item size.
5549         * ThemeWin32Classis.cs: When drawing list items, don't draw
5550         text outside of the item's bounds to prevent overlapping.
5551         (.Net actually overlaps, but that's just silly.)
5552         [Fixes bug #388117]
5553
5554 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
5555
5556         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
5557         Gert Driesen. Fixes bug #324830. 
5558
5559 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
5560
5561         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
5562         method implemented.
5563
5564 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5565
5566         * BindingSource.cs: When calling IsSynchronized, return the value of
5567         the related IList list.
5568
5569 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5570
5571         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
5572         make a test pass.
5573
5574 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
5575
5576         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
5577         navigation to scroll the grid if the current cell is not visible.
5578
5579 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5580
5581         * HtmlElement.cs: Implement TabIndex
5582
5583 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
5584
5585         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
5586         properties, even when there are no items.
5587         [Fixes bug #387611]
5588
5589 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
5590
5591         * NativeWindow.cs: Add support for multiple handles per window.
5592         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
5593         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
5594         directly - use FromHandle instead.
5595         [Fixes bug #374660]
5596
5597 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5598
5599         * HtmlElement.cs: Implement InnerHTML setter
5600
5601 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5602
5603         * HtmlDocument.cs: Implement Focused
5604
5605 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5606
5607         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
5608         methods, as well as add messages to the exceptions.
5609
5610 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5611
5612         * BindingSource.cs: Setting DataSource should only reset DataMember if
5613         the previous value was null (make pass a not working test).
5614
5615 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5616
5617         * BindingSource.cs: When EndInit call is postponed and is called until
5618         DataSource.EndInit is called, remove the handler for data source.
5619
5620 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5621
5622         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
5623
5624 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5625
5626         * ToolStripManager.cs: Store references to toolstrips as
5627         weak references so they do not prevent forms from getting collected.
5628         [Fixes bug #386483]
5629
5630 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5631
5632         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
5633         on .Net.  So do the same thing in WndProc.
5634
5635 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5636
5637         * TrackBar.cs: Commit patch from Andy Hume that corrects
5638         the clickable areas to better match .Net.
5639         [Fixes bug #387074]
5640
5641 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5642
5643         * TrackBar.cs: Commit patch from Andy Hume that adds the
5644         ResizeRedraw control flag so the track bar repaints itself
5645         when it is resized.  [Fixes bug #387072]
5646
5647 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5648
5649         * TrackBar.cs: Commit patch from Andy Hume that adds better
5650         support for keyboard navigation when the TrackBar is vertical.
5651         [Fixes bug #387071]
5652
5653 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5654
5655         * BindingSource.cs: Implement ISupportInitializeNotification support.
5656
5657 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
5658
5659         * ThemeVisualStyles.cs: Added support for ToolBar.
5660
5661 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
5662
5663         * ToolBar.cs: Made the Vertical property internal.
5664
5665 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5666
5667         * ThemeVisualStyles.cs: Added support for TrackBar.
5668
5669 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5670
5671         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
5672         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
5673         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
5674         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
5675         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
5676         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
5677
5678 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5679
5680         * ThemeVisualStyles.cs: Added support for UpDownBase.
5681
5682 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5683
5684         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
5685         Extracted Theme.UpDownBaseDrawButton.
5686
5687 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
5688
5689         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
5690         removed from the static toolstrips collection in ToolStripManager
5691         when they are disposed.  Provides a workaround for bug #386483.
5692
5693 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
5694
5695         * GridEntry.cs: Read-only properties with Editor with 
5696         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
5697         [Fixes bug #384184]
5698
5699 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
5700
5701         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
5702         the menu key and there are no items on the menu.
5703         [Fixes bug #386644]
5704
5705 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
5706
5707         * Control.cs: Avoid calling ToString on a string.
5708         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
5709         * GroupBox.cs: In FlatStyle property throw, not just create, the 
5710         exception. Avoid calling ToString on a string.
5711         * ProgressBar.cs: Avoid calling ToString on a string. 
5712         * ScrollBar.cs: Avoid calling ToString on a string. 
5713         [All issues were found using Gendarme]
5714
5715 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
5716
5717         * NotifyIcon.cs: Prevent click events to be trigger after double click 
5718         events. Fixes remaining issues of bug #324832.
5719
5720 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
5721
5722         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
5723         to mimic win32 behavior. Partially fixes bug #324832.
5724
5725 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5726
5727         * BindingSource.cs: Implement Find methods.
5728
5729 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5730
5731         * BindingSource.cs: Implement Sort, ApplySort overloads, and
5732         RemoveSort methods.
5733
5734 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5735
5736         * ListBindingHelper.cs: When calling GetListItemProperties and the
5737         passed object is ITypedList, return the result of
5738         ITypedList.GetItemProperties instead.
5739
5740 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5741
5742         * LinkLabel.cs: Set default value of name on constructor of Link class
5743         only for 2.0 profile.
5744
5745 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5746
5747         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
5748         Fixes remaining issues of bug #346154.
5749
5750 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5751
5752         * LinkLabel.cs: Set a default value for name on internal contructor of
5753         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
5754
5755 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5756
5757         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
5758         and refer all instances to owner.links. Partially fixes #346154.
5759
5760 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5761
5762         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
5763         length equal zero. Also called CreateLinkPieces in constructor. It fixes
5764         the LinkLabel test 'TestLinkArea'.
5765
5766 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5767
5768         * Form.cs: Remove menu before close form to prevent form to be not gaced.
5769         [Fixes #386460]
5770
5771 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5772
5773         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
5774         [Fixes #386463]
5775
5776 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5777
5778         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
5779         [Fixed bug #357004]
5780
5781 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5782
5783         * MenuAPI.cs: Remove unused ProcessCmdKey method.
5784
5785 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5786
5787         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
5788         [Fixes bug #375398]
5789
5790 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5791
5792         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
5793         of bug #367492.
5794
5795 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5796
5797         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
5798         sometimes we open a conext menu on mouse down of some controls and the mouse
5799         up is dispatched to menu and dont need to. It fix remaining issues of 
5800         #363711 and other problems related to menu mouse click events.
5801
5802 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5803
5804         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
5805         some var names to better fit changes, now we have month_menu and today_menu
5806         vars. Fixes bug #363711.
5807
5808 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5809
5810         * MonthCalendar.cs: Handle every right mouse click to open context menu,
5811         right now the default month menu but it will be change to have "Go to today"
5812         menu.
5813
5814 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5815
5816         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
5817
5818 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5819
5820         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
5821
5822 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5823
5824         * ThemeVisualStyles.cs: Added support for TreeView.
5825
5826 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5827
5828         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
5829         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
5830
5831 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5832
5833         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
5834
5835 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5836
5837         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
5838         Implement 2.0 SP1 stuffs.
5839
5840 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5841
5842         * FileDialog.cs: Implement 2.0 SP1 stuffs.
5843
5844 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5845
5846         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
5847         Implement CanEnableIme property. (2.0 SP1)
5848
5849 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5850
5851         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
5852         from the 2.0 API.
5853
5854 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5855
5856         * Control.cs: Provide an internal way for a control to override
5857         the setting of Height.
5858         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
5859         set height using new method.
5860
5861 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5862
5863         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
5864
5865 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5866
5867         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5868         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
5869
5870 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5871
5872         * ThemeVisualStyles.cs: Added support for StatusBar.
5873
5874 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5875
5876         * DataObject.cs: Add the other IDataObject interface.
5877
5878 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5879
5880         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
5881         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
5882
5883 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5884
5885         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
5886         * ListView.cs: Hide non-public API.
5887         * MaskedTextBox.cs: Remove extra attribute.
5888
5889 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5890
5891         * DataGridViewImageCell.cs: Use formatted value instead of value
5892         to calculate preferred size.
5893
5894 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5895
5896         * ListBox.cs: Move some initialization around so that selected_indices
5897         is not accessed before it is created.
5898
5899 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5900
5901         * InputLanguageCollection.cs: Implement the collection better.
5902         [Fixes bug #385506]
5903
5904 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5905
5906         * ToolStripDropDownItem.cs: Get the correct event object for
5907         DropDownItemClicked.
5908         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
5909         [Fixes bug #385475]
5910
5911 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5912
5913         * DataGridViewRowCollection.cs: We don't currently support shared 
5914         rows.  Should fix test failures caused by previous commit.
5915
5916 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5917
5918         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
5919         datagridview gets set.  Only paint cells in visible columns.
5920         * DataGridViewCell.cs: Draw border after cell content.
5921         * DataGridView.cs: Invalidate after setting some properties.  Only
5922         use visible columns.  Fit hit test bug with areas in the col/row header
5923         area but not in a row or col.  Implement UpdateCell/Row methods.
5924
5925 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5926
5927         * DataGridViewElement.cs: Don't throw NIEX.
5928         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
5929         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
5930         * DataGridViewCheckBoxColumn.cs: Implement ToString.
5931         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
5932         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
5933         if the user filled in the formatting Value, use it.
5934
5935 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5936
5937         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
5938         to a string.
5939
5940 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5941
5942         * BindingSource.cs: Some corrections to Filter property, as well as
5943         setting it for our list when resetting it.
5944
5945 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
5946
5947         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
5948         than the maximum.  Fixes reopened bug #384182.
5949
5950 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5951
5952         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
5953         Fixes remaining issues of #367490.
5954
5955 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5956
5957         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
5958         SystemInformation.WorkingArea to get max_screen value.
5959
5960 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5961
5962         * BindingSource.cs: Implement Filter and RemoveFilter.
5963
5964 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5965
5966         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
5967
5968 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5969
5970         * X11Dnd.cs: When trying to convert data and we know we started the
5971         dnd loop, don't try to use the cached data if the loop is not running,
5972         which means that the data has been resetted.
5973         Fixes #378191.
5974
5975 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5976
5977         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
5978         win32 behavior.
5979
5980 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5981
5982         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
5983         it to drawn off screen edge. Fixes bug #367490.
5984
5985 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5986
5987         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
5988         menu position to have only one assignment of Location var.
5989
5990 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5991
5992         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
5993         for this patch. Fixes bug #384115.
5994
5995 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
5996
5997         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
5998         the same.  If LargeChange is zero, set a minimum size for the scroll
5999         thumb grip.  [Fixes bug #384182]
6000
6001 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6002
6003         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
6004         [Fixes bug #384181]
6005
6006 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6007
6008         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
6009
6010 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6011
6012         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
6013         patch from Ernesto).
6014
6015 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6016
6017         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
6018
6019 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6020
6021         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
6022
6023 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6024
6025         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
6026
6027 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6028
6029         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
6030
6031 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
6032
6033         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
6034
6035 2008-04-27  Andreia Gaita <avidigal@novell.com> 
6036
6037         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
6038           supposed to return a reference to an mshtml interface, which we
6039           don't support).
6040         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
6041           reference to an mshtml interface, which we don't support). Code
6042           formatting cleanup.
6043         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
6044           DomDocument getter (it's supposed to return a reference to an
6045           mshtml interface, which we don't support). Code formatting cleanup.
6046
6047 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6048
6049         * ListView.cs: Ouch, forgot to commit.
6050
6051 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6052
6053         * ListView.cs: 
6054         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
6055
6056 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6057
6058         * ListView.cs: When calculating box selection for virtual mode, don't
6059         look for intersection with item's text, but item bounds, since that
6060         would mean read ListViewItem's text for _every_ item, and that's
6061         something we just can't do in virtual mode (items are only requested
6062         when drawn).
6063
6064 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
6065
6066         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
6067         partial support for managed windows (based on the patch from Ernesto).
6068
6069 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6070
6071         * ListView.cs: When doing a key search use FindItemWithText method
6072         instead of doing the search by ourselves, this way we avoid
6073         duplicating the code and also we handle the special case for virtual
6074         mode. To achieve that make our private overload of FindItemWithText
6075         internal and also have a 'roundtrip' parameter.
6076
6077 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6078
6079         * ListView.cs: When doing the layout don't request the
6080         ListViewItem instance if we are in virtual mode (since we can't request it
6081         until the item is actully drawn).
6082
6083 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6084
6085         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
6086         from Ernesto).
6087
6088 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6089
6090         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
6091         the patch from Ernesto).
6092
6093 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6094
6095         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
6096         * ThemeVisualStyles.cs: Added.
6097
6098 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6099
6100         * IDeviceContext.cs: Added a missing using.
6101
6102 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6103
6104         * ButtonBase.cs: Made IsDefault protected internal.
6105         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
6106
6107 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6108
6109         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
6110         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
6111         RadioButtonRenderer.cs: Included in the 1.1 profile.
6112         * IDeviceContext.cs: Added.
6113         * TextRenderer.cs: Included a member in the 1.1 profile.
6114
6115 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6116
6117         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
6118
6119 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6120
6121         * ErrorProvider.cs: Make the error icons come after the control
6122         they refer to.  It isn't the way the MS does it, but its better
6123         than what we were doing.  See bug #368587.
6124
6125 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6126
6127         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
6128         from Eric Albright that lazy loads the input language as ensures
6129         everything gets properly initialized.  Fixes bug #373871.
6130
6131 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6132
6133         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
6134         implicit mnemonics.  [Fixes bug #383000]
6135
6136 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6137
6138         * X11Dnd.cs: When canceling the operation, automatically restore the
6139         default cursor - normally the default cursor is restored when the
6140         mouse buttons are released, but we should be able to restore it even
6141         if the buttons are still pressed (for example, when pressing ESC to
6142         cancel).
6143         Fixes #381894.
6144
6145 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6146
6147         * X11Dnd.cs: When starting a new drad and drop operation, set control
6148         field to null, just as the other fields, to avoid calling any
6149         operation on a previous control. Also, when calling DndLeave on a
6150         control, set it to null, thus we don't fire that event multiple times
6151         for that control.
6152         Fixes #209264.
6153
6154 2008-04-23  Geoff Norton  <gnorton@novell.com>
6155
6156         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
6157         the whole_window object.  Fixes #377084.
6158
6159 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6160
6161         * HtmlElement.cs: Implement RaiseEvent (event injection into the
6162           embedded browser)
6163
6164 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
6165
6166         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
6167
6168 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6169
6170         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
6171           invocation
6172
6173 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6174
6175         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
6176           attaching/detaching
6177
6178 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6179
6180         * X11Dnd.cs: When the drop was cancelled, or could just not be
6181         performed, return DragDropEffect.None always (match .net).
6182
6183 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6184
6185         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
6186
6187 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6188
6189         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
6190
6191 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6192
6193         * DataGridView.cs: Add support for error icon tool tips.
6194         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
6195         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
6196
6197 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
6198
6199         * X11Structs.cs: Add mouse button masks enum.
6200         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
6201         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
6202         form resize/move operation instead of for each step of it.
6203         [Fixes bug #346529 for the x11 backend]
6204
6205 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6206
6207         * DataGridView*: Implement support for drawing error icons.
6208
6209 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6210
6211         * TreeView.cs: Make vbar and hbar internal.
6212         * TreeNode.cs: If collapsing the node removes one of the TreeView's
6213         scrollbars, invalidate the whole thing.
6214         [Fixes bug #382001]
6215
6216 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6217
6218         * TreeView.cs: Calling Sort() sets Sorted = true.
6219         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
6220         if the nodes need to be sorted.
6221         [Fixes bug #382028]
6222
6223 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
6224
6225         * Form.cs: Fire SizeChanged for both when the form is minimized and 
6226         restored.
6227         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
6228         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
6229
6230 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6231
6232         * ComboBox.cs: If the combobox is disabled, draw a disabled
6233         background before painting anything else.
6234         [Fixes bug #381729]
6235
6236 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6237
6238         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
6239         forget to send a Leave event to the target window - just as .net does
6240         when cancelling dnd operations.
6241
6242 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6243
6244         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
6245         soon as possible - this happens when we send the drop message to the
6246         target window. This way we avoid firing any DragOver _after_ drop finished.
6247         Fixes #378179.
6248
6249 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6250
6251         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
6252         * Form.cs: Handle form minimization as a special state, where size doesn't 
6253         change, but we have to fire SizeChanged.
6254         [Fixes bug #325122 for the win32 and x11 backends]
6255
6256 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6257
6258         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
6259         if the handle is disabled.
6260         [Fixes bug #371751]
6261
6262 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6263
6264         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
6265         for forms with FormBorderStyle.None.
6266         [Fixes bug #349571]
6267
6268 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6269
6270         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
6271         WM_EXITSIZEMOVE.
6272         [Fixes bug #346529 for the X11 backend]
6273
6274 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6275
6276         * XplatUIX11.cs: 
6277           - Send a mouse Enter message after say dragging the mouse with a 
6278           button down and then release it in another client.
6279           - Reset the cursor to prevent X11 from remembering it and setting it 
6280           before the control gets WM_SETCURSOR.
6281           - Qeueue a mouse move after a mouse enter like win32.
6282           [Fixes bug #323234]
6283
6284 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6285
6286         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
6287         It's sent when the form gets moved, resized, closed.
6288         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
6289         [Fixes bug #359193 for X11]
6290
6291 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6292
6293         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
6294         the build.
6295
6296 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6297
6298         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
6299         group. Fixes the 1.1 build.
6300
6301 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6302
6303         * ListView.cs: Use display indexes for selection in Details view, as
6304         well as do the proper layout based on display indexes for that view
6305         too.
6306
6307 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6308
6309         * ListView.cs: Focused item information is now stored as a display
6310         index, and display indexes are used all over the place for selection,
6311         instead of ListViewItem.Index values, which doesn't give us enough
6312         information to modify the selection in groups mode, and was broken.
6313
6314 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
6315
6316         * Control.cs: Do not fire MouseDown if validation of the control has 
6317         failed.
6318         * Form.cs: Validate the form before closing.
6319         [Fixes bugs #330501 and #353310]
6320
6321 2008-04-18  Andreia Gaita <avidigal@novell.com> 
6322
6323         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
6324           CreateWebBrowserSiteBase implementations
6325         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
6326           Style and TabIndex setters
6327
6328 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6329
6330         * ListViewGroup.cs: When returning the actual item count, return the
6331         proper count for default group.
6332         Fix the tests.
6333
6334 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6335
6336         * ListView.cs:
6337         * ListViewGroup.cs: When calculating groups layout, get the actual
6338         number of items per group, since groups added to the group BUT not
6339         added to the ListView are just ignored, and can cause some nasty
6340         exceptions because of the lack of synchronization. Also for
6341         ListViewGroup don't use lazy initialization for items, since we 
6342         the common scenario is to use it always - and it helps us to  refactor
6343         and clean the .ctor overloads.
6344
6345 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6346
6347         * ListView.cs: When adding an item to a ListViewItemCollection
6348         belonging to a group (ListViewGroup.Items), don't generate a redraw if
6349         the added item hasn't beeen previously added to the ListView instance
6350         refered by the group, since it will be ignored. This should avoid some 
6351         really nasty flickering.
6352
6353 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6354
6355         * ListView.cs: When accessing an item in a specific display
6356         position, use the helper method GetItemAtDisplayIndex, instead of
6357         direct access to the reordered_items_indices array. When doing layout
6358         for groups set the correct Items index for the display position (since
6359         in groups mode items don't have the same position as in Items
6360         collection).
6361         * ListViewGroup.cs: Add a field to store the starting item number,
6362         which is later used when calculating the layout.
6363
6364         Fixes #360805.
6365
6366 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
6367
6368         * Application.cs: Fixed ProductVersion to fallback to the assembly
6369         version. Fixes regression for bug #325413.
6370
6371 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6372
6373         * ListView.cs: New helper method to retrieve an item in a _specific
6374         display_ position (the items can be displayed in a different order
6375         than one of Items collection).
6376         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
6377         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
6378         specific display position (again remember that items can be sorted
6379         different than Items).
6380
6381 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6382
6383         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
6384         list and update it when the collection changes.  We were recreating
6385         this several times per row paint and for every pixel the mouse moved
6386         across the grid.
6387         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
6388         changes.
6389
6390 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6391
6392         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
6393         list to use generics.
6394         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
6395         and remove unneccessay casts.
6396
6397 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6398
6399         * DataGridViewBand.cs: Add internal way to set displayed variable.
6400         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
6401         * DataGridView.cs: Make sure we always keep track of Displayed
6402         rows and columns, and only draw things that are displayed.
6403
6404 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
6405
6406         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
6407           whether the key events are filtered or not. Introduced
6408           PreFilter() process for this purpose. This fixes atokx3/iiimx
6409           shift state issue.
6410
6411 2008-04-16  Andreia Gaita <avidigal@novell.com> 
6412
6413         * HtmlHistory.cs: Implement Length property
6414
6415 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
6416
6417         * DataGridView.cs: Call EndEdit when a sort is performed so we take
6418         away the edit textbox.  Refactor to reuse column sort code.
6419
6420 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
6421
6422         * MenuAPI.cs: Remove the code that save and restore capture status of 
6423         grab_control, this fixes some Menu and Context menu bugs but maybe it can
6424         cause some others, I cant figure the possible problems of this patch but
6425         right now remove the code looks to be better than keep it. This patch fixes
6426         bugs #357638, #378721 and #379570.
6427
6428 2008-04-12  Andreia Gaita <avidigal@novell.com> 
6429
6430         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
6431         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
6432         add missing properties and event handlers.
6433         
6434 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
6435
6436         * ListBox.cs: Make sure the LargeChange we are setting is at least
6437         zero, to prevent an IOORE.  [Fixes bug #379531]
6438
6439 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
6440
6441         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
6442         in DropDownList mode, for each key-press select the next item 
6443         starting with that letter.
6444         For other modes, when no item selected, on arrow-up/-down and open 
6445         drop-down select the first item matching the text in the textbox.
6446
6447 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
6448
6449         * X11Keyboard.cs : Control.FromHandle() could return null
6450           in MoveCurrentCaretPos().
6451
6452 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6453
6454         * ListView.cs: When changing the size in VirtualMode, also Reset the
6455         selection.
6456         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
6457         changing selection info for VirtualMode.
6458         Fixes #372618.
6459
6460 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6461
6462         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
6463         view, don't use LineLimit for the first item - use NoWrap *always*
6464         instead, since ListView.LabelWrap is not used for this view.
6465         Fixes #378054.
6466
6467 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6468
6469         * Binding.cs: Call UpdateIsBinding when setting control - probably
6470         Binding is already usable and we don't need to wait to check the
6471         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
6472         Created, just like 2.0 does.
6473         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
6474
6475 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6476
6477         * Binding.cs: Just realized we don't need to have a handler for
6478         BindingContextChanged, since this info should be now consumed directly
6479         in the BindingManagerBase. And also, the manager.IsBindingSuspended
6480         state info is checked directly, instead of caching it.
6481
6482         * CurrencyManager.cs: IsSuspended should return always false if Count
6483         == 0.
6484
6485 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6486
6487         * Binding.cs: When calling PushData, return if manager.Count == 0,
6488         since we just don't have data to be read. Also, when setting the
6489         Control for binding, hook up some events to refresh the IsBinding
6490         state when BindingContext change or control gets created; use
6491         Control.IsHandleCreated instead of Control.Created check to set
6492         IsBinding state - we *actually* need to modify IsBinding when control
6493         is created, but we don't have any Created event, only HandleCreated.
6494         Fixes part of #349364.
6495
6496 2008-04-11  Geoff Norton  <gnorton@novell.com>
6497
6498         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
6499         warping a null Caret.
6500
6501 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6502
6503         * DataGridView.cs: Implement row/column autosizing methods. Implement
6504         autosorting.
6505         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
6506         * DataGridViewRowCollection.cs: Add an internal sorting method.
6507
6508 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6509
6510         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
6511         value in ListView drawing code.
6512
6513 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6514
6515         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
6516         is clicked.  Respect the user setting Cancel in FileOk.
6517
6518 2008-04-11  Geoff Norton  <gnorton@novell.com>
6519
6520         * ListView.cs: Avoid setting and resetting control Width/Heights and
6521         calculate the final value and set it once.  Prevents a feedback loop
6522         on the mac.
6523
6524 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6525
6526         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
6527         [Fixes bug #378869]
6528
6529 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
6530
6531         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
6532           Add some on-the-spot code, but it seems we don't need it.
6533
6534 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6535
6536         * Form.cs: Add method for DataGridView to trigger focus cues
6537         even when it handles the tab keypress.
6538
6539 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6540
6541         * DataGridView.cs: More keyboard handling, tab, esc.
6542         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
6543         when at the beginning or end of the text in the text box.
6544
6545 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6546
6547         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
6548
6549 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6550
6551         * DataGridView.cs: Some fixups for showing and adding the edit control.
6552         * DataGridViewButtonColumn.cs: Implement ToString.
6553         * DataGridViewCell.cs: Size and position the control simultaneously.
6554         * DataGridViewTextBoxCell.cs: Use base to position control.
6555
6556 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6557
6558         * DataGridViewCell.cs: Fix up some formatting and painting code.
6559         * DataGridViewImageCell.cs: Implement some NIEX methods.
6560
6561 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6562
6563         * ToolStripItemCollection.cs: What moving an item from one owner
6564         to another, remove from source owner before adding to destination.
6565         [Fixes bug #378109]
6566
6567 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6568
6569         * PictureBox.cs: Call Load when ImageLocation is set.
6570         [Fixes bug #378308]
6571
6572 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
6573
6574         * X11Keyboard.cs, XplatUIX11.cs :
6575           Implement over-the-spot mode (with some odd offsets).
6576           - set preedit position when caret is set.
6577           - Wrap XMoveResizeWindow() to move preedit position.
6578
6579 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6580
6581         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
6582         array lenght.
6583
6584 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6585
6586         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
6587         and ScanTableIndex public, it fix compilations errors when compiling
6588         WinForms to generate keyboard layout resources.
6589
6590 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6591
6592         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
6593         different element count than scan table. It prevents some errors in non
6594         standard keyboards.
6595
6596 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
6597
6598         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
6599
6600 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
6601
6602         * DataGridView.cs: Call OnContentClick.
6603         * DataGridViewCell.cs: Do a null check on ValueType instead
6604         of valueType.
6605         * DataGridViewCheckBoxCell.cs: Implement.
6606
6607 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6608
6609         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
6610
6611 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6612
6613         * X11Keyboard.cs : Check XGetIMValues() return value in
6614           case it does not return input styles in some environment.
6615
6616 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6617
6618         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
6619
6620 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6621
6622         * BindingContext.cs: Stub UpdateBinding method.
6623
6624 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
6625
6626         * X11Structs.cs : added couple of structs for XIM support.
6627         * X11Keyboard.cs :
6628           Release XIM in case it failed to create XIC. 
6629           Use consts for XNblah string.
6630           Add support for IM style customization and XIC creation
6631           for preedit-position and preedit-callback.
6632           Right now use MONO_WINFORMS_XIM_STYLE environment variable
6633           (list of: over-the-spot | on-the-spot | root). Only root
6634           mode works so far.
6635
6636           (redoing r99172 with fix.)
6637
6638 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6639
6640         * TreeView.cs: Center the checkbox a little better.
6641
6642 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6643
6644         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
6645         Apply very nice patch from Ernesto Carrea that simplifies our
6646         scrollbar drawing.  [From bug #376146]
6647
6648 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6649
6650         * TreeView.cs: Correct the location of the root node checkbox when
6651         ShowRootLines = false.  Don't draw the root lines for the root node
6652         when ShowRootLines = false.  [Fixes bug #377535]
6653
6654 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
6655
6656         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
6657         Fixed line endings.
6658         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
6659         line endings.
6660         * MaskedTextBox.cs: Added missing attribute. Code formatting.
6661         * PageSetupDialog.cs: Added missing attribute. Code formatting.
6662         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
6663         * ImeMode.cs: Added missing field.
6664         * HtmlWindow.cs: Code formatting. Fixed line endings.
6665         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
6666         warnings.
6667         * HtmlHistory.cs: Code formatting. Fixed line endings.
6668         * HtmlDocument.cs: Code formatting. Fixed line endings.
6669         * ToolStripPanel.cs: Added missing IList implementation.
6670         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
6671
6672 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
6673
6674         * BindingContext.cs: Changed argument names to fix corcompare errors.
6675         * DataGridView.cs: Removed extra explicit interface implementation
6676         of IDropTarget. Code formatting.
6677         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
6678         * ComboBox.cs: Changed argument names to fix corcompare errors.
6679         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
6680         errors.
6681         * GridColumnStylesCollection.cs: Changed argument names to fix
6682         corcompare errors. Removed extra tabs.
6683         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
6684         errors.
6685         * Control.cs: Changed argument names to fix corcompare errors. Code
6686         formatting. Removed extra explicit IList implementation.
6687         * TextBox.cs: Changed argument names to fix corcompare errors. Code
6688         formatting. Use string.Empty instead of "".
6689         * GridItemCollection.cs: Changed argument names to fix corcompare
6690         errors. Code formatting.
6691         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
6692         corcompare errors. Code formatting.
6693         * ImageList.cs: Changed argument names to fix corcompare errors.
6694         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
6695         * DataGridViewRowCollection.cs: Changed argument names to fix
6696         corcompare errors. Code formatting.
6697         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
6698         * DataGridViewSelectedCellCollection.cs: Changed argument names to
6699         fix corcompare errors. Code formatting.
6700         * DataGridViewComboBoxCell.cs: Changed argument names to fix
6701         corcompare errors. Code formatting.
6702         * LinkLabel.cs: Changed argument names to fix corcompare errors.
6703         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
6704         formatting.
6705         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
6706         Code formatting.
6707         * BindingSource.cs: Changed argument names to fix corcompare errors.
6708         Removed extra explicit interface implementations.
6709         * DataGridViewSelectedRowCollection.cs: Changed argument names to
6710         fix corcompare errors. Code formatting.
6711         * ToolStripItemCollection.cs: Removed extra explicit interface
6712         implementation of IList.ReadOnly.
6713         * DataGridViewColumnCollection.cs: Changed argument names to fix
6714         corcompare errors. Code formatting.
6715         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
6716         * ListView.cs:  Changed argument names to fix corcompare errors.
6717         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
6718         errors.
6719         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
6720         errors.
6721         * ListBindingHelper.cs: Changed argument names to fix corcompare
6722         errors.
6723         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
6724         fix corcompare errors. Code formatting.
6725         * ToolStripPanel.cs: Removed extra explicit implementation of
6726         IDropTarget interface.
6727         * ListBox.cs: Changed argument names to fix corcompare errors. Code
6728         formatting. Removed extra tabs and spaces.
6729         * DataGridViewCellCollection.cs: Changed argument names to fix
6730         corcompare errors.
6731         * Help.cs: Changed argument names to fix corcompare errors. Code
6732         formatting.
6733         * TabControl.cs: Changed argument names to fix corcompare errors.
6734         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
6735         errors.
6736         * TableLayoutSettings.cs: Changed argument names to fix corcompare
6737         errors.
6738
6739 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6740
6741         * ListBindingHelper.cs: When returning properties, only return those
6742         that are browsable. Also, don't do a linear search of the properties,
6743         but use the indexer of the PropertyDescriptorCollection class.
6744
6745 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6746
6747         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
6748         Dictionary containing the related (child) currency managers. Also,
6749         when setting DataSource, add datasource to our List if it is not a list.
6750
6751 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6752
6753         * PropertyGridTextBox.cs: Fix background color of the buttons.
6754         * PropertyGridView.cs: Make the entry less jumpy.
6755
6756 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6757
6758         * PropertyGrid.cs: Fix unused variable warnings.
6759
6760 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6761
6762         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
6763         double-click. It expanded it once in the mouse down and then 
6764         again in the double-click handler.
6765
6766 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6767         
6768         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
6769         TypeConverter and UITypeEditors.
6770
6771 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6772
6773         * Control.cs: Visibility should be set synchronously, 
6774         so we must also redraw once it is and not rely on layouting or 
6775         other code to repaint.
6776         [Fixes bug #339898]
6777
6778 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
6779
6780         * DataGridViewCell.cs: Respect DataGridView.GridColor.
6781
6782 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6783
6784         * Control.cs: Invalidate when the alpha channel is less than 255,
6785         not only when control is transparent.
6786
6787 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6788
6789         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
6790         Implement some painting convenience methods that threw NIEX.
6791
6792 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6793
6794         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
6795         * DataGridViewLinkCell.cs: Implement.
6796
6797 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
6798
6799         * GridEntry.cs: Report the conversion exception error description.
6800         [Fixes bug #375792]
6801
6802 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
6803
6804         * PropertyGridView.cs: Do not scroll to item on resize.
6805         [Fixes bug #375789]
6806
6807 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6808
6809         * BindingContext.cs: When retrieving a BindingManagerBase, if the
6810         dataSource parameter is ICurrencyManagerProvider, then return
6811         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
6812         instead of creating a new one.
6813
6814 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6815
6816         * BindingSource.cs: Implement support for Type instances as
6817         DataSource.
6818
6819 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
6820
6821         * DataGridView.cs: Minor cleanups and call CellMouseUp.
6822         * DataGridViewCell.cs: Make some painting routines internally virtual.
6823         * DataGridViewButtonCell.cs: Implement.
6824
6825 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
6826
6827         * Control.cs: We always need to invalidate our children with
6828         transparent backgrounds when we are invalidated.
6829         [Fixes bug #376081]
6830
6831 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6832
6833         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
6834         and CancelCurrentEdit on CurrencyManager respectively. Implement
6835         support for ICancelAddNew too.
6836
6837 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6838
6839         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
6840         call EndNew/CancelNew if list is ICancelAddNew.
6841
6842 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
6843
6844         * DataGridView.cs: Guard against an exception while painting
6845         if there are no rows.
6846
6847 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
6848
6849         * DataGridView.cs: Implement a bunch of keyboard commands.
6850
6851 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
6852
6853         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
6854         isn't set, don't call OnPaint.  [Fixes bug #375300]
6855
6856 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6857
6858         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
6859         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
6860         hookup the remaining events related to CurrencyManager, and fire
6861         OnListChanged also for the Clear () method.
6862
6863 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6864
6865         * BindingSource.cs: Use Current and Position implementations in
6866         CurrencyManager instead of using our own routines, since we need 
6867         to be in synch with it. Count should NEVER return a -1 value, and 
6868         also report ListChanged events for both simple IList data 
6869         sources (manually) as well for IBindingList ones (by hooking up an
6870         event handler for it).
6871
6872 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6873
6874         * BindingSource.cs: Make one .ctor call the another, to avoid
6875         duplicate code. Add the CurrencyManager property, and also for AddNew
6876         throw the proper exceptions and show better error messages.
6877
6878 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6879
6880         * ComboBox.cs: Only adjust selectedindex if Handle has been
6881         created.  Fixes failing test.
6882
6883 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6884
6885         * ComboBox.cs: Adjust selectedindex if we insert a new item
6886         above the current selectedindex in a sorted ComboBox.
6887         [Fixes bug #374654]
6888
6889 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6890
6891         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
6892         [Fixes bug #374712]
6893
6894 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6895
6896         * DataGridViewTextBoxCell.cs: Implement stuffs.
6897
6898 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6899
6900         * TreeView.cs: Create the scrollbars even earlier to be
6901         double dog certain they are created before they are accessed.
6902
6903 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6904
6905         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
6906
6907 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6908
6909         * ScrollBar.cs: Create an internal safe Value setter so we
6910         won't crash if we try to set a value outside the min and max.
6911         * TextBoxBase.cs: Use safe value setter to guard against a
6912         potential NRE that is being reported by Reflector.
6913
6914 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6915
6916         * TreeView.cs: Create the scrollbars earlier in the constructor
6917         to attempt to guard against an NRE in SetTop in Reflector.
6918
6919 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6920
6921         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
6922         DataGridViewRowCollection.cs: Do not scroll column and row headers,
6923         show messagebox on data format error, use column display index
6924         correctly, make sure HitTest supports new layout stuff,
6925         make sure scrollbars support new layout stuff.
6926
6927 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
6928
6929         * XplatUIX11.cs : Patch by Doug Rintoul.
6930           For some IM engines, keypress events need to delay call
6931           to XPending() and XNextEvent() in the loop so that it
6932           does not mess the orders in XIM commit callback.
6933           Some KeyRelease events such as shift keys need to be
6934           processed both in the IM engine and winforms driver
6935           itself since winforms holds its own state check.
6936
6937           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
6938
6939 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
6940
6941         * X11Keyboard.cs, XplatUIX11.cs :
6942           add primitive support for XIM input support (preedit-
6943           nothing and status-nothing). It requires precise event
6944           capturing (XSelectInput/"filterEvents") and different
6945           call to XFilterEvent against root window.
6946           Get composed string and send dummy WM_IME_COMPOSITION.
6947           Free XIM and XIC instances in finalizer.
6948
6949           (This first patch does not include suggested changes
6950            by Doug Rintoul. It will follow.)
6951
6952 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6953
6954         * DataGridView.cs: When binding to a property, if the property
6955         doesn't have a setter, set the column to readonly.
6956         [Fixes bug #343965]
6957
6958 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6959
6960         * ComboBox.cs: Guard against NRE if an arrow key is hit while
6961         we aren't dropped down.  Support Home/End in DropDownList mode.
6962         [Fixes bug #371990]
6963
6964 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6965
6966         * TreeNodeCollection.cs: Don't increment count until we've
6967         saved our index to return.
6968         [Fixes bug #373603]
6969
6970 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6971
6972         * Label.cs: Add padding to the label's AutoSize calculation.
6973         [Fixes bug #373792]
6974
6975 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6976
6977         * ListBindingHelper.cs: Actually implement GetListName method.
6978
6979 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6980
6981         * BindingSource.cs: Throw the propert expceptions for some methods, as
6982         well as detect the list item type for Add method if DataSource is null.
6983
6984 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6985
6986         * DataGridViewCell.cs: I don't know why I commented this out,
6987         putting it back for now.
6988
6989 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6990
6991         * DataGridViewCell.cs: Remove storage for owning column, just
6992         use column index.
6993         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
6994         * DataGridViewColumnHeaderCell.cs: If the header text has been
6995         explicitly set, return it.
6996         [Fixes bug #325979]
6997
6998 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6999
7000         * DataGridViewRowCollection.cs: Disable row sharing when
7001         using data binding.  Its a great feature, but lets work on
7002         getting DGV usable first before we worry about optimizations.
7003
7004 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7005
7006         * BindingSource.cs: When resetting our internal list, compute list
7007         item type information to be used for indirect list access. Also
7008         implement/tune some properties and methods related to the list access
7009         too.
7010         * ListBindingHelper.cs: Add a stub for GetListName method, used from
7011         BindingSource.
7012
7013 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7014
7015         * DataGridView.cs: If RowCount is increased while ColumnCount
7016         is zero, add a column.  [Fixes bug #331649]
7017
7018 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7019
7020         * DataGridViewRowCollection.cs: When adding new rows for
7021         databinding, make sure they are place before the add row.
7022         [Fixes bug #343961]
7023
7024 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7025
7026         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
7027         instead of Index order.
7028
7029 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7030
7031         * DataGridView.cs: If columns are added by increasing ColumnCount,
7032         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
7033         [Fixes bug #325588]
7034
7035 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7036
7037         * DataGridView.cs: Turn off and on the "new row" when 
7038         AllowUserToAddRows is toggled.  When the handle is created,
7039         set current cell and selected cell/row/col.
7040
7041 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7042
7043         * ComboBox.cs: When navigating the drop down by keyboard, we
7044         need to scroll the list box if our selection moves out of the
7045         currently shown items.  [Fixes bug #371990]
7046
7047 2008-03-24  Luke Page <luke.a.page@gmail.com>
7048
7049         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
7050         on the control. Also now handles unicode compatibility characters and
7051         stores the unicode compatibility length on the stack. Fixes Bugs
7052         #355198 and #366436.
7053
7054 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7055
7056         * BindingSource..cs: Take into account DataMember when re-creating the
7057         List property, and also create a specific kind of list as needed.
7058
7059 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7060
7061         * ListBindingHelper.cs: Add a new case for GetList () method - when we
7062         get an empty IEnumerable, try to detect whether the datamember is
7063         valid or not for that type, if true, return null, and throw exception
7064         otherwise.
7065
7066 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
7067
7068         * ComboBox.cs: Alt-Down should drop down the list, Esc should
7069         retract it.  [Fixes bug #371989]
7070
7071 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
7072
7073         * PropertyGrid.cs: Initialize the sorting button as pushed.
7074
7075 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
7076
7077         * PropertyGrid.cs: 
7078          - Visually select the PropertyTab.
7079          - Filter Properties by Attributes properly.
7080
7081 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7082
7083         * MenuItem.cs: Remove menu item from parent when disposed.
7084         [Fixes bug #372845]
7085
7086 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7087
7088         * ToolBar.cs: Don't reset layout_type if Dock = None.
7089
7090 2008-03-21  Andreia Gaita <avidigal@novell.com> 
7091
7092         * UserControl.cs: Select the first available control when we get focus.
7093           Fixes #372616
7094
7095 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7096
7097         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
7098         the content if we are in edit mode.  [Fixes bug #343964]
7099
7100 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7101
7102         * DataGridViewCell.cs: Fix border painting for column headers.
7103
7104 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7105
7106         * BindingSource.cs: When setting or resetting data source,
7107         use ListBindingHelper.GetList () method, since it will get the list in
7108         case datasource is IListSource.
7109
7110 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
7111
7112         * DataGridViewCell.cs: Implement lots more stuffs.
7113
7114 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7115
7116         * PropertyGridView.cs, GridEntry.cs: Implement support for 
7117         UITypeEditor.IsDropDownResizable.
7118
7119 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
7120
7121         * DataGridViewCell.cs: Remove unused variables, improve how
7122         several of the property getters work.
7123         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
7124         get its size from the parent row/col.
7125
7126 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7127
7128         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
7129         user alters manually the PropertyTabs collection via the 
7130         PropertyTabs property.
7131
7132 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7133
7134         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
7135         new tests for them to be sure to be compatible with .net.
7136
7137 2008-03-20  Andreia Gaita <avidigal@novell.com> 
7138
7139         * WebBrowserBase.cs: Fix attributes, add events
7140         * WebBrowser.cs: Fix Padding signature
7141
7142 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7143
7144         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
7145
7146 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
7147
7148         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
7149         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
7150         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
7151         passes the new suite of tests for it.
7152
7153 2008-03-18  Andreia Gaita <avidigal@novell.com> 
7154
7155         * WebBrowser.cs: Add missing attributes, missing Padding and
7156           DefaultSize properties, remove extraneous getters
7157
7158 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7159
7160         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
7161         method overloads.
7162
7163 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7164
7165         * ComboBox.cs: Move resetting the selected index to keypress
7166         instead of textchanged.  Changing the text programmatically
7167         should not trigger resetting the selected index.  Fixes test.
7168
7169 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7170
7171         * ComboBox.cs: When the user types into the textbox, reset
7172         the selected index to -1.  [Fixes bug #371672]
7173
7174 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7175
7176         * FileDialog.cs: Support Control-A for selecting everything
7177         in an OpenFileDialog.  [Fixes bug #371564]
7178
7179 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
7180
7181         * DataGridView.cs: When row/column visible/height properties
7182         change, invalidate.  Take the NIEX out of InvalidateRow/Column
7183         etc.  We don't support them yet, but we can just invalidate
7184         everything until we do support them.  (Added MonoTODO).  Set
7185         proper control styles.
7186         * DataGridViewRow.cs: Don't call PaintHeader if row headers
7187         are turned off. 
7188
7189 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7190
7191         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
7192
7193 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
7194
7195         * DataGridViewRow.cs: Only paint the white background in
7196         cell bounds, the row bounds extends past the cells if the 
7197         grid width isn't as wide as the DGV.
7198
7199 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
7200
7201         * DataGridView*: Completely revamp the drawing to match the
7202         public API.  Our grids now look better, and call all the
7203         appropriate methods and event to allow users to override
7204         the painting and do their own.
7205
7206 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7207
7208         * ListBindingHelper.cs: Implement 2.0 GetList methods.
7209
7210 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7211
7212         * DataGridView.cs: Implement BorderStyle.
7213
7214 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7215
7216         * FileDialog.cs: Apply patch from Andy Hume: Any time we
7217         are comparing attributes, make sure we only look at the
7218         one we are interested.  These calls were failing if there
7219         were more than one attribute.
7220         [Fixes bug #370385]
7221
7222 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7223
7224         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
7225
7226 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7227
7228         * PageSetupDialog.cs: Stub EnableMetric.
7229         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
7230         * PrintPreviewDialog.cs: Add ProcessDialogKey,
7231         ProcessTabKey.
7232
7233 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7234
7235         * MonthCalendar.cs: Remove unused variable.
7236
7237 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7238
7239         * DataGridView*.cs: corcompare stuffs.
7240
7241 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7242
7243         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
7244         The savings aren't worth the extra code to fix the optimization.
7245         [Fixes bug #368585]
7246
7247 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7248
7249         * ToolBar.cs: Always call base.Dock in the Dock override so that
7250         Control's layout_type gets reset correctly.
7251         [Fixes bug #368882]
7252
7253 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
7254
7255         * X11Dnd.cs: End DnD operation also for the middle mouse button.
7256
7257 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7258
7259         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
7260         at the same time we do explicit ones, because we have to give all
7261         other controls on the container a chance to handle explicit ones
7262         first.  If no one has an explicit mnemonic, then we can let the
7263         MenuStrip have a shot at implicit mnemonics.
7264         * MenuStrip.cs: Create an implicit mnemonic function.
7265         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
7266         mnemonics for MenuStrips.
7267         [Fixes bug #368493]
7268
7269 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7270
7271         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
7272         DataGridColumnStyle.cs: corcompare stuffs.
7273
7274 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7275
7276         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
7277         Details - This is needed after we added the bits to use any available
7278         column also for List and SmallIcon view. 
7279
7280 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7281
7282         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
7283         at the proper place, not only when changing SelectedIndex and changing
7284         the selection using keys/mouse, as .net does.
7285
7286 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7287
7288         * ControlBindingsCollection.cs: Implement last 2.0
7289         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
7290         in the new 2.0 Add methods.
7291
7292 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7293
7294         * ListBox.cs: When calling SelectedIndexCollection.Clear,
7295         return if no items are previously selected - this is done to avoid 
7296         firing OnSelectedIndexChanged without need to do so. Also,
7297         when creating handle ensure that the focused item is visible (as
7298         .net does).
7299
7300 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7301
7302         * ListBox.cs: Rewrote/refactored most of selection code. We require
7303         the following things in selection: a) keep selection sorted (both
7304         indices and items), b) SelectedIndices automatically detect the
7305         selection mode, c) SelectedIndex should be the first selected item
7306         index, d) Need to Focus/adjust scroll bar when selecting a new item,
7307         not only for SelectedIndex, which is specially important in Multi*
7308         selection modes. To achieve this we are moving the selection core to
7309         SelectedIndexCollection and make depend all selection modifications on
7310         it.
7311         Fixes #366438.
7312
7313 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7314
7315         * ToolStrip.cs: Enable implicit mnemonics for drop down
7316         menu strips.  [Fixes part of bug #367692]
7317
7318 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7319
7320         corcompare - fix parameter names [stragglers].
7321         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
7322         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
7323         TabControl.cs.
7324
7325 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7326
7327         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
7328         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
7329         mnemonic, let the ToolStripManager have it even if it doesn't
7330         have a matching mnemonic.
7331         [Fixes bug #367499]
7332
7333 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7334
7335         corcompare - fix warning about implicit implementation
7336         * ToolStrip.cs: Add IToolStripData interface.
7337         * IToolStripData.cs: Add.
7338
7339 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7340
7341         corcompare - fix warning about implicit implementation
7342         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
7343         * IBounds.cs: Add.
7344
7345 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7346
7347         corcompare - fix parameter names [N-Z].
7348         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
7349         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
7350         PropertyManager.cs, RichTextBox.cs,
7351         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
7352         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
7353         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
7354         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
7355         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
7356         ToolStripContentPanel.cs, ToolStripDropDown.cs,
7357         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
7358         ToolStripPanel.cs, ToolStripSeparator.cs,
7359         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
7360         UICuesEventHandler.cs, UpDownBase.cs.
7361
7362 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7363
7364         corcompare - fix parameter names [G-M].
7365         GridColumnStylesCollection.cs, GridItemCollection.cs,
7366         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
7367         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
7368         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
7369         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
7370         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
7371
7372 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7373
7374         corcompare - fix parameter names [A-F].
7375         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
7376         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
7377         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
7378         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
7379         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
7380         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
7381         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
7382
7383 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
7384
7385         * GridEntry.cs: Do not convert not only if the types match, 
7386         but also if the property type is assigneable from the value's
7387         type.
7388         [Fixes bug #366566]
7389
7390 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
7391
7392         * PropertyGridView.cs: 
7393          - Subscribe to the listbox only once and not everytime.
7394          - Update the textbox even if SetValue fails.
7395          - Close the listbox before calling TrySetValue just in case.
7396          [Fixes bug #366569]
7397
7398 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
7399
7400         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
7401
7402 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7403
7404         * ListView.cs: Implement support for custom column width based on
7405         Columns collection (we were previously using this collection only
7406         with Details view).
7407         Fixes #364484.
7408
7409 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7410
7411         * ListViewItem.cs: For Tile view, always set bounds for the first
7412         subitem (which is the main one), and also don't let Width be larger
7413         than ListView.TileSize.Width. Improve code readibility also.
7414         * ThemeWin32Classic.cs: When painting the ListViewItem instances
7415         in Tile view, _always_ use the NoWrap flag.
7416         Fixes #360798.
7417
7418 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
7419
7420         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
7421         in case.
7422         * GridEntry.cs: For MS compitability make all child properties 
7423         readonly if the parent is readonly. Ugh.
7424         [Fixes bug #365945 and #365944]
7425
7426 2008-02-29  Andreia Gaita <avidigal@novell.com> 
7427
7428         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
7429           relative to the history
7430
7431 2008-02-29  Andreia Gaita <avidigal@novell.com>
7432
7433         * HtmlElement.cs: More handlers for mouse and key events
7434
7435 2008-02-28  Andreia Gaita <avidigal@novell.com>
7436
7437         * WebBrowserBase.cs: MouseClick sig changed.
7438         * HtmlHistory.cs: Implement history navigation
7439         * HtmlElement.cs: Add event handlers, and connect them.
7440
7441 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
7442
7443         * GridEntry.cs: 
7444          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
7445            so that DisplayNameAttribute doesn't get ignored.
7446          - Check for ParenthesizeNameAttribute and parenthesize the Label.
7447          - Add support for PasswordPropertyTextAttribute
7448         * PropertyGridView.cs: Check if an entry is a password.
7449         [Fixes bugs #365589, #365586, #365588]
7450
7451 2008-02-28  Andreia Gaita <avidigal@novell.com>
7452
7453         * PropertyGridView.cs: Revert the message filtering change, as we
7454         need it to block after all. Remove block parameter, unnecessary.
7455
7456 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
7457
7458         * UserControl.cs: Better implementation of GetPreferredSize.
7459         First step to fixing bug #361441.
7460
7461 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7462
7463         * Binding.cs: Actually implement data binding support for 
7464         classes implementing IBindableComponent.
7465         * ControlBindingsCollection.cs: Likewise.
7466
7467 2008-02-26  Andreia Gaita  <avidigal@novell.com>
7468
7469         * PropertyGridView.cs: Use a message filter to check when to 
7470         close the dropdown
7471
7472 2008-02-26  Andreia Gaita  <avidigal@novell.com>
7473
7474         * Application.cs: Change the message_filters loop so a filter 
7475         can be removed while looping.
7476
7477 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
7478
7479         * GridEntry.cs: Optimization in ToggleValue so that it caches
7480         the current value.
7481         * PropertyGridView.cs: An optimization so that the property isn't 
7482         re-read twice for each StandardValue added to the drop-down menu.
7483         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
7484         license.
7485         [Fixes bug #362755]
7486
7487 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
7488
7489         * Application.cs: Apply patch from Justin Cherniak to match
7490         MS better for ProductName, ProductVersion, and CompanyName.
7491         [Fixes bug #361709]
7492
7493 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7494
7495         * Binding.cs: Actually implement 2.0 NullValue property. Also
7496         when changing the formatting related properties, only update the state
7497         if formatting_enabled is true (we don't mind otherwise).
7498
7499 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
7500
7501         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
7502         [Fixes bug #364486]
7503
7504 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
7505
7506         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
7507         of GetType on the current value as it uses reflection to 
7508         determine the type. This fixes the case where the new value is 
7509         null. 
7510
7511 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
7512
7513         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
7514         past the view.
7515
7516 2008-02-24  Luke Page  <luke.a.page@gmail.com>
7517
7518         * Line.cs, TextControl.cs: Implement offset x and y so that a
7519         document doesn't have to begin  at (0,0) on the viewpoint.
7520         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
7521         bars and switches the text alignment (and therefore is now
7522         implemented for textbox). Fixes #321383.
7523
7524 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7525
7526         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
7527         properties. Also when changing FormattingEnabled update the control
7528         property -as .Net does-.
7529
7530 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
7531
7532         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
7533         * Binding.cs: Add stubs for the overloads of the Add method in
7534         CBCollection.
7535
7536 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7537
7538         * Binding.cs: PullData () returns a false value if we got an exception.
7539         Also when validating the control and we get an error, instead of
7540         setting the value of the previous one, cancel the event (tested in 1.1
7541         and 2.0).
7542
7543 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
7544
7545         * TreeView.cs: Make selected_node and highlighted_node internal.
7546         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
7547         to null when Nodes.Clear is called.
7548         [Fixes bug #363884]
7549
7550 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7551
7552         * FontDialog.cs: Ensure that when the Font is set in code,
7553         all the gui pieces are updated accordingly.
7554         [Fixes bug #361020]
7555
7556 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7557
7558         * TextRenderer.cs: Respect proposed size for MeasureString.
7559         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
7560         autosize, use a proposed width to force wrapping for long text.
7561         [Fixes bug #360981]
7562
7563 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7564
7565         * TreeView.cs: Factor in checkboxes = false and state images in
7566         to HitTest.  [Fixes bug #363360]
7567
7568 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7569
7570         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
7571         when drawing the selected range.
7572         [Fixes bug #363648]
7573
7574 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7575
7576         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
7577         ResizeRedraw control styles.
7578         [Fixes bug #363555]
7579
7580 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7581
7582         * TreeView.cs: StateImages are basically custom checkboxes, so
7583         factor their size the same as real checkboxes when determining
7584         what got clicked.
7585         [Fixes bug #363367]
7586
7587 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7588
7589         * MessageBox.cs: Make the message box wider if the form caption
7590         is longer than the text in the form.
7591         [Fixes bug #361137]
7592
7593 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
7594
7595         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
7596
7597 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7598
7599         * TreeNode.cs: Guard against an NRE when the parent's
7600         StateImageList hasn't been set.
7601         [Fixes bug #363353]
7602
7603 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7604
7605         * SplitContainer.cs: Add SupportsTransparentBackColor and
7606         OptimizedDoubleBuffering control styles.
7607         [Fixes bug #363303]
7608
7609 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7610
7611         * Application.cs: For the app data paths and the registry key paths,
7612         ensure they are created before returning them to the user.
7613         [Fixes bug #361709]
7614
7615 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7616
7617         * Application.cs: Guard against an NRE in CompanyName and
7618         ProductName.
7619
7620 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7621
7622         * Application.cs: For CompanyName, ProductName, and ProductVersion,
7623         make sure we handle all three cases correctly: attribute is present,
7624         attribute is present but is an empty string, and attribute is not
7625         present.
7626
7627 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
7628
7629         * PropertyGridView.cs: 
7630          - Fix a NRE that caused a test failure
7631          - Another performance improvement - cache the standard values
7632          listbox.
7633
7634 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7635
7636         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
7637         code paths.
7638
7639 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
7640
7641         * PropertyGridView.cs: Fix a big performance bug.
7642
7643 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7644
7645         * SelectionRange.cs: Apply patch from Andy Hume to make
7646         constructor behavior more accurate.  [Fixes bug #362117]
7647
7648 2008-02-19  Andreia Gaita <avidigal@novell.com> 
7649
7650         * Control.cs: Added a new flag is_disposing to track if the
7651         window is currently in the process of being disposed of.
7652         This is used so that, when firing visibility changes triggered
7653         by unparenting controls during Dispose, the control doesn't
7654         get created again.      
7655
7656 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7657
7658         * ComboBox.cs: Set height to preferred height when the handle
7659         is created.  [Fixes bug #360862]
7660
7661 2008-02-18  Andreia Gaita <avidigal@novell.com>
7662
7663         * XplatUIX11.cs: Create FosterParent with border width at 0.
7664         With the previous value of 4, everytime a control got reparented
7665         from parent = null, it's location would be shifted right and 
7666         down by 4, since these coordinates would be offset by the 
7667         FosterParent's border width.
7668
7669 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
7670
7671         * Control.cs: During diposing firstly remove ourselfes from
7672         the parent and *then* destroy our handle, because removing
7673         ourselfes from the parent controls collection causes 
7674         VisibilityChange, etc events, which require a handle and end
7675         up recreating the control.
7676
7677 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
7678
7679         * GridEntry.cs: Set expanded state before notifying that the
7680         expansion has taken place.
7681         * PropertyGridView.cs:
7682          - Set the propertygridtextbox text to the selected 
7683          StandardValue before proceeding to setting it.
7684          - Scrolling bugfixes.
7685
7686 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7687
7688         * GridEntry.cs:
7689          - Fix ValueText to not return null.
7690          - Fix conversion error reporting to actually happen.
7691         * PropertyGridView.cs: Set entry only if the text has changed.
7692         [Fixes bug #362116]
7693
7694 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7695
7696         * GridEntry.cs: 
7697          - Fix handling of a null current value.
7698          - Swallow editor exceptions.
7699         [Fixes bug #362114]
7700
7701 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7702
7703         * PropertyGrid.cs: Clear current items first thing before 
7704         repopulating subitems.
7705         * GridEntry.cs: 
7706          - Handle null StandardValuesCollection.
7707          - Mark as not editable if there is no PropertyDescriptor and
7708          if the Converter cannot convert from string.
7709         [Part of fix for bugs #360666 and #358332]
7710
7711 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7712         * MaskedTextBox.cs: Now skips non editable characters after a
7713         character has been entered and we are progressing to the next
7714         position in the MaskedTextBox.
7715
7716 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7717         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
7718         that it changes the selection rather than just repositioning the
7719         cursor. Fixes Bug #360873.
7720
7721 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7722         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
7723         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
7724         correctly. See #359330
7725
7726 2008-02-15  Andreia Gaita <avidigal@novell.com>
7727
7728         * XplatUIX11.cs: If the handle is null when posting a message, use the
7729         current thread queue to post instead. Fixes #332409
7730
7731         * SendKeys.cs: Slight optimization
7732
7733 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
7734
7735         * PropertyGrid.cs, PropertyGridView.cs:
7736         Fix multiple scrolling and sizing issues.
7737         [Fixes bug #359199]
7738
7739 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7740
7741         * PropertyGridView.cs: Ensure that drop down editors are shown
7742         in the WorkingArea of the screen.
7743         [Fixes bug #359807]
7744
7745 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7746
7747         * GridEntry.cs: Fail silently when UITypeEditor is missing.
7748         [Fixes bug #360666]
7749
7750 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7751
7752         * Binding.cs: Implement 2.0 DataSourceNullValue property.
7753
7754 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7755
7756         * PropertyGridView.cs:
7757          - Clear the controls in the drop down form after it is hidden.
7758          - Fix Width sizing of the dropdown editors to match MSFT.
7759
7760 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7761
7762         * PropertyGridView.cs: 
7763          - Fix height for drawing the grid entry
7764          text value, so that it clips multiline text properly.
7765          - Fix unfocusing to match MSFT.
7766
7767 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7768
7769         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
7770         Fixes a bug where on repopulation after value changed items become
7771         expandable.
7772
7773 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7774
7775         * Binding.cs: For the 2.0 profile, look for a 
7776         'PropertyChanged' event in the target control, and add checks for
7777         DataSourceUpdateMode property to change -or not- the data source
7778         from validation/control property change.
7779
7780 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
7781
7782         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
7783           not compare struct with null in 2.0).
7784
7785 2008-02-10  Luke Page <luke.a.page@gmail.com>
7786
7787         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
7788         updates the provider and if not using a provider, uses the internal document
7789         class implementation of password char. Also when showing text, uses display string
7790         from the provider, instead of the actual text.
7791
7792 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7793
7794         * Binding.cs: Ooooops, forgot to take into account the data_source
7795         and binding_member_info null case (it was breaking the Binding tests).
7796
7797 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7798
7799         * Binding.cs: Implement support for data source changes exposed by
7800         'PropertyNameChanged' events, and update the control property as
7801         needed.
7802
7803 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7804
7805         * Binding.cs: Implement 2.0 WriteValue method.
7806
7807 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7808
7809         Commit patch from James Purcell for better AutoScale implementation:
7810
7811         * ScaleControl should call GetScaledBounds with the control's total size rather
7812         than client size.  GetScaledBounds should handle ignoring the borders in its
7813         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
7814         (for the most part they just call the base code now since that is fixed).
7815         * Added ScaleChildrenInternal to allow controls to disable scaling of children
7816         without having to override ScaleChildren (since none of .NET's controls do). 
7817         This is required for most controls in Mono that have scrollbars to prevent the
7818         scrollbars from being moved/resized.
7819         * Nested ContainerControls can have a different scale mode than their parent. 
7820         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
7821         designer produce different results both of which look incorrect).
7822         * Default AutoScaleMode for ContainerControl should be Inherit.
7823         * Simplified workaround for ComboBox scaling issue.
7824         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
7825         1.0 style auto scaling should scale the whole control's size instead of
7826         ignoring the borders (except for Form) and the rounding is done differently to
7827         preserve control alignment.
7828         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
7829         GetAutoScaleSize.
7830         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
7831         * CurrentAutoScaleDimensions should round the estimated character width instead
7832         of truncating.
7833         * ListBox's GetScaledBounds should always use the height it was set to instead
7834         of the height that was passed in.  This prevents rounding errors from
7835         accumulating quickly with IntegralHeight.
7836         [Bug #359098]
7837
7838 2008-02-08  Andreia Gaita <avidigal@novell.com>
7839
7840         * Form.cs: Add a null check (darn it). 
7841
7842 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7843
7844         * MdiClient.cs: Make sure the requesting form actually owns the
7845         control menu items before removing them.  Also, use
7846         Suspend/ResumeLayout when adding or removing items so we only
7847         layout once.
7848         [Fixes bug #359887]
7849
7850 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7851
7852         * Control.cs: Guard against an NRE in ShowFocusCues.
7853         [Fixes bug #359830]
7854
7855 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7856
7857         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
7858         property, as well as stubbing DataSourceUpdateMode.
7859
7860 2008-02-08  Andreia Gaita <avidigal@novell.com>
7861
7862         * Form.cs: When closing forms, get focus back to the active control of the
7863         active form. [Fixes #341314, corner case]
7864         
7865 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7866
7867         * MdiClient.cs: After we move the scrollbars, invalidate the NC
7868         area, so any old scrollbar artifacts are cleaned up.
7869         [Fixes bug #336305]
7870
7871 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7872
7873         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
7874         for our menus, display that control box menu instead of the 1.1
7875         menu one.
7876
7877 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7878
7879         * MdiControlStrip.cs: Add property to access the mdi form tied to
7880         each toolstripitem.
7881         * MdiClient.cs: Be smarter about removing and adding toolstripitems
7882         to the implicitly merged menu.  Every time we clicked the form, items
7883         were getting removed and the re-added, causing the form to jump around
7884         as the menu resized.
7885
7886 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7887
7888         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
7889         was being reset by the implicit menu merge for menustrips.
7890         [Fixes bug #336296]
7891
7892 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7893
7894         * Form.cs: Don't do the previous change when WindowState = Normal,
7895         or it messes up where the window is placed.  Fixes test failure.
7896
7897 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7898
7899         * Form.cs: When becoming visible, if we are an MDI child, call
7900         SetWindowState with a dummy old_state so that changes will actually
7901         be made.
7902         [Fixes the 2nd part of bug #325473]
7903
7904 2008-02-07  Andreia Gaita <avidigal@novell.com>
7905
7906         * Control.cs: Reset properties to their pre parent-change values in case
7907         the new parent == null (in which case we're basically removing the control, 
7908         and don't want any events fired due to fake property changes)
7909         [Fixes #355850]
7910
7911 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
7912
7913         * PropertyGridView.cs: 
7914          - Refactor SetValue to allow setting the value
7915         when a custom editor is used, but the entry is not editable.
7916          - Remove the custom editor control on CloseDropDown.
7917         [Fixes #359196]
7918
7919 2008-02-06  Andreia Gaita <avidigal@novell.com>
7920
7921         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
7922         reflection only on 1.1, this property is public on system.drawing on 2.0.
7923         Fixed #359247
7924
7925 2008-02-06  Andreia Gaita  <avidigal@novell.com>
7926         
7927         * WebBrowser.cs: Do a normal page refresh by default.
7928
7929 2008-02-05  Andreia Gaita  <avidigal@novell.com>
7930
7931         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
7932         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
7933         platforms. Fixes #359036
7934         
7935         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
7936         platform-specific flags.
7937
7938 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7939
7940         * Binding.cs: Add 2.0 BindableComponent property - just return control
7941         by now.
7942
7943 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
7944
7945         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
7946         Jonathan for this patch. Fixes #358442.
7947
7948 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
7949
7950         * Form.cs: If we change the active MDI child form, let the others
7951         know they need to repaint their title bar so it will appear inactive.
7952         [Fixes part 1 of bug #325473]
7953
7954 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
7955
7956          * PropertyGridView.cs: Do not trucate custom editors' width
7957          and align them to the left.
7958          [Fixes #358353 and #358349]
7959
7960 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7961
7962         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
7963         Also fix the arguments passed to CollectionChangeEventArgs in the
7964         related methods.
7965
7966 2008-02-04  Geoff Norton  <gnorton@novell.com>
7967
7968         * Hwnd.cs: The conversion to Quartz coordinates happens in
7969         System.Drawing.  Removing this translation from here.
7970
7971 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
7972
7973          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
7974          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
7975          GridItemCollection.cs:
7976          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
7977
7978 2008-02-04  Geoff Norton  <gnorton@novell.com>
7979
7980         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
7981         SYSKEYUP if any other key has been pressed in the mean time.
7982         Fixes #324404
7983
7984 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7985
7986         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
7987         when the item in current position is different than 0. Also, save the
7988         item index in the beginning of the operation, instead of getting the
7989         index of the item when the event is actually performed. Lastly clean
7990         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
7991         triggered.
7992         [Fixes #357873]
7993
7994 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7995
7996         * Form.cs: Alt-Minus for MDI children system menu should work
7997         with both the minus keys on the keyboard.
7998         [Fixes bug #336295]
7999
8000 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8001
8002         * Control.cs: Don't invalidate on region change.  The WM should
8003         take care of this automagically.  Keeps us out of an infinite
8004         paint loop if someone changes the Region in the OnPaint.
8005         [Fixes bug #358327]
8006
8007 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
8008
8009          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
8010
8011 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8012
8013         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
8014         down the MonthCalendar only on F4, not Alt+F4.
8015         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
8016         [Fixes bug #358340]
8017
8018 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8019
8020         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
8021         if its part of a DateTimePicker, else, use the back color.
8022         [Fixes bug #358339]
8023
8024 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8025
8026         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
8027         [Fixes bug #358342]
8028
8029 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8030
8031         * CurrencyManager.cs: When we get a ListChanged event from our source,
8032         always fire our own ListChanged event, as .Net does.
8033
8034 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8035
8036         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
8037         #358379.
8038
8039 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8040
8041         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
8042         property. Removed if for richtext property that was always true.
8043         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
8044
8045 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8046
8047         * TextBoxBase.cs - commited patch from James Purcell that
8048         correctly sets the FixedHeight control style when the MultiLine
8049         property is changed on a TextBox control. Fixes bug 358229.
8050
8051 2008-02-02  Luke Page  <luke.a.page@gmail.com>
8052
8053         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
8054         Fixes bug 351938 - caret is positioned correctly when drawn
8055         and when calculating textual position of caret, no longer
8056         has a NRE in certain situations.
8057         
8058 2008-02-01  Geoff Norton  <gnorton@novell.com>
8059
8060         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
8061         get that region removed from the paint event.
8062         * XplatUICarbon.cs: Remove the window mapping after disposing of 
8063         window.  Prevents a crash with handle reuse.  Optimize exposes
8064         only onto visible windows (rare; but possible).
8065
8066 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8067
8068         * UpDownBase.cs: Make sure the internal textbox calls the base's
8069         OnMouseDown and OnMouseUp so the textbox will function correctly.
8070         There were notes saying it doesn't chain up, but its an internal
8071         class, so our implementation may differ.
8072         [Fixes bug #357482]
8073
8074 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8075
8076         * ListBox.cs: Fix a logic error and don't process MouseDown
8077         for mouse buttons other than Left.
8078
8079 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8080
8081         * Control.cs: Remove HeightInternal.
8082         * ListBox.cs: Commit patch from James Purcell that correctly
8083         calculates heights for ListBoxen.
8084         [Fixes bug #357152]
8085
8086 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8087
8088         * Label.cs: Apply patch from James Purcell that corrects the 
8089         signature of the AutoSize property.
8090         [Fixes bug #357605]
8091
8092 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8093
8094         * ListBox.cs: Don't throw [Mouse]Click events for buttons
8095         other than the left mouse button.
8096
8097 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
8098
8099         * Control.cs: Remove my awesome optimization as it caused some
8100         regressions with control ordering.  :(
8101         [Fixes bug #357467]
8102
8103 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
8104
8105          * PropertyGridView.cs: Fix a NRE on double click when there is no
8106          selected object.
8107
8108 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8109
8110         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
8111
8112 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
8113
8114         * ListBox.cs: Call MouseClick and MouseDoubleClick.
8115         [Fixes bug #357146]
8116
8117 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8118
8119         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
8120         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
8121         instead of Hwnd.bmp_g.
8122
8123 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8124
8125         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
8126         Use the Hwnd one instead.
8127
8128 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8129
8130         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
8131
8132 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8133
8134         * Form.cs: corcompare for RestoreBounds.
8135
8136 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8137
8138         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
8139
8140 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8141
8142         * Form.cs: Handle Alt-Minus for MDI children forms.
8143         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
8144         Add mnemonics to the control menu.
8145         [Fixes bug #336295]
8146
8147 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8148
8149         * Binding.cs: Initial implementation bits of FormattingEnabled
8150         property and BindingComplete event (2.0). 
8151         * BindingCompleteEventArgs.cs: Internal methods for setting error text
8152         and exception.
8153
8154 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
8155
8156         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
8157         table.Location.  [Fixes bug #354672]
8158
8159 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
8160
8161         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
8162         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
8163
8164 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8165
8166         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
8167         of doing all the re-bound work, just invalidate and call SetControlText 
8168         to set the updated text of selected item to our textbox.
8169         Fixes #333750.
8170
8171 2008-01-28  Andreia Gaita <avidigal@novell.com>
8172
8173         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
8174         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
8175         missing properties and methods. Add Load, Unload, Error, GotFocus, 
8176         LostFocus, Resize, Scroll events (only load and unload are connected)
8177
8178 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
8179
8180         * AccessibleObject.cs: Modified argument names to match MS.
8181         * Button.cs: Modified argument names to match MS.
8182         * BindingContext.cs: Modified argument names to match MS.
8183         * BindingMemberInfo.cs: Modified argument names to match MS.
8184         * ButtonBase.cs: Modified argument names to match MS.
8185         * ComboBox.cs: Modified argument names to match MS.
8186         * Control.cs: Modified argument names to match MS.
8187         * CheckedListBox.cs: Modified argument names to match MS.
8188         * CommonDialog.cs: Modified argument names to match MS.
8189         * DataGrid.cs: Modified argument names to match MS.
8190         * CursorConverter.cs: Modified argument names to match MS.
8191         * ControlPaint.cs: Modified argument names to match MS.
8192         * CheckBox.cs: Modified argument names to match MS.
8193         * ControlBindingsCollection.cs: Modified argument names to match MS.
8194         * BindingSource.cs: Modified argument names to match MS.
8195         * DataFormats.cs: Modified argument names to match MS.
8196         * ContainerControl.cs: Modified argument names to match MS.
8197         * CurrencyManager.cs: Modified argument names to match MS.
8198         * Application.cs: Modified argument names to match MS.
8199         * ContextMenuStrip.cs: Modified argument names to match MS.
8200         * ContextMenu.cs: Modified argument names to match MS.
8201         * BindingManagerBase.cs: Modified argument names to match MS.
8202         * WindowsFormsSection.cs: Fixed line ending.    
8203
8204 2008-01-27  Andreia Gaita <avidigal@novell.com>
8205
8206         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
8207         detecting that the dropdown toolwindow is hidden. EndLoop outside the
8208         while.
8209
8210 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
8211
8212         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
8213         MS. Code formatting.
8214
8215 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8216
8217         * Binding.cs: Don't avoid the Format event if the control 
8218         property type is object. Also, if the value retrieved by 
8219         the data source is null _and_ the control proeprty type 
8220         is object, return Convert.DBNull (match .Net).
8221         Fixes part of #324286.
8222
8223 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8224
8225         * ListControl.cs: Since we are getting two BinginContextChanged events
8226         for the same binding context instance (when the control is added to
8227         form, and when the form is actually shown), take it into account only the
8228         first time for a given binding context instance.
8229         Fixes part of #324286.
8230
8231 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
8232
8233          * PropertryGridView.cs: Ops.
8234
8235 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
8236
8237          * PropertyGridView.cs: Close dropdown form if the owner form is
8238          moved or minimized.
8239          [Fixes bug #322446]
8240
8241 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
8242
8243          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
8244          RootGridEntry.cs, CategoryGridEntry.cs:
8245          PropertyGrid rewrite.
8246          - Rewrite all of the control logic in PropertyGrid.
8247          - Rewrite all of the ComponentModel logic in GridEntry.
8248          - Rewrite all UI work in PropertyGridView.
8249          - Many bugfixes, etc.
8250
8251 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
8252
8253         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
8254         when all contained controls are autosize or dock-fill.  Also take into
8255         account when the total percentage of column/row sizes is not 100%.
8256         [Fixes bug #354672]
8257
8258 2008-01-24  Andreia Gaita <avidigal@novell.com>
8259
8260         * HtmlDocument.cs:
8261         - Save a reference to the IDocument in the instance and
8262           use that one instead of going to WebHost.Document; the document that the 
8263           WebHost returns might not be the right one (in case of frames).
8264         - Use the hashcode returned from the IDocument interface.
8265         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
8266           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
8267           LinkColor, Url, VisitedColor, Window
8268
8269         * HtmlElement.cs: 
8270         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
8271           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
8272           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
8273           SetAttribute, Equals, equality operators.
8274         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
8275           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
8276         
8277         * HtmlElementCollection.cs: Change implementation to use a generic
8278         collection. Implemented Enumerator and CopyTo
8279
8280         * HtmlHistory.cs: Add constructor, no implementation yet.
8281
8282         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
8283         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
8284         Equals, equality operators.
8285
8286         * HtmlWindowCollection.cs: Implemented. 
8287
8288         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
8289         has been deprecated).
8290
8291         * WebBrowserBase.cs: Use Completed event to track document loading
8292         (Navigated has been deprecated)
8293
8294 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
8295
8296         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
8297         level MenuItems do not respect tabs.
8298         [Fixes bug #355196]
8299
8300 2008-01-23  Geoff Norton  <gnorton@novell.com>
8301
8302         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
8303         FormWindowState.  Finished fixing Fullscreen windows on Carbon
8304
8305 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8306
8307         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
8308         be used as grab_control. Also save status of capture before show ContextMenu
8309         and restore it after close.
8310
8311 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8312
8313         * Control.cs: Internal FindRootParent method added to return high control
8314         in parent tree.
8315
8316 2008-01-23  Geoff Norton  <gnorton@novell.com>
8317
8318         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
8319         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
8320         it work again.  Handle HITTEST events.
8321
8322 2008-01-23  Geoff Norton  <gnorton@novell.com>
8323
8324         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
8325         a crash in certain cases.  Support for fullscreen windows in certain cases.
8326
8327 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
8328
8329         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
8330         [Fixes bug #355703]
8331
8332 2008-01-23  Geoff Norton  <gnorton@novell.com>
8333         
8334         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
8335
8336 2008-01-23  Geoff Norton  <gnorton@novell.com>
8337
8338         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
8339
8340 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8341
8342         * SplitContainer.cs: Remove unused declarations.
8343         * Binding.cs: Remove unused declarations.
8344
8345 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8346
8347         * Form.cs: Remove unused declaration of 'active' in Activate method.
8348         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
8349         prevent compilation warnings.
8350         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
8351         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
8352         * Bindings.cs: Remove unused formatting_enabled declaration.
8353         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
8354         warnings.
8355         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
8356         warnings.
8357         * PropertyGridView.cs: Remove usused 'ex' declaration.
8358         * DataGridView.cs: Remove unused declarations.
8359
8360 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8361
8362         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
8363         
8364         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
8365         to Control class, it makes possible to grab menu to controls that can't 
8366         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
8367         WmMouseMove removed since it was used only to track menu events.
8368
8369         * Control.cs:
8370         - Moved all active_tracker stuff from Form.
8371         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
8372         can call this method instead of reimplement all necessary code handle for
8373         menu tracker.
8374         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
8375         and WmMouseMove).
8376         
8377         * MenuAPI.cs: 
8378         - Remove special handle to ToolStripOverflow, now we can grab menu to 
8379         controls that can't reach Form using parent tree.
8380         - Change type of grab_control from Form to Control.
8381
8382 2008-01-22  Geoff Norton  <gnorton@novell.com>
8383
8384         * TextBoxBase.cs: Split up the sizing of controls and placing of 
8385         controls.  Fixes a bug where scrollbars in Reflector could be sized
8386         wrong and have non-working thumbers.
8387
8388 2008-01-23  Geoff Norton  <gnorton@novell.com>
8389
8390         * XplatUI.cs: Refactor environment variables to default support to the
8391         Carbon driver on the Mac.
8392
8393 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8394
8395         * Label.cs: Uses new LabelPainter for drawing operations.
8396         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
8397         * Theme.cs: DrawLabel and LabelDefaultSize removed.
8398
8399 2008-01-22  Geoff Norton  <gnorton@novell.com>
8400
8401         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
8402
8403 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8404
8405         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
8406         through the normal flat button code and don't draw the checkbox glyph.
8407         * Theme.cs: Button->ButtonBase signature change.
8408         [Fixes bug #324755]
8409
8410 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
8411
8412         * LinkLabel.cs: Uses new class LinkLabelPainter.
8413
8414 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
8415
8416         * MessageBox.cs: Adjust right border space, we don't need to add 
8417         "space_border*2" two times.
8418
8419 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8420
8421         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
8422         becomes a wrapper around Padding.
8423         [Fixes a part of bug #354676]
8424
8425 2008-01-22 Geoff Norton  <gnorton@novell.com>
8426
8427         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
8428         acquired.  Also ensure the buffer is large enough to grab the header
8429         we need on linux boxes.
8430
8431 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8432
8433         * Control.cs: Implement a custom enumerator so people can delete
8434         from the Controls collection while in a foreach.
8435         [Fixes bug #355074]
8436
8437 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8438
8439          * PropertyGridView.cs: Fix focusing behavior:
8440          - Tab should focus the grid text box.
8441          - Clicking on the labels shouldn't focus the grid text box.
8442
8443 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8444
8445          * PropertyGridView.cs: IsValueTypeGridItem should return true 
8446          for Arrays as well.
8447
8448 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8449
8450          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
8451           - Renamed GridEntry.SelectedObjects to TargetObjects to better
8452           reflect the property name role.
8453           - PropertyGrid.GetTarget is not required as the target is known
8454           (TargetObjects).
8455           - Setting values will handle value types as a special case now and
8456           populate them up in the chain.
8457           [Fixes #354990]
8458
8459 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
8460
8461         * Hwnd.cs: Create a public property for the Graphics we keep around.
8462
8463 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
8464
8465          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
8466          when the current object selection changes. 
8467          Fixes failing test SelectedObject_Null2.B5.
8468
8469 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
8470
8471          * PropertyGrid.cs: Process Browsable properties with 
8472          DesignerSerializationVisibilityAttribute.Content as being expandable.
8473          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
8474          will not be expandable. We should be nested components-friendly now.
8475
8476 2008-01-21  Andreia Gaita <avidigal@novell.com>
8477
8478         * WebBrowserBase.cs: Check if control was loaded properly, 
8479         don't bind if it wasn't.
8480
8481         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
8482         GetElementFromPoint, equality operators, OpenNew, Write.
8483         Remove extra set_Body
8484
8485 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
8486
8487         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
8488         that makes our AutoScale* stuff more tolerant to different orders
8489         of being set.  [Fixes bug #354669]
8490
8491 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
8492
8493          * PropertyGridView.cs, PropertyGridTextBox.cs: 
8494          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
8495          [Fixes #339005 and #348209]
8496
8497 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
8498
8499          * PropertyGridView.cs: Hide the grid text box before adjusting it
8500          for the newly selected GridItem.
8501          [Fixes #338999]
8502
8503 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
8504
8505         * Form.cs: Give MDI children the opportunity to cancel the parent form
8506         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
8507         properly for both the parent and child.
8508         * Application.cs: Signature of internal method changed, pass the previous
8509         default of false.
8510         [Fixes bug #354286]
8511
8512 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
8513
8514         * PropertyGridView.cs: Set the property value only if it has changed.
8515         [Fixes bug #338997]
8516
8517 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
8518
8519         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
8520         If the mouse hasn't actually moved, ignore these messages so the currently
8521         highlighted menuitem isn't reset to the one under the mouse.
8522         [Fixes bug #333668]
8523
8524 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
8525
8526         * PropertyGridView.cs: When the property changes Invalidate the GridItem
8527         in order for the properties with UITypeEditor.GetPaintValueSupported == true
8528         to reflect the change visually.
8529         [Fixes bug #338998]
8530
8531 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
8532
8533         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
8534         to 2.0 button drawing.
8535         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
8536         the button text is tall enough for one line.  LineLimit says it will
8537         always draw at least one line, but it is a lie.
8538         [Fixes bug #324941]
8539
8540 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
8541
8542         * XplatUIStructs.cs, X11Keyboard.cs :
8543           added some more VK_* keys to be handled.
8544
8545 2008-01-16  Andreia Gaita <avidigal@novell.com>
8546
8547         * Control.cs: Check if there is a container before setting or getting
8548         the validation flag.
8549
8550 2008-01-16  Andreia Gaita <avidigal@novell.com>
8551
8552         * ContainerControl.cs: Add flag to track if a control cancels validation, 
8553         so we don't fire click events.
8554
8555         * Control.cs: 
8556         - (HandleClick) Check if validation was cancelled before  firing the click
8557         events (doubleclicks are fired, but not clicks)
8558         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
8559         ContainerControl.set_ActiveControl, but in the case of non-selectable
8560         controls, like a Label, activecontrol is not set. 
8561
8562         * ButtonBase.cs: Only fire clicks if validation passes.
8563         
8564         Fixes #353310
8565
8566 2008-01-16  Geoff Norton  <gnorton@novell.com>
8567
8568         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
8569         trunk
8570
8571 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
8572
8573         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
8574         SelectedPath, just display the default dialog instead of crashing.
8575         [Fixes bug #348989]
8576
8577 2008-01-16  Geoff Norton  <gnorton@novell.com>
8578
8579         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
8580         AddExpose instead of trusting apples compositing manager which doesn't
8581         work for our use case.  Remove some dead code causing warnings and 
8582         redecorate some other code to prevent warnings.
8583
8584 2008-01-16  Geoff Norton  <gnorton@novell.com>
8585
8586         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
8587         carbon signals us to redraw.  Fixes another portion of the flickering bug
8588
8589 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8590
8591         * Form.cs: Prevent the MdiParent property to be set when value is the same
8592         as value already set. Fixes bug #328019.
8593
8594 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8595
8596         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
8597         it prevents NRE when closing mdi child windows. Fixes bug #325211.
8598
8599 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8600
8601         * InternalWindowManager.cs: Invalidade close button after mouse up when 
8602         mdi form is prevented to close.
8603
8604 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8605
8606         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
8607         thanks to Andy Hume. Fixes bug #325433.
8608
8609 2008-01-16  Andreia Gaita <avidigal@novell.com>
8610
8611         * LinkLabel.cs: Reset focused_index when resellecting the control.
8612         Fixes #323190
8613
8614 2008-01-15  Geoff Norton  <gnorton@novell.com>
8615
8616         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
8617         messages.
8618
8619 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
8620
8621         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
8622         of truncate.
8623
8624 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
8625
8626         * ContainerControl.cs: Setting AutoScaleMode to anything should set
8627         Form.AutoScale to false.
8628         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
8629         AutoScaleBaseSize should be changed on Font change unless it has been
8630         explicitly set.
8631         [Fixes bug #353827]
8632
8633 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
8634
8635         * MenuAPI.cs: On instance of MenuTracker check if source control is
8636         ToolStripOverflow and use properly method to find form.
8637         [Fixes bug #338511]
8638
8639 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
8640
8641         [Fixes bug #323241 Transparent toolbar support]
8642
8643         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
8644         is flat.
8645
8646         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
8647         defined in control style to mimic win32 behavior.
8648
8649         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
8650         it will be transparent.
8651
8652 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
8653
8654         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
8655         CreateParams for ToolBar controls.
8656
8657 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8658
8659         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
8660         FixedToolWindow, SizeableToolWindow, or None for border styles have
8661         different minimum sizes than regular forms.  Implemented to fix
8662         regression in PDN with toolbox being too wide.
8663
8664 2008-01-14  Andreia Gaita <avidigal@novell.com>
8665
8666         * HtmlElementCollection.cs: Implemented
8667
8668         * HtmlElement.cs: Implemented:
8669           - All
8670           - InnerHtml
8671           - InnerText
8672           - Id
8673           - Name
8674           - FirstChild
8675
8676         * HtmlDocument.cs: Implemented GetElementsByTagName.
8677
8678 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8679
8680         * Screen.cs: Stub BitsPerPixel to always return 32.
8681
8682 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8683
8684         * Form.cs: Implement RestoreBounds.
8685
8686 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8687
8688         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
8689         Sebastien and his fabulous magical problem-finding machine:
8690         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
8691         respect the value set.
8692
8693 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
8694
8695         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
8696         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
8697
8698 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8699
8700         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
8701         messages (to match .Net), we need to remove the capture ourselves.
8702
8703 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
8704
8705         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
8706         will process the message and close our window.
8707         [Fixes bug #324328]
8708
8709 2008-01-10  Geoff Norton  <gnorton@novell.com>
8710
8711         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
8712         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
8713         window manager.
8714
8715 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8716
8717         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
8718         failing test.
8719
8720 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8721
8722         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
8723         Linux doesn't care, having a minimum matches MS and keeps the window
8724         from becoming too small to use window decorations.
8725         [Fixes bug #338996]
8726
8727 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8728
8729         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
8730         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
8731         control.  [Fixes bug #325419]
8732
8733 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8734
8735         * ComboBox.cs: Guard against an NRE if the user open a new form from a
8736         SelectedIndexChanged event.  This closes the combobox dropdown, and we
8737         were trying to dispose it.  [Fixes bug #352830]
8738
8739 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8740
8741         * Control.cs, Form.cs: Implement the necessary semantics for
8742         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
8743         to determine if a focus rectangle should be drawn.
8744         * PropertyGrid.cs: Fix property visibility to match override.
8745         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
8746
8747 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8748
8749         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
8750         [Fixes bug #323552]
8751
8752 2008-01-09  Geoff Norton  <gnorton@novell.com>
8753         
8754         * XplatUICarbon.cs: Scroll windows in the correct direction.
8755
8756 2008-01-09  Geoff Norton  <gnorton@novell.com>
8757
8758         * XplatUICarbon.cs: Track all created utility windows so we can hide them
8759         when the app is deactivated or spaces is enabled.
8760
8761 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8762
8763         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
8764         extra separation pixel for the label rect origin if SmallImageList is
8765         null, and thus we don't need that separation between icon and label
8766         rects.
8767         Patch by Ernesto Carrea.
8768         Fixes # 340195.
8769
8770 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
8771
8772         * StatusStrip.cs: Invalidate after completing a layout.  The base
8773         OnLayout does this, but we don't call the base.
8774         * ToolStripItem.cs: Revert the previous change to invalidate after
8775         the item moves.
8776         [Fixes bug #351341 better.]
8777
8778 2008-01-07  Geoff Norton  <gnorton@novell.com>
8779
8780         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
8781         not a notification to exit the application.  Listen for WM_QUIT
8782         instead.
8783
8784 2008-01-07  Andreia Gaita <avidigal@novell.com>
8785
8786         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
8787
8788 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
8789
8790         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
8791         so it can repaint at the correct location.
8792         [Fixes bug #351341]
8793
8794 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8795
8796         * ListControl.cs: SelectedValue should return a null value if
8797         SelectedIndex is -1. Also, when setting it, it should throw an
8798         ArgumentNullException if the value is null, as well as taking
8799         into account the String.Empty value, instead of ignoring it (we have
8800         tests for that now).
8801         Fixes part of #324286.
8802
8803 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
8804
8805         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
8806         SelectionStart is updated after pressing enter.  Fixes bug #351918.
8807
8808 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8809
8810         * TextControl.cs: Revert a piece r92316 that prevented the fix
8811         from working when there were multiple tags in the text box.
8812         Fixes bug #351881.
8813
8814 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8815
8816         * TextControl.cs: Apply patch from Luke Page that prevents an
8817         NRE when determining the beginning of a paragraph.
8818         Fixes bug #351886.
8819
8820 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8821
8822         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
8823         caret gets moved with clicking away from a selected block of
8824         text.  Fixes bug #351885.
8825
8826 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8827
8828         * TextControl.cs: Apply patch from Luke Page that takes line
8829         alignment into account for mouse selection, so that center and
8830         right aligned text can be selected.
8831         Fixes bug #351881.
8832
8833 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8834
8835         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
8836         issues after loading an RTF file by using the correct line feeds.
8837         Fixes bug #351841.
8838
8839 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8840
8841         * TextControl.cs: When deleting multiple line selections, we need
8842         to invalidate every line beginning at the first line of the selection.
8843         Patch from Luke Page fixes bug #351791.
8844
8845 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8846
8847         * ListControl.cs: When getting a CurrencyManager.PositionChanged
8848         event, don't set SelectedIndex if the number of items is 1. This is
8849         because, for the first item, PositionChanged is fired _before_
8850         ItemChanged (the place where we actually populate the items), and
8851         leave us in a temporary invalid state (since items collection is
8852         empty).
8853         Fixes #349655.
8854
8855 2008-01-04  Geoff Norton  <gnorton@novell.com>
8856
8857         * XplatUICarbon.cs:  Create native toolwindows instead of
8858         the managed drawing ones.
8859
8860 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8861
8862         * LineTag.cs: If the line doesn't have any characters, return
8863         0 for GetCharIndex.  Fixes an AOORE exception after certain
8864         caret movements.  Fixes bug #351683.  Patch by Luke Page.
8865
8866 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8867
8868         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
8869         is hit when there is selected text, only the selected text gets
8870         deleted, not the character in front of the selection as well.
8871         Fixes bug #351578.
8872
8873 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8874
8875         * ComboBox.cs: When the values are displayed, calculate the
8876         ComboListBox scrollbar's LargeChange based on the visible area's
8877         height and  the actuall ItemHeight, instead of calculating it
8878         based on MaxDropItems value, since it's not used by our _current_ 
8879         2.0 profile.
8880         Fixes #332366.
8881
8882 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8883
8884         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
8885         Patch from Luke Page that fixes issues with font colors and styles
8886         not showing up in a readonly RichTextBox.  Fixes bug #324354.
8887
8888 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8889
8890         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
8891         from Luke Page.  This one fixes bug #349926.
8892
8893 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8894
8895         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
8896         an item in the IBindingList source changes with
8897         ListChangedType.ItemAdded. Ignore for now firing the event for other
8898         changes, since we want to have tests for those cases as well.
8899
8900 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8901
8902         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
8903         created.
8904
8905 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8906
8907         * TextBoxTextRenderer.cs: Implement a cache for measuring each
8908         character.  This is effective because the typical usage of a
8909         TextBox is with a limited amount of fonts and characters, and
8910         the current implementation of TextBox measures everything one
8911         character at a time.  Another second or two speedup for bug #347238.
8912
8913 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8914
8915         * Control.cs: Rewrite the Font getter to only query the parent's
8916         Font property once instead of twice.  Since this operation is
8917         recursive, the queries were growing exponentially as the control
8918         tree got deeper.  Another second or two speedup for bug #347238.
8919
8920 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8921
8922         * Control.cs: Avoid setting a parent (and more importantly, updating
8923         the zorder of all its children) if the parent is already correct in
8924         WmShowWindow.  Decreases the startup time of the test case on bug
8925         #347238 from 35 seconds to 11 seconds.
8926
8927 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8928
8929         * X11Dnd.cs: When the dnd operation has started and we are 
8930         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
8931         This is done to match .Net, which doesn't send those messages after
8932         dnd operation was completed/cancelled.
8933         Fixes #349922.
8934
8935 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
8936
8937         * ToolStrip.cs: Previous change should be != null, not == null.
8938         Thanks Gert!
8939
8940 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
8941
8942         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
8943         user may have moved the mouse off the current item during the event.
8944
8945 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8946
8947         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
8948         calling GetItemAt for every MouseMove event by also taking into
8949         account whether any mouse button is pressed (probably dragging); 
8950         if so, we can call GetItemAt, and if not, try to not call it 
8951         (GetItemAt can be quite expensive when used with a large number of items).
8952
8953 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8954
8955         * ListView.cs: Implement -finally- support for dnd, by calling
8956         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
8957         authors list ;-).
8958         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
8959         simple calculation of distances for all the items in the owner
8960         listview.
8961
8962 2007-12-21  Geoff Norton  <gnorton@novell.com>
8963
8964         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
8965         for windows that are originally created as invisible.  Fixes missing
8966         main window in paint-mono.
8967
8968 2007-12-21  Geoff Norton  <gnorton@novell.com>
8969
8970         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
8971         subclass handler for com.novell.mwfview subclassing HIView.  Implement
8972         Pasteboard and Dnd methods.
8973
8974 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8975
8976         * ListBox.cs: When we got focus, give focus to first item if there
8977         wasn't any pervious focused item. Also update navigation to depend on
8978         SelectedIndex rather than FocusedItem, just as .Net does.
8979         Fixes #349174.
8980
8981 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8982
8983         * ListBox.cs: Both FindString and FindStringExact methods must do an
8984         case insensitive search, should allow the last valid index to be
8985         passed in the overload taking an initial index, and should also
8986         continue searching from the top back to the specified index when it
8987         reaches the bottom.
8988
8989 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8990
8991         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
8992         redraw issue, and allows RichTextBox to draw colored text even while
8993         disabled or readonly.
8994
8995 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8996
8997         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
8998         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
8999         and doesn't grey text in a disabled RichTextBox.
9000
9001 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9002
9003         * RichTextBox.cs: Apply patch from Luke Page that adds better support
9004         for many RTF commands: quad alignment, separate formatting for blocks
9005         inside groups, and ParDef support.  Makes the test case from bug #324589
9006         look much better.
9007
9008 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9009
9010         * LineTag.cs: Fix an error in the new Draw method that caused
9011         a crash when rendering the document on bug #324589.
9012
9013 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9014
9015         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
9016         TextControl.cs: Apply patch from Luke Page that adds support
9017         for URL links in RichTextBox.
9018         [Fixes enhancement #342516]
9019
9020 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
9021
9022         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
9023         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
9024
9025 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9026
9027         * ListBox.cs: When a key gets pressed, try to find a string
9028         if the key is a character or a digit.
9029         Fixes #343971.
9030
9031 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9032
9033         * TableLayoutPanel.cs: Remove some unused variables.
9034
9035 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9036
9037         * DateTimePicker.cs: Commit patch from Luke Page that ensures
9038         we don't end up at an invalid date when we click the up/down
9039         spinner to change the month or year.  Fixes bug #348682.
9040
9041 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9042
9043         * Application.cs: Calling Exit in 2.0 should chain to the
9044         Exit (CancelEventArgs) version so it can be cancelled.
9045         * Form.cs: Create a flag to allow raising the Closing
9046         events to be skipped.  We raise them once in Application.Exit
9047         and don't want to raise them again when the Form is actually
9048         closed.  [Fixes bug #349073]
9049
9050 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
9051
9052         * ToolStripDropDown.cs: Guard against an NRE when there
9053         hasn't been a mainform set in the application context.
9054         [Fixes bug #349108]
9055
9056 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9057
9058         * ListBox.cs: When SetBoundsCore gets called, besides
9059         calling UpdateScrollBars, update the value of
9060         last_visible_index, since we could need to show more items
9061         than before, and we need to let the paint routines know that.
9062         Fixes #344445.
9063
9064 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9065
9066         * ListView.cs: Add DesignerSerializationVisibility attribute to
9067         InsertionMark property.
9068         * ListViewItem.cs: Add same attribute to Position property.
9069
9070 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9071
9072         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
9073         is 2.0 only.
9074
9075 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
9076
9077         * ThemeWin32Classic.cs: Don't draw the background on a
9078         flat button if there is a background image.
9079         [Fixes bug #348649]
9080
9081 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9082
9083         * ListBox.cs: If we remove the item currently selected,
9084         remove it not only from SelectedItems, but also
9085         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
9086         the items count decreased and focused_item has bigger value than that.
9087
9088 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
9089
9090         * Control.cs: Perform our layout after we resize ourselves
9091         if we had to adjust our AutoSize.  Missed commit for bug
9092         #346246.
9093
9094 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
9095
9096         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
9097         we can provide an implementation of AutoSize.
9098         [Fixes bug #346246]
9099
9100 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9101
9102         * ListBox.cs: Add the internal overload Sort (bool paint),
9103         to indicate whether we actually need a paint or we will
9104         call Refresh ourselves. This way we don't request a paint
9105         _before_ having an updated and valid layout.
9106         Fixes #347233.
9107
9108 2007-12-12  Andreia Gaita <avidigal@novell.com>
9109
9110         * XPlatUIX11.cs: Send paint messages when updating a systray icon
9111         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
9112         properly invalidated. 
9113         Fixes #324237
9114
9115 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9116
9117         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
9118         don't simply assign it to our internal group field, but instead 
9119         use our Group property, which should do all the neccessary work
9120         required to support groups. Fixes an issue reported to me (mail) by a 
9121         guy using this new feature.
9122
9123 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
9124
9125         * Control.cs: Use Scale instead of ScaleControl to ensure the
9126         whole hierarchy gets scaled.
9127         [Fixes bug #347282]
9128
9129 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9130
9131         * DateTimePicker.cs: Don't set the internal MonthCalendar's
9132         Parent property.  Doing this causes the control to be hosted by
9133         the Form instead of being a popup window.
9134         [Fixes bug #347665]
9135
9136 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9137
9138         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
9139         at an index higher than Count, just use Add instead of Insert.
9140         [Fixes bug #347669]
9141
9142 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9143
9144         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
9145         DrawPictureBox, this is handled by Control.PaintBackground.
9146         [Fixes bug #347276]
9147
9148 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
9149
9150         * MenuAPI.cs: When process menu keys return true by default only if menu is
9151         active. Fixes bug #342892.
9152
9153 2007-12-09  Andreia Gaita <avidigal@novell.com>
9154
9155         * Control.cs: check if windows are actually mapped before
9156         trying to zorder. Fixes #342509, #346955
9157
9158 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9159
9160         * ListView.cs:
9161         * ListViewInsertionMark.cs:
9162         * ThemeWin32Classic.cs: Implement the drawing side of the
9163         new 2.0 ListView.InsertionMark property.
9164
9165 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
9166
9167         * CurrencyManager.cs: Silence some debug spew.
9168
9169 2007-12-07  Geoff Norton  <gnorton@novell.com>
9170         
9171         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
9172         masks for our children as well as siblings to avoid having to query
9173         Quartz for this information.
9174         * XplatUICarbon.cs: Implement a delegate based system to pass
9175         information to System.Drawing.  Implement Async methods.  Remove
9176         the hack for the resize thumb and imlpement a transparent Grow Box.
9177         Rework the messaging system to proplery create window's and messages,
9178         fixes TabControl.
9179
9180 2007-12-06  Andreia Gaita <avidigal@novell.com>
9181
9182         * X11Keyboard.cs: Use Xutf8LookupString to support international 
9183         characters under alternate codepages. Patch from #340878
9184
9185 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9186
9187         * ListView.cs: When doing layout computations, set position in the
9188         ListView instances (we cache the position just as .Net does).
9189         * ListViewItem.cs: New internal setter method for Position. Also set
9190         position field as also available in 1.1, since we are going to use it
9191         now in the common case.
9192
9193 2007-12-06  Andreia Gaita <avidigal@novell.com>
9194
9195         * Control.cs: When removing controls, get the actual container
9196         to notify about active control changes. Fixes 341314.
9197
9198 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9199
9200         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
9201
9202 2007-12-05  Andreia Gaita <avidigal@novell.com>
9203
9204         * Control.cs: When updating the zorder, ignore windows that are not
9205         mapped. Fixes #342509
9206
9207 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9208
9209         * ListViewItem.cs: Actually implement serialization on this class.
9210
9211 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
9212
9213         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
9214         LinkCollection. Spaces to tabs, and removed extra tabs.
9215
9216 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9217
9218         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
9219           tests to fail (hopefully).
9220
9221 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9222
9223         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
9224         the image margin so custom renderers can correctly place it.
9225
9226 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9227
9228         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
9229         so custom renderers can correctly place it.
9230
9231 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9232
9233         * Application.cs: Let WM_CHAR messages flow through to controls
9234         hosted in Strips.  [Fixes bug #343972]
9235
9236 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
9237
9238         * ToolStripManager.cs: Guard against an NRE I ran into.
9239
9240 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
9241
9242         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
9243         a Link is manually added to the Links collection, we need to set
9244         its owner, so it can invalidate properly.
9245         [Fixes bug #344012]
9246
9247 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9248
9249         * ListView.cs: When changing ListViewItem.Position (which calls
9250         ListView.ChangeItemLocation), invalidate not only the area
9251         corresponding to the main item, but also to the area occupied
9252         by the items being moved.
9253
9254 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9255
9256         * ListView.cs: When changing the position of a given item,
9257         don't use item bounds, but item areas (which includes the item spacing
9258         between them). Also, use first/last position if the requested
9259         position is outside bounds (as .Net does). Invalidate the previous and
9260         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
9261         in a specific position, instead of directly accessing Items collection
9262         (this is done to get the right item - remember an Item can have a
9263         different position in the grid than in the Items collection).
9264
9265 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9266
9267         * MessageBox.cs: Calculate text area instead of just top left, this rect 
9268         area will be used in DrawString. Fixes bug #343364.
9269
9270 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9271
9272         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
9273         screen width. Partially fixes bug #343364.
9274
9275 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9276
9277         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
9278         code inside recalculate, it makes code more simple.
9279
9280 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
9281
9282         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
9283         between update or add icon. Fixes bug #324344.
9284
9285 2007-11-21  Andreia Gaita <avidigal@novell.com>
9286
9287         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
9288         window manager, since that stretches the drawing area to include
9289         the window decorations, and they get hidden. Reverts r84444 and fixes
9290         #335849 and #342790 (mdi and pdn3 regression)
9291
9292 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9293
9294         * ListView.cs: When setting focused item, try to give focus to the
9295         previous one _only_ if the previous one remains valid. 
9296         Fixes #342504.
9297
9298 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
9299
9300         * Application.cs: Revert r89650, as it broke a common case to fix
9301         an obscure case.  Fixes bug #342606.
9302
9303 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
9304
9305         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
9306
9307 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
9308
9309         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
9310         alignment. [Fixes #324228]
9311
9312 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
9313
9314         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
9315         [Fixes bug #342123]
9316
9317 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
9318
9319         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
9320         it prevent problems when empty captions. [Fixes #342141]
9321
9322 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
9323
9324         * Label.cs: Use Size instead of None.  Fixes bug #342077.
9325
9326 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9327
9328         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
9329
9330 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
9331
9332         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
9333         but there isn't a MdiContainer.
9334         [Fixes bug #342358]
9335
9336 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
9337
9338         * TextControl.cs: Don't recalculate document if the recalc_start and
9339         recalc_end hasn't changed.
9340         [Fixes bug #342505]
9341
9342 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
9343
9344         * DataGridViewTextBoxCell.cs: Removed CWL.
9345
9346 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9347
9348         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
9349
9350 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
9351
9352         * TextControl.cs: Missed some code for bug 341534 to trigger a
9353         recalculation when the font changes.
9354
9355 2007-11-16  Andreia Gaita <avidigal@novell.com>
9356
9357         * Control.cs: When updating the zorder, check if the child to update is
9358         the same control that is set to always be on top (i.e., scrollbars), and 
9359         just put it on top directly. Fixes BadMatch error on pdn3
9360
9361 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9362
9363         * ListView.cs: Throw the needed exceptions for FindNearestItem.
9364
9365 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
9366
9367         * Control.cs: Don't perform a new layout when a label changes its text,
9368         cause label handles its own autosizing.
9369         [Fixes bug #342077]
9370
9371 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9372
9373         * ListView.cs: Implement 2.0 FindNearestItem methods.
9374
9375 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
9376
9377         * ToolStripPanel.cs: Make Join at least add the control to the panel,
9378         even if the rest of what Join does isn't supported.  Add some more
9379         support for vertical toolbars.
9380         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
9381         [Fixes the application breaking parts of bug #341998]
9382
9383 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
9384
9385         * ToolStripItem.cs: When determining if we have a check/image margin,
9386         we need to look at ShowCheckMargin as well as ShowImageMargin.
9387
9388 2007-11-15  Geoff Norton  <gnorton@novell.com>
9389
9390         * XplatUIOSX.cs: Rename to...
9391         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
9392         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
9393
9394 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
9395
9396         * KeysConverter.cs: The default values should be an array of Keys, not
9397         strings.  Also, the array has more values for 2.0.
9398         [Fixes bug #341851]
9399
9400 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9401
9402         * Application.cs: Change ExecutablePath to use 
9403         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
9404         [Fixes bug #323552]
9405
9406 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9407
9408         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
9409         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
9410         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
9411         be ignored.  Create a new GetLineEnding that can specify which types of
9412         line endings to look for.  On Insert, only create new lines for \n and \r\n.
9413         [Fixes bug #324274]
9414
9415 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9416
9417         * TextBoxBase.cs: As we loop through each line changing the font, tell
9418         the document that the line needs to be recalculated.  Fixes bug #341534.
9419
9420 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
9421         [Another round of refactoring]
9422         * Line.cs: Add DeleteCharacters.
9423         * LineTag.cs: Add Delete.
9424         * TextBoxBase.cs: Update to use new methods.
9425         * TextControl.cs: Refactor the Delete* methods.
9426
9427 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
9428
9429         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
9430         the patch. [Fixes #324856]
9431
9432 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9433
9434         * ListView.cs:
9435         * ListViewItem.cs: Add an initial implementation of
9436         2.0 ListViewItem.Position getter.
9437
9438 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9439
9440         * ListView.cs: Add a reordered_items_indices array, to allow us
9441         to have a different sorting than that of Items (the sorting in Items
9442         could not match the actual sorting in screen). This is needed to
9443         implement a pair of 2.0 features.
9444         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
9445         actual position in the ListView grid, since it could have a position
9446         different than its Index (position in ListViewItemCollection). 
9447
9448 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
9449
9450         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
9451         not draw partial lines.
9452         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
9453         LineLimit flag from the base is preserved.
9454         Fixes the windows part of bug #338965.
9455
9456 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
9457
9458         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
9459         so that it can be canceled in KeyPress.
9460         Fixes bug #340078.
9461
9462 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9463
9464         * ListView.cs: In ItemControl, reset mouse-handling related
9465         fields even if we dont' have items (we still should reset them when
9466         we had items but then called Items.Clear). Partially based in a patch
9467         by George Giolfan.
9468         Fixes #338399.
9469
9470 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
9471
9472         * Application.cs: In ProductVersion first try AssemblyFileVersion
9473         before falling back to assembly version. Fixes bug #339787.
9474
9475 2007-11-08  Andreia Gaita <avidigal@novell.com>
9476
9477         * HtmlElement.cs: Implement InnerText setter.
9478         * WebBrowserBase.cs: Implement Navigated event support.
9479         Add flag to track when the browser "document" is ready to be retrieved.
9480         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
9481         Make sure browser document is ready before retrieving it.
9482         Clean up cached objects (document) when moving to a new page through
9483         any of the navigation methods.
9484         Use the new Mono.WebBrowser.INavigation interface to control navigation.
9485         Implement OnNavigated event.
9486
9487 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
9488
9489         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
9490         DrawLinkLabel, this is handled by OnPaintBackground.
9491         Fixes bug #339565, part II.
9492
9493 2007-11-07  Andreia Gaita <avidigal@novell.com>
9494
9495         * Control.cs: Revert r88915. Selecting text on a textbox depends on
9496         getting a Select call on click, so this call needs to be here for now.
9497         Unfixes #325809
9498
9499 2007-11-07  Geoff Norton  <gnorton@novell.com>
9500
9501         * OSXStructs.cs: Add the kEventClassApplication constants.
9502         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
9503         application is deactivated otherwise Menu overlays linger on top of
9504         other application windows.
9505
9506 2007-11-07  Geoff Norton  <gnorton@novell.com>
9507
9508         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
9509         dont support cursors yet anyways.  This allows Reflector to run.
9510
9511 2007-11-07  Geoff Norton  <gnorton@novell.com>
9512
9513         * XplatUIOSX.cs: Implement DragSize.
9514
9515 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9516
9517         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
9518         ItemControl, request the focus, as .Net does. This is needed after 
9519         Control does not request focus anymore when it receives a
9520         WM_LBUTTONDOWN.
9521
9522 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
9523
9524         * Label.cs: Make DrawImage internal so it can be called from Theme code.
9525         Remove the DrawImage call from OnPaint.
9526         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
9527         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
9528         but before we draw the text for DrawLabel and DrawLinkLabel.
9529         Fixes bug #339565.
9530
9531 2007-11-05  Andreia Gaita <avidigal@novell.com>
9532
9533         * Control.cs: Remove select call on click. Fixes #325809
9534
9535 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9536
9537         * ListViewItem.cs: Add 2.0 Position property getter.
9538
9539 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9540
9541         * ListView.cs: Add 2.0 BackgroundImageTiled property.
9542         Also, to make it work properly, change item's BackColor and
9543         BackgroundImageLayout as needed.
9544         * ThemeWin32Classic.cs: Don't fill any background rectangle 
9545         in ListView.ItemControl when drawing items; just let the Control
9546         base implementation fill it.
9547
9548 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9549
9550         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
9551         as well as adding a custom 'dummy' Converter, as .net does.
9552
9553 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9554
9555         * PropertyGridView.cs: When clicking drop-down button,
9556         select an index in the listbox only if our standard values collection 
9557         has one or more items.
9558
9559 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9560
9561         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
9562         property.
9563
9564 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
9565
9566         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
9567         the value is not changed. This ensure a pushed button remains in that
9568         state when clicked again. When switching the value of PropertySort
9569         between Categorized and CategorizedAlphabetical, do not update the
9570         grid items and do not fire a PropertyChangedEvent. When clicking the
9571         sorting buttons, do not modify the PropertySort value when switching
9572         between Categorized and CategorizedAlphabetical but only update the
9573         button state.
9574
9575 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
9576
9577         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
9578         formatting.
9579         * PropertyGrid.cs: Also put Categorized button in pushed state when
9580         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
9581         for help description label.
9582
9583 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9584
9585         * ListView.cs: When calculating the biggest item for a given column,
9586         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
9587         the item's width.
9588
9589 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
9590
9591         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
9592         value for PropertySort on 1.0 profile. PropertySortChanged event
9593         should only be fired on 2.0 profile. Fixed NullReferenceException
9594         in UpdateSortLayout when PropertyGrid contains no items.
9595
9596 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
9597
9598         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
9599         [Fixes bug #338554]
9600
9601 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9602
9603         * ListViewItem.cs: Implement 2.0 IndentCount property.
9604
9605 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9606
9607         * X11Dnd.cs: When sending status in a dnd operation, compare current
9608         effect with the 'allowed' field instead of 'drag_data.Allowed', since
9609         the later is only created when a Winforms application is both the
9610         source and the target, but not when we are the target only.
9611         Fixes part of #324251.
9612
9613 2007-11-01  Geoff Norton  <gnorton@novell.com>
9614
9615         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
9616         order of Z-Order.
9617         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
9618         children out of the drawing view on mac.
9619         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
9620         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
9621         
9622 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
9623
9624         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
9625         on the non-hosted-control part of it shouldn't do anything.
9626         Fixes part of bug #327498.
9627
9628 2007-11-01  Andreia Gaita <avidigal@novell.com>
9629
9630         * WebBrowserBase.cs: revert previous change, resize can be called anytime
9631
9632 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
9633
9634         * Application.cs: When a toolstrip has the keyboard input loop, let messages
9635         it does not use flow through to controls that are hosted in menus.
9636         Same with mouse clicks.
9637         * Form.cs: Don't close all menus on click if the click is on a
9638         control hosted in a menu.
9639         Fixes part of bug #327498, and part of bug #325969.
9640
9641 2007-10-31  Andreia Gaita <avidigal@novell.com>
9642
9643         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
9644
9645 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
9646
9647         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
9648         Addresses an issue raised in bug #336218.
9649
9650 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
9651
9652         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
9653         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
9654
9655 2007-10-30  Andreia Gaita <avidigal@novell.com>
9656
9657         * ContainerControl.cs: Check if the active control is a
9658         child of a removed control and update active_control accordingly.
9659         Fixes #329718
9660
9661 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9662
9663         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
9664         or the MaxDate.  Fixed bug #337693.
9665
9666 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9667
9668         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
9669         after calling SetWindowLong for a form, to force an immediate NC refresh.
9670         Fixes first part of bug #325150.
9671
9672 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9673
9674         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
9675         simple.  Fixes the last part of bug #322668.
9676
9677 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9678
9679         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
9680         needs to be TopMost as well, or else the MessageBox is under the form.
9681         Patch by George fixes bug #325300.
9682
9683 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9684
9685         * X11Dnd.cs: When starting a new drag operation, reset the static
9686         'dropped' field to false (previously the implementation didn't reset
9687         it and got confused after the first drag).
9688         Fixes #325071.
9689
9690 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9691
9692         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
9693         items instead of re-creating them all. For this purpose we now cache
9694         both CategoryGridEntry items and the GridEntries for the main object's
9695         properties.
9696         * GridItem.cs: Make SetParent method abstract.
9697         * GridEntry.cs: Override the SetParent method (already there, but now
9698         we override it).
9699         Fixes #324866.
9700
9701 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9702
9703         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
9704         depending on its depth (as .Net does). Update the needed values in
9705         MouseDown handler. Also draw the plus/minus rect after the label,
9706         so we don't draw on top of it.
9707
9708 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
9709
9710         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
9711         processed by forms or controls when menu is active. [Fixes #333548]
9712
9713 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9714
9715         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
9716         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
9717         focus on mouse over.
9718
9719 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9720
9721         * TextControl.cs: Code cleaning, simplifying.
9722
9723 2007-10-24  Geoff Norton  <gnorton@novell.com>
9724
9725         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
9726         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
9727
9728 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9729
9730         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
9731         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
9732
9733 2007-10-24  Andreia Gaita <avidigal@novell.com>
9734
9735         * SendKeys.cs: apply jpobst's patch to bug #332409
9736
9737 2007-10-23  Andreia Gaita <avidigal@novell.com>
9738
9739         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
9740         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
9741         for some reason
9742
9743 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9744
9745         * PropertyGridView.cs: If a property has an UIEditor available,
9746         make the drop-down/editor button available only if the property
9747         is _not_ read only.
9748
9749 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9750
9751         * PropertyGridView.cs: Don't make the grid item textbox 
9752         editable when a drop-down control is available, but 
9753         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
9754         true. The same bur the color of the grid item value's label.
9755
9756 2007-10-22  Geoff Norton  <gnorton@novell.com>
9757
9758         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
9759         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
9760         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
9761         driver.  Padd the bottom of all real windows so the resize thumb doesn't
9762         obscure scroll/status bars.
9763
9764 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
9765
9766         * WindowsFormsSection.cs: Implement.
9767
9768 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9769
9770         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
9771         closed see #325434 patch.
9772
9773 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9774
9775         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
9776         see #325434 patch.
9777
9778 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9779
9780         * PropertyGridView.cs: When showing the textbox for a grid item,
9781         have two local variables to store the read-only and non-editable
9782         status of a grid item (we were previously using just one variable
9783         to do this, when actually they are slightly different).
9784         Fixes part of #325023.
9785
9786 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9787
9788         * PropertyGridView.cs: When showing a drop-down list, try to get the
9789         values using TypeConverter.ConvertTo (to convert to a string). Fixes
9790         part of #325023.
9791
9792 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9793
9794         * PropertyGrid.cs: When updating a property and populating sub grid
9795         items, remove the previous ones, and invalidate the specific area.
9796         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
9797         area behind a grid item.
9798         * GridItemCollection.cs: Add an internal Clear method, to allow us to
9799         clean the items if needed (specially for controls implementing 
9800         ICustomTypeDescriptor and returning a variable number of properties).
9801         Fixes #324865.
9802
9803 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
9804
9805         * TextControl.cs: Clean up and document the Insert function.
9806
9807 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9808
9809         * TextControl.cs: Make sure we know our start point for updating the view
9810         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
9811         update the view.
9812
9813 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9814
9815         * ListView: Couple of corcompare fixes.
9816
9817 2007-10-17  Geoff Norton  <gnorton@novell.com>
9818
9819         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
9820         the title caption of real window.
9821
9822 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9823
9824         * ErrorProvider.cs: Add the error provider's internal window to a 
9825         containercontrol when the parent changes.  [Fixes bug #329714]
9826
9827 2007-10-17  Geoff Norton  <gnorton@novell.com>
9828
9829         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
9830         When we make a new window; restore the old active window - fixes dialogs.
9831
9832 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9833
9834         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
9835         when modifying a property, and if found then invalidate as
9836         requested.
9837         Fixes part of #324865.
9838
9839 2007-10-17  Geoff Norton  <gnorton@novell.com>
9840
9841         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
9842         highly experimental.  Fixed coordinate translation.  Fixed window locations.
9843         Initial support for clipping. Implemented NC areas and menus.  Support for
9844         launching from command line from Will Johansson (wjohansson@atacomm.com).
9845         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
9846         wjohansson@atacomm.com)
9847         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
9848         Hwnds now track the existence of all of their children for Mac clipping.
9849     * XplatUI.cs: Re-enabled the native driver on the Mac.
9850
9851 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9852
9853         * Line.cs: Move the InsertString function to here.
9854         * TextControl.cs: Cleanup some duplicate code, move some InsertString
9855         functionality to Line.
9856
9857 2007-10-17  Geoff Norton  <gnorton@novell.com>
9858
9859         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
9860
9861 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
9862
9863         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
9864         always setting value to true.
9865         * Form.cs: When changing AcceptButton, notify new and original button.
9866
9867 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
9868
9869         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
9870         a custom control that implements IButtonControl instead of an actual
9871         button.  [Fixes bug #334244]
9872
9873 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
9874
9875         * Form.cs: Change SelectActiveControl to internal, we need to call it in
9876         MdiWindowManager.
9877         
9878         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
9879         active control when activate a new mdi window.
9880         
9881         [Fixes bug #330495]
9882
9883 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
9884
9885         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
9886         is already added.
9887         [Fixes bug #333617]
9888
9889 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9890
9891         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
9892         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
9893         so we always recalculate the whole document instead of just the new part.
9894         [Fixes bug #325082]
9895
9896 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9897
9898         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
9899         when the mouse was to the left of the first character in the line.
9900
9901 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9902
9903         * TextBox.cs, TextBoxBase.cs: When setting the document's password
9904         character, use the property instead of the variable so that the
9905         UseSystemPasswordChar property is taken into account.
9906         [Fixes bug #333748]
9907
9908 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9909
9910         * FolderBrowserDialog.cs: When a node is right clicked and the "New
9911         folder" contex menu appears, actually add the new folder to it, even
9912         if the node is not currently selected. Still use SelectedNode in case 
9913         there wasn't found a node under the pointer.
9914         Fixes #325452.
9915
9916 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9917
9918         * ListViewItem.cs: When retrieving the focused state, the index check
9919         should be done only when ListView is in virtualmode, as it is an
9920         expensive check for normal mode.
9921
9922 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9923
9924         * ListViewItem.cs: Make the focus state information be stored
9925         in the ListView, not in the items. This is done to match the MS
9926         behaviour for items that are not yet part of a ListView control;
9927         besides that, since just one item can be focused at the same time,
9928         we save a little space in our items.
9929         Fixes part of #331643.
9930
9931 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9932
9933         * ComboBox.cs: When focus is lost, deselect the text. When setting
9934         text of control, select all text. Do not hide selection when control
9935         does not have focus. Fixes bug #333663.
9936
9937 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9938
9939         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
9940         instead of ArgumentException when SelectionLength is set to negative
9941         value. Added same check to SelectionStart. Code formatting.
9942
9943 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9944
9945         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
9946         or SelectionStart. Code formatting.
9947
9948 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9949
9950         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
9951         indicating that there was not a previous drag-and-drop operation going
9952         on.
9953         Fixes part of #325071.
9954
9955 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9956
9957         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
9958         AllowedEffect, don't let the drop operation happen. 
9959         Fixes #32580.
9960
9961 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9962
9963         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
9964
9965 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9966
9967         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
9968         is called.
9969
9970 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9971
9972         * Line.cs: Add a method that finds the tag that contains an x-coord.
9973         * LineTag.cs: Add a method that finds the character at an x-coord using
9974         a binary search, the old way was a linear search.
9975         * TextControl.cs: Change FindCursor to use the above new methods.
9976
9977 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9978
9979         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
9980         value different than AllowedEffect). This should be possible to
9981         indicate that dragging is not possible in some control/area.
9982
9983 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
9984
9985         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
9986         descent internally when font changes instead of outside code being responsible
9987         for setting it.
9988         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
9989         instead of accessing internal variables.
9990
9991 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
9992
9993         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
9994         remove special treatment for ArrangeIcons since it is already arranged.
9995
9996 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9997
9998         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
9999         the Win32 backend uses Color.
10000         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
10001         Refactor to store a Color instead of a Brush for Color.
10002
10003 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10004
10005         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
10006         away.  I didn't realize I needed this when I refactored these earlier.
10007
10008 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10009
10010         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
10011         store a Color structure and use the ResPool for back color instead of
10012         holding onto brushes.
10013
10014 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10015
10016         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
10017         [Fixes bug #325592]
10018
10019 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10020
10021         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
10022         to recalculate its size.  Fixes a part of bug #331052.
10023
10024 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10025
10026         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
10027         button.  Fixes a part of bug #331052.
10028
10029 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10030
10031         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
10032         the CreateParams.
10033         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
10034         decorations.
10035         [Fixes bug #330986]
10036
10037 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10038
10039         * TextBoxTextRenderer.cs: Don't make this a static class, as static
10040         doesn't exist in 1.1.  (Thanks jb!)
10041
10042 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10043
10044         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
10045         class to allow us to use different backends on different platforms.
10046         Linux uses the current [Draw|Measure]String backend.  Windows uses
10047         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
10048         of GDI+.  This leads to better looking text and more accurate measurements
10049         on Windows, fixing many of the reported issues.
10050         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
10051
10052 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10053
10054         * FolderBrowserDialog.cs: When running on Windows,
10055         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
10056         since we must match both "C:" and "C:\" forms. A little hackish, but
10057         works.
10058         Fixes #325247.
10059
10060 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10061
10062         * ListView.cs: When calling EndEdit (after editing an item),
10063         create a new instance of LabelEditEventArgs to keep clean the fields
10064         in case we get a new call to BeginEdit; also do Application.DoEvents
10065         to have focus in synch. This is a fix similar to TreeView's #325244.
10066
10067 2007-10-07  Andreia Gaita <avidigal@novell.com>
10068
10069         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
10070         * WebBrowserBase.cs: Added dialog support, calling the
10071           WebBrowserDialogs classes for each specific dialog type.
10072
10073 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10074
10075         * ListView.cs: When the last item is focused and is removed,
10076         move the focus to the previous item (in Items order). This is what MS
10077         does.
10078         Fixes #330415.
10079
10080 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10081
10082         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
10083         instead of the opposite (RemoveAt call Remove). This is a better
10084         approach since we don't need to to a pair of traversals when using
10085         RemoveAt.
10086
10087 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10088
10089         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
10090         check that the node actually has nodes, and if not, move to the
10091         parent node instead. 
10092         Fixes #325265.
10093
10094 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10095
10096         * TreeView.cs: Move the previous change to the general case (to
10097         call Application.DoEvents in cases where the method was called by
10098         different places).
10099
10100 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10101
10102         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
10103         call Application.DoEvents. This is neccessary when we get a call to
10104         BeginEdit from an AfterLabelEdit handler, because the focus always
10105         goes to the TreeView, even if we try to give it to our
10106         LabelEditTextBox. The call do Application.DoEvents seems to
10107         synchronize the focus, basically.
10108         Fixes #325244.
10109
10110 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10111
10112         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
10113         should be false. This also removes some nasty recursive paths. Fixes
10114         part of #325244.
10115
10116 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
10117
10118         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
10119         state to normal. Also resize window when cascading. Fixes #325433. 
10120
10121 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
10122
10123         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
10124         DefaultForeColor, as drawing empty colored lines isn't very useful.
10125         [Fixes the not drawn lines part of bug #324358]
10126
10127 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
10128
10129         * TextControl.cs: Move Line and LineTag classes into separate files to
10130         make things easier to find.
10131         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
10132         * RichTextBox.cs: Capitalize LineTag.Length property access.
10133         - This is purely an organizational/formatting change, no logic changed. -
10134
10135 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10136
10137         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
10138         text is empty.
10139
10140 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10141
10142         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
10143         text is empty.
10144
10145 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10146
10147         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
10148         prevent calling of OnBackColorChanged. Fixes #325321.
10149
10150 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10151
10152         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
10153         because control can be disabled because owner is disabled.
10154
10155 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
10156
10157         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
10158         string.Empty, test failed from previous change.
10159
10160 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
10161
10162         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
10163         is null, not String.Empty.  See bug #323038.
10164
10165 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
10166
10167         * TextControl.cs: Change the margins to match MS a little better.
10168         Still not perfect for X11 due to some DrawString differences, but
10169         is still an improvement over the old stuff.
10170         Partially fixes #324467.
10171
10172 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10173
10174         * FolderBrowserDialog.cs: When using MyComputer as 
10175         RootFolder, let absolute paths be considered as valid ones. Also, use
10176         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
10177         for Windows compatibility.
10178         Partially fixes #325247.
10179
10180 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10181
10182         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
10183         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
10184         method, since it causes the dialog to not select folders directly
10185         under the root path (when setting SelectedPath property).
10186
10187 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10188
10189         * TreeNode.cs: When calling Expand/Collapse and need to call 
10190         ExpandBelow/CollapseBelow respectively, take into account
10191         partially visible nodes (previously Expanding/Collapsing
10192         a partially visible node in the bottom was not updating its +- sign).
10193
10194 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10195
10196         * TreeView.cs: When calling Expand on a TreeNode, and we need to
10197         expand nodes below (ExpandBelow), scroll the entire Viewport
10198         area if the node is above it and not visible (instead of scrolling
10199         the area from node's Bottom, which applies only when the node is
10200         visible).
10201         Fixes #325266.
10202
10203 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10204
10205         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
10206         node in the bottom area (as .Net does). This is done to preserve the
10207         scroll position when ExpandAll is called before handle is created for
10208         the 1.1 profile (bottom area, as opposed to top area in 2.0).
10209         Fixes #324103.
10210
10211 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10212
10213         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
10214         bottom area if we are in fact not using the vertical scroll bar.
10215         Fixes #324824.
10216
10217 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
10218
10219         * Control.cs: Comment out a double buffering optimization that doesn't
10220         take into account invalidates created in OnPaint, causing the control
10221         to never be redrawn.  It would take quite a bit of work to work around
10222         this, but I left it commented with an explanation for later possible
10223         optimization.
10224         [Fixes bug #328681]
10225
10226 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
10227
10228         * Control.cs: Ask parent to perform a layout if control is AutoSize and
10229         the text changes.
10230         * RadioButton.cs: Implement GetPreferredSizeCore.
10231         [Fixes bug #328672]
10232
10233 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
10234
10235         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
10236         corcompare stuffs.
10237
10238 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
10239
10240         * Application.cs: Move the sync context stuff to Run instead of RunLoop
10241         so that it doesn't get uninstalled on modal forms.
10242         * Control.cs: Install a sync context when a control is created.
10243         * WindowsFormsSyncronizationContext.cs: Create a private static control
10244         to invoke on.  This is easier than trying to find a created control we
10245         can use.
10246         [Fixes bug #327608]
10247
10248 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
10249
10250         * Application.cs: Install a WindowsFormsSynchronizationContext in the
10251         run loop, and uninstall it when done.
10252         * WindowsFormsSynchronizationContext.cs: Implement.
10253         [Fixes the common case in bug #327608]
10254
10255 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
10256
10257         * DataGridViewCellCollection.cs: Added argument checks for indexers.
10258         Use case-insensitive lookup of column name in indexer. Code
10259         formatting.
10260
10261 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10262
10263         * TreeNode.cs: When collapsing or expanding a node, check whether its
10264         change will affect the visible area (we were previously doing a
10265         IsVisible check, but that check is not enough since children nodes
10266         could be still visible). Fixes part of #325266.
10267
10268 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
10269
10270         * TreeView.cs: Always select the first node when the TreeView gets
10271         focus if there is no currently selected node.
10272         [Fixes bug #324279]
10273
10274 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
10275
10276         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
10277         node being selected is null.
10278         [Patch from Yves Bastide fixes bug #326858]
10279
10280 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10281
10282         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
10283         whether all the parent nodes are expanded.
10284         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
10285         call RecalculateVisibleOrder if all previous nodes are expanded.
10286         Before that we were doing a IsVisible check, but sometimes the node
10287         is not in the visible area, but _should_already be ready, because of
10288         all previous nodes are expanded. Fixes #325259.
10289
10290 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10291
10292         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
10293         portion of the item is clicked.
10294
10295 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10296
10297         * TextControl.cs: Do not tell the system to move the cursor if the
10298         textbox isn't focused.  Fixes part of bug #322668.
10299
10300 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10301
10302         * ComboBox.cs: When there are no items, do not show the dropdown if
10303         the down arrow is clicked.  Fixes part of bug #322668.
10304
10305 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10306
10307         * ToolStripComboBox.cs: Manually set the size of this control in the
10308         constructor, as it doesn't seem to be the same as DefaultSize.
10309         Fixes a failing monobuild test.
10310
10311 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
10312
10313         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
10314         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
10315
10316 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
10317
10318         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
10319         Desktop.  This lets it work for people who have moved their desktops
10320         from the default location on windows.  For people who have not, both
10321         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
10322
10323 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10324
10325         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
10326         but when the base constructor sets this, the control is null.  Set it
10327         again in the constructor.  Fixes a failing monobuild test.
10328
10329 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10330
10331         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
10332         get called.
10333         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
10334         called.
10335
10336 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10337
10338         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
10339         will handle it themselves.
10340         * ToolStripItem.cs: When deciding what the text of a tooltip should
10341         be, use the Text property instead of the text field.
10342         * ToolStripTextBox.cs: Handle tooltips.
10343         [Fixes bugs #325417 and #325973]
10344
10345 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10346
10347         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
10348         left click.  Fixes the easy part of bug #325969.
10349
10350 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10351
10352         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
10353         bug #325406, but set a minimum for StatusStrip to 22 to keep
10354         bug #325390 fixed.  I think this minimum would have been figured
10355         up automatically if the grip was actually a ToolStripItem, but it
10356         currently is not.
10357
10358 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10359
10360         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
10361         as this is apparently the actual value used by .Net. Also apply
10362         ItemPadding in Details view only, and decrease the general width padding,
10363         to have only the needed. This should fix #324340 in Windows too.
10364
10365 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10366
10367         * ListViewItem.cs: Don't Invalidate item if parent is inside
10368         a BeginUpdate/EndUpdate block. This prevents to have differences
10369         between the ListView and items state, as well as avoid some exceptions
10370         there.
10371         * ListView.cs: Make 'updating' field internal.
10372
10373 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10374
10375         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
10376         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
10377         size if appropriate.
10378         Fixes reopened bug #325414.
10379
10380 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10381
10382         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
10383         * ToolStripItem.cs: Invalidate before and after our new autosize when
10384         text changes.
10385         Fixes reopened bug #325390.
10386
10387 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10388
10389         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
10390         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
10391         #325044.
10392
10393 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10394
10395         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
10396
10397 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10398
10399         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
10400         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
10401         #82734.
10402
10403 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
10404
10405         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
10406         item to select when the ToolStrip is selected.
10407         * ToolStripControlHost: Realign the control when the bounds or visibility
10408         change.
10409         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
10410         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
10411         preferred height.
10412         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
10413         base.OnPaint.  Was causing text not to be drawn.
10414
10415 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
10416
10417         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
10418
10419 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10420
10421         * TreeView.cs: When creating the label edit text box,
10422         set is initially to Visible = false. This is done to
10423         prevent a confusion in the layout which makes it to lose
10424         focus when shown the first time. Fixes part of #82592.
10425
10426 2007-09-13 Andreia Gaita <avidigal@novell.com>
10427
10428         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
10429
10430 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10431
10432         * ToolStrip.cs: Take Margin into account when calculating preferred
10433         size.  Also, allow preferred size to get smaller than the explicit
10434         size.
10435         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
10436         First step towards fixing bug #82747.
10437
10438 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10439
10440         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
10441         full row select background over the plus/minus glyph.  Also, turn
10442         off the focus rectangle for full row select since MS doesn't seem
10443         to ever paint it.  [Fixes bug #81839]
10444
10445 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10446
10447         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
10448         This was causing keyboard opened dropdowns to lose focus.
10449         [Fixes bug #82803]
10450
10451 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10452
10453         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
10454         ClientRectangle instead.  [Fixes bug #82838]
10455
10456 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10457
10458         * SplitContainer.cs: We can't reset Visible on every layout because
10459         someone may have set Visible = false explicitly on a SplitterPanel.
10460         Make sure when we switch orientation the SplitterDistance does not
10461         change.  Fixes two failing tests.
10462
10463 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10464
10465         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
10466         TextRenderer, since the latter is only available in 2.0.
10467
10468 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
10469
10470         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
10471         * SplitContainer.cs: Implement FixedPanel layouting.
10472
10473 2007-09-12  Andreia Gaita  <avidigal@novell.com>
10474
10475         * WebBrowserBase.cs: setup shutdown routine
10476
10477 2007-09-12  Andreia Gaita  <avidigal@novell.com>
10478
10479         * Application.cs: Let keyboard events that are targetted 
10480                 to non-mwf windows hosted inside mwf (as in, webbrowser),
10481                 propagate properly. Fixes keyboard handling on the webbrowser.
10482
10483 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10484
10485         * ListView.cs: When handling MouseUp event and we are 
10486         highligting a node with the mouse right button, don't trigger
10487         Before/AfterSelecting event, since we are not actually selecting
10488         the node.
10489
10490 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10491
10492         * TreeView.cs: When editing a node, modify the edit text box
10493         depending on the text length (as you are typing), like MS does.
10494
10495 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
10496
10497         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
10498         Override GetPreferredSizeCore to perform calculations.  Remove custom
10499         autosize logic.  [Fixes bug #82739]
10500
10501 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
10502
10503         * TextBoxBase.cs: Modified should default to false.
10504
10505 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10506
10507         * Control.cs: Update the anchoring distances even when layout is supspended.
10508         Patch provided by George fixes bug #82805.
10509
10510 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10511
10512         * Control.cs: Provide a setter for ExplicitHeight.
10513         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
10514         remove the hacks in here for requested_height.
10515         [Fixes bug #82749]
10516
10517 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10518
10519         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
10520         Maximum to lower that its current Value caused an ArgumentException by setting
10521         the Value to the new Maximum.
10522
10523 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10524
10525         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
10526         handle moves to the closest tick when it is being dragged.
10527         [Fixes bug #82751]
10528
10529 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10530
10531         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
10532         can't let them count as real items when calculating where to merge in the
10533         user's items.  [Fixed bug #82786]
10534
10535 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10536
10537         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
10538         who want to add a menu item directly onto a toolstrip.
10539         [Fixes bug #82775, part II]
10540
10541 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10542
10543         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
10544         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
10545         don't set it to available.
10546         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
10547         [Fixes bug #82727, part II]
10548
10549 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10550
10551         * StatusStrip.cs: Change item placement to None if not visible.
10552         * ToolStripItem.cs: Invalidate when InternalVisible changes.
10553         These should have been committed to fix 82723, but I missed them.
10554
10555 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10556
10557         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
10558         Click, and that it is only called once.
10559         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
10560         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
10561         dropped down.
10562         [Fixes bug #82775]
10563
10564 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10565
10566         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
10567         to match .Net.
10568         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
10569         instead of 8, just like above. Partially fixes #82734.
10570
10571 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10572
10573         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
10574         fixes #82734.
10575
10576         * ListView.cs: Remove extra space between rows in Details view (match
10577         .Net). 
10578         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
10579         the DefaultFont.
10580
10581 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
10582
10583         * Application.cs: Modified ProductVersion to return value of
10584         AssemblyInformationVersion if available, and fallback to assembly
10585         version. Fixes bug #82746. Code formatting.
10586         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
10587         instead.
10588
10589 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10590
10591         * Control.cs: When updating ZOrder for a child control,
10592         take into account the implicit ones (we need it in our controls
10593         using them). Fixes #82642.
10594
10595 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
10596
10597         * ToolStripItem.cs: Add support for animated images.
10598         [Fixes bug #82726]
10599
10600 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
10601
10602         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
10603         visible.  [Fixes bug #82727]
10604
10605 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10606
10607         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
10608         so we repaint using the new size.  [Fixes bug #82723]
10609
10610 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10611
10612         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
10613         option.  [Fixes bug #81779]
10614
10615 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10616
10617         * TreeView.cs: Override HandleClick because the StandardClick style is
10618         set to false.  According to MSDN (and testing), the click events should
10619         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
10620
10621 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10622
10623         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
10624         the border will disappear.  Fixes reopened #82653.
10625
10626 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10627
10628         * Control.cs: If the control is autosize, and its preferred size changes
10629         when it lays out its children, tell its parent so it can be re-layed out.
10630         Fixing some of the fallout from r85433.
10631
10632 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10633
10634         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
10635         and CheckBox share some code.
10636
10637 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10638
10639         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
10640         the TrackBar, not every mouse move.  [Fixed bug #82718]
10641
10642 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10643
10644         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
10645         under 2.0 rendering.  [Fixes bug #82657]
10646
10647 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10648
10649         * TreeView.cs: If we found a TreeNode to display a context menu, but
10650         it doesn't have one to show, let the TreeView display its menu
10651         instead.  [Fixes bug #82680]
10652
10653 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10654
10655         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
10656         OnPaintInternal instead.  Give the internal TextBox a Border property
10657         so it can draw itself more correctly.  [Fixes bug #82653]
10658
10659 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
10660
10661         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
10662
10663 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10664
10665         * ComboBox.cs: Adjust combobox button state to reflect current state when
10666         back to enabled = true. Fixes first issue of #82654.
10667
10668 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10669
10670         * Control.cs: Fix last patch regression, prevent forms to update zorder when
10671         setting visible property.
10672
10673 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10674
10675         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
10676         fix zorder for controls initially created as non visible. Fixes #82667.
10677
10678 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
10679
10680         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
10681         mimic win32 look. Fixes #82656.
10682
10683 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
10684
10685         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
10686         Stubs for new net 3.5 classes.
10687
10688 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10689
10690         * ListViewItem.cs: In ListViewItemCollection operations calculate
10691         Layout for owner as well as invalidate it. Fixes part of #82642.
10692
10693 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
10694
10695         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
10696         when returning Enabled.  [Fixes bug #82651]
10697
10698 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
10699
10700         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
10701
10702 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10703
10704         * ListView.cs: Put item padding info in a single place
10705         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
10706         columns again.
10707         * ThemeWin32Classic.cs:
10708         * Theme.cs: Likewise.
10709
10710 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10711
10712         * ListView.cs: When a ListViewSubItem instance is invalidated,
10713         invoke Invalidate on parent ListViewItem, not parent ListView.
10714         Fixes #81570.
10715
10716 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10717
10718         * ListView.cs, ListViewItem.cs: corcompare stuffs.
10719
10720 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10721
10722         * BindingMemberInfo.cs: Implement == and != operators.
10723
10724 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10725
10726         * HtmlElementEventArgs.cs: Implement properties.
10727
10728 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10729
10730         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
10731
10732 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10733
10734         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
10735         Add (string,string,string) to implement the imagekey.  It turns out, we
10736         use the requested imagekey whereas .Net does not.  So I broke ours to match
10737         theirs.  :(
10738
10739 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10740
10741         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
10742
10743 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10744
10745         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
10746
10747 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
10748
10749         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
10750         up-to-date. Fixes bug #82618.
10751
10752 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
10753
10754         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
10755         reflect document changes. Fixes #82367.
10756
10757 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10758
10759         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
10760         as well as add new ones. This should make work the BackgroundImage
10761         property for ListView again.
10762
10763 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10764
10765         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
10766         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
10767         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
10768
10769 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10770
10771         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
10772         IsKeyLocked.
10773
10774 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10775
10776         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
10777         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
10778
10779 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10780
10781         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
10782         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
10783
10784 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
10785
10786         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
10787
10788 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
10789
10790         * GridEntry.cs: Implement GetService.
10791
10792 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
10793
10794         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
10795         for label editting, make sure we focus back on the TreeView.
10796         [Fixes bug #82590]
10797
10798 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10799
10800         * ListView.cs: Add some 2.0 overrides.
10801
10802 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10803
10804         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
10805         because getter dont returns right value before handle creation. Thanks 
10806         to George. Fixes #82569.  
10807
10808 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10809
10810         * Theme.cs: Revert last patch, it causes error under win32. 
10811
10812 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10813
10814         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
10815         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
10816         logical Desktop rather than the physical file system location. Fixes #82603. 
10817
10818 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
10819
10820         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
10821         for the patch. Fixes #82568.
10822
10823 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10824
10825         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
10826         methods.
10827
10828 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10829
10830         * ListViewInsertionMark.cs: New stubbed class.
10831
10832 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10833
10834         * FolderBrowserDialog.cs: When adding folder, immediately create the
10835         directory with temporary name and rename the directory when editing
10836         finishes. This matches MS. Ensure the node for the new folder is 
10837         selected and LabelEdit is disabled, when editing is either finished
10838         or cancelled.
10839
10840 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10841
10842         * TreeView.cs: When editing label of node, ensure node is visible.
10843
10844 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
10845
10846         * PropertyGridView.cs: Set the value only if it has changed.
10847
10848 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10849
10850         * ListView.cs: Some more code refactoring to add support sorting
10851         with groups (now for Details view). Remove unused code also.
10852
10853 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10854
10855         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
10856         Not a big fan of reacting immediately to a field in an EventArg, but that's
10857         the way it's done.  (This is part of the previous commit that got left out.)
10858
10859 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10860
10861         * FolderBrowserDialog.cs: Removed need for separate description field.
10862         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
10863         has focus when dialog box is displayed again, regardless of what
10864         button was pressed the previous time. Set RootFolder and SelectedPath
10865         each time dialog box is displayed. This ensures the treeview is
10866         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
10867         when it does not have focus. Added support for more special folders.
10868
10869 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10870
10871         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
10872         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
10873         it resets the edit_args.
10874         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
10875         [Fixes bug #82577]
10876
10877 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
10878
10879         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
10880         button to match MS. Provide more meaningful exception message for
10881         invalid RootFolder value. Use zero-length string when SelectedPath
10882         is set to null. Allow non-rooted paths in SelectedPath, but ignore
10883         them in FolderBrowserTreeView. Allow folders to be created in
10884         RootFolder. Fixes bug #82576.
10885
10886 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10887
10888         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
10889         since we need to take into account the group headers and the margin
10890         between them.
10891         * ListViewGroup.cs: Add a rows field to store the number of rows per
10892         group.
10893
10894 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10895
10896         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
10897           Anyways, let's just follow the lead.
10898
10899 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10900
10901         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
10902         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
10903         controls in GetPreferredSizeCore.
10904         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
10905         [Fixes bug #82488]
10906
10907 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10908
10909         * PrintDialog.cs: Need to instantiate the form variable here too.
10910
10911 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10912
10913         * ListView.cs: Do some reorganization to support sorting in groups,
10914         by doing the layout sequentially in ListView.Items. Also add support
10915         for the Default Group, which should be available for items with no
10916         group assigned.
10917         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
10918         for storing layout info also.
10919         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
10920         collection, as well as providing internal members to do a traversal
10921         including the default group (needed when doing layout/drawing).
10922         * ThemeWin32Classic.cs: When drawing group headers use internal
10923         ListViewGroupCollection members to take into account the default
10924         group.
10925
10926 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
10927
10928         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
10929
10930 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10931
10932         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
10933         been created.  If handle is created, we want arror keys.  If we are editing
10934         a node, we want things like enter, esc, home, end, page up, page down.
10935         Allows Esc to work for FolderBrowserDialog.
10936
10937 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10938
10939         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
10940         they close when ESC is pressed.  Thanks Andy!
10941
10942 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10943
10944         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
10945         This way we can tell if this is a CommonDialog provided with mono, or one
10946         that is being implemented outside by a developer.  If it is an external one,
10947         the developer is responsible for showing their own form.  We were showing
10948         our blank form after the developer showed his.
10949         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
10950         PageSetupDialog.cs: Instantiate form variable in our constructor.
10951         [Fixes bug #82531]
10952
10953 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10954
10955         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
10956         and always return true.  [Fixes bug #81616]
10957
10958 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10959
10960         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
10961         TextBox.  [Fixes bug #82549]
10962
10963 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
10964
10965         * FileDialog.cs: When Save/Open is clicked and no filename is selected
10966         or entered then do not close the dialog. Fixes bug #82539. Removed
10967         CWLs.
10968
10969 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
10970
10971         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
10972         code to this method. It is calling every time filter changes. This method
10973         will help to fix the bug #80887.
10974
10975 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
10976
10977         * CheckBox.cs: Implement AutoSize calculation.
10978
10979 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
10980
10981         * CheckBox.cs: Use new 2.0 rendering for 2.0.
10982         * Theme.cs: Method declarations for 2.0 rendering path.
10983         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
10984
10985 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10986
10987         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
10988
10989 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10990
10991         * ListViewGroupCollection.cs: Implement AddRange the right way, to
10992         only call Redraw on the parent one time.
10993
10994 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10995
10996         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
10997           GetClipboardContent.
10998         * DataGridViewCell.cs: Implemented GetClipboardContent,
10999           GetEditedFormattedValue, GetFormattedValue.
11000         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
11001
11002 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
11003
11004         * TableLayoutStyleCollection.cs: corcompare fix.
11005
11006 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11007
11008         * DataObject.cs: Implemented retrieval of convertible / not convertible
11009           objects.
11010
11011 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
11012
11013         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
11014         ourselves.  This ensures the entire old bounds are repainted, in case our new
11015         size is smaller.  [Fixes bug #82518]
11016
11017 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
11018
11019         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
11020         flag to make fast handle of mouse events, without this the mouse move is
11021         handled in some manner, whether it is a mouse move or not. Fixes #81588.
11022
11023 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11024
11025         * ListView.cs: When doing layout calculations don't use a ref
11026         param to keep the current item; instead use its Index value (this 
11027         is specially important when doing the layout with Groups
11028         and Items being sparse). Also don't take into account items added to
11029         the Group but not yet added to the main ListView.Items collection.
11030
11031 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11032
11033         * ListViewGroupCollection.cs: Forgot to mimic an issue
11034         in the indexer (don't assign the ListView owner for new values).
11035
11036 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11037
11038         * ListViewGroupCollection.cs: Make the string indexer use
11039         the int based indexer to re-use code, instead of duplicate the code.
11040         Also Redraw as needed and take into account null values.
11041
11042 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
11043
11044         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
11045         [Fixes bug #82481]
11046
11047 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
11048
11049         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
11050         when other buttons are clicked or navigated to.
11051
11052 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11053
11054         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
11055           it's XplatUIX11 that attaches them.
11056
11057 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11058
11059         * DataGridView.cs: If a column has been added, recreate the editing row.
11060           Fixes #82226.
11061
11062 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11063
11064         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
11065           of the tag to draw. Makes disappearing text show up again.
11066
11067 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11068
11069         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
11070           Contents. Fixes #82487.
11071
11072 2007-08-19  Andreia Gaita  <avidigal@novell.com>
11073
11074         * Added HtmlElement.cs, HtmlElementCollection.cs, 
11075           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
11076           
11077 2007-08-19  Andreia Gaita  <avidigal@novell.com>
11078
11079         * BindingSource.cs: Implement this, dispose and getenumerator.
11080         * DataGridViewRowCollection.cs: Move the InvalidOperationException
11081         out of AddInternal, throw it only on public Add calls. The 
11082         UsingWebBrowser sample was blowing up with this when setting the
11083         DataSource after adding DataBindings, so it's likely that .net
11084         only throws this exception when Add is called directly. 
11085         
11086         * ToolStripControlHost.cs: Return the hosted control's text
11087         property, and not the ToolStripItem one (it would always return
11088         the initial value).
11089         
11090         * HtmlDocument.cs: Implement GetElementById and All
11091         * WebBrowser.cs: Remove exception on set_DocumentStream.        
11092
11093 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11094
11095         * Form.cs: Fix the max and min value for opacity (0~1).
11096
11097 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11098
11099         [Fixes #80118]
11100         * DataGridTableStyle.cs: Default header font is now null, on getter it 
11101         returns datagrid font when is null. On setter permits null.
11102
11103         * DataGrid.cs:
11104         - When ResetHeaderFont set header font to null.
11105         - On EndInit set grid_style.DataGrid.
11106
11107 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11108
11109         * TabControl.cs: Fix regression in default padding x.
11110
11111 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11112
11113         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
11114
11115 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11116
11117         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
11118         not 2. Fixes #82229.
11119
11120 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11121
11122         * TabControl.cs: Fix tab size when image height is less than text height.
11123         Partially fixes #81837.
11124
11125 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11126
11127         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
11128         "alt + tab". It works only for Win32, for X11 theres no way to remove window
11129         from taskbar and keep it on "alt_tab". Fixes #81722.
11130
11131 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11132
11133         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
11134         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
11135         Fixes #80877 and #79418.
11136
11137 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11138
11139         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
11140         between position and one of the screen borders. Fixes #82349.
11141
11142 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11143
11144         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
11145         the MessageBox in the taskbar. Fixes #82457.
11146
11147 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11148
11149         * MessageBox.cs: Fix form size when icon is set and text height is bigger
11150         than icon. Fixes #82468.
11151
11152 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11153
11154         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
11155         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
11156           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
11157           Refactored HandleNCCalcSize somewhat to avoid code duplication.
11158         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
11159           FormBorderStyle to decide if we're calculating a new size from the
11160           client size or not. CreateParams: Don't fake tool windows, only the X11
11161           backend manages toolwindows manually.
11162
11163 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11164
11165         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
11166         ObjectDisposedException.
11167
11168 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11169
11170         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
11171         in OnLoad should not have any effect.  [Fixes bug #82470]
11172
11173 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11174
11175         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
11176         paint for controls that create their own ToolTipWindow instead of
11177         going through ToolTip.
11178
11179 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11180
11181         * ToolTip.cs: Make Hide internal instead of public to match MS API.
11182
11183 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11184
11185         * ListViewGroupCollection.cs: Use generic List instead of an
11186         ArrayList, since this collection is 2.0 only.
11187
11188 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
11189
11190         * ToolTip.cs (Hide): Made public to make the build work (should
11191         this not be public?).
11192
11193 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11194
11195         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
11196         ToolTipWindow.
11197         * ToolTip.cs: Add an internal Visible property to facilitate transition.
11198
11199 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11200
11201         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
11202         PopupEventHandler.cs: Make these internal for 1.1.
11203         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
11204         use ToolTipWindow internals.
11205         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
11206         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
11207
11208 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11209
11210         * X11Dnd.cs: Add a null check.
11211
11212 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11213
11214         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
11215           nothing else succeeds. Fixes #82453.
11216
11217 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11218
11219         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
11220           rectangle if we're painting to another window than the one the paint
11221           message was generated on. Simplify the code somewhat, which makes
11222           PaintEventEnd also simpler.
11223
11224 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11225
11226         * Control.cs: When changing parent of a form, let the form decide whether
11227           XplatUI.SetParent should be called or not.
11228         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
11229           recreating the handle. If the new parent's handle isn't created, don't
11230           recreate our handle, just destroy it. CreateParams: Check if the
11231           parent's handle is created before fetching it.
11232
11233 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11234
11235         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
11236           Update calls to PaintEventStart/End to take a Message argument.
11237         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
11238           take a Message argument.
11239         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
11240           Message argument, and handle the case where we don't paint to the window
11241           for which the paint message was generated.
11242
11243 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11244
11245         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
11246           Marshal.GetLastWin32Error. Plug nasty memory leak in
11247           PaintEventStart/End, we were creating a DC we weren't releasing.
11248
11249 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11250
11251         * ListView.cs: Add Groups support in Details view. Also have a small
11252         method to do the layout of the group header. Don't use a separate
11253         method to do the groups calculation in Icons view, since our methods
11254         are now a little simpler.
11255         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
11256         `Bounds'.
11257         * ThemeWin32Classic.cs: Likewise.
11258
11259 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
11260
11261         * Application.cs: Add FilterMessage method and rework our message loop
11262         logic to use it.
11263
11264 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
11265
11266         * Application.cs: Add some methods and stub a few methods that are
11267         pretty much never used.
11268
11269 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
11270
11271         * TreeNode.cs: Add some serialization methods.
11272
11273 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11274
11275         * ListView.cs: In ListViewItemCollection have a 
11276         'is_main_collection' field to not modify ListViewItem.ListView
11277         when using it as ListViewGroup.Items (and not ListView.Items)
11278         and also don't modify selection state (.Net behaviour). 
11279         Instead, set group for items contained in a ListViewGroup.Items collection.
11280         * ListViewItem.cs: Simplify some code in Group setter.
11281         * ListViewGroup.cs: use the new .ctor to pass the current instance
11282         to the ItemsCollection.
11283         * ListViewGroup.cs: Set the ListView property for ListViewGroup
11284         instances when adding/removing. Also make Remove use RemoveAt, which
11285         should perform better.
11286
11287 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11288
11289         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
11290         that crept into the 1.1 profile.
11291
11292 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11293
11294         * ToolBarButton.cs: Implement ImageKey.
11295
11296 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11297
11298         * ToolBar.cs: Implement ScaleControl/ScaleCore.
11299
11300 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11301
11302         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
11303           created, it might have gotten destroyed since we last checked. Fixes
11304           #82405.
11305
11306 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
11307
11308         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
11309         tooltip will hide when mouse is moved off the control.
11310         [Fixes bug #82407]
11311
11312 2007-08-11 Andreia Gaita <avidigal@novell.com>
11313
11314         * WebBrowserBase.cs, WebBrowser.cs: add implementation
11315         using Mono.Mozilla for loading and navigating webcontrol
11316         with xulrunner.
11317         The initial implementation was done on 
11318         /trunk/mozembed/tests/browser , and copied here.
11319
11320 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
11321
11322         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
11323         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
11324
11325 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11326
11327         * DataGridView.cs: Add support for an editing row. Fixes #82226.
11328           RowTemplateFull: throw an exception if a column doesn't have a template.
11329         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
11330           add the row just before it.
11331         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
11332           selected.
11333         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
11334           DataGridView field to be able to reach the grid's editing row.
11335
11336 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11337
11338         * ToolTip.cs: If the control's handle hasn't been created when it has a
11339         tooltip set on it, don't check to see if we need to show the tooltip.  This
11340         check was causing the control's handle to be created.
11341         [Fixes bug #82399]
11342
11343 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11344
11345         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
11346                                         1.1             2.0
11347         Handle Not Created      -1              0
11348         Handle Created          0               0
11349         [Fixes bug #82371]
11350
11351 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11352
11353         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
11354         [Fixes bug #82348]
11355
11356 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
11357
11358         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
11359         * ToolTip.cs: Implement some properties and owner draw.
11360
11361 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11362
11363         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
11364           show them again, since setting visibility causes a paint, causing an
11365           endless loop (instead use a temporary and set it all when it's known if
11366           they should be shown or not). Fixes #79265.
11367
11368 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11369
11370         * DataGridView.cs: Only do a full column/row selection if a header was
11371           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
11372           isn't pressed, deselect everything before selecting something.
11373
11374 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11375
11376         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
11377           behaviour according to bug #81075 - they are returned in the order they
11378           are selected. Fix HitTest to check if the point is within any of the
11379           headers. Allow for row/column selection when in ColumnHeader or
11380           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
11381           the row and column to call when their selected state changes, and
11382           updated selected_[rows|columns] whenever SetSelected* is called.
11383         * DataGridViewBand.cs: Initialize isRow correctly. Call
11384           SetSelected[Row|Column]CoreInternal when the selected state changes, and
11385           add a SelectedInternal to avoid StackOverflows.
11386         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
11387           ReadOnly no matter what.
11388         * DataGridViewSelectedColumnCollection.cs,
11389           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
11390           the items in reverse order (just as MS does...)
11391
11392 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
11393
11394         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
11395         itself, not part of a mnemonic.  [Fixes bug #82378]
11396
11397 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11398
11399         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
11400         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
11401           the DGV, the column, the row, or the cell itself is readonly.
11402
11403 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
11404
11405         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
11406         OSVersion.Platform.
11407         * FileDialog.cs: Same.
11408         * TextRendered.cs: Same.
11409         * FolderBrowserDialog.cs: Same.
11410         * TextBoxBase.cs: Same.
11411         * Application.cs: Same.
11412         * Cursors.cs: Same.
11413         * ThemeClearLooks.cs: Same.
11414
11415 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
11416
11417         * XplatUI.cs: Added RunningOnUnix property to be used by controls
11418         instead of duplicating these checks everywhere.
11419         * FileDialog.cs: Use case-insensitive comparison for populating the
11420         DirComboBox when not running on unix. Fixes bug #82385.
11421         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
11422         "Look in".
11423
11424 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11425
11426         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
11427           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
11428           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
11429           cell and column selection with ctrl and shift pressed. Call the correct
11430           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
11431           the corresponding virtual method (PaintBackground to paint background,
11432           etc).
11433         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
11434           either the column, row or the cell itself is selected.
11435         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
11436           OnRowsAdded.
11437         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
11438           here. When the row is selected, don't select all cells. Each cell now
11439           queries the row to see if the row is selected.
11440
11441 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11442
11443         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
11444           SelectionMode.
11445
11446 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11447
11448         * ListView.cs: In ListViewItemsCollection check that owner is
11449         not null before trying to access it (this happens quite often
11450         using Groups). Also don't duplicate calls by calling CollectionChanged
11451         method.
11452
11453 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11454
11455         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
11456         when we are dismissed to clear keyboard mnemonics.
11457         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
11458         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
11459         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
11460         was activated by keyboard or the OS tells us to always draw them.
11461         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
11462         [Fixes bugs #82376, #82377]
11463
11464 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11465
11466         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
11467         shot at having it because Alt was pressed.
11468         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
11469         the first real menu item.
11470         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
11471         a mnemonic if Text is null.
11472         [Fixes bug #82374]
11473
11474 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11475
11476         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
11477         search do check whether the item is already contained in the
11478         collection or not; instead check if the owner of the item is the same
11479         as ours. Also, remove a redundant check in the same method. 
11480
11481 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11482
11483         * Control.cs: Allow the clip region to be set back to null.
11484         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
11485         [Fixes button still showing up in bug #82370 when Show Through is turned off]
11486
11487 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11488
11489         * GridEntry.cs: Add a null check.
11490         * PropertyGrid.cs: When checking for existing grid entries, ignore category
11491           entries. Fixes #82297.
11492
11493 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
11494
11495         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
11496         for 2.0.
11497
11498 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
11499
11500         * ListBox.cs: Implement ScaleControl.
11501
11502 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11503
11504         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
11505           have a menu strip.
11506         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
11507           parent has a menu strip. Fixes #81689.
11508
11509 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11510
11511         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
11512           moments, so apply some fuzzy logic to determine if the mouse is still
11513           inside a control or not. Fixes #82288 (for the third time).
11514
11515 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11516
11517         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
11518           Don't create the child if it has been disposed already (may happen if
11519           the user closes the form the Load event).
11520
11521 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11522
11523         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
11524           #82288.
11525
11526 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11527
11528         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
11529           might call us after we've been destroyed, in which case our own private
11530           parent field is null. Fixes #82326.
11531
11532 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
11533
11534         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
11535         check for setting the dropdown's owner.
11536
11537 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
11538
11539         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
11540         before removing system menu items.
11541
11542 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
11543
11544         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
11545         folding.
11546         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
11547         folding.
11548         * ToolStrip.cs: Add a null check to mnemonics.
11549         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
11550         no ConnectedArea.
11551         [Fixes most of bug #81689]
11552
11553 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11554
11555         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
11556
11557 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11558
11559         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
11560
11561 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11562
11563         * DataGridViewCell.cs: EditType: returns
11564           DataGridViewTextBoxEditingControl always.
11565
11566 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
11567
11568         * TextRenderer.cs: Remove the LineLimit string format flag from the
11569         DrawString fallback method so that things like buttons that aren't
11570         tall enough to draw a full line will still draw part of the text.
11571         [Fixes part of bug #82272]
11572
11573 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11574
11575         * DataGridView.cs: Implemented AutoResizeColumn(s).
11576         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
11577           according to the Alignment.
11578         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
11579           Implement alignment and padding when painting.
11580         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
11581           exists.
11582         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
11583           way.
11584         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
11585           a column is added.
11586
11587 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11588
11589         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
11590         which is internal.
11591
11592 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11593
11594         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
11595         hide GetPreferredSize from public API.
11596         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
11597         * ToolStripItem.cs: Stub out drag and drop methods and events.
11598         * ToolStripManager.cs: Stub out Save/LoadSettings.
11599         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
11600         * ToolStripPanel.cs: Fix corcompare error.
11601         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
11602         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
11603         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
11604
11605 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11606
11607         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
11608         bounds height instead of PreferredHeight.  Puts things back the way 
11609         they were for height while still fixing the width.  Fixes broken unit
11610         tests.
11611
11612 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11613
11614         * Binding.cs: Implement 2.0 constructors and add a null check.
11615
11616 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11617
11618         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
11619           and fix row index (off by one).
11620
11621 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11622
11623         * PropertyGridView.cs: Remove debug output.
11624
11625 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11626
11627         * Control.cs: We need to reset the is_created flags when the handle is
11628           destroyed. Fixes #82187.
11629         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
11630           client coordinates if the window doesn't have a parent.
11631           Win32GetParent returns the parent or the owner, and for top-level
11632           windows with no parent (but with an owner) we were calculating the
11633           location from the location of the owner.
11634         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
11635           form has been disposed.
11636         * MdiClient.cs: Add a null-check.
11637
11638 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
11639
11640         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
11641         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
11642         so we can provide an implementation that returns the current width
11643         and preferred height.  Allows anchor = right to work with TextBox 2.0.
11644         [Fixes bug #82233]
11645
11646 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11647
11648         * ListView.cs: Add support for navigating items in Groups mode, by
11649         creating a big matrix containing all rows and cols of all groups. When
11650         are in other mode than Details, pressing Up should have a similar
11651         behaviour as that one of Down (moving to the next available column if
11652         current one doesn't have an item in the requested row). Also, don't
11653         proceed to use groups if ShowGroups is false.
11654         * ListViewGroup.cs: Add an internal int field to store the starting
11655         row of the group (used by the big matrix used for navigating the
11656         ListView).
11657         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
11658         false.
11659
11660 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
11661
11662         * ToolStripDropDown.cs: When we do Show, start with the 
11663         DefaultDropDownDirection, but if our popup menu is going to off-screen,
11664         modify the direction to keep it on screen.  [Fixes bug #82210]
11665
11666 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
11667
11668         * FileDialog.cs: Accept any FilterIndex value, and store it
11669         unmodified. When FilterIndex is less than 1, or greater than number
11670         of filters, then default to first filter. Only add filter extension to
11671         file if user did not specifiy an extension. When type of dialog is
11672         OpenFileDialog and DefaultExt is set, then only use filter extension
11673         if: CheckFileExists is true and no file wih the default extension
11674         exists, or CheckFileExists is false, and user specified file does not
11675         exist. When CheckFileExists is true, then add first extension of 
11676         selected filter that matches existing file. Perform checks for
11677         existing file, overwrite and create after extension has been added to
11678         file name. When CheckFileExists is true and type is SaveFileDialog,
11679         then only consider first filter extension if DefaultExt is set.
11680         When CheckFileExists is true, then ignore DefaultExt if file with that
11681         extension does not exist. Also perform check for existing file when
11682         type is SaveFileDialog. Changed some field to constants.
11683
11684 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11685
11686         * ListView.cs: Take into account the region used by header
11687         control when doing the vertical scroll (this way we invalidate
11688         the precise area, and don't get any dirty one).
11689
11690 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
11691
11692         * FileDialog.cs: Check for valid filterIndex on button open/save. 
11693         Fixes #82184.
11694
11695 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11696
11697         * ListView.cs: Update some layout calculations in details view
11698         and clean the code in a pair of assignations.
11699
11700 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11701
11702         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
11703         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
11704         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
11705         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
11706
11707 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11708
11709         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
11710         performance of thread-safe Graphic methods.  (Thanks rolf!)
11711
11712 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11713
11714         * ListView.cs: When doing the layout calculations, don't calculate
11715         scroll bars before handle is created. This is unnecessary and also
11716         calculating them before handle creation item causes a number of random
11717         bugs (which begin to appear after Chris' big patch for handle creation
11718         fixes). 
11719
11720 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11721
11722         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
11723         for things that don't have a Graphics object.  Currently, things just use
11724         the static Hwnd.bmp_g which is not thread safe.
11725
11726 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11727
11728         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
11729           dialog. Fixes #82187.
11730
11731 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11732
11733         * DataGridViewElement.cs: Initialize state.
11734         * DataGridView.cs: Forward a few Mouse events to cells. Add
11735           GetRowInternal and GetCellInternal that doesn't unshare rows.
11736           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
11737           don't use the index, but look it up. Add
11738           DataGridViewControlCollection.RemoveInternal to remove controls
11739           that Remove won't remove (scrollbars, edit control).
11740         * DataGridViewColumn.cs: Initialize State correctly.
11741         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
11742           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
11743           implementing this.
11744         * DataGridViewRowCollection.cs: Implemented shared rows.
11745         * DataGridViewRow.cs: Throw exceptions as MS do.
11746         * DataGridViewCell.cs: A few properties are implemented by a
11747           Get<Property> method, so move implementation there and remove the
11748           NIEX in the method. Add a bunch of OnXInternal that DataGridView
11749           calls when necessary.
11750         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
11751           complicates matters.
11752         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
11753           unshare any rows.
11754
11755 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11756
11757         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
11758         the children controls.  Instead, we will just set up the proper docking for the
11759         children controls so we don't have to worry about it.  [Fixes bug #82188]
11760
11761 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11762
11763         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
11764         canceling and correct Before/AfterLabelEdit properties as layed out in bug
11765         81847.  [Fixes bug #81847]
11766
11767 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11768
11769         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
11770         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
11771         an explicit size based on the design-time size of the text.  Since our fonts
11772         may not match this explicit size, we tend to cut off the ends of people's labels.
11773
11774 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
11775
11776         * Menu.cs: Add some missing methods to MenuItemCollection.
11777
11778 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11779
11780         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
11781         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
11782         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
11783         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
11784         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
11785         * DataGridViewElement.cs: State defaults to Visible.
11786         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
11787         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
11788
11789 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11790
11791         * Control.cs: Minor 1.1 corcompare fix.
11792
11793 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11794
11795         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
11796         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
11797
11798 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11799
11800         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
11801           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
11802           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
11803           DataGridViewSelectedColumnCollection.cs,
11804           DataGridViewSelectedRowCollection.cs: Corcompare work.
11805
11806 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11807
11808         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
11809         it is autoset by VS2005 designer and the effect is barely noticeable.
11810
11811 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11812
11813         * TreeView.cs: Implement HitTest.
11814
11815 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11816
11817         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
11818           manually adding and removing the control from the Controls
11819           collecftion.
11820         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
11821           EditingControlInternal property that tracks the editing control.
11822           Always keeping the scrollbars in the Controls collection, as MS
11823           testing confirms is the right behaviour.
11824
11825 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11826
11827         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
11828           according to MSDN and new test.
11829
11830 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11831
11832         * TreeNode.cs: Implement ToolTipText.
11833         * TreeView.cs: Implement tooltips, NodeMouse* events.
11834
11835 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11836
11837         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
11838
11839 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11840
11841         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
11842         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
11843
11844 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
11845
11846         * Control.cs, Form.cs, ContainerControl.cs,
11847         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
11848         for misc properties.
11849
11850 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11851
11852         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
11853         * TreeView.cs: Implement StateImageList.
11854
11855 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11856
11857         * Form.cs: Don't check if the current form is the active form before
11858           activating it. Fixes #81904.
11859
11860 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11861
11862         * Form.cs: Don't check if the current form is the active form before
11863           activating it. Fixes #81904.
11864
11865 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11866
11867         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
11868
11869 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11870
11871         * Form.cs: Don't try to position the form after loading if the form was
11872           disposed. Fixes #81969.
11873
11874 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11875
11876         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
11877           properties. Had to change ToolBar into ToolStrip, which required a
11878           few #ifs.
11879
11880 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11881
11882         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
11883           resized, fixes part of #79829 (vertical lines in toolbar).
11884           PropertyGrid: Refactored Populate* to something that's easier to
11885           follow at least for me, as well as splitting it up into several new
11886           methods, required to update only subitems when something has
11887           changed by a popup editor or listbox. Don't use events to check
11888           when any values are changed, since the events are unreliable (we're
11889           changing the objects the events are registered with, and if the
11890           event handling requires the objects to be immutable (objects stored
11891           in hashtables for instance), the events will never be raised).
11892         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
11893           everytime we change a value, since events are unreliable.
11894           DropDownButtonClicked: For the same reason don't compare objects to
11895           check if it has changed or not, it would require all objects to
11896           derive Equals. Fix dialog location on windows, MS is doing weird
11897           things when creating parented forms.
11898         * GridEntry.cs: Add a SelectedObject setter.
11899
11900 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
11901
11902         * TreeNode.cs: Add some corcompare attributes.
11903         * TreeNodeCollection.cs: Implement 2.0 stuffs.
11904         * TreeView.cs: Implement some 2.0 stuffs.
11905
11906 2007-07-18  Andreia Gaita  <avidigal@novell.com>
11907
11908         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
11909         for moma.
11910
11911 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
11912
11913         * ListBox.cs: Implement custom tab offsets.
11914
11915 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11916
11917         * ToolStripContentPanel.cs: Support System renderer.
11918         * ToolStripControlHost.cs: Set RightToLeft to default to No.
11919
11920 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11921
11922         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
11923
11924 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11925
11926         * CheckBox.cs: Chain TextAlign to base implementation instead of
11927         maintaining another one.
11928
11929 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11930
11931         * ButtonBase.cs: Fix an incorrect string constant.
11932
11933 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11934
11935         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
11936         of creating one for measuring strings.
11937
11938 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11939
11940         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
11941         Implement MaxItemSize.
11942
11943 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
11944
11945         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
11946         for DeviceContext.  Instead, use the static one available in Hwnd.
11947         Informal tests show this saves about 500k on formtest.exe.
11948
11949 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
11950
11951         * ContainerControl.cs: Implement 2.0 AutoScaling.
11952
11953 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11954
11955         * ComboBox.cs: Work around bug #82120 (bug in mcs).
11956
11957 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
11958
11959         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
11960         Darken the focus color.
11961
11962 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
11963
11964         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
11965         for the checkbox.
11966         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
11967         X, Y instead of a rect for drawing text.
11968         - For ControlPaint.DrawCheckBox, center the check a little better when the
11969         checkbox is odd width.  When drawing a flat checkbox, use a white background
11970         when state != inactive.
11971         [Fixes bugs #82097, 82100]
11972
11973 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
11974
11975         * ListControl.cs: When changing CurrencyManager, disconnect event
11976         handlers from previous one. Fixes bug #81771. Code formatting.
11977
11978 2007-07-15  Andreia Gaita <avidigal@novell.com>
11979
11980         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
11981         full preview invalidation from layout invalidation, and only invalidate
11982         the layout when setting zoom or other properties. Invalidation should
11983         always be done even when resetting properties with the same values as
11984         what is there. Fixes #81744 and #79830.
11985
11986 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11987
11988         * ListView.cs: Implement initial support for Groups. Split some of the
11989         LayoutIcons code to render a partial list of the items (needed by
11990         items contained in ListViewGroup instances). Let the
11991         ListViewItemsCollection.ListView property be modifiable (needed when
11992         using Groups, too).
11993         * ListViewGroup.cs: Use a Bounds property rather than a Location
11994         one. Also invalidate the bounds when they get changed.
11995         * ThemeWin32Classic.cs: When drawing items, also draw the group header
11996         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
11997         method as well.
11998
11999 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12000
12001         * ListView.cs: When space gets pressed and CheckBoxes is true, 
12002         don't invoke the Begin and EndUpdate methods. We are generating 
12003         a redraw of the entire control without need to do so.
12004
12005 2007-07-13  William Holmes <billholmes54@gmail.com> 
12006
12007         * Control.cs: Changing logic in FindFlatForward and 
12008           FindFlatBackward to handle multiple Controls with 
12009           the same TabIndex.  
12010           This fixes bug 81687.
12011
12012 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
12013
12014         * OSFeature.cs: Enable IsPresent.
12015
12016 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12017
12018         * Control.cs: Don't do anything in WmShowWindow if the control has been
12019           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
12020           control is created, put on a form, the control is disposed (the
12021           form is never shown), and then we get a MapNotify, triggering a
12022           WM_SHOWWINDOW.
12023         * Form.cs: Exclude the current form when sending Deactivate to all
12024           MdiChildren.
12025         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
12026           there was a race condition because assigning the handle raises
12027           events, we can get more messages, therefore trying to assign the
12028           handle again, which would fail if any of those event handlers
12029           closed/disposed the control.
12030
12031 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12032
12033         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
12034
12035 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
12036
12037         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
12038         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
12039
12040 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12041
12042         * DateTimePicker.cs: If there's no part format specifier, return an
12043           empty string.
12044
12045 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
12046
12047         * FlatButtonAppearance.cs: Throw NotSupportedException for a
12048         Transparent BorderColor.
12049
12050 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12051
12052         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
12053           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
12054           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
12055           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
12056           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
12057           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
12058           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
12059           Remove warnings.
12060         * X11Structs.cs: Remove warnings, add ToString implementations.
12061
12062 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12063
12064         * XplatUIX11.cs: Translate min/max size according to the actual min/max
12065           size, and not the current size. Fixes #81798.
12066
12067 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12068
12069         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
12070           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
12071           to the control yet).
12072
12073 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12074
12075         * PropertyGridTextBox.cs: Add a method that sends any forwarded
12076           mousedowns to the contained textbox.
12077         * X11Structs.cs: More ToString implementation.
12078         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
12079           #81791.
12080
12081 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12082
12083         * PropertyGridView.cs: Add a null-check, fixes a few tests.
12084
12085 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
12086
12087         * TableLayoutPanelCellPosition.cs: TypeConverter.
12088
12089 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12090
12091         [ Fixes #79761]
12092         
12093         * PropertyGridTextBox.cs: Propagate any color changes to all contained
12094           controls.
12095         * PropertyGridView.cs: A few color fixes.
12096
12097 2007-07-10  Jackson Harper  <jackson@ximian.com>
12098
12099         * TextControl.cs: Remove some old unused text formatting stuff.
12100
12101 2007-07-10  Jackson Harper  <jackson@ximian.com>
12102
12103         * TreeView.cs: Update full row select invalidation to match the
12104         newer DrawSelection... method.
12105         - Make sure to invalidate the entire width when selecting a new
12106         node, if we have full row selection enabled.
12107
12108 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12109
12110         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
12111           display of properties again.
12112
12113 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
12114
12115         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
12116         to existing collections.
12117
12118 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12119
12120         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
12121         that changed between 1.1 and 2.0.
12122
12123 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12124
12125         * PowerStatus.cs: Added.  This is just a data class, it is filled
12126         in by SystemInformation.
12127
12128 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12129
12130         * Message.cs: Add op_Equality and op_Inequality.
12131
12132 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12133
12134         * MenuStrip.cs: Finish corcompare work.
12135
12136 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12137
12138         * LinkArea.cs: Add op_Equality and op_Inequality.
12139
12140 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12141
12142         * Application.cs: Add MessageLoopCallback delegate.
12143
12144 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12145
12146         * ListBox.cs: First set of 2.0 stuffs.
12147
12148 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12149
12150         * Control.cs: Make an internal Height property we can override
12151         without messing up the public API.
12152         * ListBox.cs: Override HeightInternal to always return the size
12153         the user set.  [Fixes bug #80466]
12154
12155 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
12156
12157         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
12158         paint cell borders if we haven't calculated where they go yet.
12159         [Fixes bugs #82040 and #82041]
12160
12161 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12162
12163         * ListView.cs: In Details view, set the location of item_control
12164         in the (0,0) position (and the header_control is thus on the
12165         item_control). This way the Bounds of the Items are relative to the
12166         ListView control (before this, they had a Bounds value without the
12167         header_control offset, which wasn't matching .Net). Fixes #82004.
12168
12169 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12170
12171         * ListControl.cs: When DataSource is set to null, pass an empty
12172         array of object to SetItemsCore. This is done to clean the items
12173         in the ListContol children. Fixes #81788.
12174
12175 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12176
12177         * ListControl.cs: Add 2.0 stuffs.
12178
12179 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12180
12181         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
12182         Refresh is overkill for just about every repaint request.
12183
12184 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12185
12186         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
12187         so remove my custom Get method and fix the property getter.
12188
12189 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12190
12191         * Label.cs: DefaultMargin for 2.0.
12192
12193 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12194
12195         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
12196         reported issue where other controls with mnemonics would steal strokes
12197         from a selected ComboBox.
12198
12199 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12200
12201         * ScrollOrientation.cs: Make internal for 1.1.
12202         * ScrollEventArgs.cs: Add 2.0 stuffs.
12203
12204 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
12205
12206         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12207         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
12208         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
12209
12210 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12211
12212         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
12213
12214 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12215
12216         * ListView.cs: Implement the so-incredibly broken 2.0 
12217         VirtualItemsSelectionRangeChanged event.
12218
12219 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12220
12221         * ListView.cs: When enter is pressed and selection is non empty,
12222         an OnItemActivate event must be fired.
12223
12224 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12225
12226         * ListView.cs: Store the FocusedItem information as an
12227         int instead of a ListViewItem (needed by VirtualMode).
12228         Update the calls to SetFocusedItem to pass an index instead of
12229         an item.
12230         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
12231         the Focused state from the owner ListView. 
12232
12233 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12234
12235         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
12236         property. Also, invalidate previous focused item in the mentioned
12237         property (match .Net).
12238
12239 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12240
12241         * ListView.cs: Implement 2.0 FocusedItem property setter.
12242
12243 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12244
12245         * ListView.cs: Implement 2.0 TopItem property setter.
12246
12247 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
12248
12249         * StatusStrip.cs: The default renderer is System.
12250         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
12251         if the user specifies it.
12252         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
12253         if we are ManagerRenderMode.
12254         * ToolStripMenuItem.cs: Calculate our text color better.
12255         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
12256         from Professional to the base class based off working with the System renderer.
12257         * ToolStripSystemRenderer.cs: Added.
12258
12259 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12260
12261         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
12262
12263 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
12264
12265         * ToolTip.cs: Implement 2.0 Tag property.
12266
12267 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12268
12269         * ListView.cs: Implement 2.0 HitTest methods.
12270
12271 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12272
12273         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
12274         item is under the pointer or not (sugar). Also remove the TODO
12275         regarding to the cursor changes in OneClick activation.
12276         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
12277         the subitems use the parent's HotFont if UseItemStyleForSubItems is
12278         true; otherwise don't show the underline style.
12279
12280 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12281
12282         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
12283         the code to retrieve the item at position only one time. Also
12284         change cursor when Activation is ItemActivation.OneClick as well
12285         as invalidate the item if HotTracking is true (to show/hide the
12286         underline style). Add an internal HotItemIndex property to retrieve
12287         the current hot item's index.
12288         * ListViewItem.cs: Add an internal HotFont property to cache the
12289         font used when HotTracking is true and the pointer moves within the
12290         item's borders.
12291         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
12292         HotFont depending on the hot state of the item.
12293
12294 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12295
12296         * ListView.cs: Implement 2.0 HotTracking property.
12297
12298 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12299
12300         * ToolStripControlHost.cs: If our hosted control never got created,
12301         don't try to dispose it.  [Fixes bug #81909]
12302
12303 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12304
12305         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
12306
12307 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12308
12309         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
12310
12311 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12312
12313         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
12314         Details view.
12315         * DrawListViewColumnHeaderEventArgs.cs:
12316         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
12317         using the DrawText () methods.
12318
12319 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
12320
12321         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
12322         background which got erased in my changes yesterday.
12323
12324 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12325
12326         * ListViewItem.cs: Actually set bounds for subitems in Details view
12327         (2.0 feature).
12328         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
12329         can invoke from the owner draw routines if we need it. Also, add
12330         support for Owner draw in Details view.
12331
12332 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12333
12334         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
12335         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
12336         ShowImageMargin setting, properly align text in a ToolStripLabel
12337         hosted on a ToolStripDropDown.
12338
12339 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12340
12341         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
12342         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
12343
12344 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12345
12346         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
12347
12348 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12349
12350         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
12351         location to match ToolStripMenuItems.
12352
12353 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12354
12355         * DrawListViewColumnHeaderEventArgs.cs:
12356         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
12357         column headers in ListView. 
12358
12359 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
12360
12361         * UserControl.cs: Implement AutoSize.
12362
12363 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12364
12365         * DrawListViewItemEventArgs.cs:
12366         * ListView.cs:
12367         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
12368         ListView.
12369
12370 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
12371
12372         * ToolStripDropDownItemAccessibleObject.cs: Added.
12373         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
12374         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
12375         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
12376         ToolStripTextBox.cs: corcompare work.
12377
12378 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
12379
12380         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
12381         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
12382         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
12383                 corcompare.
12384
12385 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
12386
12387         * OSFeature.cs: Add IsPresent.
12388         * PrintPreviewControl.cs: Add RightToLeft.
12389         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
12390         * SplitterPanel.cs: Add AutoSizeMode.
12391
12392 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12393
12394         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
12395         * MdiClient.cs: Add 2.0 ScaleControl.
12396         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
12397         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
12398
12399 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12400
12401         * Form.cs: Implement some scaling methods, stub some RTL methods,
12402         corcompare work.
12403
12404 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12405
12406         * Control.cs: corcompare work.
12407         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
12408
12409 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12410
12411         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
12412         ControlPaint 2.0 stuffs.
12413
12414 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12415
12416         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
12417
12418 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12419
12420         * UpDownBase.cs: Add 2.0 stuffs.
12421
12422 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12423
12424         * NumericUpDown.cs: Add 2.0 stuffs.
12425
12426 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12427
12428         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
12429
12430 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12431
12432         * ErrorProvider.cs: Implement 2.0 stuffs.
12433
12434 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12435
12436         * DomainUpDown.cs: Implement 2.0 stuffs.
12437
12438 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12439
12440         * CheckedListBox.cs: Fix RefreshItems signature.
12441
12442 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12443
12444         * PictureBox.cs: Implement 2.0 stuffs.
12445
12446 2007-06-12  Andreia Gaita  <avidigal@novell.com>
12447         
12448         * TabControl.cs: Check if there are tabpages before checking
12449         the selected index - fix #81802 (font changes raise a ResizeTabs
12450         call on controls.add, which blew up nicely with no tabpages)
12451
12452 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12453
12454         * ListView.cs:
12455         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
12456
12457 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12458
12459         * ListView.cs:
12460         * ListViewItem.cs: In VirtualMode the selection information
12461         resides in the ListView, rather than in the Items. Also, throw
12462         InvalidOperationExceptions when VirtualMode is being used and
12463         CheckedItemCollection is accessed.
12464
12465 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12466
12467         * ComboBox.cs: Add ScaleControl.
12468
12469 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12470
12471         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
12472
12473 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12474
12475         * GroupBox.cs: Add 2.0 stuffs.
12476
12477 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12478
12479         * Panel.cs: Add autosize properties/event.
12480
12481 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
12482
12483         * Control.cs:
12484         - When we remove a control, remove it from the collection before performing the layout.
12485         - Setup an internal property for explicit_bounds.
12486         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
12487         - Perform a layout when we set a new AutoSizeMode.
12488
12489 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
12490
12491         * ScrollableControl.cs: Add 2.0 stuffs.
12492
12493 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12494
12495         * ScrollBar.cs: Add 2.0 stuffs.
12496
12497 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12498
12499         * Splitter.cs: Add 2.0 stuffs.
12500
12501 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12502
12503         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
12504         to have BindingContext simply use base implementation.
12505
12506 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12507
12508         * ColumnHeader.cs: corcompare fix.
12509
12510 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12511
12512         * Button.cs: corcompare fixes.
12513         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
12514
12515 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12516
12517         * Button.cs: Override GetPreferredSizeCore.
12518         * ButtonBase.cs: PerformLayout after changing properties that can affect
12519         AutoSize.  Simplify some mouse/keyboard code.
12520         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
12521         * MouseEventArgs.cs: Make Location internal for 1.1.
12522         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
12523         * Theme.cs: Add CalculateButtonAutoSize.
12524         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
12525
12526 2007-06-05  Miguel de Icaza  <miguel@novell.com>
12527
12528         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
12529
12530 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12531
12532         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
12533         since we can get different item instances every time we retrieve it.
12534
12535 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12536
12537         * ListView.cs: Work around for #81602, since an unkown an pretty
12538         infrequent condition appears only in some systems (old linux boxes, it
12539         seems).
12540
12541 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12542
12543         * Button.cs: Completely reformat and a little refactor to bring
12544         this closer to Mono circa 2007.
12545
12546 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12547
12548         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
12549         to be ButtonBase.Invalidate.
12550
12551 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12552
12553         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
12554
12555 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12556
12557         * ButtonBase.cs: Completely reformat and a little refactor to bring
12558         this closer to Mono circa 2007.
12559
12560 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
12561
12562         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
12563         values for autosize. Fixes #80137.
12564
12565 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12566
12567         * Control.cs: Don't perform layout when AutoSize changes.
12568         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
12569         directly when autosizing, use SetBounds with BoundsSpecified.None.
12570         Fixes unit tests my last commit broke.
12571
12572 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12573
12574         * Control.cs: Perform layout when AutoSize changes.
12575         * Form.cs: Implement AutoSizing.
12576
12577 2007-06-01  Chris Toshok  <toshok@ximian.com>
12578
12579         * DataGrid.cs: remove the XXX'ed check at the top of
12580         ProcessGridKey.  fixes #80464.
12581
12582 2007-06-01  Chris Toshok  <toshok@ximian.com>
12583
12584         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
12585         adding idempotent (add/remove in Edit()), and also make sure we
12586         don't add it until after we set the text, so it's not tripped in
12587         Edit().  Fixes unit test regression.
12588
12589 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12590
12591         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
12592         change is user explicit, not when the layout engine moves stuff.  Fixes
12593         anchoring to bottom and right.  [Fixes bug #81790]
12594
12595 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12596
12597         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
12598
12599 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12600
12601         * ContainerControl.cs: 
12602         Fire enter event for common ancestor if it is not a ContainerControl.
12603         Send focus to the active_control and not the 'value', the active 
12604         control might have been changed in one of the events fired.     
12605         Definitely fixes #80159.
12606
12607 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12608
12609         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
12610
12611 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12612
12613         * PropertyGrid.cs: Anchor the help description to the bottom of the
12614           help panel and refactor SelectGridItem into a
12615           SelectGridItemInternal that can be set to null (and update it to
12616           clear the help texts when it is set to null). Set root item to null
12617           when there's no SelectedObject. Fixes #80438.
12618         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
12619           when we're recalculating after a resize (only).
12620
12621 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12622
12623         * ListView.cs: Implement 2.0 RedrawItems method.
12624
12625 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12626
12627         * ListControl.cs: Disconnect PositionChanged and ItemChanged
12628         handlers from previous data manager when DataSource is set to
12629         null. Fixes #81771.
12630
12631 2007-05-31  Jackson Harper  <jackson@ximian.com>
12632
12633         * TextBoxBase.cs: These seem to be the correct values.
12634
12635 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
12636
12637         * FileDialog.cs: When close dialog with ok set filterindex using combobox
12638         value. Fixes #81784.
12639
12640 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
12641
12642         * Control.cs: Implement 2.0 scaling methods.
12643
12644 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12645
12646         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
12647           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
12648           corcompare issues.
12649
12650 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12651
12652         * ProgressBar.cs: Implemented missing 2.0 members.
12653
12654 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12655
12656         * Control.cs: Corcompare issues.
12657         * MessageBox.cs: Implemented missing 2.0 functions.
12658
12659 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12660
12661         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
12662           Implemented more 2.0 members.
12663
12664 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12665
12666         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
12667           null (strange, but it seems to happen when running unit tests).
12668
12669 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12670
12671         * ContainerControl.cs: Set active_control even earlier, before 
12672         firing any events, and undo it if validation returns false.
12673
12674 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12675
12676         * ContainerControl.cs: Raise Validation and Enter/Leave events
12677         even if there is no Form and set active_control earlier, just
12678         before firing Enter events (toshok's patches). Fixes #80647.
12679
12680 2007-05-30  Jackson Harper  <jackson@ximian.com>
12681
12682         * TextControl.cs: Redid the pageup/pagedown a little to simplify
12683         things and fix bug #81311.
12684
12685 2007-05-30  Jackson Harper  <jackson@ximian.com>
12686
12687         * X11Dnd.cs: Now that we have our own event loop, we need to
12688         cancel when we get a mouseup but it won't be accepted.
12689
12690 2007-05-30  Chris Toshok  <toshok@ximian.com>
12691
12692         * DataGrid.cs (set_CurrentCell): guard against negative
12693         column/row.
12694
12695         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
12696         array index syntax instead of looping over the property names.
12697
12698         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
12699         and set IsInEditOrNavigateMode to false there.
12700
12701 2007-05-30  Jackson Harper  <jackson@ximian.com>
12702
12703         * TreeView.cs: Make sure we don't get a bad visible order when
12704         setting to the top node.  Fixes some misc crashing in
12705         ControlInspector.
12706
12707 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12708
12709         * UserControl.cs: Add 2.0 AutoSizeMode
12710
12711 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12712
12713         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
12714
12715 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12716
12717         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
12718         lines. Fixes #80285. 
12719
12720 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12721
12722         * DataGridColumnStyle.cs: Add char trimming column header text format. 
12723
12724 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12725
12726         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
12727         Fixes #80147.
12728
12729 2007-05-29  Jackson Harper  <jackson@ximian.com>
12730
12731         * TreeNode.cs: Fix off by one on calculating whether or not a node
12732         is visible.
12733
12734 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
12735
12736         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
12737         * ScrollableControl.cs: Force an UpdateDistances when we move the
12738         scrollbars.
12739         [Fixes bug #80605]
12740
12741 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12742
12743         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
12744         update the page setup screen.
12745
12746 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12747
12748         * PageSetupDialog.cs: Fix landscape mode.
12749
12750 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12751
12752         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
12753         IconSizeHorizontalSpacing.
12754
12755 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12756
12757         * ListView.cs: The declaration of prev_tooltip_item should be inside
12758         a NET_2_0 conditional (avoid a warning).
12759
12760 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12761
12762         * PageSetupDialog.cs: Implement PrintPreview control to display
12763         the preview thumbnail. Change unit conversion to use 
12764         PrinterUnitConvert methods.
12765         
12766         Note: there is a huge bug in ms.net where the default margins are 
12767         interpreted as centimeters (?), when in fact they are set in inches. When 
12768         loading the page setup dialog initially (ms.net), the default margins 
12769         are set to 1 inch, and the dialog shows them with value 10, when in fact 
12770         it should be 25 (properly converted). Our dialog doesn't have this bug.
12771         
12772         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
12773         RectangleF.
12774         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
12775
12776 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12777
12778         * ListView.cs:
12779         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
12780         items.
12781
12782 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12783
12784         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
12785         an IntPtr on csc (it builds fine on mcs, could it be a compiler
12786         bug?), convert the ptr to Int32 first.
12787
12788 2007-05-28  Jackson Harper  <jackson@ximian.com>
12789
12790         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
12791         recieved, we will exit the dnd tracking loop.
12792
12793 2007-05-28  Jackson Harper  <jackson@ximian.com>
12794
12795         * X11Dnd.cs: Keep tracking until the xdnd finished event is
12796         recieved. TODO: I should probably stick a timer on the dropped
12797         event, and finish the drag if the XDND Finished event never shows
12798         (because some apps don't seem to send it).
12799
12800 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
12801
12802         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
12803         #81733.
12804
12805 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12806
12807         * MonthCalendar.cs: Only mark the keypresses we actually handle as
12808           handled.
12809
12810 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12811
12812         * MonthCalendar.cs: Set the size after initializing all the relevant
12813           variables. Fixes #81742.
12814
12815 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12816
12817         * KeyEventArgs.cs: Fix typo.
12818
12819 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
12820
12821         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
12822         to match MS. Fixed MinDate to only accept value less than or equal
12823         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
12824         Removed TODO's that are now verified by unit tests.
12825
12826 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
12827
12828         * TreeNodeCollection.cs: Minor corrections to exceptions to match
12829         MS.
12830
12831 2007-05-25  Jackson Harper  <jackson@ximian.com>
12832
12833         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
12834         it's own message loop.
12835         * XplatUIX11.cs: Remove some of the dnd hooks
12836
12837 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
12838
12839         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
12840         instead of MinimizedWindowSize.
12841
12842 2007-05-25  Jackson Harper  <jackson@ximian.com>
12843
12844         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
12845
12846 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12847
12848         * KeyEventArgs.cs: Added SuppressKeyPress.
12849         * Control.cs: Added support for SuppressKeyPress.
12850
12851 2007-05-24  Andreia Gaita  <avidigal@novell.com>
12852
12853         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
12854         problems with PieChart. suppress_validation should not be a counter,
12855         if there are several BeginInit calls, the first EndInit will 
12856         activate validation. Fix exceptions thrown by set_Value.
12857         * UpDownBase.cs: ValidateText only if it's the user editing it.
12858
12859 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12860
12861         * ListControl.cs: FilterItemOnProperty should return the filtered
12862         item proeprty even if DataSource is null. The same applies for
12863         GetItemText. Fixes #80427.
12864
12865 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12866
12867         * Control.cs: If a control doesn't have a parent when it's Dock is
12868         set, but it has children, it needs to do a layout.  Fixes some nested
12869         controls issues.  [Fixes bug #81199]
12870
12871 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12872
12873         * ComboBox.cs: If there are few items in the drop down list, make it
12874           the exact size the items need, no bigger. Fixes #81612.
12875
12876 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12877
12878         * Application.cs: When we have captured the keyboard for a menu,
12879         check for mouse down events in case we need to close the menu.
12880         * Control.cs, Form.cs: Remove mouse down checks for menus.
12881
12882 2007-05-24  Jackson Harper  <jackson@ximian.com>
12883
12884         * TextControl.cs: Handle tabs in non multiline mode a little
12885         differently.
12886
12887 2007-05-24  Jackson Harper  <jackson@ximian.com>
12888
12889         * TextControl.cs: We need to manually break apart tabbed text and
12890         move the tabs, since the system.drawing tabbing mechanism relies
12891         on tab stops.
12892         * TextBoxBase.cs: Move the caret properly when the user enters a
12893         tab.
12894
12895 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12896
12897         * ContainerControl.cs: Don't check CanSelect before calling
12898         ProcessMnemonic.
12899         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
12900         release a KeyboardActive on click if it's not ours.
12901
12902 2007-05-23  Andreia Gaita  <avidigal@novell.com>
12903
12904         * ColumnHeader.cs: Add TypeConverter
12905
12906 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12907
12908         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
12909
12910 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12911
12912         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
12913
12914 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12915
12916         * LinkLabel.cs: Implement public Padding property.
12917
12918 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12919
12920         * LinkLabel.cs: Implement public FlatStyle.
12921
12922 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
12923
12924         * Control.cs: Apply patch from George to call parent.PerformLayout
12925         when Visible is changed.  [Fixes bugs #81118, 81718]
12926
12927 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12928
12929         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
12930
12931 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12932
12933         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
12934
12935 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12936
12937         * ContextMenu.cs: Implement Collapse.
12938
12939 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
12940
12941         * ToolBarButton.cs: Implement Name.
12942
12943 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
12944
12945         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
12946         use current_item, it prevents some NRE. Fixes #81675.  
12947
12948 2007-05-22  Andreia Gaita  <avidigal@novell.com>
12949
12950         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
12951         without updating the text.
12952
12953 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
12954
12955         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
12956         without calling DeleteObject.  [Should fix bug #81709]
12957
12958 2007-05-22  Jackson Harper  <jackson@ximian.com>
12959
12960         * RichTextBox.cs: Set the line endings correctly, when flushing
12961         RTF text.
12962
12963 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
12964
12965         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
12966          {Width=0,Height=0}.
12967
12968 2007-05-22  Jackson Harper  <jackson@ximian.com>
12969
12970         * TreeView.cs: Setting top with a null node should set to the very
12971         top.
12972
12973 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12974
12975         * Form.cs: ShowDialog: destroy the handle when message loop is
12976           finished, matches MS behaviour. Refactor parts of WmClose into
12977           RaiseCloseEvents, that only raises events if they haven't already
12978           been raised. Fixes #81688 and #81521.
12979         * Application.cs: Don't call close on the form when exiting a modal
12980           loop, it will raise all the (Form)Closed/Closing events again if
12981           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
12982           which doesn'r raise any events it they have been raised before.
12983
12984 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
12985
12986         * Control.cs: Add OnPrint.
12987         * ToolStrip.cs: Add GetChildAtPoint.
12988         * ToolStripContainer.cs: Add OnRightToLeftChanged.
12989         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
12990
12991 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
12992
12993         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
12994
12995 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12996
12997         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
12998           isn't visible anymore. Fixes #81651.
12999
13000 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13001
13002         * Control.cs: WmShowWindow: Update children's z-order after setting
13003           their parent. SetParent may show the window, thereby corrupting
13004           z-order, since the window will be shown on top.
13005         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
13006           multiple (and redundant) WM_SHOWWINDOW messages.
13007         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
13008           event has already been raised.
13009         * Form.cs: Change is_changing_visible_state to a counter, since
13010           SetVisibleCore can be called recursively. CreateHandle: when
13011           creating mdi children, send (De)Activated events.
13012         * MdiClient.cs: Update use of is_changing_visible_state.
13013         * Application.cs: OnThreadException: Surround exception handling with
13014           try/finally to ensure we always reset the error-handling state
13015           before leaving.
13016
13017 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13018
13019         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
13020           (#81704).
13021
13022 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13023
13024         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
13025         SmallIcon views, now that we have a standarized horizontal spacing.
13026
13027         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
13028         4, just like the other views (Match .Net).
13029
13030 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
13031
13032         * Control.cs: Delay calculating anchor distances until we actually layout.
13033         Always query the WM for the actual size and location it put us at instead of
13034         only when we send negative values.
13035         [Fixes bugs #81694, 81695]
13036
13037 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13038
13039         * Application.cs: Avoid a possible stack overflow when trying to exit
13040           the application.
13041
13042 2007-05-19  Marek Safar  <marek.safar@gmail.com>
13043
13044         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
13045         enum value.
13046
13047 2007-05-19  Andreia Gaita  <avidigal@novell.com>
13048
13049         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
13050         * NumericUpDownAcceleration.cs, 
13051           NumericUpDownAccelerationCollection.cs: Added 2.0
13052           implementation.
13053
13054 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
13055
13056         * RichTextBox.cs: Recalculate the document after the ScrollBars
13057         property is changed. Fixes bug #81681.
13058
13059 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
13060
13061         * DataObject.cs: Implement 2.0 methods.
13062
13063 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13064
13065         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
13066         in the center of the checkbox, not in the left-top corner. 
13067         Fixes #80037.
13068
13069 2007-05-18  Jackson Harper  <jackson@ximian.com>
13070
13071         * RichTextBox.cs: Recalculate the document after the scrollbars
13072         property is changed.
13073         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
13074         81486.
13075
13076 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13077
13078         * CreateParams.cs: Make HasWindowManager marginally faster.
13079         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
13080           into Hwnd so that other drivers can use it as well.
13081         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
13082           the default location from Hwnd. Fixes MDI client windows always
13083           showing up at (0,0) in Windows (Win32 won't set the default
13084           location since the window styles aren't correct).
13085
13086 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
13087
13088         * TreeView.cs: Modified DoubleBuffered to just use the base
13089         implementation.
13090
13091 2007-05-18  Jackson Harper  <jackson@ximian.com>
13092
13093         * TreeView.cs: Set the top node to the last child node when
13094         expanding all
13095         - When we get focus, if there is no selected node, use the top
13096         node.
13097
13098 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
13099
13100         * KeysConverter.cs: Add CanConvertTo.
13101         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
13102         * LinkConverter.cs: Added.
13103
13104 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13105
13106         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
13107         it prevents error when file dont have write access. Fixes #81669 and #81667.  
13108
13109 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13110
13111         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
13112         button text. Fixes #79640.  
13113
13114 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13115
13116         * Control.cs: According to MSDN controls created in the designer theres 
13117         keyboard accelerators visible by default. So included check for design
13118         in ShowKeyboardCuesInternal.  
13119
13120 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13121
13122         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
13123         text. Fixes #81621.  
13124
13125 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13126
13127         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
13128         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
13129
13130 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13131
13132         * Control.cs: Finish implementation of UI State using WmChangeUIState
13133         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
13134         in some controls to check for show_keyboard_cues to draw accell keys "_".  
13135
13136 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13137
13138         * ListBox.cs: When calculating the horizontal scrollbar
13139         in single column mode, don't use values less than 0 for
13140         Maximum. Fixes #81474.
13141
13142 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13143
13144         * ListBox.cs: Throw the some missing exceptions in
13145         ListBox.ObjectCollection methods.
13146
13147 2007-05-17  Jackson Harper  <jackson@ximian.com>
13148
13149         * TextBoxBase.cs: Recalculate the document when the word wrap
13150         value has changed. This fixes 81488.
13151
13152 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13153
13154         * Clipboard.cs: Implement missing GetText overload.
13155
13156 2007-05-17  Chris Toshok  <toshok@ximian.com>
13157
13158         * Control.cs (CheckDataBindings): remove the binding_context arg
13159         to binding.Check.
13160
13161         * CurrencyManager.cs (OnItemChanged): fix this now that
13162         BindingManagerBase is fixed. also remove the comment telling where
13163         the fix should go.  We set transfering_data to true/false around
13164         the call to PushData to keep UpdateIsBinding from being called.
13165         (ListChangedHandler): remove the extra OnMetaDataChanged call for
13166         PropertyDescriptorAdded in the 1.1 case.  The extra call is
13167         actually generated by System.Data generating 2 metadata changed
13168         events of its own per column add.  The fix should go there.  Add a
13169         comment to that affect in our test's Assert.Ignore.
13170
13171         * BindingManagerBase.cs: Rework PullData and PushData slightly.
13172         we keep a boolean flag (transfering_data) that keeps us from
13173         calling UpdateIsBinding multiple times if we re-enter either of
13174         them.
13175
13176         * ControlBindingsCollection.cs (AddCore): remove the
13177         binding_context arg to binding.Check.
13178
13179         * Binding.cs (IsBinding): don't check if we're binding here, just
13180         return our cached value.  we update it in UpdateIsBinding.
13181         (Check): don't take the binding_context arg, we'll just use our
13182         control's.  Also, for some reason MS doesn't use the data member
13183         field when getting the bindingmanager for this binding.  it just
13184         uses the datasource.  Make this method callable multiple times,
13185         and only do the is_null_desc stuff if manager.Position != -1 (so
13186         we don't get an exception accessing manager.Current).
13187         (UpdateIsBinding): move the code from IsBinding here.
13188         (PositionChangedHandler): call Check here to we can initialize
13189         things that require a non- -1 position.
13190
13191 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13192
13193         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
13194         control.
13195
13196 2007-05-17  Andreia Gaita  <avidigal@novell.com>
13197
13198         * TabControl.cs: Add 2.0 methods and events, including
13199         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
13200         * TabPage.cs: Add 2.0 methods
13201
13202 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13203
13204         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
13205         keyboard_cues is properly handled by message method.  
13206
13207 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13208
13209         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
13210
13211 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13212
13213         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
13214
13215 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
13216
13217         * Control.cs: 
13218         - WmUpdateUIState added to handle state changes, it make call to
13219         OnChangeUICues event.
13220         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
13221         SystemInformation.
13222
13223 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
13224
13225         * ImageKeyConverter.cs: Added.
13226         * TreeViewImageKeyConverter.cs: Added.
13227
13228 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13229         
13230         * ToolTips.cs: Update Text if SetToolTip is called for a control
13231         already showing the tooltip, as well as restarting its timer; show
13232         tooltip if we are inside the control bounds by the time of calling
13233         SetToolTip. Inside ShowTooltip remove the check to not show the 
13234         tooltip again for the active control (it is allowed by .Net to 
13235         show the tooltip on the same control multiple times).
13236
13237 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13238
13239         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
13240
13241 2007-05-16  Andreia Gaita <avidigal@novell.com> 
13242
13243         * ContainerControl.cs: only process tab key if there are no 
13244         modifier keys present, otherwise the control does the 
13245         tab processing, if it needs to. Fixes #81622
13246         * TabControl.cs: Fixes calculation for which tab to select on
13247         shift+ctrl+tab.
13248
13249 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13250
13251         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
13252
13253 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
13254
13255         * Control.cs: Make IsInputCharInternal to allow controls to
13256         override it and still match MS API.
13257         * TextBoxBase.cs: Override IsInputCharInternal and always
13258         return true.
13259         [Fixes bug #81616]
13260
13261 2007-05-15  Jackson Harper  <jackson@ximian.com>
13262
13263         * TextBox.cs: Disable some of the menu options when using a
13264         readonly textbox.
13265
13266 2007-05-15  Jackson Harper  <jackson@ximian.com>
13267
13268         * TextBox.cs:
13269         * TextBoxBase.cs:
13270         * RichTextBox.cs: Some new 2.0 methods
13271
13272 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
13273
13274         * FileDialog.cs: On 1.0 profile, do not support multidotted 
13275         extensions.
13276
13277 2007-05-14  Jackson Harper  <jackson@ximian.com>
13278
13279         * TextBoxBase.cs: Implement some of the new 2.0 methods.
13280         * RichTextBox.cs: We need to override these methods on 2.0.
13281         * MaskedTextBox.cs: These are implemented now
13282         * TextControl.cs: This was off by one.
13283
13284 2007-05-14  Jackson Harper  <jackson@ximian.com>
13285
13286         * TextControl.cs: Because the line endings are including in the
13287         text, we don't need to add them in anymore.
13288
13289 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13290
13291         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
13292         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
13293
13294 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13295
13296         * ToolBar.cs: Adjust size to default size when button theres no text and
13297         image, it fixes remaining issues from #81524.
13298
13299 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13300
13301         * ToolBar.cs: 
13302         - When not flat call redraw to recalculate sizes on creare handle to match
13303         win32 behavior.
13304         - Revert 77220 because it causes some regressions in toobar
13305         button.
13306
13307 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13308
13309         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
13310           now actually enters a usable state.
13311
13312 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13313
13314         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
13315         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
13316         3 buttons.
13317
13318 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13319
13320         * ToolBar.cs: Save default_size on create handle to use later for buttons
13321         without text, needed to mimic win32 behavior.
13322
13323 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13324
13325         * ToolBar.cs: Fix button layour to best fit width or height according to
13326         vertical or not. Fixes #81524.
13327
13328 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
13329
13330         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
13331         toolbar size info because different styles theres different sizes.
13332         Fixes #81522.
13333
13334 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13335
13336         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
13337         if we are using checkboxes, checked is true, and we have less
13338         than two images in StateImageList; for the 1.1 in the same scenario
13339         draw the first image if we have at least one image in StateImageList.
13340         Fixes part of #81191.
13341
13342 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13343
13344         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
13345         the owner's Items collection on merge.
13346
13347 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13348
13349         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
13350         * ToolStripItemCollection.cs: Lots of fixes to when events get called
13351         and parent/owner gets changed based on gert's unit tests.
13352
13353 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13354
13355         * MaskedTextBox.cs: Started implementing parts of it.
13356
13357 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13358
13359         * ListView.cs: When clicking the checkbox on the items
13360         take into account the double clicks even if we have only
13361         one image in StateImageList (only for 1.0/1.1). Also 
13362         generate an extra change of checked state when we receive
13363         the second click on checkbox (match .Net behaviour). 
13364         Fixes part of #81191.
13365
13366 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
13367
13368         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
13369
13370 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13371
13372         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
13373         even if OnLoad is overriden and base.OnLoad is not called.
13374         [Fixes bug #81582]
13375
13376 2007-05-10  Andreia Gaita  <avidigal@novell.com>
13377
13378         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
13379         shame. (I blame my ever-persisting and annoying cold)
13380
13381 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13382
13383         * ListView.cs: Don't eat navigation keys.  Let them flow through to
13384         KeyDown/KeyPress routines.  [Fixes bug #81569]
13385
13386 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13387
13388         * ListView.cs: When handling keys for selecting the item based off
13389         keyboard input, do not consider keys pressed with Alt or Control.  Also,
13390         correctly handle keys when the Shift key is down. [Fixes bug #81578]
13391
13392 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13393
13394         * Control.cs: When using UseWaitCursor, we have to store the requested
13395         Cursor to use when UseWaitCursor is turned off.
13396
13397 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13398
13399         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
13400         to false.
13401         * Application.cs: Use PreProcessControlMessage instead of
13402         PreProcessMessage.
13403         * PreProcessControlMessage.cs: Make internal for 1.1.
13404
13405 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13406
13407         * Control.cs: Add InternalContains focus property, which hast the same
13408         functionality of ContainsFocus, but also including implicit controls.
13409         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
13410         since we need to know if the focus is contained in our implicit
13411         ItemControl when calculating Layout. Fixes part of #80888.
13412
13413 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
13414
13415         * ToolTip.cs: Remove center form string alignment as it must be align to
13416         left.
13417
13418 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
13419
13420         * ToolStripItemCollection.cs: Set the new item's parent and owner
13421         in Insert like we do in Add.  [Fixes bug #81568]
13422
13423 2007-05-08  Jackson Harper  <jackson@ximian.com>
13424
13425         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
13426         - Off by one error in SetTop
13427         - Disable DoubeBuffering
13428         
13429 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13430
13431         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
13432           control as much as necessary in order to make it entirely visible,
13433           instead of centering the control in the container (matches MS
13434           behaviour). CalculateCanvasSize: we need to take the current scroll
13435           position into account when calculating the maximum canvas,
13436           otherwise the following scenario will fail: resize so that the
13437           scrollbars appear, use the scrollbars to scroll, resize again
13438           smaller, and now the canvas size is too small. Recalculate: when
13439           showing scrollbars make sure they start off at 0, and try to scroll
13440           the active control into view. Fixes #79540. HandleScrollBar: don't
13441           scroll anywhere if the scrollbar isn't visible.
13442
13443 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13444
13445         * ListView.cs: When focus changed, call Layout/Invalidate
13446         in the focused item to update the selected state (should show
13447         entire label when ListView is focused, and a part of it if is not).
13448         * ListViewItem.cs: When doing layout for LargeIcon, take into account
13449         for displaying the entire label not only the Focused state of the
13450         item, but also the Focused state of the ListView (match .Net
13451         behaviour).
13452
13453 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13454
13455         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
13456         Implement UseWaitCursor. 
13457
13458 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13459         Applying contributed patch from Sergey Volk.
13460
13461         * Clipboard.cs: Implement SetDataObject retry logic and new overload
13462         of SetDataObject.
13463         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
13464
13465 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13466
13467         * Control.cs: Implement DrawToBitmap.
13468
13469 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13470         Applying contributed patch from Stefan Noack.
13471         
13472         * Control.cs: Add [Get|Set]AutoSizeMode.
13473
13474 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13475
13476         * MdiClient.cs: Unmerge menus when the last child is closed.
13477
13478 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13479
13480         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
13481         * ToolStripManager.cs: Call Merge on DropDowns.
13482         [Fixes bug #81477]
13483
13484 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13485
13486         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
13487           uints.
13488         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
13489           visibility. We can't create forms visible, since we have to set the
13490           owner before making the form visible (otherwise Win32 will do
13491           strange things with task bar icons). The problem is that we set the
13492           internal is_visible to true before creating the control, so
13493           is_changing_visible_state is the only way of determining if we're
13494           in the process of creating the form due to setting Visible=true -
13495           this works because SetVisibleCore explicitly makes the form
13496           visibile afterwards anyways. Fixes #80775.
13497
13498 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13499
13500         * ThemeWin32Classic.cs: When drawing ListViewItems,
13501         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
13502         or LargeIcon _and_ item is not focused (match .Net behaviour).
13503
13504 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
13505
13506         * Control.cs, Form.cs: Fix some obsolete method warnings.
13507
13508 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
13509
13510         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
13511         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
13512
13513 2007-05-04  Andreia Gaita  <avidigal@novell.com>
13514
13515         * ContainerControl.cs: Fix active_control attribution when going
13516         up the parent chain so that the first parent container gets the control
13517         and the rest of the parent containers get the child containers (skips
13518         non-containers). Fixes #80729
13519
13520 2007-05-04  Randolph Chung  <tausq@debian.org>
13521
13522         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
13523         [Fixes bug #81499]
13524
13525 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13526
13527         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
13528           takes a size parameter, since the CreateParam's size isn't true for
13529           minimized forms. Fixes #81518,
13530
13531 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13532
13533         * Form.cs: Add OnDeactivateInternal.
13534         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
13535
13536 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13537
13538         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
13539           accessing the parent. Fixes #81508.
13540
13541 2007-05-03  Chris Toshok  <toshok@ximian.com>
13542
13543         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
13544         2.0 block, pass listposition + 1 to ChangeRecordState when a row
13545         was added before the current listposition.  Fixes the
13546         TestInsertRowBeforeCurrent unit test.
13547
13548 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
13549
13550         * Application.cs: Add RaiseIdle.
13551         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13552         XplatUIX11.cs: Implement RaiseIdle.
13553
13554 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
13555         corcompare work: N - Z
13556         * NotifyIcon.cs
13557         * ProgressBar.cs
13558         * RadionButton.cs
13559         * ScrollableControl.cs
13560         * SplitContainer.cs
13561         * SplitterPanel.cs
13562         * StatusBar.cs
13563         * SystemInformation.cs
13564         * TabControl.cs
13565         * TableLayoutControlCollection.cs
13566         * TableLayoutPanel.cs
13567         * TabPage.cs
13568         * ToolBar.cs
13569         * ToolBarButton.cs
13570         * ToolStrip.cs
13571         * ToolStripComboBox.cs
13572         * ToolStripContainer.cs
13573         * ToolStripContentPanel.cs
13574         * ToolStripDropDown.cs
13575         * ToolStripDropDownItem.cs
13576         * ToolStripDropDownMenu.cs
13577         * ToolStripItem.cs
13578         * ToolStripItemCollection.cs
13579         * ToolStripMenuItem.cs
13580         * ToolStripPanel.cs
13581         * ToolStripSplitButton.cs
13582         * ToolTip.cs
13583         * TreeNode.cs
13584         * TreeNodeCollection.cs
13585         * TreeNodeMouseHoverEventArgs.cs
13586         * TreeView.cs
13587
13588 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
13589
13590         * ContextMenu.cs: Add public method Show with alignment property to 2.0
13591         stuff. Thanks aatdark for the patch. 
13592
13593 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13594
13595         * GridItem.cs: Implement 2.0 Tag property.
13596
13597 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
13598
13599         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
13600         count instead of Nodes.Length.  [Fixes bug #81448]
13601
13602 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13603
13604         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
13605         [Fixes bug #81506]
13606
13607 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13608         corcompare work: A - M
13609         * BindingNavigator.cs
13610         * Button.cs
13611         * ButtonBase.cs
13612         * CheckBox.cs
13613         * Control.cs
13614         * FlowLayoutPanel.cs
13615         * Form.cs
13616         * Label.cs
13617         * LinkLabel.cs
13618         * ListView.cs
13619
13620 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13621
13622         * Application.cs: Give toolstrips a chance to process mnemonics.
13623         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
13624         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
13625         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
13626
13627 2007-05-01  Jackson Harper  <jackson@ximian.com>
13628
13629         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
13630         wider area too.
13631         - Don't set the BoundsSpecified
13632
13633 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13634
13635         * Application.cs: When using the toolstrip shortcut mechanism, allow the
13636         message to pass through to a regular control if it hosted by a toolstrip.
13637         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
13638         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
13639
13640 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13641
13642         * TextRenderer.cs: Use the flags argument when using the MeasureString
13643         fallback algorithm.
13644
13645 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13646
13647         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
13648         the MDI menu item.  [Fixes bug #81483]
13649
13650 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
13651
13652         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
13653         string. When setting Name to null, use zero-length string instead.
13654
13655 2007-04-29  Andreia Gaita  <avidigal@novell.com>
13656
13657         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
13658         DeselectTab). Implement missing 2.0 TabPageCollection methods
13659         (Add, ContainsKey, RemoveByKey, IndexOfKey)
13660
13661 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
13662
13663         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
13664
13665 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
13666
13667         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
13668         Fixes bug #81479. Include details of exception when LoadFile fails.
13669
13670 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
13671
13672         * DrawListViewSubItemEventArgs.cs: Added missing setter
13673
13674 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13675
13676         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
13677         Hide methods (not complete). Implement missing 2.0 OnPopup event.
13678
13679 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13680
13681         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
13682         removed in ly last commit (it was breaking the Label edit feature).
13683
13684         * ThemeWin32Classic.cs: When drawing a ListViewItem use
13685         StringAlignment.Near for LineAlignment (match .Net).
13686
13687 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13688
13689         * TabControl.cs: Change SetTab so it adds the tabpage to the list
13690         of controls if it isn't already there - was blowing up when doing
13691         tabcontrol.TabPages[i]=new TabPage(). 
13692         SetTab now does a replace by removing the page at the index. 
13693         Add a new InsertTab method that inserts a page in a given index 
13694         instead of replacing. 
13695         Implements TabPageCollection.Insert(int, TabPage).
13696
13697 2007-04-27  Chris Toshok  <toshok@ximian.com>
13698
13699         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
13700         internal handler that can be invoked from our subclasses.)  Also,
13701         add a comment to PushData about how we need to fix it.
13702
13703         * CurrencyManager.cs: tons of changes here.  trying to get things
13704         matching the behavior of .net wrt event orders (ItemChanged,
13705         CurrentChanged, PositionChanged.)  I've implemented a private .net
13706         symbol (ChangeRecordState) that appears in stack traces because
13707         it's actually easier to do this than to effective inline all its
13708         various behaviors at every call site.
13709
13710         * RelatedPropertyManager.cs: guard against an exception here by
13711         not using parent.Current if the position is set to -1 (if the
13712         parent datasource is cleared, for instance).
13713
13714         * Binding.cs: don't parse data in PushData (this might be wrong,
13715         but it jives with MS's behavior.)  Also, don't call PushData when
13716         we get a CurrentChanged event.
13717
13718 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13719
13720         * WebBrowser.cs,
13721           WebBrowserBase.cs,
13722           WebBrowserSiteBase.cs,
13723           HtmlDocument.cs: Added stubbed out classes, no real implementations 
13724           yet.
13725
13726 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13727
13728         * MainMenu.cs: In draw method without parameters call draw method with 
13729         PaintEvent, another one (just rect) adjust rectangle and we dont need it
13730         as Rect property is already adjusted. Fixes #80694.
13731
13732 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
13733
13734         * Application.cs: Need to handle keyboard menu deselection here.
13735         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
13736         navigation, allowing keyboard to work on X11.
13737         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
13738
13739 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13740
13741         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
13742         menu bar. It fixes some drawing issues in menu bar.
13743
13744 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13745
13746         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
13747         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
13748         when <alt> key is pressed.
13749
13750 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
13751
13752         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
13753         example just set visible to false and make this prevent from other problems.
13754         In SystrayAdd always remove pending expose. Fixes #81072.
13755
13756 2007-04-26  Marek Safar  <marek.safar@gmail.com>
13757
13758         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
13759         value is set.
13760
13761 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13762
13763         * ListView.cs: Added three missing 2.0 events and corresponding
13764         EventHandlers. Added the OwnerDraw property.
13765         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
13766
13767 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13768
13769         * DrawListViewItemEventArgs.cs
13770         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
13771
13772 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13773
13774         * TextControl.cs: Fixed typo in constructor
13775
13776 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
13777
13778         * Application.cs: Create a shortcut path so that currently selected
13779         MenuStrips can intercept keyboard events without having focus.
13780         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
13781         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
13782         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
13783         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
13784         generate WM_SYSCOMMAND message in X11 for other platforms.
13785         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
13786         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
13787         * ToolStripSplitButton.cs: Add DefaultItem property.
13788         
13789 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
13790
13791         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
13792         fixes some menu draw problem on Windows with border diferent from default
13793         it also fixes #81403.
13794
13795 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13796
13797         * Form.cs: Refactor WndProc into separate methods, just like Control is
13798           doing it.
13799
13800 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13801
13802         * Control.cs: set_Text: move the call to the driver into a seperate
13803           virtual method so that Form can override it.
13804         * MaskedTextBox.cs: Corcompare fixes.
13805         * Form.cs: Override UpdateWindowText and only update the styles if the
13806           form has been shown (fixes #81405).
13807
13808 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
13809
13810         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
13811         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
13812         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
13813         the form lost focus or another control was clicked.
13814
13815 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
13816
13817         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
13818         fixed.
13819
13820 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13821
13822         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
13823           DrawListViewItemEventHandler.cs,
13824           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
13825           Added.
13826         * X11Structs.cs: More ToString implementation.
13827
13828 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
13829
13830         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
13831         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
13832
13833 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13834
13835         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
13836           handle.
13837         * FormCollection.cs: Don't add a form if it's already in the
13838           collection.
13839         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
13840           according to behaviour and MSDN. The ownerWin32 is the active
13841           window at the moment when we call ShowDialog, not the context's
13842           main form (the context's main form may open another form that opens
13843           a form with ShowDialog, the win32 owner is the second form). Add
13844           and remove forms to the Application.OpenForms in other places to
13845           better match MS behaviour. Add an IsActive property that raises
13846           On(de)Activated only if the active state has changed (we were
13847           raising OnDeactivated before OnActivated while creating forms).
13848         * Application.cs: Refactor Enabling/Disabling of windows for modal
13849           dialog loops out to separate methods, and restore the thread
13850           context when we quit the method. Fixes #81407.
13851
13852 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13853
13854         * ListView.cs: In ItemControl.HandleClicks, also fire 
13855         2.0 MouseClick or MouseDoubleClick events on the parent,
13856         not only the Click/DoubleClick events.
13857
13858 2007-04-24  Andreia Gaita  <avidigal@novell.com>
13859
13860         * TableLayoutSettings.cs: 
13861         - Added a GetControls method and a support structure to help the 
13862         TypeConverter to enumerate the controls for     serialization. 
13863         - Added a new serialization constructor. 
13864         - Added a isSerialized flag initialized to true on the 
13865         serialization constructor so that the TableLayoutPanel.LayoutSettings 
13866         setter does not throw the designed NotSupportedOperation exception
13867         when the object is built through deserialization.
13868         - Implemented GetObjectData
13869         
13870         * TableLayoutPanel.cs: Added check on LayoutSettings.
13871
13872 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13873
13874         * ListView.cs: Report Click and DoubleClick events to the parent
13875         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
13876         from breaking the click count state when using dialog forms (Control
13877         reports the clicks in a similar fashion). In the previous behaviour
13878         the last WM_LBUTTONUP message in a  double click was sent to the
13879         ListView's form, instead of the ListView, which was breaking the click
13880         count for it. Fixes #80387.
13881
13882 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
13883
13884         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
13885
13886 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
13887
13888         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
13889         us from created dropdowns for menu items that do not have subitems.
13890         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
13891         Check HasDropDownItems before calling DropDown so a dropdown will not be
13892         created if it isn't needed.
13893
13894 2007-04-24  Jackson Harper  <jackson@ximian.com>
13895
13896         * TreeView.cs: Set the first node to the selected node when we get
13897         focus if there is no selected node.
13898
13899 2007-04-24  Andreia Gaita  <avidigal@novell.com>
13900
13901         * MimeIcon.cs: remove using blocks so that image streams are
13902         not disposed of. Fixes #80151
13903
13904 2007-04-24  Jackson Harper  <jackson@ximian.com>
13905
13906         * TextBoxBase.cs: Fixup the height of textboxes when the control
13907         is created.
13908
13909 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
13910
13911         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
13912         for each ToolStripItem when the parent's RightToLeftChanged is called.
13913
13914 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13915
13916         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
13917           Fixes #80163.
13918         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
13919           property, so that the setter can be overriden too.
13920         * TextBox.cs: Change GetContextMenuInternal() to use
13921           ContextMenuInternal.
13922
13923 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13924
13925         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13926           #81406.
13927
13928 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13929
13930         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13931           #81406.
13932
13933 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13934
13935         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
13936           avoid duplicate work. Mostily skeleton code, it's not working at
13937           all yet.
13938
13939 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
13940
13941         * NotifyIcon.cs : stub for MouseClick event
13942         * Application.cs: stub for SetUnhandledExceptionMode
13943
13944 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
13945
13946         * BindingNavigator.cs : Initial (partial) implementation
13947
13948 2007-04-23  Jackson Harper  <jackson@ximian.com>
13949
13950         * TreeView.cs: Do not create the treeview's handle when setting
13951         the scroll position.
13952         - ExpandAll needs to compute the scrollbars so it knows which
13953         position to set the bar too.
13954         * TreeNode.cs: 
13955         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
13956
13957 2007-04-23  Jackson Harper  <jackson@ximian.com>
13958
13959         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
13960         key. Fixes #81408.
13961
13962 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
13963
13964         * ToolStripItem.cs: Make GetImageSize internal.
13965         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
13966         need to draw an item.  Fixes a reported issue where images on menus
13967         that were not 16x16 were drawing incorrectly.
13968
13969 2007-04-21  Miguel de Icaza  <miguel@novell.com>
13970
13971         * Padding.cs: Use the converter, fixes the resgen2 issue with
13972         XMLNotePad. 
13973
13974 2007-04-21  Jackson Harper  <jackson@ximian.com>
13975
13976         * TreeView.cs: Dont try to unhighlight the selected node if there
13977         isn't a selected node.
13978
13979 2007-04-21  Jackson Harper  <jackson@ximian.com>
13980
13981         * UpDownBase.cs:
13982         * TextBoxBase.cs:
13983         * ListView.cs:
13984         * ListBox.cs:
13985         * TreeView.cs: Use the InternalBorderStyle property to set the
13986         initial border style, this forces the client rectangle to be sized
13987         correctly.
13988
13989 2007-04-20  Jackson Harper  <jackson@ximian.com>
13990
13991         * TreeView.cs: Simplify scrolling to the last node after expanding
13992         all.
13993         - Fix some off by ones with setting the bottom.
13994
13995 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
13996
13997         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
13998         that.  We were incorrectly doing it the other way around.  Also,
13999         update ClientSize if we change the BorderStyle before the control
14000         is created.
14001
14002 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
14003
14004         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14005         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14006         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
14007         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14008         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14009         Caption to CaptionHeight.
14010         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
14011         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
14012         and FixedFrameBorderSize to return value from current XplatUI driver.
14013         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
14014         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
14015         and FixedFrameBorderSize using win32 API. Renamed Caption to
14016         CaptionHeight.
14017         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
14018         * SystemInformation.cs: Fixed typo in BorderSize.
14019
14020 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
14021
14022         * XplatUI.cs: Added MenuAccessKeysUnderlined.
14023         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
14024         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
14025         returning false.
14026         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
14027         value from XplatUI driver.
14028         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
14029         SystemParametersInfo.
14030         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
14031         override.
14032         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
14033         returning false.
14034
14035 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14036
14037         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
14038
14039 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14040
14041         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
14042
14043 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
14044
14045         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
14046         MenuStrips that contain ToolStripSeparators.
14047
14048 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14049
14050         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
14051           DefineStdCursorBitmap.
14052         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
14053           has been created off a standard cursor. This is used to get a
14054           bitmap of the standard cursor when Draw or DrawStretched is called
14055           in order to draw the cursor.
14056         * X11Structs.cs: Added XcursorImage and XcursorImages.
14057         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
14058           DefineStdCursorBitmap.
14059         * Cursors.cs: Update all relevant creations of Cursor to use the new
14060           internal constructor.
14061
14062 2007-04-19  Jackson Harper  <jackson@ximian.com>
14063
14064         * TextBox.cs: Move the has_been_focused into the base control, so
14065         some of the text adding methods can manipulate it (probably time
14066         for a better name for this flag too).
14067         - Call a new version of selectall that doesn't scroll
14068         * TextBoxBase.cs: When we append text, if the document is empty,
14069         don't scroll.  If the document has text already, we scroll to the
14070         end of the appended text.
14071         - When the text is changed, we reset the has_been_focused, so the
14072         next time the control gets focused, all the text is selected.
14073
14074 2007-04-19  Jackson Harper  <jackson@ximian.com>
14075
14076         * TextControl.cs: Move the margins to the document, add a method
14077         so the margin sizes can be updated.
14078         * TextBoxBase.cs: When the border style is changed, update the
14079         border sizes.
14080
14081 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
14082
14083         * Control.cs: Respect DefaultPadding.
14084         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
14085         padding into account.
14086         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
14087
14088 2007-04-19  Jackson Harper  <jackson@ximian.com>
14089
14090         * TextControl.cs: Oops, we need to use the ClientRect not the
14091         bounds here.
14092
14093 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14094
14095         * ListView.cs: In ItemControl.ItemsMouseDown, take into
14096         account the double clicks when CheckBoxes are used and
14097         the pointer is inside the checkbox. Fixes part of #81191.
14098
14099 2007-04-18  Jackson Harper  <jackson@ximian.com>
14100
14101         * TextControl.cs: Pressing the end key shouldn't move the caret
14102         past the line ending.
14103         * TextBoxBase.cs: We can still delete if we are in the line
14104         ending and the combine will just kill the existing line ending.
14105
14106 2007-04-18  Jackson Harper  <jackson@ximian.com>
14107
14108         * TextControl.cs: We can't move lines, then invalidate their
14109         bounds, we need to get the old bounds and combine that with the
14110         new bounds.
14111         * TextBoxBase.cs: Before combining two lines for a delete, we need
14112         to invalidate the area of the old line, since that will be moved
14113         in the combine operation.
14114
14115 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
14116
14117         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
14118         with transparent background. Fixes #80482.
14119
14120 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
14121
14122         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
14123         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
14124         [Fixes bug #81391]
14125
14126 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14127
14128         * CreateParams.cs: Add a couple of helper methods and do a less string
14129           concatenation in ToString.
14130         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
14131           overload that takes a Control parameter, since this method may be
14132           called before a control is assigned to the hwnd (from
14133           CreateWindow), and update CreateWindow to use the new overload. In
14134           GetMenuOrigin subtract the title bar from the y position if the
14135           form has a window manager (since we're painting it and not X).
14136         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
14137           CreateParams to calculate the origin (since border sizes may vary).
14138           In ScreenToMenu only subtract the title height if we actually have
14139           a title.
14140         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
14141           mdi children never have menus of themselves.
14142         * InternalWindowManager.cs: Implement menu handling like form does.
14143           Added GetMenuOrigin to calculate the menu origin, can't use the
14144           CreateParams from the form like normally since it's lying.
14145         * Hwnd.cs: Implement GetBorderSize better (in the sense more
14146           windows-like) and add Inflate and comparison operators to the
14147           Borders type. When calculating MenuOrigin and it's a form with a
14148           window manager, use the window manager to calculate it.
14149
14150 2007-04-17  Chris Toshok  <toshok@ximian.com>
14151
14152         * Control.cs (CreateControl): turns out in 2.0 we don't need this
14153         OnBindingContextChanged thing here.  It's only generated from
14154         ContainerControl.OnCreateControl.  Fixes a newly written unit test
14155         - BindingTest.BindingContextChangedTest4.
14156         
14157 2007-04-17  Jackson Harper  <jackson@ximian.com>
14158
14159         * ScrollBar.cs: When setting values, make sure the current
14160         position stays within the new values range.
14161
14162 2007-04-17  Chris Toshok  <toshok@ximian.com>
14163
14164         * Control.cs (CreateControl): talk about a bizarre corner case.
14165         Don't emit OnBindingContextChanged here if we're a parentless
14166         control (i.e. if we're a form.).  Fixes
14167         BindingTest.BindingContextChangedTest2.
14168
14169 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
14170
14171         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
14172         from win32. Fixes #81255.
14173
14174 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
14175
14176         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
14177         already present in CalculateButtonTextAndImageLayout.
14178
14179 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14180
14181         * XplatUIX11.cs: When setting min/max size for a window we need to
14182           translate the coordinates to x coordinates. Create an overload of
14183           SetWindowMinMax that takes a CreateParams handling this, and change
14184           SetWMStyles to call this function (can't use Control.FromHandle in
14185           the SetWindowMinMax to get the control/CreateParams from the handle
14186           because the handle might not have been assigned to the control
14187           yet). Fixes #81371.
14188
14189 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14190
14191         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
14192         if StateImageList is non-null and it has less than two items (match MS
14193         behaviour). Also, in HandleNavKeys handle the Space key, calling
14194         the new ToggleItemsCheckState method, which tries to change the
14195         checked state of the selected items. Fixes part of #81191.
14196
14197 2007-04-16  Jackson Harper  <jackson@ximian.com>
14198
14199         * RichTextBox.cs: namespace cleanup.
14200
14201 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
14202
14203         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
14204
14205 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
14206
14207         [Fixes #79447]
14208         * Control.cs: Call invalidate in set_Region.
14209
14210         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
14211         it dont works here.
14212
14213 2007-04-16  Jackson Harper  <jackson@ximian.com>
14214
14215         * TextBoxBase.cs: When enter is pressed, we need to update all
14216         lines below the current.
14217
14218 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
14219
14220         * MdiClient.cs: Implement implicit menu merging for MDI
14221         children.  When a child form is active, if it has a menustrip
14222         and the parent form has a MainMenuStrip, automatically merge
14223         the menus.
14224
14225 2007-04-15  Andreia Gaita  <avidigal@novell.com>
14226
14227         * TabControl.cs: Refactored sizing methods to not repeat
14228         code all over the place. Tab bounds are now calculated
14229         as if alignment is top and single line, and only when 
14230         setting the bounds are the positions adjusted according
14231         to alignment. Replaced hardcoded positions, spacings and
14232         paddings by getting the values the ThemeEngine. 
14233         Fixes #79619.
14234         
14235         * Theme.cs: Change TabControl properties and methods so
14236         that all start with TabControl*. Added more properties
14237         to help remove hardcoded values on tabcontrol.
14238         Add CPDrawBorder3D declaration so the Theming classes
14239         can access it.
14240         
14241         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
14242
14243         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
14244         on the Theming namespace, and call the appropriate methods here.
14245         Change CPDrawBorder3D to public.
14246
14247 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14248
14249         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
14250         the control after firing the OnMouseUp event, instead of sending
14251         the message before the mentioned event. This is so we can match the
14252         MS behaviour. Fixes part of #80385.
14253
14254 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
14255
14256         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
14257         RightToLeft property.
14258
14259 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
14260
14261         * ToolStrip.cs: Add properties and internal methods to support merging.
14262         * ToolStripItem.cs: Add MergeAction and MergeIndex.
14263         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
14264         not trigger reparenting or layouts.
14265         * ToolStripManager.cs: Add Merge and RevertMerge methods.
14266         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
14267         is hosting the overflow menu.
14268
14269 2007-04-13  Jackson Harper  <jackson@ximian.com>
14270
14271         * TextControl.cs: Set the line ending correctly for the first
14272         inserted line.
14273
14274 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
14275
14276         * Theme.cs: Update GetMethod to get the new definition for 
14277         KnownColors.Update (and fix theme color updates).
14278
14279 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
14280
14281         * MessageBox.cs: Fix some test and button position.
14282
14283 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14284
14285         * Form.cs: Consider the implicit controls in
14286         GetRealChildAtPoint. We need it since this method
14287         is called on Form when handling the some messages in
14288         WndProc, and need to consider those implicit ones too.
14289         Fixes #80385.
14290
14291 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
14292
14293         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
14294         if there are no ShortcutKeys set.
14295         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
14296         set, use it when painting.
14297
14298 2007-04-12  Jackson Harper  <jackson@ximian.com>
14299
14300         * TextControl.cs: Fix some off-by-one issues in line duplication
14301         and insertion in the undo manager. Also, overwrite the first tag
14302         of a line on insert, if it is just a zero lengthed tag. This
14303         prevents us from getting an extra stranded tag at the beginning of
14304         the first line.
14305
14306 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
14307
14308         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
14309         to calculated proper size including when handle was not created yet.
14310
14311 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14312
14313         * MdiWindowManager.cs: When moving a form, allow the form to be moved
14314           when the mouse is outside of it's parent's client rectangle. Fixes
14315           #79982 (take 3, part 2).
14316
14317 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14318
14319         * X11Structs.cs: Add a few ToString() overrides.
14320         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
14321           the window location in a window-manager independent way. Reworked
14322           FrameExtents, it now actually works. Reworked AddConfigureNotify
14323           and ReparentNotify handling to use GetTopLevelWindowLocation
14324           instead of the earlier, more hacky solution. Reworked SetWMStyles,
14325           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
14326           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
14327           for all other windows (fixes #81281 part 1), a toolwindow is hidden
14328           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
14329           and generally refactored to do as few calculations as possible
14330           inside the lock.
14331
14332 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
14333
14334         * Theme.cs: Change "reflective-contract" between MWF and SD to 
14335         minimize # of calls, avoid Color serialization and avoid updating 
14336         every "known colors" each time a single one is updated.
14337
14338 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
14339
14340         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
14341         when not readonly and the text is explicitly set. Code style updates.
14342         * DataGridTableStyle.cs: Removed extra line.
14343         * DataGrid.cs: Code style updates. Removed extra whitespace.
14344         * DataGridColumnStyle.cs: Code style updates. Removed extra 
14345         whitespace.
14346
14347 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14348
14349         * XplatUIX11.cs: Added comment that "fixes" #80021.
14350
14351 2007-04-09  Jackson Harper  <jackson@ximian.com>
14352
14353         * TextControl.cs: We don't need this -1 on the line count anymore.
14354
14355 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
14356
14357         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
14358         entered value to underlying type, and convert it back to a string to
14359         apply formatting. Modified GetFormattedValue to use TypeConverter
14360         if available.
14361
14362 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
14363
14364         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
14365         Use SubItems property when we want to ensure there's at least one
14366         subitem. Modified SubItems property to ensure there's always at least
14367         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
14368         the NRE's reported by MS.
14369
14370 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
14371
14372         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
14373         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
14374         Spaces to tabs. Removed extra tabs.
14375
14376 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
14377
14378         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14379         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
14380
14381 2007-04-06  Jackson Harper  <jackson@ximian.com>
14382
14383         * TextBoxBase.cs: When a delete removes a line, recalculate all
14384         lines below that line (they need to get offsets setup correctly)
14385         and invalidate.
14386
14387 2007-04-05  Jackson Harper  <jackson@ximian.com>
14388
14389         * TextControl.cs: We need to invalidate across the width of the
14390         document when we are invalidating multiple lines.
14391         * TextBoxBase.cs: Don't delete into the line ending.
14392
14393 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14394
14395         * ListView.cs: Restore the check for the MouseHover event
14396         in ListView. It looks like the ListView fires more than one MouseHover
14397         event when HoverSelection is true  _only_ in weird-corner scenarios, but
14398         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
14399         event.
14400
14401 2007-04-05  Mike Kestner  <mkestner@novell.com>
14402
14403         * ListView.cs : raise MouseDown before updating selection.
14404         [Fixes #80373 tab 1&3]
14405
14406 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
14407
14408         * ToolStripRenderer.cs: Add static method to mirror image.
14409         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
14410         and RightToLeftAutoMirrorImage.
14411         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
14412
14413 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
14414
14415         * ToolStripSplitStackLayout.cs: Support Alignment property.
14416         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
14417
14418 2007-04-05  Jackson Harper  <jackson@ximian.com>
14419
14420         * TextControl.cs: Move around the line endings when crossing line
14421         boundaries.
14422         - When combining lines, strip the ending text off the first line.
14423
14424 2007-04-05  Jackson Harper  <jackson@ximian.com>
14425
14426         * TextControl.cs:
14427         * TextBoxBase.cs: Try to never move the cursor into the line
14428         ending.
14429         
14430 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14431
14432         * ToolStripItem.cs: Make sure we aren't firing mouse events when
14433         the item is disabled.  Also add a few missing methods.
14434
14435 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14436
14437         * ListView.cs: We don't need the MouseEnter/MouseLeave check
14438         to fire just one MouseHover event when HoverSelection is true, since
14439         .Net does fire more than one MouseHover event in that scenario. Also,
14440         fix the selection in HoverSelection, by invoking UpdateMultiSelect
14441         if MultiSelect is true, instead of only setting ListViewItem.Selected.
14442         Finally, we need to reset the Hover logic in MouseMove, even when we
14443         don't have a selected item.
14444
14445 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14446
14447         * ToolStrip.cs: Add several missing methods, properties, and events.
14448
14449 2007-04-04  Chris Toshok  <toshok@ximian.com>
14450
14451         * DataGridTextBoxColumn.cs: set the bounds of the text box to
14452         (0,0,0,0) in Commit, as MS does.
14453
14454         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
14455         make sure we set CurrentRow on a row header click *before* calling
14456         Select.  This moves the current cell (and the textbox) to the new
14457         row.  The call to Select then hides the textbox, giving us the
14458         correct behavior.  Fixes #80362.
14459
14460         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
14461         (ListChangedHandler): reorder the position/current changed events,
14462         and call UpdateIsBinding in the ItemAdded case.
14463
14464         * GridColumnStylesCollection.cs: add some columns events, one of
14465         which raises the CollectionChanged event.
14466
14467 2007-04-04  Jackson Harper  <jackson@ximian.com>
14468
14469         * TextControl.cs: When we delete multiple selection lines
14470         invalidate the selection area, don't need to do that for single
14471         lines because the final update view will handle it.
14472
14473 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14474
14475         * Control.cs: When we CreateControl, we need to also create all of the
14476         control's children.  The child's OnLoad must also fire before the parent's
14477         OnLoad.  Fixes the toolbox size in PDN.
14478
14479 2007-04-04  Jackson Harper  <jackson@ximian.com>
14480
14481         * TextBoxBase.cs: When the user presses enter, insert a line
14482         ending into the text. (Maybe this would be a good spot for
14483         Environment.NewLine).
14484         * TextControl.cs: Remove undo manager hack, line endings get
14485         inserted properly now.
14486         
14487 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
14488
14489         * MenuAPI.cs: 
14490         - Remove unneeded parameters in UpdateCursor.
14491         - Fix UpdateCursor to check if menu is active.
14492         - Call UpdateCursor when menu deactivate my click.
14493         [Fixes remaining issues from #80410]
14494
14495 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
14496
14497         * Control.cs: GetRealChildAtPoint method added, it make an
14498         recursive child control search for the point. 
14499
14500         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
14501         menu.
14502
14503         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
14504
14505 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
14506
14507         * Form.cs: Fix mouse position when send back mouse event after closes
14508         menu.
14509
14510 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
14511
14512         * Form.cs: Simplify the BUTTONDOWN for active tracker.
14513
14514 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
14515
14516         * Control.cs: Fix an issue where if a user resized a control inside
14517         a sizing method like OnResize, we would overwrite their explicit
14518         value.  Also, only call DefaultSize once in the constructor instead
14519         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
14520         nothing actually changed.
14521
14522 2007-04-03  Jackson Harper  <jackson@ximian.com>
14523
14524         * TextControl.cs: Don't attempt to copy text for lines with no
14525         text in them (technically this shouldn't happen, but we aren't
14526         always inserting line endings when we should be).
14527
14528 2007-04-03  Jackson Harper  <jackson@ximian.com>
14529
14530         * TextBoxBase.cs: Calculate the scrollbars before calculating the
14531         document, because this sets some of the document size properties
14532         that are needed.
14533
14534 2007-04-03  Jackson Harper  <jackson@ximian.com>
14535
14536         * TextBoxBase.cs: We need to calculate maximums even if this is
14537         not a multiline control, because the maxs are used for scrolling.
14538         - Display the caret after doing a page up/down, we need to
14539         manually display it because a proper CaretMoved event isn't
14540         triggered (this is because of the way the math is done to
14541         determine how far to scroll).
14542
14543 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
14544
14545         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
14546         (ToolBar was relying on SetBoundsCore to default the values sent 
14547         base off of BoundsSpecified.)
14548
14549 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14550
14551         * DateTimePicker.cs: Change Text so that when a null value or empty
14552           string is assigned to the test we always raise ValueChanged and
14553           TextChanged (earlier implementation would only raise ValueChanged
14554           if the current date value was different from DateTime.Now).
14555
14556 2007-04-03  Andreia Gaita <avidigal@novell.com> 
14557
14558         * ButtonBase: Call update after invalidation, fixes #80194
14559
14560 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14561
14562         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
14563           #79335.
14564
14565 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14566
14567         * XplatUIX11.cs: SetWMStyles: If the control is a form with
14568           FormBorderStyle = None, don't give the window any decorations.
14569           Fixes #81276.
14570
14571 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14572
14573         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14574         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
14575           to check for is a mix of several styles (such as WS_CAPTION for
14576           instance).
14577         * Control.cs: Don't paint an area bigger than the client area when
14578           painting the background colour. Add an internal GetCreateParams.
14579           Update calls to XplatUI.CalculateWindowRect due to API change.
14580         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
14581           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
14582           the size if it hasn't been handled by any windows. When creating
14583           and moving windows, X wants the location of the entire window, but
14584           the size of the client window, so add
14585           TranslateClientRectangleToXClientRectangle,
14586           TranslateWindowSizeToXWindowSIze and
14587           TranslatedXWindowSizeToWindowSize to cope with this, and call them
14588           before every window creation and move. Update CalculateWIndowRect
14589           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
14590           In AddConfigureNotify don't do anything if the hwnd is a zombie
14591           (fixes the BadWindow we were getting while running the tests),
14592           always calculate the offsets when it's a parentless window, not
14593           only when reparented, and translate the window size, since we're
14594           getting the client size of the whole window, excluding entire
14595           window.
14596         * Theme.cs: Added BorderSizableSize.
14597         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14598           anymore. Update calls to XplatUI.CalculateWindowRect due to API
14599           chang
14600         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
14601           change. Fake the window styles here instead of in XplatUIWin32 so
14602           that all back-ends get the same window styles (and it's Form that's
14603           deciding when to use wm, not the Win32 backend anyways)
14604         * Hwnd.cs: Completely reworked GetWindowRectangle and
14605           GetClientRectangle - they are now passed a CreateParams and they
14606           only use Style and ExStyle to determine the rectangles (they should
14607           now work just like Win32AdjustWindowRectEx - though quite a few
14608           special cases are probably missing). They should also be 100%
14609           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
14610           == rect), and all numbers (borders, menu sizes) are taken from the
14611           current theme. Added a GetBorders helper function that will return
14612           the borders for any given CreateParams (including captions and
14613           menus), and GetBorderSize that returns the given border size only.
14614         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14615           Hwnd.GetClientRectangle.
14616
14617 2007-04-02  Chris Toshok  <toshok@ximian.com>
14618
14619         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
14620         logic between the values we present to the user and the values
14621         which are stored in the column's property.  Also, don't call
14622         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
14623
14624 2007-04-02  Jackson Harper  <jackson@ximian.com>
14625
14626         * TextBoxBase.cs: Scroll faster!
14627
14628 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
14629
14630         * StatusStrip.cs: Layout fixes for PDN.
14631         * ToolStrip.cs: Set item's available to true, and placement to main when
14632         added.
14633         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
14634         changing in setter before doing any work, add InternalVisible.
14635         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
14636         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14637         infinite loop.
14638
14639 2007-04-02  Jackson Harper  <jackson@ximian.com>
14640
14641         * TextBox.cs: LBUTTON does not make the textbox select all of it's
14642         text on focus.
14643
14644 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14645
14646         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
14647           Makes ToolStripComboBoxes show up again.
14648
14649 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14650
14651         * ListView.cs: Add a hover_pending field in ListView
14652         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
14653         cycle (we are resetting the MouseHover logic in XplatUI
14654         to handle HoverSelection). Fixes #80429.
14655
14656 2007-04-02  Jackson Harper  <jackson@ximian.com>
14657
14658         * TextControl.cs: Make sure the attributes get set on the last
14659         tag.
14660         - Still have to do the end tag if we have stepped all the ways to
14661         the end.
14662
14663 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
14664
14665         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
14666         on an internal libgdiplus call when the information is already 
14667         available via the public API.
14668
14669 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14670
14671         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
14672           control is removed from a control collecftion.
14673         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
14674           Fixes FormPropertyTest (failed on rare occasions).
14675         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
14676           of Win32SetParent (when changing from no parent to a parent it
14677           might add the new parent's location in screen coordinates to this
14678           window's location).
14679         * Form.cs: Rework ChangingParent once again, now the handle is
14680           recreated whenever a FormWindowManager is added or removed (that is
14681           whenever a normal form is parented or abandoned). Also change
14682           CreateParams so that all non-toplevel windows always get the
14683           specified sice (StartupPosition is never considered for
14684           non-TopLevel forms).
14685         * ContainerControl.cs: Add ChildControlRemoved, the container control
14686           needs to be notified when a control is removed from it's
14687           collection, in the case the removed control is the active control.
14688
14689 2007-04-02  Jackson Harper  <jackson@ximian.com>
14690
14691         * RichTextBox.cs: Use the new methods for setting the font and
14692         color, these methods set the specified attribute without
14693         overriding the other attributes.
14694
14695 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
14696
14697         * ToolStripPanel.cs: Fixes for better layouts in PDN.
14698
14699 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
14700
14701         * TextBox.cs: Added internal ChangeBackColor method to special-case
14702         Color.Empty. Added check for invalid ScrollBars value.
14703         * TextBoxBase.cs: Added internal ChangeBackColor method.
14704         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
14705         internal ChangeBackColor method to special-case Color.Empty. Added
14706         check for invalid ScrollBars value.
14707
14708 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
14709
14710         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
14711
14712 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
14713
14714         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
14715         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
14716         [Based on submitted patch from Olivier Duff.]
14717
14718 2007-03-30  Jackson Harper  <jackson@ximian.com>
14719
14720         * TextBox.cs: Only select all on initial focus if the user has not
14721         specified a selection area.
14722
14723 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
14724
14725         * UserControl.cs: Override CreateParams.
14726
14727 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14728
14729         [ Fixes #80995 ]
14730
14731         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14732         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
14733           check for is a mix of several styles (such as WS_CAPTION for instance).
14734         * Control.cs: Don't paint an area bigger than the client area when painting
14735           the background colour. Add an internal GetCreateParams. Update calls to
14736           XplatUI.CalculateWindowRect due to API change.
14737         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
14738           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
14739           hasn't been handled by any windows. When creating and moving windows, X
14740           wants the location of the entire window, but the size of the client
14741           window, so add TranslateClientRectangleToXClientRectangle,
14742           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
14743           to cope with this, and call them before every window creation and move.
14744           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
14745           removing DeriveStyles). In AddConfigureNotify don't do anything if the
14746           hwnd is a zombie (fixes the BadWindow we were getting while running the
14747           tests), always calculate the offsets when it's a parentless window, not
14748           only when reparented, and translate the window size, since we're getting
14749           the client size of the whole window, excluding entire window.
14750         * Theme.cs: Added BorderSizableSize.
14751         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14752           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
14753         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
14754           Fake the window styles here instead of in XplatUIWin32 so that all
14755           back-ends get the same window styles (and it's Form that's deciding when
14756           to use wm, not the Win32 backend anyways)
14757         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
14758           they are now passed a CreateParams and they only use Style and ExStyle
14759           to determine the rectangles (they should now work just like
14760           Win32AdjustWindowRectEx - though quite a few special cases are probably
14761           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
14762           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
14763           sizes) are taken from the current theme. Added a GetBorders helper
14764           function that will return the borders for any given CreateParams
14765           (including captions and menus), and GetBorderSize that returns the given
14766           border size only.
14767         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14768           Hwnd.GetClientRectangle.
14769
14770 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14771
14772         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
14773           layout of the mdi children is handled by CreateParams. Fixes
14774           #79964,
14775
14776 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14777
14778         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
14779         processed.
14780
14781         * Form.cs: When active tracker mouse down is not processed, send event 
14782         back to control inside mouse position. [Fixes #81227]
14783
14784 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
14785
14786         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
14787         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
14788         stealing focus from the active form on Windows.  (Control will be made
14789         visible in ShowWindow.)
14790
14791 2007-03-29  Mike Kestner  <mkestner@novell.com>
14792
14793         * ImageList.cs : add internal Changed event.
14794         * ListView.cs : hook up to StateImageList.Changed to perform
14795         invalidations when the the state icon list changes. [Fixes #81191]
14796
14797 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
14798
14799         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
14800         to prevent tooltips from stealing focus from the active form on Windows.
14801
14802 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14803
14804         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
14805
14806         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
14807
14808 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14809
14810         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
14811         balloons.
14812
14813 2007-03-29  Jackson Harper  <jackson@ximian.com>
14814
14815         * TextControl.cs: When deleting text from non multiline textboxes,
14816         we need to update the entire document, because line offsets will
14817         be shifting.
14818
14819 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14820
14821         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
14822         added to theme, now we can create themes that uses diferent notify engines
14823         like notification-daemon from galago project or growl for Mac OS.
14824
14825 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14826
14827         * NotifyIcon.cs: Prevent Balloon to show in task bar.
14828
14829 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14830
14831         * XplatUIX11.cs: Prevent system to open more than one balloon.
14832
14833         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
14834         some compiler warning messages.
14835
14836 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14837
14838         [Fixes #79149]
14839
14840         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
14841
14842         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
14843         implemented, this methods is used by NotifyIcon.BalloonWindow class.
14844
14845         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
14846         systems.
14847
14848 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14849
14850         * ListViewItem.cs: Forgot to make Invalidate internal.
14851
14852 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14853
14854         * ListView.cs: Add a InvalidateSelection method to
14855         invalidate methods which are currently selected, and call
14856         it when setting FullRowSelect and HideSelection, instead of
14857         calling Redraw.
14858
14859 2007-03-28  Chris Toshok  <toshok@ximian.com>
14860
14861         * XplatUIX11.cs (UnmapWindow): reindent this block.
14862
14863         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
14864         the selection_start if we're moving the selection (that is, not
14865         extending it). Fixes bug #80461.
14866
14867 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14868
14869         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
14870         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
14871         create private ControlCollection.
14872
14873 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14874
14875         * Control.cs: We need to call OnVisibleChanged for our implicit
14876         children as well as our normal children.  Fixes scrollbars in
14877         comboboxes not showing up.
14878
14879 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14880
14881         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
14882         the check for IsHandleCreated first.  The check in CreateHandle is not
14883         good enough because CreateHandle can be overriden, and the override 
14884         should not be called if the handle is already created.
14885
14886 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14887
14888         * ToolStrip.cs: Remove MonoTODO for tooltips.
14889         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
14890         * ToolStripContainer.cs: Add custom ControlCollection class.
14891         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
14892         * ToolStripDropDown.cs: Add some missing properties/methods.
14893         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
14894         * ToolStripItem.cs: Remove MonoTODO for tooltips.
14895         * ToolStripManager.cs: Add IsShortcutDefined.
14896         * ToolStripOverflow.cs: Override LayoutEngine.
14897         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
14898         * ToolStripSeparator.cs: Add ImageKey.
14899
14900 2007-03-28  Jackson Harper  <jackson@ximian.com>
14901
14902         * TextControl.cs: If a char delete removes a line ending, we need
14903         to update the ending style.
14904         - Make sure the line ending calcs get called.
14905
14906 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14907
14908         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
14909           it was making the new code not work. Fixed a typo in the new code
14910           as well. Fixes #79826.
14911
14912 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14913
14914         * XplatUIWin32.cs:
14915         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
14916         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
14917         - SystrayBalloon method implemented.
14918         [Add support for notifyicon balloon on win32, #79149]
14919
14920 2007-03-27  Mike Kestner  <mkestner@novell.com>
14921
14922         * ThemeWin32Classic.cs : update StateImageList selection to mirror
14923         the ms behavior when only one image is added to the list.
14924         [Fixes #81191]
14925
14926 2007-03-27  Jackson Harper  <jackson@ximian.com>
14927
14928         * TextControl.cs: Improvements to non multiline line ending
14929         drawing/measuing.
14930
14931 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14932
14933         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
14934
14935 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14936
14937         * NotifyIcon.cs: 
14938         - Balloon message handling added.
14939         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
14940
14941         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
14942         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
14943         to SystrayBalloon to me like other Systray method, also a
14944         handle parameter added.
14945
14946 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14947
14948         * ListView.cs: Show scrollbars even when items.Count == 0
14949         but the columns Width is bigger than the ListView.Width.
14950         Also, when columns.Count == 0 set layout_wd and layout_ht
14951         to the ClientRectangle values, so we don't show any scrollbar
14952         in that case.
14953
14954 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14955
14956         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
14957
14958 2007-03-27  Jackson Harper  <jackson@ximian.com>
14959
14960         * RichTextBox.cs: The RTF library decodes the text properly for us
14961         now.
14962
14963 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14964
14965         * ListView.cs: Display HeaderControl even when columns.Count == 0.
14966         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
14967         ListView header (HeaderControl), instead of Control.BackColor.
14968
14969 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
14970
14971         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
14972         Fixes tab control issues where controls would not show up because they
14973         never received their OnVisibleChanged call.
14974
14975 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14976
14977         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
14978         BalloonTipShown).
14979
14980 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
14981
14982         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
14983         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
14984         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
14985         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
14986         the handle.  Fix WindowState by using the internal variable until we are 
14987         sure that we've been shown.
14988         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
14989         max or min.
14990         [Fixes bug #81198]
14991
14992 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14993
14994         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
14995           (at least borders). Fixes #79386 on Linux (with a small difference
14996           in behaviour: when trying to resize a caption-less window metacity
14997           shows the sysmenu. Resizing is still possible though).
14998         * XplatUIWin32.cs: When setting window styles send request an extra
14999           WM_NCCALCSIZE when it's a form without title (due to no text and no
15000           caption), since Win32 seems to calculate it wrong the first time we
15001           get the message, though the second time things work as they should.
15002         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
15003           newly reparented window might show up unparented. Update
15004           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
15005           there's no title text. Fixes #79386.
15006
15007 2007-03-27  Mike Kestner  <mkestner@novell.com>
15008
15009         * ListBox.cs : don't perform invalidations if the handle hasn't been
15010         created.  [Fixes #80753]
15011
15012 2007-03-27  Mike Kestner  <mkestner@novell.com>
15013
15014         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
15015         [Fixes #80428]
15016
15017 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15018
15019         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
15020         needed to implement Balloon.
15021
15022 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15023
15024         * ListViewItem.cs: In the constructors that take
15025         an array of strings, don't use ListViewSubItemCollection.AddRange
15026         method to add items, since we need to have a different behaviour (in
15027         the constructors we add an item for each null string, opposed to
15028         the behaviour of AddRange, which adds nothing).
15029
15030 2007-03-26  Andreia Gaita  <avidigal@novell.com>
15031
15032         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
15033
15034 2007-03-26  Jackson Harper  <jackson@ximian.com>
15035
15036         * TextControl.cs: Draw and measure line endings when in non
15037         multiline mode.
15038         - When searching the text, count the end of the last line as a
15039         word boundary.
15040
15041 2007-03-26  Jackson Harper  <jackson@ximian.com>
15042
15043         * RichTextBox.cs: The selection_start and selection_end don't
15044         really track the correct tags for the selection. So we'll manually
15045         compute the correct tag here.
15046
15047 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15048
15049         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
15050           and Continuous styles. Fixes #79469.
15051
15052 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
15053
15054         * ToolStrip.cs: Implement Tooltips.
15055         * ToolStripItem.cs: Create internal method for determining tooltip.
15056
15057 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
15058
15059         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
15060
15061 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15062
15063         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
15064         it prevents a problem thak keeps icon visible after application 
15065         closes on win32.
15066
15067 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15068
15069         * NotifyIcon.cs: Balloon properties and methods created.
15070
15071         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15072         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
15073
15074 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
15075
15076         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
15077
15078 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
15079
15080         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
15081         parameter indicates which aspects were explicit/user-set.
15082         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
15083
15084 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
15085
15086         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
15087         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
15088         SmallChange, and Value (2.0).
15089         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
15090
15091 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15092
15093         * ListView.cs: Always set item_control.Width in LayoutDetails
15094         if View is Details. Setting it later in CalculateScrollBars
15095         in a not-so-corner scenario (the sum of columns width is
15096         not bigger than the ListView width when handle is created, and then
15097         that sum gets bigger by increasing the width of the columns)
15098         causes a very weird recursion path (which shouldn't be happening,
15099         since header_control sets it in CalculateScrollBars too). This bug
15100         appeared after Chris' fixes for handle created issues, so probably
15101         it's related to some handle-creation time.
15102
15103 2007-03-23  Chris Toshok  <toshok@ximian.com>
15104
15105         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
15106         case where there's an add row, just so we don't end up in a case
15107         where it's not displayed (this happens when the row is partially
15108         obscured).  Fixes bug #79574.
15109
15110 2007-03-23  Jackson Harper  <jackson@ximian.com>
15111
15112         * TextControl.cs:
15113         * TextBoxBase.cs:
15114         * RichTextBox.cs: Preserve line endings in the lines text buffer,
15115         also added an enum that represents the line ending type. 
15116
15117 2007-03-23  Andreia Gaita  <avidigal@novell.com>
15118
15119         * NumericUpDown.cs: Fix logic so Text and Value properties are not
15120         messed with in every method call, but only from DownButton, 
15121         UpButton, UpdateEditText() and ValidateText. Fixes #80346
15122
15123 2007-03-23  Chris Toshok  <toshok@ximian.com>
15124
15125         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
15126         format objects if the format spec is "".  Fixes bug #80889.
15127
15128 2007-03-22  Miguel de Icaza  <miguel@novell.com>
15129
15130         * ToolStripPanel.cs (Join): added stubs to build PDN3
15131
15132         * Control.cs (AutoScrollOffset): Add.
15133
15134         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
15135         property, its only implemented for Win32, on X11 it defaults to
15136         some hardcoded value.
15137
15138         * ToolStripItem.cs (AllowDrop): Add property
15139
15140 2007-03-22  Mike Kestner  <mkestner@novell.com>
15141
15142         * ListView.cs : in FullRowSelect Details mode, only enable box
15143         selection if the user clicks over the "item" column outside of the
15144         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
15145
15146 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15147
15148         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
15149           handle is not created yet.
15150         * Form.cs: Select: Don't call CreateHandle if the handle is already
15151           created, avoids a stack overflow on Windows when we are recreating
15152           controls.
15153         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
15154           they are made visible, and override AfterTopMostControl to keep
15155           them on top when other controls are brought to front.
15156           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
15157           or force_*scroll_visible is true (old implementation always shows
15158           scrollbars when needed, no matter what auto_scroll was set to).
15159         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
15160           IsHandleCreated check.
15161
15162 2007-03-22  Andreia Gaita  <avidigal@novell.com>
15163
15164         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
15165         row or col separator.
15166         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
15167
15168 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15169
15170         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
15171
15172 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15173
15174         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
15175         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
15176         every time. Fixes #80410.
15177
15178 2007-03-22  Chris Toshok  <toshok@ximian.com>
15179
15180         * BindingSource.cs (AddNew): partially implement.
15181
15182         remove a couple of NotImplementedException's
15183         to get bug #81148 closed.
15184
15185 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15186
15187         [Fixes #80380]
15188         
15189         * Control.cs:
15190         - UpdateCursor method added to update the screen cursor.
15191         - GetAvailableCursor method added to return cursor for enabled tree,
15192         it searches for cursor on control and it's parent's for enabled control.
15193         - Call UpdateCursor method on setter of Cursor property.
15194         - On setter of Enabled call UpdateCursor when it is false, we need to
15195         change cursor to normal (or to this parent cursor) because cursor 
15196         setting theres no effect to disabled controls.
15197         - Some minor source changes to follow the coding style guidelines.
15198
15199         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
15200         controls.
15201
15202 2007-03-22  Chris Toshok  <toshok@ximian.com>
15203
15204         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
15205         generates.
15206
15207 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15208
15209         * XplatUIX11.cs: Implement default locations for forms.
15210         * Form.cs: Completely rework startup location for forms. Fixes #79964.
15211         * Hwnd.cs: Add previous_child_startup_location (to track the current
15212           startup location for any child forms of the current form) and
15213           previous_main_startup_location (to track the startup location for
15214           the current toplevel form).
15215
15216 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15217
15218         * Control.cs: Don't trigger a layout if an implicit control is added
15219         that isn't visible.  Also, don't notify the owner when an implicit control
15220         is added.  (Owners shouldn't even know about their implicit controls.)
15221
15222 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15223
15224         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
15225         to save some re-layouts.
15226
15227 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
15228
15229         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
15230         [Fixes #81203]
15231
15232 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15233
15234         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
15235         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
15236
15237 2007-03-21  Mike Kestner  <mkestner@novell.com>
15238
15239         * ListView.cs : disable selection update for non-left button clicks
15240         with mods and over selected items.  [Fixes #80524]
15241
15242 2007-03-20  Jackson Harper  <jackson@ximian.com>
15243
15244         * TextControl.cs:
15245         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
15246         \r\r\n, \n.
15247
15248 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15249
15250         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
15251           very probably a more complicated calculation there. Update the
15252           textbox' ForeColor and BackColor when the ComboBox' colors are
15253           changed. Change the border change in LayoutComboBox to only affect
15254           the textbox, not all the calculations there. Seems to fix most of
15255           #79436.
15256
15257 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15258
15259         * ComboBox.cs: Handle Home and End keys as well as all combinations of
15260           modifiers + navigation keys as input keys, enables advanced text
15261           selection in the combobox (like Shift+Left Arrow for instance).
15262           ComboTextBox now overrides Focused and returns whatever
15263           ComboBox.Focused returns, since it really should be focused
15264           whenever the ComboBox is. Fixes #80795. Also make the border around
15265           the text box one pixel bigger, as mentioned in #79436.
15266
15267 2007-03-20  Jackson Harper  <jackson@ximian.com>
15268
15269         * TreeView.cs: Don't offset the images, this was causing some
15270         artifacts when expanding/collapsing with images that were the
15271         exact height of the treenode.
15272
15273 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15274
15275         * TrackBar.cs: Query the theme for the correct value when the mouse
15276           moves and the thumb is pressed. 
15277         * Theme.cs: Added TrackBarValueFromMousePosition
15278         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
15279           implementation was updating the trackbar value when drawing, now
15280           the drawing methods only draw. Fixes #80900. Refactored the
15281           calculations out to TrackBarValueFromMousePosition and
15282           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
15283           according to the mouse position whenever it wants to. Changed the
15284           light coloured pen when drawing the thumb from ControlLight to
15285           ControlLightLight, because the ControlLight is the same colour as
15286           the background so the 3D effect is lost. 
15287
15288 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15289
15290         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
15291         defined. Fixes #80784.
15292
15293 2007-03-20  Marek Habersack  <mhabersack@novell.com>
15294
15295         * ContextMenuStrip.cs: align with the change introduced in
15296         revision 74664.
15297
15298 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15299
15300         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
15301         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
15302         in SetTopmost.
15303
15304 2007-03-19  Chris Toshok  <toshok@ximian.com>
15305
15306         * Control.cs (WmPaint): don't make use of the Handle property
15307         after an event is emitted, as the user could have closed the
15308         form/destroyed the control.  Store the Handle in a local variable
15309         and make use of that.  Fixes bug #80768.
15310
15311 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15312
15313         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
15314         behavior in X11 environments.
15315
15316 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15317
15318         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
15319         because on setter of topmost we dont call SetTopmost when handle is not
15320         created.
15321
15322 2007-03-20  Jackson Harper  <jackson@ximian.com>
15323
15324         * TextControl.cs: Need to use SelectionLength () not
15325         selection_length, since that var is reset to -1.
15326         - Draw the caret when we don't have focus.
15327         * TextBox.cs: The selectall actually doesn't occur until the first
15328         focus.
15329         * TextBoxBase.cs: Need to update the caret position after a
15330         selectall.
15331         
15332 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15333
15334         * ListView.cs: Enable scrolling when using Tile view.
15335
15336 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15337
15338         [Fixes #80902]
15339
15340         * XplatUIDriver.cs: Abstract SetOwner method created.
15341
15342         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
15343         must be implemented and was masked as todo.
15344
15345         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
15346         GWL_HWNDPARENT.
15347
15348         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
15349         cheking for null owner to remove transient. The SetTopmost will be change
15350         on a decond step.
15351
15352         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
15353         SetTopmost. Now owned forms will work properly in win32 and X11.
15354
15355 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15356
15357         * MdiWindowManager.cs: Update function name.
15358         * Form.cs: After closing a form MdiParent is always null.
15359         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
15360           better what it should do: necessary book-keeping when the form is
15361           closed, it should not close the form itself.
15362
15363 2007-03-19  Andreia Gaita  <avidigal@novell.com>
15364
15365         * ListViewItem.cs: Fix back and fore color. The subitems only
15366         use their own colors if they are set, otherwise use the listview's
15367         colors. Don't set default colors on constructor for subitem.
15368         Fixes #79315.
15369
15370 2007-03-19  Mike Kestner  <mkestner@novell.com>
15371
15372         * ListView.cs : make box selection for Details views with 
15373         FullRowSelect conform to MS behavior when clicking in the "item" 
15374         column and clicking outside the defined columns.
15375         [Fixes case 5-6 of #80374]
15376
15377 2007-03-19  Chris Toshok  <toshok@ximian.com>
15378
15379         * ScrollableControl.cs: create the controls from within the ctor,
15380         but don't actually add them until our handle is created.  this
15381         fixes a NRE possibility jpobst found (if you override OnLayout in
15382         a subclass, it's called before your ctor).  Also, add a
15383         IsHandleCreated guard to UpdateSizeGripVisibility as well.
15384
15385 2007-03-19  Jackson Harper  <jackson@ximian.com>
15386
15387         * TextBox.cs: Reduce the amount of invalidation we do.
15388         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
15389         some of them are true by default on MS.
15390         - Add some functions to reduce the amount of invalidates we do.
15391         * TextControl.cs: Less invalidation.
15392
15393 2007-03-19  Chris Toshok  <toshok@ximian.com>
15394
15395         [ Fixes #81773, and *seems* to fix #81553 as well ]
15396
15397         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
15398         AccumulateDestroyedHandles.  We need to do it *after* we send
15399         WM_DESTROY, as the user's code can access Control.Handle in
15400         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
15401         move the WM_DESTROY/zombie handling to before the call to
15402         XDestroyWindow.  For some reason without this ordering
15403         FormTest.RecreateHandle hangs.  This ordering is semantically
15404         equivalent, however, as XDestroyWindow is async anyway.
15405
15406 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
15407
15408         * RichTextBox.cs: Reset backcolor_set after setting default.
15409
15410 2007-03-19  Chris Toshok  <toshok@ximian.com>
15411
15412         * ScrollableControl.cs: the scroll position should not effect the
15413         canvas size.  commit patch from georgegiolfan@yahoo.com, which
15414         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
15415         
15416 2007-03-19  Chris Toshok  <toshok@ximian.com>
15417
15418         * ScrollableControl.cs: clean this up a bit.  create the
15419         scrollbars in the ctor and just show/hide them as needed.  Also,
15420         make hscroll_visible/vscroll_visible internal to Recalculate, and
15421         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
15422         everywhere else.  This seems to fix the scrollbars appearing
15423         beneath the content for me (i have *no* idea why that is,
15424         however.)
15425
15426 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
15427
15428         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
15429         some redundacy for stuff in Anchor and Dock that base will take care of.
15430         [Fixes #80762]
15431
15432 2007-03-19  Mike Kestner  <mkestner@novell.com>
15433
15434         * ListView.cs : make box selection for Details views without 
15435         FullRowSelect dependent on the text bounds, not item bounds.
15436         * ListViewItem.cs : add an internal property to obtain the TextBounds
15437         in Details view.  [Fixes case 1-4 of #80374]
15438
15439 2007-03-19  Andreia Gaita  <avidigal@novell.com>
15440
15441         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
15442         we're < 2.0. #78448 && #80316
15443
15444 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
15445
15446         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
15447         have the same style available as the previously selected one.  Also,
15448         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
15449
15450 2007-03-19  Jackson Harper  <jackson@ximian.com>
15451
15452         * TextControl.cs: Add an alignment property that all new lines
15453         will be given.
15454         - Make sure to use the align shift when calculating the line's X
15455         position.
15456         * TextBox.cs: Set the alignment on the document as well as on all
15457         the document lines.
15458
15459 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15460
15461         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
15462           throw if setting the parent of an mdichild that already has an
15463           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
15464           AssemblyProductAttribute in the assembly, use the type's namespace (as
15465           MS seems to do). CreateControl: don't create the handle if the control
15466           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
15467           create handle if the control is not a form. Change FocusInternal to
15468           virtual so that it can be overriden by Form.
15469         * TextBox.cs: Update call to FocusInternal.
15470         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
15471           form is not a toplevel form when it's a mdi child, so update is_toplevel
15472           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
15473           hasn't been created. Show (IWin32Window): Don't allow this overload for
15474           toplevel windows. CenterToParent/CenterToScreen/Select: create the
15475           handle as MS does. SetVisibleCore: if called on a MdiChild and the
15476           parent isn't visible yet, save the visibility and restore it when the
15477           parent is made visible.
15478         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
15479           methods, since the visibility of the scrollbars can be changed from
15480           several places, not only from AutoScroll.
15481           [Fixes #81179]
15482
15483 2007-03-19  Jackson Harper  <jackson@ximian.com>
15484
15485         * RichTextBox.cs: Enable shortcuts by default.
15486         * TextBoxBase.cs: Add conditional shortcuts.  
15487
15488 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
15489
15490         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
15491
15492 2007-03-19  Chris Toshok  <toshok@ximian.com>
15493
15494         [ Fixes bug #80604]
15495         
15496         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
15497         swallow the message we're waiting on, instead of delivering it, as
15498         this is only used for the WM_SHOWWINDOW raised from
15499         MapWindow/UnmapWindow, and the message needs to be generated
15500         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
15501         before doing the Map/Unmap.  Also make sure that the Hwnd is still
15502         alive after the message has been handled.
15503
15504         *before* the window is shown.
15505
15506         * Control.cs (CreateControl): guard a few more things inside the
15507         if (!is_created) block, as we might end up being called again -
15508         yay .net.
15509         (WmShowWindow): call CreateControl if we're showing the control.
15510
15511 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15512
15513         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
15514           controls without a handle if they have any parent with a handle. In
15515           Dispose add a check whether the handle is created or not before
15516           calling BeginInvoke, this removes the need of the extra disposing
15517           parameter (which was bogus anyway since it didn't prevent the
15518           invoke from happening, it only skipped the check for an existing
15519           handle, meaning that the invoke would call on an inexistent
15520           handle).
15521
15522 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
15523
15524         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
15525         appears in taskbar.
15526
15527 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
15528
15529         * MessageBox.cs:
15530         - Fixed a problem that dont show help button for messages with 3 buttons.
15531         - Refactory button size and position calculations, now dont use fixed 
15532         values, also fixed button sizes (#80043) and form's border space.
15533         - AddButton method created, now all other AddButton methods call this one.
15534         - Some other source code cosmetic changes.
15535
15536 2007-03-18  Jackson Harper  <jackson@ximian.com>
15537
15538         * RichTextBox.cs: Don't do this all fonts must match check if
15539         there is only one char selected.
15540
15541 2007-03-18  Jackson Harper  <jackson@ximian.com>
15542
15543         * TreeView.cs: ScrollWindow works properly now, so we don't need
15544         to screw around with the scroll area.  This fixes some artifacts
15545         when expanding and collapsing.
15546
15547 2007-03-18  Jackson Harper  <jackson@ximian.com>
15548
15549         * TextBoxBase.cs: Allow updating the selection position when the
15550         cursor is outside the textarea, but we have a capture.
15551         * TextControl.cs: A special case for when the cursor is outside
15552         the bounds of the TB.
15553         
15554 2007-03-18  Jackson Harper  <jackson@ximian.com>
15555
15556         * TextBoxBase.cs: Remove image pasting code for now.  There is no
15557         way to get an image on the clipboard right now anyways.
15558         * TextControl.cs:
15559         * RichTextBox.cs: Use the new RTF Picture class for pictures.
15560
15561 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
15562
15563         * MessageBox.cs:
15564         - Set window properties in constructor intead of on CreateParams.
15565         - Remove topmost from Window ExStyle.
15566         - Set ShowInTaskbar to false.
15567         - Set form border to FixedDialog.
15568         - Some cosmetic changes and remove unneeded comments.
15569         - It fixes itens 2,3 and 4 of bug #80043.
15570
15571 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
15572
15573         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
15574         none was explicitly set. Fixes part of bug #79949.
15575
15576 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
15577
15578         * ToolStripComboBox.cs: Add AutoComplete*.
15579
15580 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
15581
15582         * ToolStripComboBox.cs: Add FlatStyle.
15583
15584 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
15585
15586         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
15587         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
15588
15589 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15590
15591         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
15592           CheckBox.cs, RadioButton.cs, BindingSource.cs,
15593           DataGridColumnStyle.cs: Remove warnings.
15594
15595 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15596
15597         * Menu.cs: MergeMenu: Check menu argument for null before looping over
15598           it.
15599         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
15600           visibility of mdi child forms. FormSizeChangedHandler: update the
15601           maximized size if size has changed while maximized.
15602         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
15603           creating the handle.
15604         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
15605           avoid creating the handle if not created.
15606         * XplatUI.cs: Update debug output.
15607         * XplatUIStructs.cs: Added ToString's for a couple of structs.
15608
15609 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
15610
15611         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
15612         ProcessCmdKey().
15613         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
15614         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
15615         Implement keyboard shortcuts.
15616
15617 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
15618
15619         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
15620         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
15621         ColorDialog and all derived classes.
15622
15623 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
15624
15625         [ Fixes bug #79828 ]
15626
15627         * ToolBar.cs:
15628         - Rename ToolBarButtonInfor to ToolBarItem.
15629         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
15630         - Maintain an array of ToolBarItem, used instead of ToolBarButton
15631         collection to be able add same button more than one time on a toolbar.
15632         - Refactory all properties and methods to use ToolBarItem. 
15633
15634         * ToolBarButton.cs: 
15635         - Remove all propeties and methods that is now in ToolBarItem.
15636         - Rectangle propery now gets the rectangle from first ToolBarItem to
15637         mimic win32 behavior.
15638         - Size calculation and layout methods also removed.
15639
15640         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
15641         ToolBarItem instead of ToolBarButton to right drawing buttons when
15642         same button/separator was added more than one time to ToolBar.
15643
15644         * ThemeNice.cs: Same as above. 
15645
15646 2007-03-15  Andreia Gaita  <avidigal@novell.com>
15647
15648         * XplatUIX11.cs: Fire extra MouseMove events right after
15649         MouseDown and MouseUp, emulating win32's <censored> behaviour
15650         for apps that rely on it.
15651
15652 2007-03-15  Jackson Harper  <jackson@ximian.com>
15653
15654         * TextControl.cs:
15655         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
15656         it is drawn on the controls client window and there is no NC
15657         area.
15658         - Set the background color to gray on 2.0 when we are readonly.
15659
15660 2007-03-15  Chris Toshok  <toshok@ximian.com>
15661
15662         [ Fixes bug #81144 ]
15663         
15664         * XplatUIX11.cs: implement VirtualScreen independently of
15665         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
15666         property.
15667
15668 2007-03-15  Chris Toshok  <toshok@ximian.com>
15669
15670         * Hwnd.cs: add an internal field for the cached_window_state.
15671
15672         * XplatUIX11.cs: cache the window state, invalidating the cache
15673         (and thus re-querying the X server) only when we see an update to
15674         the _NET_WM_STATE property.
15675
15676 2007-03-15  Chris Toshok  <toshok@ximian.com>
15677
15678         * BindingSource.cs: get a lot of the unit tests working.
15679
15680 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
15681
15682         * Control.cs: Modify UpdateStyles to store distances when bounds >=
15683         0 instead of just bounds > 0.  [Fixes bug #80912]
15684
15685 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
15686
15687         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
15688         and methods.
15689
15690 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
15691         
15692         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
15693         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
15694         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
15695         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
15696
15697 2007-03-15  Chris Toshok  <toshok@ximian.com>
15698
15699         [ Fixes #81101 ]
15700         
15701         * Control.cs: add Ivan's fix for 81101, with a slight modification
15702         - you can set control.Target to null.
15703
15704 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
15705
15706         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
15707         HideDropDown, use Hide instead to prevent an NRE.
15708         [Fixes bug #81147]
15709
15710 2007-03-14  Jackson Harper  <jackson@ximian.com>
15711
15712         * TextBoxBase.cs: Mess with the creation stuff a little. We need
15713         to calculate the document before the handle is created, in some
15714         cases. (Actually just one case).
15715
15716 2007-03-14  Jackson Harper  <jackson@ximian.com>
15717
15718         * TextBoxBase.cs: Need to display the caret after letting the base
15719         wndproc handle the focus methods, because the caret display
15720         methods check the focus state.
15721         - Try to display the caret after updating it's position with SelectWord.
15722         - Don't need to do an immediate update on this recalc, since there
15723         will be an invalidate anyways.
15724
15725 2007-03-14  Jackson Harper  <jackson@ximian.com>
15726
15727         * TreeView.cs: Some workarounds so that we can match event order a
15728         little better.
15729
15730 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
15731
15732         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
15733         #80803. Avoid NullReferenceException when Control does not have
15734         parent. Fixed different blinkstyle issues. Only subscribe to Tick
15735         event a single time. Only draw error icon when control is created and
15736         visible. Fixes failing unit tests.
15737
15738 2007-03-14  Andreia Gaita  <avidigal@novell.com>
15739
15740         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
15741         Selecting events. Fire Leave and Enter events when changing tabs.
15742
15743 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
15744
15745         * TreeView.cs: Add TreeViewNodeSorter.
15746         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
15747
15748 2007-03-14  Chris Toshok  <toshok@ximian.com>
15749
15750         * Form.cs: go ahead and remove the RecreateHandles that jpobst
15751         removed earlier and I had him add back it.  It turns out metacity
15752         *does* in fact handle the MOTIF_WM_HINTS property changing, it
15753         just doesn't redraw the window titlebar until you resize the
15754         window.  This also means we aren't recreating the entire window
15755         hierarchy on X when you change this property.  And it looks better
15756         on windows, too.
15757
15758 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15759
15760         * ListViewItem.cs:
15761         * ListView.cs: Collecting selection information
15762         is now done in SelectedIndexCollection rather than in
15763         SelectedListViewItemCollection. This is done so we can
15764         have the selection information code in one single place
15765         (virtual mode selection information entirely depends on
15766         SelectedIndexCollection).
15767
15768 2007-03-13  Miguel de Icaza  <miguel@novell.com>
15769
15770         * ErrorProvider.cs: Add stubs for ISupportInitialize
15771
15772 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15773
15774         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
15775         in the right order with the right values, from the Checked property, 
15776         just as MS does (instead of triggering them from ListView).
15777
15778         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
15779
15780 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15781
15782         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
15783         the correct handler in OnItemCheck method (ItemCheckEventHandler 
15784         instead of EventHandler). This used to throw an InvalidCastException.
15785
15786 2007-03-13  Jackson Harper  <jackson@ximian.com>
15787
15788         * TextBoxBase.cs: Calculate the document before the handle is
15789         created, so there isn't an extra invalidate called.
15790
15791 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
15792
15793         * Form.cs: Don't set owner in ShowDialog until we are sure
15794         that we aren't going to throw an exception.  [Fixes bug #80773]
15795
15796 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
15797
15798         * TreeView.cs: Make it compile.
15799
15800 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15801
15802         * Control.cs: Another place we don't call SizeFromClientSize.
15803         * Form.cs: Another place we don't call SizeFromClientSize.
15804         [Fixes bug #81125]
15805
15806 2007-03-12  Jackson Harper  <jackson@ximian.com>
15807
15808         * TreeView.cs: Basically emulating some strangness here with
15809         exanding nodes and setting node positions when windows aren't
15810         created.
15811         - Also attempting to walk the node tree less than previously, and
15812         just use visible order calculations for determining offsets.
15813         - oops made scrolling backwards.
15814         * TreeNode.cs: We need to start nodes with a zero visible order,
15815         because the order calcs are based on the first nodes order.
15816
15817 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15818
15819         * Form.cs: Don't exit the program if RecreateHandle is called on
15820         the main form.
15821
15822 2007-03-12  Chris Toshok  <toshok@ximian.com>
15823
15824         * XEventQueue.cs: remove the use of PostQuitState.
15825
15826         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
15827         WM_QUIT message in GetMessage, return false (and if we're in the
15828         nested WaitForHwndMessage, repost the WM_QUIT message).
15829
15830 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15831
15832         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
15833         or the MaximizeBox properties.  [Part of bug #80640]
15834
15835 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
15836
15837         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
15838         no links.
15839
15840 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15841
15842         * ToolStripItem.cs: Fix some tests I broke by checking Visible
15843         instead of visible.
15844
15845 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
15846
15847         * FileDialog.cs: Use text of File name combobox to determine what
15848         files the user selected. Added tokenizer to parse the file names.
15849         Fixes bug #81123.
15850
15851 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15852
15853         * Control.cs: We can't call SizeFromClientSize in the constructor,
15854         but we still need to do the same work, so make an internal version.
15855         [Fixes bug #80621]
15856
15857 2007-03-12  Jackson Harper  <jackson@ximian.com>
15858
15859         * TreeView.cs:
15860         * TreeNode.cs:
15861         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
15862         IsExpanded.
15863
15864 2007-03-12  Jackson Harper  <jackson@ximian.com>
15865
15866         * TextBoxBase.cs: Now that the handles are being created a little
15867         later, we need to make sure that the document is recalculated when
15868         the handle is created.
15869
15870 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
15871
15872         * Theme.cs: GetLinkFont abstract method added.
15873         
15874         * LinkLabel.cs: 
15875         - Remove CalcTrimRectangle, no longer needed.
15876         - Factor also remove, position issues must be fixed in libgdiplus.
15877         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
15878         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
15879         care about font used to draw links.
15880         - Set TabStop to true when control is "Selectable", control is selectable
15881         when have one or more links. Fixes #80501 (test case is also added).
15882         - Set the LinkArea values after links change, LinkArea values must be
15883         based in first link position and size, a test case was created.
15884         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
15885         the attribute must be true LinkArea.Length > 0. The same was applied to
15886         TabStop.
15887         
15888         * ThemeWin32Classic.cs: 
15889         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
15890         in draw method.
15891         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
15892         color change.
15893         - Draw focus rectangle for every parts focused, including parts that 
15894         is on another line, its because regions returns various rectangles
15895         and not only one. Needed to mimic W32 look.
15896         - Uses Graphics.Clip to delimite region painted, it mean that now 
15897         complete text is passed to DrawString, with this we solve layout
15898         issues without create another text renderer.
15899         - Uses Region.Intersect to fix some flickers problems, now only needed
15900         parts will redrawed.
15901         - This changes fixes #79614 and some other unreported issues, on Linux 
15902         some layout problems still remain, the problem is under 
15903         MeasureCharacterRanges but it is an libgdiplus bug.
15904
15905 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
15906
15907         * TextBox.cs: Set for foreground color.
15908         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
15909         this is already done in Control.
15910
15911 2007-03-10  Jackson Harper  <jackson@ximian.com>
15912
15913         * TextBox.cs: Set the background color, but reset the
15914         backcolor_set flag which is just for the user setting the
15915         background color.
15916
15917 2007-03-09  Chris Toshok  <toshok@ximian.com>
15918
15919         * Control.cs: really remove the call to XplatUI.SetVisible from
15920         CreateHandle(), like I said I did when I merged the branch.
15921
15922         * BindingSource.cs: implement some more of this stuff.
15923
15924 2007-03-09  Jackson Harper  <jackson@ximian.com>
15925
15926         * TextBox.cs: Don't explicitly set our background colors.
15927         * TextControl.cs:
15928         * TextBoxBase.cs: Draw readonly text.
15929         - Need to invalidate when backcolor or readonly are changed.
15930         
15931 2007-03-09  Jackson Harper  <jackson@ximian.com>
15932
15933         * TextBoxBase.cs: Don't set the forecolor until the handle is
15934         created.
15935         - Do not raise OnPaint, and removed some old debug code.
15936
15937 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
15938
15939         * ScrollableControl.cs: Fix mouse wheel scrolling.
15940
15941 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
15942
15943         * Control.cs: Wire up MouseDoubleClick event.
15944
15945 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
15946
15947         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
15948         top or bottom.
15949         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
15950         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
15951         item is added.  This logic was moved to ToolStrip.OnItemAdded.
15952         [Fixes bug #81090]
15953
15954 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15955
15956         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
15957
15958 2007-03-08  Jackson Harper  <jackson@ximian.com>
15959
15960         * TreeView.cs: Show the correct image for selected node (this used
15961         to work, not sure how the code got deleted). Also implemented 2.0 feature
15962         SelectedImageKey.
15963
15964 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15965
15966         * ListView.cs:
15967         * ListViewItem.cs: Cache index in items when retrieving them
15968         in VirtualMode.
15969
15970 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
15971
15972         * ToolStripItem.cs: Don't return the explicit_size if we are using 
15973         AutoSize.  Fixes invalidation issue when user has explicitly set a
15974         size and has AutoSize = true.
15975
15976 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
15977
15978         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
15979
15980 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15981
15982         * DataGridView.cs: Remove event handler from DataView when a
15983         DataTable is used as DataSource.
15984
15985 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
15986
15987         * Control.cs: Create internal setter for client_size to allow it to be
15988         set without triggering resizing code.
15989         * Form.cs: Calculate client_size in constructor, only change client_size
15990         in FormBorderStyle property if Handle has been created.
15991         [Fixes #80574, #80791]
15992
15993 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
15994
15995         * SystemInformation.cs: Add TerminalServerSession.
15996
15997 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
15998
15999         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
16000         TreeView code.
16001
16002 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16003
16004         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
16005         Handle before we were supposed to.  Now checks ActivateOnShow property
16006         in Control.
16007         * Control.cs: Add internal ActivateOnShow property.
16008         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
16009         for ActivateOnShow.
16010         * Hwnd.cs Remove no longer needed no_activate field.
16011
16012 2007-03-07  Jackson Harper  <jackson@ximian.com>
16013
16014         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
16015         2.0 properties
16016         * DrawTreeNodeEventHandler.cs: Add
16017         * DrawTreeNodeEventArgs.cs: Correct default value.
16018         
16019 2007-03-07  Chris Toshok  <toshok@ximian.com>
16020
16021         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
16022         to be called before NativeWindow.WndProc.  Put the HwndCreating
16023         magic there to hook up our Hwnd's to handles.
16024
16025 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
16026
16027         * DataGridView.cs: Comment out debug code.
16028
16029 2007-03-07  Chris Toshok  <toshok@ximian.com>
16030
16031         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
16032         to make the rest of the world happy]
16033
16034         * Control.cs (CreateHandle): there's no need to call
16035         XplatUI.SetVisible here, it's effectively done by
16036         XplatUI.CreateWindow on X now, and always was on windows.
16037
16038         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
16039         shortcircuit out of the loop if we have a message loop running on
16040         this thread.
16041
16042         [Changelog from merge]
16043
16044         2007-03-05  Chris Toshok  <toshok@ximian.com>
16045
16046                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
16047                 causes handle creation.
16048
16049         2007-02-28  Chris Toshok  <toshok@ximian.com>
16050
16051                 * ApplicationContext.cs: Add a flag to make sure we only raise the
16052                 ThreadExit event once (ExitThreadCore can be indirectly called
16053                 from a few places.)  I don't like the additional flag, but it
16054                 makes the event ordering/count correct.
16055
16056                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
16057                 without locking the collection.  An enumerator doesn't give us any
16058                 protection from modification anyway.  Lock the thread hash and
16059                 replace the complicated enumerator loop with a foreach.
16060                 (Application.CloseForms): make internal so it can be called from
16061                 ApplicationContext.  This should probably be moved to MWFThread.
16062                 (Application.ExitThread): don't call MWFThread.Current.Exit()
16063                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
16064                 when the runloop exits (in response to WM_QUIT.)
16065                 (Application.RunLoop): add a comment (and check) for
16066                 context.MainForm being null after setting context.MainForm.Visible
16067                 = true.  This is because you're perfectly free to dispose of a
16068                 form in VisibilityChanged.  Chalk this up to another case where we
16069                 need to synchronously generate WM_ACTIVATE from Control.Show.
16070                 Also, add handling for WM_QUIT here so we'll exit the loop.
16071                 
16072                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
16073                 fact that we don't wait if we're only unmapping the whole_window
16074                 makes me a bit nervous, but it doesn't seem to cause any problems
16075                 yet.
16076
16077                 also, add a comment about the stupid, broken and wrong resetting
16078                 of PostQuitState to false in GetMessage().
16079
16080                 In PostQuitMessage, we need to add a WM_QUIT message to the
16081                 thread's queue.  We use the FosterParent to get the right
16082                 handle/hwnd/queue.
16083
16084                 Lastly, in SetVisible, we need to unmap both windows, since the
16085                 waiting only happens when we're unmapping the client window.  So
16086                 now, the *only* time we unmap just the whole_window is in the hack
16087                 for resizing a control to 0,0.
16088                 
16089         2007-02-21  Chris Toshok  <toshok@ximian.com>
16090
16091                 * Application.cs (CloseForms): rewrite this so that we don't
16092                 modify the list while we're traversing it.
16093
16094         2007-02-20  Chris Toshok  <toshok@ximian.com>
16095
16096                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
16097                 of OnHandleCreated.
16098                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
16099                 handle is created.  otherwise we'll create it here.
16100                 (VerticalScrollEvent): same here.
16101
16102                 * Application.cs (CloseForms): call Form.Dispose, don't post
16103                 WM_CLOSE_INTERNAL.
16104
16105                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
16106                 here. Application should Dispose() of the Form's.
16107
16108                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
16109                 WM_DESTROY as well.
16110                 (MapWindow,UnmapWindow): only actually do the waiting for
16111                 SHOWWINDOW if the control we're dealing with is a Form.
16112                 (CreateWindow): if the control isn't a form, SendMessage
16113                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
16114
16115                 * Control.cs (SetVisibleCore): always use is_visible here, not
16116                 value.  If we use value, we can end up re-setting something
16117                 visible if, for instance, you do Control.Hide() in a delegate
16118                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
16119
16120         2007-02-20  Chris Toshok  <toshok@ximian.com>
16121
16122                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
16123                 the message we need.  PeekMessage returning false should not be a
16124                 condition under which we exit the loop.
16125
16126         2007-02-15  Chris Toshok  <toshok@ximian.com>
16127
16128                 * Control.cs (Refresh): only refresh if we've got a handle and are
16129                 visible.
16130                 (CreateAccessibilityInstance): CreateControl() here.
16131                 (UpdateChildrenZOrder): complicate the code loop even more by
16132                 taking into account controls that haven't had their handle
16133                 created, and those that aren't visible.  But on the flip side,
16134                 simplify the code by splitting it into two loops.  one which
16135                 builds up the list of child controls we're interested in, and the
16136                 other that sets the z order of those children.
16137
16138         2007-02-14  Chris Toshok  <toshok@ximian.com>
16139
16140                 * Control.cs: Control.AccessibilityObject causes the control to be
16141                 created, not just the handle.
16142
16143         2007-02-14  Chris Toshok  <toshok@ximian.com>
16144
16145                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
16146                 problem on X where a window might have its handle created (and be
16147                 visible) while the window is unmapped.  calling XConfigureWindow
16148                 on an unmapped window is bad, and generates X errors.
16149
16150         2007-02-13  Chris Toshok  <toshok@ximian.com>
16151
16152                 * Control.cs (CreateHandle): don't loop over our children setting
16153                 their parent here.  do it when in WndProc when we're shown.
16154                 (UpdateChildrenZOrder): make this internal so we can call it from
16155                 ScrollableControl.
16156                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
16157                 creating its handle.  Also, remove the calls to PerformLayout from
16158                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
16159                 OnVisibleChanged only seems to be called directly here for the
16160                 toplevel control.  It's propagated down the window hierarchy by
16161                 calls to child.OnParentVisibleChanged.
16162                 (OnVisibleChanged): don't do layout here - it's done (oddly
16163                 enough, according to a glance at stack traces on ms.net..) in
16164                 ScrollableControl.
16165                 
16166                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
16167                 z order of our children before calling PerformLayout.
16168
16169         2007-02-12  Chris Toshok  <toshok@ximian.com>
16170
16171                 [big change, fixes #80020]
16172                 
16173                 * AccessibleObject.cs: we need to make owner internal again to fix
16174                 some of ControlAccessibleObject.
16175
16176                 * Control.cs: lots of changes here.  add support for WM_CREATE,
16177                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
16178                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
16179                 we create child controls.  leave the MonoTODO's for the
16180                 accessibility calls, but fix the exceptions so the tests pass.
16181
16182                 Add the InvalidOperationExceptions to Invoke methods, and remove a
16183                 couple of InvokeInternal methods we aren't using.
16184                 
16185                 Also, add a couple of CreateHandle calls in places where we know
16186                 the handles are being created but our code doesn't reference
16187                 .Handle.
16188
16189                 Make SetVisibleCore call OnVisibleChange if the handle isn't
16190                 created.  If the handle is created, we rely on XplatUI.SetVisible
16191                 generating the event synchronously.
16192                 
16193                 Lastly, make sure we don't use this.Handle inside CreateHandle,
16194                 because we can call back into client (and that code can dispose of
16195                 the control).
16196
16197                 * XplatUIStructs.cs: misc/cleanup.
16198
16199                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
16200                 although we don't populate the wParam properly.
16201                 (CreateWindow): generate WM_CREATE.
16202                 (MapWindow,UnmapWindow): make these calls synchronous, at great
16203                 performance expense (particularly in the unmap case), to match
16204                 win32 behavior.
16205
16206                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
16207                 to call it.
16208                 (set_MdiParent): don't recreate the handle unless it's been
16209                 created already.
16210                 
16211                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
16212                 it's created.
16213
16214                 * NativeWindow.cs: this is probably the weirdest part of the
16215                 patch.  We need a way to link up the window being created to the
16216                 WM_CREATE message.  Since we can only be creating one window at a
16217                 time on a given thread, we keep track of a per-thread reference so
16218                 we can dispatch it properly.  We also need to keep track of the
16219                 Hwnd currently being created so that the win32 backend doesn't
16220                 have problems.
16221                 
16222                 * XplatUIWin32.cs: a similar change to the one we made in
16223                 NativeWindow.cs.
16224
16225 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16226
16227         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
16228         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
16229         to draw the menu shortcut string.
16230
16231 2007-03-07  Jackson Harper  <jackson@ximian.com>
16232
16233         * TreeNode.cs: Add the 2.0 collapse method.
16234
16235 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16236
16237         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
16238
16239 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16240
16241         * DataGridView.cs: Change DataSource will clear column and row
16242         lists. Call Invalidate() to reflect DataSource change.
16243
16244 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16245
16246         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
16247         and a new row is added to it.
16248
16249 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16250
16251         * DataGridView.cs: Add columns when DataSource is en empty list but
16252         is a System.Data.DataView (from a System.Data.DataTable).
16253
16254 2007-03-06  Andreia Gaita  <avidigal@novell.com>
16255
16256         * Label.cs: Implement AutoEllipsis (2.0)
16257
16258 2007-03-06  Jackson Harper  <jackson@ximian.com>
16259
16260         * TreeView.cs: Implement 2.0 TopNode setter property.
16261         - Use a local var instead of the skipped_nodes field for computing
16262         how many nodes to skip.  Otherwise we won't scroll because the
16263         valuechanged handler checks if skipped_nodes is equal to the new
16264         value.
16265         - Implement 2.0 Sort method.
16266         - Add useless 2.0 DoubleBuffer property
16267         - Implement 2.0 LineColors property.  Lets you change the color of
16268         the lines in the tree. Terribly useful for creating non cohesive
16269         desktops.
16270         - Implement 2.0 image key feature.
16271
16272 2007-03-06  Jackson Harper  <jackson@ximian.com>
16273
16274         * TreeView.cs: We can't get the bounds of the nodes before raising
16275         the AfterSelect event, because that event could change the node's
16276         bounds (scrolling, font change, etc).
16277
16278 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16279
16280         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
16281         * Form.cs: Don't recreate handle when creating FormWindowManager, just
16282           update window styles. In CreateParams us VisibleInternal instead of
16283           VIsible to get the actual visible flag set for this form.
16284         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
16285           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
16286           handle the case when the form is already maximized, in which case
16287           it should be restored. Fixes #81043.
16288
16289 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16290
16291         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
16292
16293 2007-03-05  Jackson Harper  <jackson@ximian.com>
16294
16295         * TreeViewHitTestInfo.cs: implement.
16296
16297 2007-03-05  Jackson Harper  <jackson@ximian.com>
16298
16299         * InternalWindowManager.cs: class status fix.
16300
16301 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16302
16303         * InternalWindowManager.cs: All windows that have a parent
16304         are confined to their parent when they're being moved.
16305         Fixes #80822.
16306
16307 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
16308
16309         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
16310         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
16311
16312 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16313
16314         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
16315           buttons invisible before deciding which ones should be visible
16316           (fixes minimize/maximize buttons showing up in toolwindows). Remove
16317           an unused variable.
16318         * InternalWindowManager.cs: Remove warning.
16319
16320 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16321
16322         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
16323         to throw an InvalidOperationException is virtual mode is being used.
16324
16325 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
16326
16327         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
16328         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
16329         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
16330         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
16331         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
16332         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
16333
16334 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16335
16336         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
16337           driver.KeyboardDelay from XplatUI.KeyboardDelay 
16338         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
16339           (patch by Sergey Volk)
16340
16341 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16342
16343         * ToolWindowManager.cs: Added, contains logic for
16344           tool windows.
16345         * CreateParams.cs: Add a few helper methods and an
16346           internal variable to know which control the CreateParams belongs
16347           to.
16348         * Control.cs: Call Form.ChangingParent when the
16349           parent is about to be changed.
16350         * XplatUIX11.cs: DeriveStyles (): Set
16351           caption_height for all windows that have captions and are children.
16352           Update to use ToolWindowManager instead of InternalWindowManager
16353           for ToolWindows.
16354         * XplatUIWin32.cs: Set fake window styles for all
16355           windows that have window managers.
16356         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
16357           now duplicated for mdi windows when they are
16358           maximized, first for the buttons the window itself has, then for
16359           the buttons that appear in the menu bar. Makes things a little
16360           easier). Updated UpdateWindowDecorations, SetWindowState and the
16361           mouse eventhandlers accordingly.
16362         * Form.cs: Add ChangingParent (), contains the
16363           logic of what should happen when the parent changes. In MdiParent
16364           don't set things that ChangingParent () is doing. When handling
16365           WM_CLOSE, we can close the form if there are any other modal forms
16366           and the current form is a descendent of the modal form.
16367         * InternalWindowManager.cs: A lot of refactoring,
16368           the title buttons are now extracted to a separate container class
16369           that takes care of all button code (clicks, tooltips, etc). Moved
16370           Iconic|Maximized|Normal Bounds properties to this class from
16371           MdiWindowManager, so that the window state logic can succeed for
16372           other than mdi wm's. Implemented general window state change logic.
16373           Moved CreateButtons to ThemeWin32Classic, since the theme might
16374           override which buttons are available when as well as the exact
16375           location.
16376         * FormWindowManager.cs: Added, contains logic for
16377           normal forms.
16378         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
16379           which buttons go where (and if they are at all visible). 
16380           Removed special handling of maximized windows, since they aren't special. 
16381           In DrawManagedWindowDecorations don't try to draw the text if it is
16382           empty.
16383         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
16384           use whatever the wm gives us.
16385
16386 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
16387
16388         * ButtonBase.cs: Add 2.0 properties.
16389         * Button.cs: Override Draw for 2.0.
16390         * Control.cs: Add Entered and Selected properties.
16391         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
16392         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
16393         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
16394         buttons.
16395         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
16396
16397 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
16398
16399         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
16400
16401 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
16402
16403         * XplatUIWin32.cs: Register a new class with Windows each time we get
16404         a new ClassStyle.  [Fixes bugs #79432, #80817]
16405         * Controls.cs: Set the correct ClassStyle in CreateParams.
16406         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
16407
16408 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
16409
16410         * ListView.cs: Add fireEvent argument to ReorderColumn since the
16411         ColumnReordered event must not be signaled when modifying DisplayIndex
16412         of a ColumnHeader. Added internal ReorderColumns method which takes
16413         care of drawing, and updating the internal DisplayIndex of the
16414         ColumnHeader. Added AddColumn method which is invoked from
16415         ColumnHeaderCollection when adding or inserting columns, and which
16416         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
16417         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
16418         Recalculated dispay indices after removing a ColumnHeader.
16419         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
16420         match MS. Allows last display index to be returned after ListView
16421         is disposed. Update actual location of ColumnHeader when DisplayIndex
16422         is modified.
16423
16424 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
16425
16426         * LinkLabel.cs: Improve CalcTrimRectangle.
16427         
16428         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
16429
16430 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
16431
16432         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
16433         get rectangle as a result value.
16434
16435 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
16436
16437         * LinkLabel.cs: Theres some diferences between rectangle return from 
16438         MeasureCharacterRanges and the area used for DrawString to fix this 
16439         CalcMeasurementFactor method was created, it calcules the diferences
16440         to be use later to adjust rectangle in draw operations. Fixes #80473.
16441         
16442         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
16443         to adjust draw rectangle.
16444
16445 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
16446
16447         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
16448         text and some other changes to reduce and optimize source code.
16449
16450 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
16451
16452         * RadioButton.cs: Implement 2.0 event.
16453         * RelatedImageListAttribute.cs: Implement new class.
16454
16455 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
16456
16457         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
16458
16459 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
16460
16461         * CheckBox.cs: Implement 2.0 functionality.
16462
16463 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16464
16465         * ListView.cs: Refactor Add and AddRange methods of
16466         ListViewItemCollection, to not update the ListView
16467         everytime an item is added in AddRange. Also move the update
16468         code to a new CollectionChanged method, and call it
16469         from other methods that need it as well (this should also fix some
16470         bugs when Sorting is used).
16471
16472 2007-02-27  Jackson Harper  <jackson@ximian.com>
16473
16474         * TextControl.cs: Try to never let the caret stay in a non-text
16475         tag.
16476         * TextBoxBase.cs: Update the caret.
16477
16478 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
16479
16480         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
16481         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
16482         delete POINT structure, duplicate of one in XplatUIStructs.
16483         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
16484
16485 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
16486
16487         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
16488         edit box since otherwise the Label would immediately be set (even if
16489         the user did not modify the label). In OnKeyDown set Handled to true
16490         if Return or Escape was pressed. In ColumnHeaderCollection unlink
16491         columns that are to be removed. In ListViewItemCollection unlink items
16492         that are to be removed.
16493
16494 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
16495
16496         * TextRenderer.cs: If we set a GDI clip region, we need to clear
16497         it when we are done.  [Fixes bug #80949]
16498
16499 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16500
16501         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
16502
16503 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16504
16505         * ListView.cs: I forgot to commit the changes for ListView 
16506         in my previous patch.
16507
16508 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16509
16510         * Clipboard.cs: Partially implement an overload of SetDataObject.
16511         * Form.cs: Implement ShowWithoutActivation.
16512         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
16513
16514 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16515
16516         This is a first set of changes to make the Virtual mode works,
16517         by avoiding the retrieval of ListViewItem instances until
16518         draw time.
16519
16520         * ListView.cs: Store item position in the ListView instead of the
16521         ListViewItem, this way we don't request the Bounds property of
16522         ListViewItem inside the ListView calculations, as well as cache the item
16523         size in item_size field. Store indexes instead of ListViewItem
16524         instances in the matrix used by icon view. Add a ItemMatrixLocation
16525         struct to hold the row and col info of the matrix info.
16526
16527         * ListViewItem.cs: Don't store the location anymore, and only cache
16528         the rectangles for GetBounds. Use the ListView.GetItemLocation
16529         method to retrieve the actual location.
16530
16531 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16532
16533         * TextRenderer.cs: Add clipping support, thanks to George.
16534         [Fixes bug #80949]
16535
16536 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16537
16538         * ListViewItem.cs: Cancel label edit when item is removed from 
16539         ListView.
16540         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
16541         event before the edit textbox is displayed.  Added CancelEdit method
16542         which is used end to editing while ignoring the value set by the
16543         user. In EndEdit, set focus to ListView to avoid losing focus to
16544         other controls. In ListViewItemCollection.Clear, cancel editing of
16545         any of the items.  In Remove, cancel editing of item being removed.
16546         Avoid udplicate code by modifing RemoveAt to invoke Remove.
16547
16548 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16549
16550         * FileDialog.cs: Update FSEntry when move is successful. Fixes
16551         bug #80948.  
16552
16553 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16554
16555         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
16556         compatible with non X11 systems. Fixes #80901.
16557
16558 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16559
16560         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
16561         whether the item should be unselected and reselect. We do no want this
16562         when we're starting to edit the label. Do not fire the 
16563         SelectedIndexChanged event from ListView when its already been fired
16564         by modifying ListViewItem.Selected. Fixes bug #80943.
16565
16566 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16567
16568         * TextRenderer.cs: Previos commit logic was backwards.
16569
16570 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16571
16572         * TextRenderer.cs: Don't add padding on MeasureText if we were
16573         sent the NoPadding flag.
16574
16575 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16576
16577         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
16578         after DrawButton. To prevent image overlaps button borders SetClip and 
16579         ResetClip added before and after draw image. Fixes #79129.
16580
16581 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16582
16583         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
16584         window size, it fix problem when you run under win32 that theres
16585         Size diferent than ClientSize. Also fix controls size and positions
16586         to mimic Win32. Fixes #80837.
16587
16588 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
16589
16590         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
16591         menu area to fix some problems for non X11 systems. Fixes #80613.
16592
16593 2007-02-22  Jackson Harper  <jackson@ximian.com>
16594
16595         * TreeNode.cs: When a node is expanded, set its is_expanded flag
16596         even if it doesn't have any children.
16597
16598 2007-02-22  Jackson Harper  <jackson@ximian.com>
16599
16600         * TreeView.cs: Calculate the top node 'on the fly', this
16601         eliminates issues where you need to click on the tree before
16602         scrolling it to get the top node computed correctly.
16603         * TreeNodeCollection.cs: We don't need to mess with the top node
16604         anymore.
16605
16606 2007-02-22  Jackson Harper  <jackson@ximian.com>
16607
16608         * DataGridViewRow.cs: Fix typo so height can actually be set.
16609         Patch by Peter Grimm.
16610
16611 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16612
16613         * FileDialog.cs: Fixed support for renaming files and directories.
16614         * ListView.cs: Do not lose focus when edit is canceled. Process
16615         Escape as regular key (to prevent closing of dialogs).
16616
16617 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16618
16619         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
16620         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
16621
16622 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16623
16624         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
16625         did not modify label.
16626         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
16627         modified the text. Reset Label when user presses Escape in edit mode.
16628         Move focus to ListView after having cancelled or finished editing the
16629         label.
16630
16631 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
16632
16633         * ComboBox.cs: Removed unnecessary initializations. Marked items field
16634         private. Clear textbox when Text is set to null and SelectedIndex is
16635         already -1.
16636         * FileDialog.cs: Removed unnecessary initializations. Removed 
16637         workarounds for ComboBox bugs that are now fixed. Modified
16638         DefaultExt, InitialDirectory and Title property to change null to
16639         zero-length string in getters. Avoid directly accessing fields.
16640
16641 2007-02-20  Jackson Harper  <jackson@ximian.com>
16642
16643         * TextControl.cs: Remove RecalAlignments call, that was some
16644         debugging leftovers.
16645         - Don't use the line indent when we shouldn't.
16646         * RichTextBox.cs: Add support for paragraph left indents.
16647
16648 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16649
16650         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
16651         Seems like the class status pages doesn't catch params differences.
16652
16653 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
16654
16655         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
16656
16657 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
16658
16659         * ComboBox.cs: Setting Text should have no effect if item text of
16660         selected item exactly matches value. First lookup text using
16661         case-sensitive comparison, and fallback to case-insensitive comparison.
16662         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
16663         allow startIndex to be last index. Changed ArgumentOutOfRangeException
16664         paramname to match MS. Restart from first item if string is not found
16665         after startIndex. Fixed paramname of ArgumentNullException that is
16666         thrown for null value in ObjectCollection.Contains.
16667
16668 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
16669
16670         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
16671
16672 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16673
16674         * ListControl.cs: In SelectedValue use value.Equals to compare for
16675         equality instead of ==, otherwise it will fail for strings.
16676         Fixes #80794.
16677
16678 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16679         
16680         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
16681         since the caret won't show up unless ShowSelection is true. 
16682         Fixes #80795.
16683
16684 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16685
16686         * Application.cs: When disabling all forms but the main form, do not
16687           disable any descendants of the main form (such as mdi children or
16688           other parented forms). Fixes #80822 on Windows.
16689         * Form.cs: If we have a parent, set the WS_CHILD style.
16690         * Control.cs: Update the window styles if the control whose parent has
16691           changed is a form (the WS_CHILD style has to be switched).
16692
16693 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
16694
16695         * XplatUIStructs.cs: MsgUIState structure added.
16696
16697 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
16698
16699         * FileDialog.cs: Removed need for separate fileName field. On 2.0
16700         profile, do not check filename(s) for illegal character if filename(s)
16701         were set non-interactively but always check on 1.0 profile. Fixed NRE
16702          in DefaultExt and only strip off first leading dot. Improve exception
16703         message when invalid Filter is set. Do not ignore InitialDirectory if
16704         it does no exist. Store specified Title, and if empty use default
16705         title (depending on type of dialog). Added an internal DialogTitle 
16706         property for retrieving dialog title. Fixed logic of displayed dir to
16707         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
16708         string as its buggy.
16709         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
16710         FileName is a zero-length string (it can never be null). Override 
16711         DialogTitle property to set default title of dialog box.
16712         * SaveFileDialog.cs: Override DialogTitle property to set default
16713         title of dialog box.
16714
16715 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
16716
16717         * FileDialog.cs: Modify default text of filename and filetype labels
16718         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
16719         after we've updated the SelectedIndex. Fixes part of bug #80887.
16720         * SaveFileDialog.cs: Set text of filetype label.
16721
16722 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16723
16724         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
16725         label field. Needed by latest Jackson's fixes for ListView.
16726
16727 2007-02-16  Andreia Gaita  <avidigal@novell.com>
16728
16729         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
16730         print preview images.
16731
16732 2007-02-16  Jackson Harper  <jackson@ximian.com>
16733
16734         * ListView.cs: Make AfterLabelEdit work correctly.
16735         * FileDialog.cs: After changing the name of the folder, we have to
16736         make sure that it is created, or that we pop up an error because
16737         it already exists.
16738
16739 2007-02-16  Jackson Harper  <jackson@ximian.com>
16740
16741         * X11Dnd.cs: Implement aliases on mime handlers, so things like
16742         System.String are mapped to text.
16743         - Handle dataobjects, getting all the possible formats out of them
16744         - We dont need the drag event args before we give feedback. This
16745         allows feedback cursors to be immediate before selections have
16746         been converted.
16747
16748 2007-02-16  Jackson Harper  <jackson@ximian.com>
16749
16750         * TextBoxBase.cs: Modified the method for inserting images to
16751         taking a line and position instead of tag and position.
16752         * RichTextBox.cs: Handle PngBlip data by inserting the png image
16753         into the RTF file.
16754         * TextControl.cs: Allow images to be inserted as the first tag of
16755         a line.
16756         - Fix some off by one issues when we assume the first tag is a
16757         text tag, not an image tag.
16758
16759 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16760
16761         * ListView.cs: Set focus to ListView when ItemControl gets a
16762         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
16763         Fixes part of #80467.
16764
16765 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16766
16767         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
16768           validate Text input (if null or empty string reset Value to default
16769           value). Fixes #80830.
16770
16771 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16772
16773         * ListView.cs: Set owner as null for columns and items when
16774         Dispose is invoked. Fixes #80607.
16775
16776 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
16777
16778         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
16779         showing DropDowns, don't show a Grip when doing Flow layout.
16780         [This fixes the toolbox in PDN 2.72.]
16781         * ToolStripItem.cs: Add Anchor property and some internal properties to
16782         reduces needed changes to FlowLayout.
16783         * ToolStripOverflow.cs: Remove unused variable.
16784         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
16785         use it in the layout calculations.
16786
16787 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16788
16789         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
16790         reported in #79640.
16791         
16792         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
16793         size calculation.
16794
16795 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16796
16797         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
16798         MeasureString format, it can make button very large in some cases, it is
16799         strange but is what win32 do.
16800
16801 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16802
16803         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
16804         size calculation.
16805
16806         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
16807         rendering, the value is based on MenuAccessKeysUnderlined.
16808
16809 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16810
16811         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
16812         for most themes.
16813         
16814         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
16815         
16816         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
16817         and use MenuAccessKeysUnderlined instead.
16818
16819 2007-02-13  Andreia Gaita  <avidigal@novell.com>
16820
16821         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
16822         A selected control would not get a Focus call if:
16823                 - the default active control of the container is the same as
16824                   the one that was selected
16825                 - we are switching from one container to another
16826         Under these conditions, the container being selected already has
16827         an active_control, which is the same as the one being activated, 
16828         so set_ActiveControl would always return and not send the Focus
16829         call. Fix to check if the currently active control of the container
16830         is actually focused.
16831
16832 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
16833
16834         * StatusStrip.cs: Implement the spring layout.
16835         * ToolStripControlHost.cs: Make sure the hosted control's visibility
16836         always matches the host.
16837         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
16838         and TextAfterImage.
16839
16840 2007-02-13  Andreia Gaita  <avidigal@novell.com>
16841
16842         * Control.cs: Code reorganization only.
16843           - Reorganize the WndProc cases so that each case has it's own handling method, 
16844           to help with the no-line-numbering stack traces.
16845           - Formatting changes (it's vstudio's fault, really :p)
16846
16847 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16848
16849         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
16850           Thread.CurrentUICulture to match DateTimePicker's (and MS)
16851           behaviour.
16852
16853 2007-02-12  Jackson Harper  <jackson@ximian.com>
16854
16855         * RichTextBox.cs:
16856         * TextBox.cs: By default we have a non multiline document
16857         - use the multiline property instead of the internal variable
16858         * TextBoxBase.cs: Treat multiline and non multiline the same in
16859         most places.
16860         - Use the documents multiline flag instead of tracking it ourself
16861         * TextControl.cs: Attempt at getting multiline to match MS
16862         behavior.  Lines now track an offset, which is either their X or Y
16863         offset depending on whether or not we are in multiline mode.
16864         - Update all the methods to understand that lines have an X value.
16865         - Fix crash in Undo::Duplicate when empty lines are deleted.
16866
16867 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
16868
16869         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
16870         code moved to properties PreferredHeight and PreferredWidth. It solve the
16871         all problems when preferred sizes must be recalculated. Fixes #80801.
16872
16873 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
16874
16875         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
16876         font height when compatible_text_rendering is false. Partially fix #80801.
16877
16878 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16879
16880         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
16881
16882 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16883
16884         * Form.cs: Improved exception messages in ShowDialog.
16885
16886 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16887
16888         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
16889         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
16890         if not set. Fixes bug #80764. Avoid accessing current_settings field
16891         directly.
16892
16893 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
16894
16895         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
16896         false.
16897
16898         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
16899         public in 2.0 and for easy maintenance and dont break compatibility it is 
16900         internal in 1.1.
16901         
16902 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16903
16904         * ToolStripItem.cs: Implement using images from ImageList.
16905
16906 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16907
16908         * DateTimePicker.cs: Change default date-formatting culture from
16909           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
16910           seems to be the way MS does it.
16911
16912 2007-02-08  Andreia Gaita  <avidigal@novell.com>
16913
16914         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
16915         (the 6 was cut off on the right side)
16916
16917 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16918
16919         * Form.cs: Tell MenuStrips to close when the form is clicked.
16920         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
16921         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
16922         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
16923         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
16924         support for Overflow, where items that do not fit are automatically
16925         reparented to a drop down menu.
16926         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
16927         Also: fixes bug #80747.
16928
16929 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16930
16931         * ComboBox.cs: Remove warning (unused code).
16932         * ScrollableControl.cs: Remove warning for 1.1 profile.
16933
16934 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16935
16936         * Form.cs: Remove a warning.
16937
16938 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16939
16940         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
16941           'g' specifier, not documented anywhere, but seems to always show up
16942           as a single space (might have something to do with the DateTime 'g'
16943           specifier, which is the era format, but since DateTimePicker can't
16944           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
16945           won't crash if the format has an unmatched quote. Now shows
16946           single-character formats correctly. Fixes #80744.
16947
16948 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16949
16950         * StatusStrip.cs: Stretch property needs to call base.Stretch,
16951         not this.Stretch to fix stack overflow. [Fixes bug #80760]
16952
16953 2007-02-07  Chris Toshok  <toshok@ximian.com>
16954
16955         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
16956         background color.  it overwrites the background image we've
16957         already painted.  Fixes #80599.
16958
16959 2007-02-07  Chris Toshok  <toshok@ximian.com>
16960
16961         * DataGrid.cs: return immediately from Edit() when there are no
16962         columns.  Fixes #80662.
16963
16964 2007-02-07  Chris Toshok  <toshok@ximian.com>
16965
16966         * MessageBox.cs: fix #80625.  don't always show the Help button in
16967         2.0.  use the displayHelpButton parameter to determine if we
16968         should show it. Also, make the internal show_help field private.
16969
16970 2007-02-07  Chris Toshok  <toshok@ximian.com>
16971
16972         * Control.cs (SetVisibleCore): check in the proposed patch for
16973         80604, and set is_visible before calling CreateControl.
16974
16975 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
16976
16977         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
16978         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
16979         on it.
16980
16981 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
16982
16983         * MenuAPI.cs: hotkey_active internal field added, it is required because
16984         we need to know when hotkeys must be draw, before this change a keystate
16985         Navigating was used but we can have menu in navigating state without
16986         hotkeys. Fixes #80694.
16987         
16988         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
16989
16990 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16991
16992         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
16993           corresponding events and methods to be internal for 1.1 profile and
16994           public for 2.0 profile (required by SizeGrip).
16995         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
16996           implicit control list). Don't set the size nor the location of the
16997           SizeGrip anymore as it's not needed.
16998         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
16999           draw directly on the captured control (fixes #80656). Removed
17000           ShowGrip (it wasn't used anywhere), redraw (always true), added
17001           GetDefaultSize and GetDefaultRectangle to calculate defaults.
17002         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
17003           be called from SizeGrip.
17004
17005 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17006
17007         * Timer.cs: Throw ArgumentException if Interval <= 0.
17008
17009 2007-02-05  Jackson Harper  <jackson@ximian.com>
17010
17011         * TreeView.cs: We need to check scrollbar visibility when window
17012         visibility is updated, because non visible trees don't ever add
17013         scrollbars.
17014         * Cursor.cs: We want the override cursor to be reset to NULL when
17015         we set current cursor to the default cursor.
17016
17017 2007-02-05  Jackson Harper  <jackson@ximian.com>
17018
17019         * TextControl.cs: Don't have crlfs when we are non multiline.
17020         - Consolidate the line position.
17021
17022 2007-02-05  Jackson Harper  <jackson@ximian.com>
17023
17024         * X11Keyboard.cs: BACK+CTRL gets a special char code.
17025
17026 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17027
17028         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
17029           handling LeaveNotify->NotifyUngrab in order to send
17030           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
17031           after calling XUngrabPointer, so we call WindowUngrabbed directly
17032           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
17033         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
17034           MouseCaptureChanged correctly. Also create handles if changing
17035           Capture (matches MS behaviour).
17036
17037 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17038
17039         * SizeGrip.cs: Make the last change 2.0 only.
17040
17041 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17042
17043         * SizeGrip.cs: If resizing and the capture is lost, revert any size
17044           changes to initial size (fixes #80597).
17045
17046 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17047
17048         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
17049
17050 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17051
17052         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
17053           background) and only allow dragging if enabled. This way the
17054           sizegrip can be used to fill the open square that otherwise would
17055           have been shown in the bottom right corner of ScrollableControl
17056           when ScrollableControl is not suppose to support sizing.
17057         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
17058           sizegrip is shown and enabled, and hook up with necessary events.
17059
17060 2007-02-01  Chris Toshok  <toshok@ximian.com>
17061
17062         * DataGridTextBoxColumn.cs: clean up the
17063         GetFormattedString/GetColumnValueAtRow combination of functions.
17064         Also fix UpdateUI, and the initial state of
17065         IsInEditOrNavigateMode.
17066
17067         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
17068         aren't supposed to scroll the textbox here, we're supposed to
17069         scroll the datagrid.
17070
17071 2007-02-01  Chris Toshok  <toshok@ximian.com>
17072
17073         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
17074         setting the position.
17075
17076 2007-02-01  Chris Toshok  <toshok@ximian.com>
17077
17078         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
17079         here, since the most recent focus fixes keep us from generating
17080         the Leave event when our textbox gets focus.
17081         (Edit): we should be passing null for the column style's
17082         instantText parameter.
17083         
17084 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
17085
17086         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
17087         raised.  Fixes menu text/icons not showing up in PDN.
17088
17089 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17090
17091         * Control.cs: Remove code in constructor that makes every
17092         control with WS_CHILD set have initial location -1, -1.
17093
17094 2007-01-31  Jackson Harper  <jackson@ximian.com>
17095
17096         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
17097         XplatUIX11.
17098         * XplatUIX11.cs: Give teh keyboard to teh dnd.
17099
17100 2007-01-31  Jackson Harper  <jackson@ximian.com>
17101
17102         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
17103         - Remove some debug code.
17104
17105 2007-01-31  Jackson Harper  <jackson@ximian.com>
17106
17107         * XplatUIX11.cs: If you set the override cursor during a grab, it
17108         should actually override the grab cursor.  This comes into play
17109         when you are setting custom cursors in a DND feedback method.
17110
17111 2007-01-31  Jackson Harper  <jackson@ximian.com>
17112
17113         * X11Dnd.cs: Add support for handling the QueryContinue and
17114         GiveFeedback events.
17115         - Cancel drag and drop actions when the escape key is clicked.
17116         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
17117         can handle the ESCAPE key.
17118         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
17119         done when dnd events are continued after the button is released.
17120         - Add a new helper method so that dnd can translate key events.
17121
17122 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
17123
17124         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
17125         make it more obvious what is happening.
17126
17127 2007-01-30  Jackson Harper  <jackson@ximian.com>
17128
17129         * XplatUIX11.cs: Don't break when handling button release in drag
17130         and drop operations. We need that BUTTONUP message to get through
17131         so capture is released.
17132         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
17133         this is handled automatically when the mouse is down.
17134
17135 2007-01-30  Jackson Harper  <jackson@ximian.com>
17136
17137         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
17138         is closed, so we need to make sure that we aren't changing the
17139         dialog result when the OK (Open or Save) button has been clicked
17140         and we are closing the window ourselves.  Note we don't need to
17141         worry about the cache being written in this case, because it was
17142         already done in the previous FilOk call.
17143
17144 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17145         
17146         * DateTimePicker.cs: Remove a warning.
17147         * ComboBox.cs: Remove a couple of warnings.
17148
17149 2007-01-29  Chris Toshok  <toshok@ximian.com>
17150
17151         * XplatUIX11.cs: don't crash, and remove the icon if the user has
17152         set one, if SetIcon is passed a null icon.
17153
17154 2007-01-29  Andreia Gaita  <avidigal@novell.com>
17155
17156         * TextBox.cs: Redraw when the password characters changes
17157         * TextControl.cs: Check if textbox has a password char and draw 
17158         a line of password chars instead of the text in the line. LineTag gets 
17159         an extra Draw() method which allows document.Draw to override the text 
17160         that will be drawn. Removes 1024 char limitation on length of passworded 
17161         lines.
17162
17163 2007-01-29  Jackson Harper  <jackson@ximian.com>
17164
17165         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
17166         single chars is not.
17167
17168 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
17169
17170         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
17171         one pixel.  Fix a StackOverflowException caused by an overload wrongly
17172         calling itself.
17173
17174 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
17175
17176         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
17177         also remove ProcessArrowKey and put the code inside ProcessKeys.
17178
17179 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
17180
17181         * PaddingConverter.cs: Added.
17182
17183 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17184         
17185         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
17186         ShowPanels is false (fixes #80600). Only draw up to 127 characters
17187         of text (fixes #80601). For panels clip the text to draw to the
17188         panel (fixes #80603).
17189
17190 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17191
17192         * ComboBox.cs: Fixed implementation of ResetText.
17193
17194 2007-01-25  Jackson Harper  <jackson@ximian.com>
17195
17196         * TextControl.cs: For the last char of a line we need to use the
17197         line size, not that chars width, since it won't actually be
17198         computed since the right side of a char is based on the start of
17199         the left side of the next char, and the next char does not exist.
17200
17201 2007-01-25  Chris Toshok  <toshok@ximian.com>
17202
17203         * Splitter.cs: fix the new unit tests, and reindent some switch
17204         statements.
17205
17206 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17207
17208         * ComboBox.cs: Implemented 2.0 methods and events.
17209         * TextBoxBase.cs: Added OnTextUpdate, so that
17210         ComboBox.ComboTextBox can inform ComboBox of it.
17211
17212 2007-01-25  Jackson Harper  <jackson@ximian.com>
17213
17214         * TextControl.cs: Respect ShowSelection when deciding whether or
17215         not to display the caret, this allows comboboxes to have carets
17216         when the combotextbox does not have focus.
17217
17218 2007-01-25  Jackson Harper  <jackson@ximian.com>
17219
17220         * TextControl.cs: Add a Suspend/Resume for updating, basically the
17221         same as the Suspend/Resume for recalc, except this will do actual
17222         Invalidates.
17223         - New Undo manager, works much like the MS version.
17224         - Implemented Redo
17225         * TextBoxBase.cs: The Cut operation is undoable.
17226
17227 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17228         
17229         * TextBoxBase.cs: Don't antialias text. Makes it look way better
17230         on Windows (no difference on Linux).    
17231
17232 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17233
17234         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
17235         we don't want to activate any windows. Fixes #79433.
17236
17237 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
17238
17239         - ButtonBase.cs: Fix capitalization of parameter: disposing.
17240         [Fixes bug #80609]
17241
17242 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
17243
17244         * FileDialog.cs:
17245         - Move to using System.ComponentModel.EventHandlerList
17246         - Replace Refresh with Invalidate
17247         - Clear the mime filecache on closing
17248         - Some other memory reducing work. After beeing closed FD now uses
17249           only about 300 KB for the fdo mime stuff plus the memory of the
17250           cached icons.
17251         * Mime.cs: Changed coding style and removed unnecessary commented
17252         code. Some more memory memory reducing work.
17253
17254 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17255
17256         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
17257         a few other missing 2.0 properties.
17258         * Theme.cs: Added DrawFlatStyleComboBox.
17259         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
17260
17261 2007-01-24  Chris Toshok  <toshok@ximian.com>
17262
17263         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
17264         wake_waiting flag, not just when there's data to be read.  if we
17265         don't, then future wakeup's won't reach us and we'll be doomed to
17266         wait for the entire 1 second timeout forever (unless there are X
17267         events to be had).
17268
17269 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
17270
17271         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
17272         until you pass Items.Count, not Items.Count - 1 like 1.1.
17273
17274 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
17275
17276         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
17277
17278 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
17279
17280         * ToolStripContainer.cs: The recent Dock fix exposed that I was
17281         adding the panels in the wrong order.
17282
17283 2007-01-24  Jackson Harper  <jackson@ximian.com>
17284
17285         * TextBoxBase.cs: When we move the caret we also need to move the
17286         selection, this fixes some random crashing after doing select
17287         text, unselect, delete a char, paste.
17288
17289 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17290
17291         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
17292
17293 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17294
17295         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
17296         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
17297         * ToolBar.cs: Force redraw in BackgroundImageChanged.
17298
17299 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17300
17301         * ToolBar.cs:
17302         - Implement support for vertical toolbars. Fixes #80539;
17303         - Call LayoutToolBar when resize, it fix some other problems in layout.
17304         - Rename requested_height to requested_size, as we can have width on it
17305         when toolbar is vertical.
17306         - Create a private property "Vertical" that uses Dock to verify when 
17307         toolbar is vertical or not.
17308         - Set ControlStyles when change Dock property.
17309         - Refactory in LayoutToolBar to have better variables names and to support
17310         vertical toolbars.
17311         - Fixes default value for ButtonSize when button count is equal zero, size
17312         must be (39, 36) test case writed.
17313
17314 2007-01-23  Chris Toshok  <toshok@ximian.com>
17315
17316         * Control.cs: fix the checks so that they work correctly for mdi
17317         parents/children.
17318
17319 2007-01-23  Chris Toshok  <toshok@ximian.com>
17320
17321         * Control.cs: ControlCollection seems to have super-secret
17322         abstraction breaking knowledge of Mdi containers.  allow MdiClient
17323         to add toplevel controls.
17324
17325 2007-01-23  Chris Toshok  <toshok@ximian.com>
17326
17327         * Control.cs: throw an ArgumentException if a toplevel control is
17328         added to our control collection from ControlCollection.Add, as
17329         well as from ControlCollection.IList.Add.  This fixes the
17330         ControlSetTopLevelTest.TestTopLevelAdd unit test.
17331
17332         Also, in ControlCollection.IList.Add, don't through an
17333         ArgumentNullException, throw an ArgumentException, when value ==
17334         null.  This matches MS.
17335
17336 2007-01-23  Chris Toshok  <toshok@ximian.com>
17337
17338         * BindingSource.cs: initial, incomplete, implementation of
17339         BindingSource.
17340
17341 2007-01-23  Jackson Harper  <jackson@ximian.com>
17342
17343         * TextControl.cs:
17344         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
17345         that I can fix a broken unit test (TextBoxTest::ClearUndo)
17346         
17347 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17348
17349         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
17350
17351 2007-01-23  Andreia Gaita  <avidigal@novell.com>
17352
17353         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
17354         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
17355         IndexOfKey() for 2.0
17356
17357 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17358
17359         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
17360         to prevent it from changing z-order.
17361         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
17362         leave UI updates in MdiWindowManager.
17363         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
17364         1 sized (NC handling goes weird on Linux otherwise).
17365         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
17366         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
17367         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
17368         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
17369         and SetWindowState(s) to allow for changing the size of an activated child
17370         before activating it (reduces a lot of flicker).
17371
17372 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
17373
17374         * Form.cs: Changing FormBorderStyle has different semantics based
17375         on whether the Form is visible or not.  If not visible, don't change
17376         the Size.  But InvalidateNC needs to be called to force the window
17377         to pick up the changes and redraw itself.  [Fixes bug #80574]
17378
17379 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
17380
17381         [Moma work]
17382         * ContainerControl.cs: ProcessCmdKey.
17383         * ErrorProvider.cs: new constructor.
17384         * Form.cs: fix AutoValidateEvent compiler warning.
17385         * Label.cs: fix OnAutoSizeChanged compiler warning.
17386         * MenuStrip.cs: fix CanOverflow compiler warning.
17387         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
17388         * TextBox.cs: Dispose.
17389         * ToolStrip.cs: CanOverflow, re-enable double buffering.
17390         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
17391         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
17392         * ToolStripItem.cs: Overflow, RightToLeft properties.
17393
17394 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17395
17396         * Form.cs: Move the layout of the main form to MdiWindowManager.
17397         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
17398         do a layout of the main window to update MdiClient's client area to
17399         the right area. Fixes #80533. Remove the calculation of nc size, 
17400         it was just wrong and the correct one is the same as for 
17401         InternalWindowManager. 
17402
17403 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
17404
17405         * Control.cs: Setting Anchor or Dock needs to reset the other
17406         to its default.  [Fixes bug #80556]
17407
17408 2007-01-20  Chris Toshok  <toshok@ximian.com>
17409
17410         * CheckedListBox.cs: class status changes.
17411
17412         * ScrollableControl.cs: same.
17413
17414         * RichTextBox.cs: same.
17415
17416         * ContainerControl.cs: same.
17417
17418         * ListView.cs: same.
17419
17420         * NotifyIcon.cs: same.
17421
17422         * MenuStrip.cs: same.
17423
17424         * RadioButton.cs: same.
17425
17426         * CheckBox.cs: same.
17427
17428         * PrintPreviewDialog.cs: same.
17429
17430         * Form.cs: same.
17431
17432 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
17433
17434         * TreeNode.cs: Apply Alan's patch for Name property.
17435
17436 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17437         
17438         * Form.cs: Implemented SizeGripStyle.
17439         * SizeGrip.cs: Check for minimum and maximum size for the
17440         control being resized and only resize if size has actually
17441         changed.
17442
17443 2007-01-19  Chris Toshok  <toshok@ximian.com>
17444
17445         * DataGridColumnStyle.cs: stop setting _readonly in the
17446         PropertyDescriptor setter.  fixes a unit test failure.
17447
17448         also, rename ParentReadOnly to TableStyleReadOnly, and have it
17449         just consult our table style (if we have one).  We don't need to
17450         consult the datagrid readonly attribute because that's passed in
17451         as the _ro arg to Edit.  this simplifies things a little.
17452         
17453         * DataGrid.cs: use CurrentColumn instead of
17454         current_cell.ColumnNumber just to simplify some of the code.
17455
17456         switch the order of some things in the CurrentCell setter to keep
17457         the previous cell from getting a textbox again -
17458         EnsureCellVisibility causes scrolling to happen, which calls Edit.
17459         So we need to set the new cell before calling it.
17460         
17461         call Edit in OnEnter, as does Microsoft.
17462         
17463         also, make sure the current table style isn't the one we create
17464         initially when checking to see if it's different than the one
17465         we're setting it to in BindColumns (this fixes #80421).
17466
17467         * GridTableStylesCollection.cs: table styles can have "" for a
17468         mapping name.  part of the fix for #80421.
17469
17470         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
17471         Edit significantly.
17472
17473 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17474
17475         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
17476         and less GDI object leaky-er.
17477
17478 2007-01-18  Andreia Gaita  <avidigal@novell.com>
17479
17480         * LinkLabel.cs: Add opaque control style
17481
17482 2007-01-18  Jackson Harper  <jackson@ximian.com>
17483
17484         * TextControl.cs: Calculate width properly.
17485         - Don't store the tag's X offset, this can be figured out very
17486         easily.
17487         - When getting the caret tag make sure to get the last empty tag.
17488
17489 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17490
17491         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
17492         [Fixes bug #79959]
17493
17494         * Control.cs: Color.Empty shouldn't count for previous transparent
17495         redraw changes.
17496
17497 2007-01-18  Jackson Harper  <jackson@ximian.com>
17498
17499         * TextBox.cs:
17500         * RichTextBox.cs:
17501         * TextControl.cs: Starting to merge in some pieces of my older
17502         undo work.  Basically just some slight cleanup of the undo API.
17503
17504 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17505
17506         * TrackBar.cs: Fix signature of RightToLeftLayout.
17507         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
17508         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
17509         * Application.cs: Implemented UseWaitCursor.
17510
17511 2007-01-18  Jackson Harper  <jackson@ximian.com>
17512
17513         * TextControl.cs: We can't skip tags if any part of the tag is
17514         visible.
17515
17516 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17517
17518         * ContainerControl.cs: Override OnLayout.
17519
17520 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17521
17522         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
17523
17524         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
17525         everything else.
17526
17527 2007-01-18  Chris Toshok  <toshok@ximian.com>
17528
17529         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
17530         (leftover from the container_selected days, I'd wager).  fixes bug
17531         #80546.
17532
17533 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17534
17535         * Control.cs: Apply patch from George to fix the new testcase on
17536         bug #80451.  We can't just check for Color.Transparent, we need 
17537         to check if the back color's alpha channel is < 255.
17538
17539 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17540
17541         * Form.cs: Move setting show_icon = true to before the constructor
17542         so that the base constructor has that information when it calculates
17543         the form's size.  Was causing forms to be (6, 6) bigger than they
17544         were supposed to be.  Thanks for catching this Rolf!
17545
17546 2007-01-18  Jackson Harper  <jackson@ximian.com>
17547
17548         * TextControl.cs: When replacing a selection we need to invalidate
17549         from the initial selection start, because selection start is moved
17550         to the end of the replacement.
17551
17552 2007-01-18  Andreia Gaita  <avidigal@novell.com>
17553
17554         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
17555
17556 2007-01-18  Chris Toshok  <toshok@ximian.com>
17557
17558         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
17559         I just added.
17560
17561 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
17562
17563         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
17564         layout methods and properties from ToolBarButton must be available
17565         into ToolBarButtonInfo.
17566
17567 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17568
17569         * Control.cs: If the control has a transparent background, we
17570         need to refresh it when it moves and when it's parent's background
17571         image changes.  [Fixes bug #80451]
17572
17573 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17574
17575         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
17576
17577 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17578
17579         * XplatUIWin32.cs: Implement proper double buffering for Windows.
17580         [Fixes bug #80447, and probably speeds up things as well]
17581
17582 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17583
17584         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
17585         * XplatUIWin32.cs: We need to recalculate NC size after changing 
17586         window style to toolwindow (otherwise the client rectangle will be
17587         3 pixels to small for some reason).
17588         * MdiWindowManager.cs: Revert NC size calculations to match how
17589         they are calculated only based on window styles (to match
17590         Win32AdjustWindowRectEx, since otherwise when setting size or 
17591         location, Control will call Win32AdjustWindowRectEx to update client 
17592         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
17593         calculate a different value of client size causing another paint 
17594         (and flickering))
17595         * InternalWindowManager.cs: When moving or resizing a window only
17596         update size or location if they actually changed.
17597         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
17598         (seems to match Windows behaviour better). Cleaned up 
17599         ManagedWindowDecorations to draw what's needed and nothing else
17600         (was drawing borders and lines where they shouldn't be)
17601         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
17602         (style = 0xFFFF) and takes into account caption height when 
17603         calculating window rectangle.   
17604
17605 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
17606
17607         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
17608         can be added to toolbar multiple times, we need to maintain a list of 
17609         button information for each positions.
17610
17611 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
17612
17613         * ToolBar.cs: Some small stetic changes.
17614
17615 2007-01-16  Jackson Harper  <jackson@ximian.com>
17616
17617         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
17618         that allow us to have nested recalc = false blocks.
17619         - Add paste support for images in the RichTextBox
17620         * RichTextBox.cs: flush the text after the color is changed, so
17621         the change takes effect.
17622         - Use SuspendRecalc
17623         - Some extra debugging info
17624         * TextControl.cs: Tags no longer track their length, it is just
17625         computed from the next tags length, this makes things a little
17626         simpler and reduces places that we have to track length changes.
17627         - Refactored the linetag class a little so we could make it
17628         a base class for different kinds of tags
17629         - Created a image tag, a tag that can have a single image inserted
17630         into it
17631         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
17632         that we can call suspend multiple times.
17633         - Add some debugging methods
17634
17635 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17636
17637         * MdiClient.cs: Add ActivatePreviousChild for 
17638         mdi child window navigation.
17639         * Form.cs: Use MdiClient.ActivateNextChild/
17640         ActivatePreviousChild instead of Form.SelectNextControl
17641         to select the next/previous child since 
17642         SelectNextControl doesn't do it in the same order
17643         as mdi children should do it.
17644
17645 2007-01-16  Chris Toshok  <toshok@ximian.com>
17646
17647         * Control.cs: remove container_selected field.
17648
17649 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17650
17651         * MdiClient.cs: Update main form's ActiveChild when
17652         updating keyboard focus for the mdi child.
17653
17654 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
17655
17656         * Control.cs: PreferredSize fix.
17657
17658         * Form.cs: Add several 2.0 events, properties, and methods.
17659
17660 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
17661
17662         * Form.cs: Provide meaningful message when MdiParent is assigned a
17663         Form that is not an MdiContainer.
17664
17665 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17666
17667         * MdiClient.cs: Update main form's ActiveChild when
17668         activating a mdi child.
17669
17670 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17671
17672         * MdiWindowManager.cs: Fix NRE when merging menus and main form
17673         doesn't have a menu.
17674
17675         * Form.cs: Request NCRecalc after creating a mdi child window.
17676         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
17677         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
17678         
17679         * MdiClient.cs: Add new method SendFocusToActiveChild that either
17680         sends keyboard focus to the active child, or to the MdiClient
17681         if there are no child forms.
17682         
17683 2007-01-15  Chris Toshok  <toshok@ximian.com>
17684
17685         * ListView.cs: drop the *Internal overrides, just do our work in
17686         ItemControl's WndProc instead.
17687
17688         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
17689         of the various controls, and forward the events properly (in the
17690         same manner as MS) from the textbox to the UpDown.  Also the
17691         ActiveControl of the UpDownBase gets set properly now.  Finally,
17692         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
17693
17694         * NumericUpDown.cs: set Text in the ctor.
17695
17696         * DomainUpDown.cs: call UpdateEditText in the ctor.
17697         
17698         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
17699         so even a Selectable = false textbox can be focused if you click
17700         in it.  Go figure.
17701
17702         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
17703         just add their handling in their respective WndProc's.  Also add
17704         an explicit FocusInternal method that doesn't consult CanFocus
17705         before calling Select(this).
17706
17707         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
17708         do our work in WndProc instead.
17709
17710         * TabControl.cs: same.
17711
17712         * ComboBox.cs: same.
17713
17714 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17715
17716         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
17717         Fixes #80006.
17718
17719 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17720
17721         * ListViewItem.cs:
17722         * ThemeWin32Classic.cs: Don't draw the item text outside
17723         item bounds in Details view, as well as use trimming.
17724         Fixes bug #80376.
17725
17726 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17727
17728         * Form.cs: Implement Form.ShowIcon.
17729         
17730         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
17731         null, which when combined with the DlgModalFrame window style removes
17732         the icon from the title bar.
17733
17734 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17735
17736         * Control.cs: Call OnMouseClick after OnClick. (2.0)
17737
17738 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17739
17740         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
17741         menu when mdi child windows theres a menu, uses insert to get icon
17742         at first position. Partially fix #80006.
17743
17744 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17745
17746         * Clipboard.cs: Implement 2.0 methods.
17747
17748 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17749
17750         * Menu.cs: Implement Insert method of MenuItemCollection class
17751         to fix MenuMerge.
17752
17753 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17754
17755         * ListView.cs: Implement 2.0 FindItemWithText method.
17756
17757 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17758
17759         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
17760         to calculate menu bar size. Fixes #80290.
17761
17762 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17763
17764         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
17765
17766 2007-01-11  Chris Toshok  <toshok@ximian.com>
17767
17768         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
17769         initial form.
17770
17771 2007-01-11  Chris Toshok  <toshok@ximian.com>
17772
17773         * LinkLabel.cs: make sure to call base.Select in our Select method
17774         if it turns out we're going to be selected (i.e. if we have a link
17775         that is going to receive focus).  That way our container's
17776         ActiveControl is updated properly.
17777
17778 2007-01-11  Chris Toshok  <toshok@ximian.com>
17779
17780         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
17781         they have 1 or more links.  this fixes the crash gert reported.
17782
17783 2007-01-11  Andreia Gaita  <avidigal@novell.com>
17784
17785         * ContainerControl.cs: Remove ContainerSelected flag, not needed
17786         anymore.
17787
17788         * Control.cs (Controls.Add): Check if control to be added to the collection
17789         is a top level control, and throw an ArgumentException if it is.
17790         Remove ContainerSelectedFlag, not needed anymore.
17791
17792         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
17793         top most control doesn't activate the form. This fixes a problem in the
17794         MessageBox, where the default button wouldn't get focus because the form
17795         was activated before being Loaded - when the Owner is set, SetTopMost is
17796         called, and it would activate it.
17797
17798 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
17799
17800         * Button.cs: When clicked and setting the parent form's DialogResult,
17801         use FindForm instead of Parent, since parent could be a container
17802         control and not the Form.  Fixes bug #80495.
17803
17804 2007-01-10  Chris Toshok  <toshok@ximian.com>
17805
17806         * Form.cs: move the call to SendControlFocus into the same
17807         is_loaded check.
17808
17809 2007-01-10  Chris Toshok  <toshok@ximian.com>
17810
17811         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
17812         It breaks in the face of the new ActiveControl stuff, and should
17813         be unnecessary.
17814
17815         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
17816         activecontrol's focus if it's not already set, after we set
17817         ActiveControl, but before we call OnActivated.  Re-fixes #79667
17818         after the previous focus/active control fixes regressed it.
17819
17820         * Control.cs: reindent some code.
17821         
17822 2007-01-10  Chris Toshok  <toshok@ximian.com>
17823
17824         * Splitter.cs: clearing some outstanding changes from my tree.
17825         Replace all accesses (not writes) to the internal dock_style field
17826         with the Dock property.
17827
17828 2007-01-10  Chris Toshok  <toshok@ximian.com>
17829
17830         * Control.cs: make FireEnter, FireLeave, FireValidating, and
17831         FireValidated virtual.
17832
17833         * Form.cs: override and don't chain up calls to FireEnter and
17834         FireLeave.
17835
17836 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17837
17838         * ListView.cs: Add more text padding space when using
17839         auto resize for columns (the previous value didn't work fine).
17840
17841         * ThemeWin32Classic.cs: Update text position inside columns,
17842         to match the appeareance of .Net.
17843
17844         * ColumnHeader.cs: When using auto resize, only the Width should
17845         depend on the sub items, not the Height. Also, set width after
17846         auto resizing (the value of Width should never remain as -1 or -2).
17847
17848 2007-01-10  Chris Toshok  <toshok@ximian.com>
17849
17850         * Application.cs: fix compilation errors when debug is enabled.
17851
17852 2007-01-10  Chris Toshok  <toshok@ximian.com>
17853
17854         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
17855         add some nice ascii art pictures and explanation of the process).
17856         (GetMostDeeplyNestedActiveControl): new utility function we need
17857         because our ActiveControl can refer to a child container with its
17858         own ActiveControl.
17859
17860         * Form.cs (OnActivated): remove the call to SelectActiveControl
17861         from here, since you can override this method and not chain up,
17862         and winforms still sets the active control.
17863         (OnCreateControl): also remove the unnecessary SelectActiveControl
17864         call from here.
17865         (WndProc): it's actually called from the WM_ACTIVATE block, just
17866         before calling OnActivated.
17867
17868         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
17869         inside the else.  the ActiveControl setter will end up setting
17870         focus on @control.  This keeps us from setting it again (and
17871         generating an extra LostFocus/GotFocus pair).
17872         (Select (bool, bool)): reindent.
17873
17874 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
17875
17876         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
17877         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
17878         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
17879         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
17880         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
17881         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
17882         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
17883         ToolStripTextBox.cs: Another wave of corcompare work.
17884
17885 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17886
17887         * ColumnHeader.cs: Implement 2.0 AutoResize method using
17888         the Width property.
17889
17890         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
17891         methods by callling Column.AutoResize method on columns.
17892
17893 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
17894
17895         * Control.cs: Provide proper implementations of PreferredSize
17896         and GetPreferredSize (2.0).
17897
17898 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
17899
17900         * Form.cs: Remove one character (!) to make my previous OnClosing
17901         stuff work for modal windows like MessageBox.
17902
17903 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17904
17905         * ListView.cs:
17906         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
17907         ListView.Columns to get the last displayed column. Fixes #80452.
17908
17909 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
17910
17911         * Label.cs, LinkLabel.cs: Source code identation fixes.
17912
17913 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
17914
17915         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
17916         we dont need to invalidate only borders because when we invalidate four
17917         border lines the invalidate's generates a complete redraw of button, 
17918         because it now invalidate a complete rect some other redraws operations
17919         are fixed. Fixes #80196.
17920         
17921         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
17922         Remove ToolBarInvalidateEntireButton as it is not used.
17923
17924 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
17925         
17926         * Form.cs: Make sure that both OnClosing and OnFormClosing are
17927         called for 2.0 profile.
17928         * CloseReason.cs: Make class internal for 1.1.
17929
17930 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
17931
17932         * ToolStripManager.cs: Implement FindToolStrip functionality.
17933         * ToolStrip.cs: Register and unregister with ToolStripManager.
17934
17935 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
17936
17937         * Control.cs: This was messy.  2.0 moves much of ControlCollection
17938         to ArrangedElementCollection.  Implemented this with as few #if's as 
17939         possible (which is still too many).
17940
17941 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
17942
17943         * Control.cs: Implement SizeFromClientSize() [2.0].
17944
17945 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
17946
17947         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
17948         use Theme.BorderSize to calculate area instead of static value 1, 
17949         by the way use new BorderStaticSize instead     Border3DSize when 
17950         border_static is true. Fixes #79537.
17951         
17952         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
17953         
17954         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
17955         it is not needed.
17956
17957 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
17958
17959         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
17960
17961 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
17962
17963         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
17964         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
17965         
17966         * Hwnd.cs: 
17967         - border_static field added, it will used to define when a control 
17968         theres 3D border but it must be static (thin).
17969         - In GetWindowRectangle use Theme.BorderSize to calculate area 
17970         instead of static value 1, by the way use new BorderStaticSize instead
17971         Border3DSize when border_static is true.
17972
17973         * XplatUIX11.cs, XplatUIOSX.cs: 
17974         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
17975         
17976         * Theme.cs: BorderStaticSize field added.
17977
17978 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
17979
17980         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
17981
17982 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
17983
17984         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
17985         mimic same behavior than win32 that set border only in CreateParams,
17986         it fix problems under CreateParams overrides. Fix #79442 and partial
17987         fix #79537.
17988         
17989         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
17990         of thi control you must call recreate handle. 
17991         
17992         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
17993         need to do anything as RecreateHangle will take care about borders.
17994
17995 2007-01-05  Mike Kestner  <mkestner@novell.com>
17996
17997         * ListView.cs: hack to eliminate Lost/Got focus notifications on
17998         cycles between the ItemControl and parent.  Fixes #80388.
17999
18000 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
18001
18002         * Control.cs: Lazy init layout engine. Do not directly use 
18003         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
18004
18005 2007-01-05  Chris Toshok  <toshok@ximian.com>
18006
18007         * DataGrid.cs: don't forceably rebind columns in SetDataSource
18008         unless our list manager has changed (i.e. unless we have reason to
18009         believe our columns have changed).  Fixes #80422.
18010         
18011         also, disable the call do BindColumns in
18012         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
18013         1.1 the event isn't raised in response to a column addition on a
18014         table.)
18015
18016 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
18017
18018         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
18019         that inheritors can not call it if they choose.  Fixes bug #80456.
18020
18021 2007-01-05  Andreia Gaita  <avidigal@novell.com>
18022
18023         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
18024         doesn't blow up with a null exception on marshalling.
18025         
18026 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
18027
18028         * Control.cs: Implement several 2.0 protected properties and methods.
18029         Ensure that all necessary events are being called when properties
18030         are set.
18031
18032 2007-01-05  Mike Kestner  <mkestner@novell.com>
18033
18034         * ListView.cs: implement PgUp/PgDn for Details view.  Also
18035         fixes First/LastVisibleIndex to use the item_control.ClientRect 
18036         instead of the parent control.  Fixes #80378.
18037
18038 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
18039
18040         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
18041           determine whether to use yard-pound or not (bug #78399).
18042
18043 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
18044
18045         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
18046         problems. So it is time to bring back the old popupbutton colors.
18047
18048 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18049
18050         * ColumnHeader.cs:
18051         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
18052         property by using the internal information of the
18053         columns order in ListView.
18054
18055 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
18056
18057         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
18058         Add 2.0 Tag properties.
18059
18060         * LinkArea.cs: Add 2.0 ToString method.
18061
18062 2007-01-03  Chris Toshok  <toshok@ximian.com>
18063
18064         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
18065         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
18066         when we're editing, which fixes #80047.
18067
18068 2007-01-03  Chris Toshok  <toshok@ximian.com>
18069
18070         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
18071         #80404.
18072
18073 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
18074
18075         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
18076         property and implementation.
18077
18078         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
18079         for MdiWindowListItem property.
18080
18081         * ToolStripDropDown.cs: Don't consider hidden menu items while
18082         laying out the menu.
18083
18084 2007-01-03  Andreia Gaita  <avidigal@novell.com>
18085
18086         * SendKeys.cs: window handle is not needed in win32, so just
18087         get the active window for X after parsing keys and don't use
18088         it when building the message; it is passed by parameter to the 
18089         Xplat method and used there to build the message instead. Also,
18090         wait for events to be processed on SendWait, as opposed to Send,
18091         which doesn't wait :) Playing with threads and Send() completely 
18092         hangs on ms.net, only SendWait() works.
18093         
18094         XplatUIX11.cs
18095         X11Display.cs: Check for valid window handle.
18096
18097 2007-01-03  Jackson Harper  <jackson@ximian.com>
18098
18099         * TextControl.cs: Need to prevent wrap calculations when replacing
18100         text (this was there before i removed it accidently).
18101         - Don't update the cursor during the positioning, just set it to
18102         selection_start at the end of the operaion.
18103
18104 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18105
18106         * Control.cs:
18107         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
18108         
18109 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18110
18111         * MonthCalendar.cs: Added Click and DoubleClick events again,
18112         but this time they only hide Control's Click and DoubleClick.
18113         
18114 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
18115
18116         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
18117         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
18118
18119 2007-01-02  Jackson Harper  <jackson@ximian.com>
18120
18121         * TextBoxBase.cs: We move the caret with the split now, so we
18122         don't need to explicitly move the caret after splitting.  This
18123         fixes the caret bumping down an extra line on Enter.
18124
18125 2007-01-02  Miguel de Icaza  <miguel@novell.com>
18126
18127         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
18128         2.72). 
18129
18130         * ScrollableControl.cs: Add Scroll event.
18131
18132 2007-01-02  Mike Kestner  <mkestner@novell.com>
18133
18134         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
18135         to fix all hdr height padding codepaths.  Fixes #80207.
18136
18137 2007-01-02  Chris Toshok  <toshok@ximian.com>
18138
18139         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
18140         setting it to the Control defaults anyway, and it being after the
18141         Dock set was screwing up layout.
18142         (set_Dock): don't short circuit out of setting base.Dock.  Also,
18143         no need to call UpdateStatusBar here, as it'll be re-layed out if
18144         it needs to be.
18145
18146 2007-01-02  Mike Kestner  <mkestner@novell.com>
18147
18148         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
18149         to header height for width == -1. Fixes the rest of #80207.
18150
18151 2007-01-02  Mike Kestner  <mkestner@novell.com>
18152
18153         * ListView.cs: rework the mouse event forwarding everaldo added
18154         to translate the coordinates to the parent control not
18155         raise the parent events until after we've done our work. Hover
18156         needs more work, in the case where HoverSelection is on, because
18157         the item control receives more than one MouseHover per Enter
18158         event, so we need to ensure only the "first" hover gets forwarded.
18159         Opening a minor bug for that.
18160
18161 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
18162
18163         * CheckedListBox.cs: Fixed SelectionMode to match MS.
18164         * ListControl.cs: Implemented AllowSelection property. Removed extra
18165         tabs.
18166         * ListBox.cs: Implemented AllowSelection property.
18167
18168 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18169
18170         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
18171         SelectedItem, it prevent for errors when you must disable item
18172         before perform click. Fixes #80409.
18173
18174 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18175
18176         * MenuAPI.cs: Prevent second level and beyond submenus to close
18177         until first level when move out side of popup.
18178         
18179 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18180
18181         * MenuAPI.cs:
18182         - Down submenu positin in three pixels.
18183         - Closes sub menu when mouse leaves from menu. Fixes #80402.
18184
18185 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18186
18187         * ThemeWin32Classic.cs:
18188         - Fix popup menu size adding one pixel on the top.
18189         - Down menu item border from two to one to mimic Win32.
18190         - Some source identation fixes. 
18191
18192 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
18193
18194         * ThemeWin32Classic.cs: Use float numbers to calculate size and
18195         position of menu arrows, it fix wrong arrow size.
18196
18197 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
18198
18199         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
18200         instead of line, it simplify draw operation and fix it using 3D
18201         borders to mimic Win32.
18202
18203 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
18204
18205         * StatusStrip.cs: Add implementation of the sizing grip.
18206
18207         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
18208         StatusStrip rendering.
18209
18210 2006-12-31  Chris Toshok  <toshok@ximian.com>
18211
18212         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
18213         override the layout style (anchor/dock) of the control.  assign to
18214         Dock instead.  Fixes bug #80416.
18215
18216         * ToolStrip.cs: same.
18217
18218 2006-12-31  Andreia Gaita  <avidigal@novell.com>
18219
18220         * ContainerControl.cs: Use ContainerSelected flag to check if 
18221         a Container is directly selected, or if Select is called on a 
18222         non-container. If a container is directly selected, focus events 
18223         should not be raised.
18224         Apply #80411 patch to throw exception on set_ActiveControl if 
18225         control is the same as the current one.
18226         
18227         * Control.cs: Use ContainerSelected flag (see above).
18228         Add invalidation check to raise event but not invalidate if 
18229         dimensions are 0.       
18230         Apply #80411 patch.
18231         
18232
18233 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
18234
18235         * MenuAPI.cs: After click, dont close popup menu when menu is
18236         ContextMenu. Fixes #80399.
18237
18238 2006-12-30  Chris Toshok  <toshok@ximian.com>
18239
18240         * ContainerControl.cs: make sure we throw the exception if the
18241         container control doesn't contain the control we're setting
18242         ActiveControl to.
18243
18244 2006-12-30  Chris Toshok  <toshok@ximian.com>
18245
18246         * Control.cs (SetTopLevel): fix the exception raised by
18247         SetTopLevel for child controls.
18248         (set_Anchor): call UpdateDistances when setting the anchor type.
18249         This fixes bug #80336.
18250
18251 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18252
18253         * Theme.cs: For now, revert back to 8pt font.
18254
18255 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
18256
18257         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
18258         Fixes #80395.
18259
18260 2006-12-29  Chris Toshok  <toshok@ximian.com>
18261
18262         * Control.cs: reorder the code in OnResize to give the same event
18263         ordering as MS.
18264
18265 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18266
18267         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
18268         TileHorizontally and TileVertically.
18269         
18270 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
18271
18272         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
18273         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
18274         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
18275         Corrected copyright and email adress.
18276
18277 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18278
18279         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
18280         of Exception in FullPath property if no TreeView is associated with
18281         the TreeNode.
18282
18283 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18284
18285         * Theme.cs: Marked default_font as private, and initialize it in ctor
18286         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
18287         on 2.0 profile.
18288         * ThemeGtk.cs: Removed default_font intialization.
18289         * ThemeWin32Classic.cs: Removed default_font initialization.
18290
18291 2006-12-28  Chris Toshok  <toshok@ximian.com>
18292
18293         * Control.cs: fix a couple of place where we were creating handles
18294         more aggressively than we should be.  Fixes ControlRefresh unit
18295         tests.
18296
18297 2006-12-28  Chris Toshok  <toshok@ximian.com>
18298
18299         * Control.cs: contrary to what the comment said, Control.Dock does
18300         not supercede Control.Anchor - the last one you assign to decides
18301         the layout behavior.  so we need to keep track of which was the
18302         last set.  Also, fix some of the affected property arguments in
18303         PerformLayout calls, and remove an redundant parent.PerformLayout
18304         call in OnResized.
18305
18306         Add a VisibleInternal property, which returns is_visible.  We
18307         can/should get rid of all the usage of this field elsewhere.
18308
18309 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18310         
18311         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
18312         control style, not DoubleBuffer. Added UseDoubleBuffering property
18313         that indicates whether doublebuffering is enabled and supported.
18314         (comment from and code based on Gert Driesen's patch in #80324).
18315         Fixes #80324.
18316
18317 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18318         
18319         * Control.cs: Fixed a NRE.
18320
18321 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18322
18323         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
18324         for 2.0.
18325
18326 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18327
18328         * Control.cs: Rewrote double buffering, now a seperate
18329         class handles all the buffering, no Graphics is disposed of
18330         until the painting is finished (earlier implementation 
18331         would crash if the control was resized in the OnPaint, 
18332         since it would cause the double buffer to be recreated
18333         and the old one disposed), a separate Graphics is 
18334         created for every paint (MS behaviour and anyways the state
18335         of the Graphics would have to be saved and restored otherwise)
18336         
18337         * XplatUIDriver.cs: 
18338         * XplatUIX11.cs:
18339         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
18340         so that we can get the graphics for the back buffer without
18341         having to create a new one and remove the offscreen_dc parameter
18342         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
18343         
18344 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18345
18346         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
18347         Also make virtual all the key-related methods.
18348
18349         * ListViewItem.cs: Make virtual the key related methods for
18350         ListViewSubItemCollection.
18351
18352 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18353
18354         * ListView.cs:
18355         * ListViewItem.cs:
18356         * ThemeWin32Classic.cs:
18357         * Theme.cs: Initial support for Tile view in ListView,
18358         as well as the implementation of the required bits for it (Item
18359         and Subitem).
18360
18361 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18362
18363         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
18364         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
18365         Provide useful exception messages.
18366
18367 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18368
18369         * TrackBar.cs: Remove a warning.
18370         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
18371         when used by DateTimePicker, fixes #80287. This also requires that 
18372         MonthCalendar implements it's own drawing for the yearly updown control,
18373         otherwise the Capture tracking would be too complicated. Removed the Click 
18374         and DoubleClick events (according to comments they were hiding the base class
18375         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
18376         raise these events, not that they cannot be raised. It is possible to raise 
18377         them by calling OnClick and OnDoubleClick). Added two internal fields in 
18378         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
18379         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
18380         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
18381         event, no longer needed.
18382         
18383 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18384
18385         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
18386         true if new value differs from current value.
18387
18388 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18389
18390         * Control.cs: ControlCollection.Count must be public. Fixed build of
18391         unit tests.
18392
18393 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18394
18395         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
18396
18397 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18398
18399         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
18400
18401 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
18402
18403         * Control.cs: Invalidates control including when Width and Height is 
18404         equal zero or is not visible, only Paint event must be care about 
18405         this. Fixes #79913.
18406
18407 2006-12-26  Chris Toshok  <toshok@ximian.com>
18408
18409         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
18410         more corcompare work.
18411
18412         * DataGridView.cs: fix compiler warning.
18413
18414         * ColumnHeader.cs: some corcompare work, and also take the
18415         opportunity to make the internal fields private.
18416
18417         * ListView.cs: fix the fallout from the above field change.
18418
18419 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
18420
18421         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
18422         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
18423         ToolStripTextBox.cs: Fixes to events and corcompare.
18424
18425 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
18426
18427         * ListView.cs: Call owner.OnMousexx event to propagate events from
18428         item to ListView. Fixes #80367.
18429
18430 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18431
18432         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
18433         if value is less than one. ItemHeight should not be set to a value
18434         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
18435         Removed extra tabs.
18436
18437 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
18438
18439         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
18440         * ToolStripStatusLabel.cs: Add Spring for Moma.
18441
18442 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18443
18444         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
18445         Fixed code formatting. Removed debug code.
18446         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
18447
18448 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18449
18450         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
18451         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
18452         ArgumentOutOfRangeException if ColumnCount is negative. In 
18453         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
18454         less than 4 or higher than 32768.
18455         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
18456         Fixed FormatProvider to return CurrentCulture unless explicitly set.
18457         Fixed IsFormatProviderDefault to return true if FormatProvider has
18458         not been explicitly set.
18459
18460 2006-12-25  Chris Toshok  <toshok@ximian.com>
18461
18462         * Application.cs: add a couple of 2.0 events.
18463
18464 2006-12-25  Chris Toshok  <toshok@ximian.com>
18465
18466         * Control.cs: fix compiler warning.
18467
18468         * AxHost.cs: corcompare fixes.
18469
18470         * ApplicationContext.cs: corcompare fixes.
18471
18472 2006-12-25  Chris Toshok  <toshok@ximian.com>
18473
18474         * Control.cs: only update dist_right/dist_bottom if the
18475         width/height is > 0.  this fixes anchored controls being resized
18476         smaller until they disappear and then resized larger again.
18477
18478 2006-12-25  Chris Toshok  <toshok@ximian.com>
18479
18480         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
18481         since they're nothing more than X/Left and Y/Top, respectively.
18482
18483         Also, move back to a per-control Bitmap/Graphics for
18484         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
18485         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
18486         Height.
18487
18488 2006-12-25  Miguel de Icaza  <miguel@novell.com>
18489
18490         * MessageBox.cs: Implemented overload that takes a new "bool
18491         displayHelpButton" by adding a new internal field "show_help".
18492         When clicked this will raise the HelpRequested on the owner or the
18493         main form. 
18494
18495         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
18496         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
18497
18498         * ListView.cs: Add support ColumnWidthChanged and
18499         ColumnWidthChanging. 
18500
18501         Add support for ColumnReordered event.
18502         (ReorderColumn): Add NET_2_0 specific support for cancelling the
18503         reorder.
18504
18505         Very nice codebase!
18506
18507         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
18508
18509         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
18510
18511 2006-12-24  Chris Toshok  <toshok@ximian.com>
18512
18513         * GridTablesFactory.cs: 2.0 corcompare work.
18514
18515         * ToolStripContainer.cs: add "override" to
18516         ContextMenuStripChanged, and remove the local event object.
18517
18518         * ToolStripDropDown.cs: same with a couple properties.
18519
18520         * ToolStripPanel.cs: same with AutoSizeChanged event.
18521
18522         * TextBoxBase.cs: add "override" to AutoSizeChanged.
18523
18524         * Form.cs: add the remaining 2.0 events, and do some corcompare
18525         attribute work.
18526
18527         * DateTimePicker.cs: add "new" to padding.
18528
18529         * ButtonBase.cs: use Control's use_compatible_text_rendering.
18530
18531         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
18532
18533         * DataGridView.cs: PaddingChanged is overridden.
18534
18535 2006-12-24  Chris Toshok  <toshok@ximian.com>
18536
18537         * Control.cs: corecompare work here too.
18538
18539         * DataGridViewElement.cs, DataGridView.cs,
18540         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
18541         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
18542         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
18543         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
18544         work.
18545
18546 2006-12-24  Miguel de Icaza  <miguel@novell.com>
18547
18548         * Control.cs: Switched the error message on the console for a
18549         todo.  A review of the code will have to cope with this anyways
18550         (since its a large feature, it is in our radar) and it was
18551         producing too much output when running PDN.
18552
18553         * ToolStripComboBox.cs: Set the text when the SelectedIndex
18554         changes.  Applications depend on this (PDN 2.72)
18555
18556 2006-12-23  Chris Toshok  <toshok@ximian.com>
18557
18558         * TableLayoutSettings.cs: finish up the corcompare work for this
18559         class.
18560
18561 2006-12-23  Chris Toshok  <toshok@ximian.com>
18562
18563         * Control.cs: make SetImplicitBounds internal, do some futzing
18564         with LayoutEngine so that it's available in 1.1, and remove the
18565         entire duplicated code mess from PerformLayout.  Use
18566         System.Windows.Forms.Layout.DefaultLayout instead.
18567
18568         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
18569
18570 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
18571
18572         * Form.cs: Add MainMenuStrip property.
18573
18574 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
18575
18576         * Control.cs: Add ContextMenuStrip property and implementation.
18577         Fix ContextMenu implementation to show menu centered on control when
18578         activated using the keyboard instead of showing at screen (0,0).
18579
18580         * ToolStripDropDown.cs: Fix needed overload of Show ().
18581
18582 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18583
18584         * Menu.cs: Name property added for 2.0 profile.
18585         
18586 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18587
18588         * Menu.cs: Update information about FindMenuItem, method to be
18589         implemented soon.
18590
18591 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18592
18593         * MenuAPI.cs: When deselect items deselect also selected subitems.
18594         
18595 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18596
18597         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
18598         FindSubItemByCoord to found itens that is not active, also an
18599         cheking added to FindSubItemByCoord to search for items only 
18600         in visible popup windows. Fixes #80274.
18601
18602 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
18603
18604         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
18605         internal property, it be care about change ExStyle. 
18606
18607 2006-12-22  Andreia Gaita  <avidigal@novell.com>
18608
18609         * ContainerControl.cs: set activeControl for parent forms up the 
18610         tree when the new activecontrol is a container.
18611         When validating the active control, if it is a container, also
18612         raise up the validation for it's active control. Fixes #80280
18613         
18614         * Control.cs: Add internal property flag and check to prevent
18615         Focus events from getting raised when Select() is called for
18616         a ContainerControl. There are still too many focus events being
18617         raised at the moment though.
18618         Cleaned up the code a bit.
18619
18620 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18621
18622         * Control.cs: Added all missing 2.0 events.and
18623         fixed a couple of corcompare issues.
18624         * TrackBar.cs: Implemented missing 2.0 bits.
18625         * MonthCalendar.cs, 
18626         * DateTimePicker.cs, 
18627         * MdiClient.cs: Fixed some corcompare issues.
18628
18629 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18630
18631         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
18632         SplitterPanel.cs: corecompare work.
18633
18634 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18635
18636         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
18637         Clean up warnings for BackgroundImageChanged and PaddingChanged
18638         events now that they are implemented in Control.cs.
18639
18640 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18641
18642         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
18643         
18644         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
18645         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
18646         of TableLayoutPanel and supporting cast.
18647
18648 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18649
18650         * XplatUIWin32.cs: 
18651         - GrabWindow now confines the mouse pointer to the confine window.
18652         - Added Win32ClipCursor and Win32GetClipCursor.
18653
18654         * Control.cs: 
18655         - Added CaptureWithConfine to be able to capture and confine 
18656         mouse pointer.
18657         
18658         * InternalWindowManager.cs: 
18659         - Call CaptureWithConfine instead of Capture if we're an
18660         MdiChild (fixes #79982).
18661
18662 2006-12-21  Chris Toshok  <toshok@ximian.com>
18663
18664         * DataGrid.cs: guard against the initial state of selection, where
18665         selection_start == -1.  make sure we only select from index >= 0.
18666         Fixes bug #80291.
18667
18668 2006-12-21  Chris Toshok  <toshok@ximian.com>
18669
18670         * Control.cs: we don't need to be so draconian with
18671         UpdateDistances, and we thusly don't need to call it before
18672         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
18673
18674 2006-12-21  Daniel Nauck  <dna@mono-project.de>
18675
18676         * ComboBox.cs,
18677         TextBox.cs: Implemented AutoComplete properties.
18678
18679 2006-12-20  Chris Toshok  <toshok@ximian.com>
18680
18681         * DataGridView*.cs: some corecompare work.
18682
18683 2006-12-20  Jackson Harper  <jackson@ximian.com>
18684
18685         * XplatUIX11.cs: We need to hide the caret when deleting it,
18686         otherwise you get carets left lying around everywhere.
18687         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
18688         prevents getting some weird half drawn caret tracers when
18689         scrolling.
18690         * TextControl.cs: Attempt to reduce the number of times we need to
18691         recreate the caret.
18692
18693 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
18694
18695         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
18696
18697 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18698
18699         * DateTimePicker.cs:
18700         - Implemented missing 2.0 bits.
18701         - Changed some default values to match MS.
18702         
18703 2006-12-20  Jackson Harper  <jackson@ximian.com>
18704
18705         * TextBoxBase.cs: When changing the font across the document we
18706         can't recalculate after changing each line, since that will cahnge
18707         the line count.
18708         - PreferredHeight is a little different than i thought.
18709         - When backspacing, move the caret before we do the actual char
18710         delete, because when that delete crosses a wrap boundary the
18711         positional information will change.
18712
18713 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18714
18715         * Control.cs: Added some missing 2.0 bits: 
18716         BackgroundImageLayout, BackgroundImageLayoutChanged, 
18717         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
18718         add IBindableComponent and IDropTarget implementation.
18719         
18720         * MonthCalendar.cs: 
18721         - Added all missing 2.0 features:
18722         BackgroundImageLayout, RightToLeftLayout, 
18723         OnHandleDestroyed, RightToLeftLayoutChanged, 
18724         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
18725         PaddingChanged.
18726         - Rewrote all the BoldDate code, it was completely broken.
18727         - Fixed all the tests (the tests can now be re-enabled, the
18728         problems were not with the tests, but with the control, it was
18729         mostly broken).
18730         
18731         * DateTimePicker.cs: Changed the location where the 
18732         MonthCalendar is shown.
18733         
18734 2006-12-19  Chris Toshok  <toshok@ximian.com>
18735
18736         * DataGridView.cs: add IDropTarget implementation.
18737
18738         * ToolStripPanel.cs: add IDropTarget implementation.
18739
18740 2006-12-19  Jackson Harper  <jackson@ximian.com>
18741
18742         * TextControl.cs: soft now means something different than what it
18743         used to mean, we want to move the caret regardless of whether or
18744         not this break was soft (would we really have wanted the caret
18745         to not move with the break in the old context?)
18746         * TreeView.cs: Make sure we factor in the vert scrollbar when
18747         calculating the horizontal scrollbar's maximum.
18748
18749 2006-12-19  Andreia Gaita  <avidigal@novell.org>
18750
18751         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
18752         check for keywords in alternate casing, close bug #80049.
18753
18754 2006-12-19  Chris Toshok  <toshok@ximian.com>
18755
18756         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
18757         methods (which all do nothing).
18758
18759         * IDropTarget.cs: add the 4 missing methods.
18760
18761 2006-12-19  Chris Toshok  <toshok@ximian.com>
18762
18763         * TableLayoutRowStyleCollection.cs: corcompare work.
18764         
18765         * TableLayoutSettings.cs: same.
18766
18767         * TableLayoutStyle.cs: same.
18768
18769         * TableLayoutColumnStyleCollection.cs: same.
18770
18771 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
18772
18773         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
18774         TableLayoutPanel I've had in my local tree for way too long.
18775
18776 2006-12-19  Miguel de Icaza  <miguel@novell.com>
18777
18778         * TableLayoutSettings.cs: Finish the public API (still needs all
18779         the logic to update on changes). 
18780
18781         * TableLayoutPanelCellPosition.cs: new file.
18782         
18783         * TableLayoutRowStyleCollection.cs,
18784         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
18785         TableLayoutSettings.cs: Track the final 2.0 table api.
18786
18787 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18788
18789         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
18790         and Image List 2.0 members for ColummnHeader.
18791         * ListView.cs: Add key-related 2.0 methods for
18792         ColumnHeaderCollection.
18793
18794 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
18795
18796         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
18797         ArgumentNullException if items argument is null. Ignore null item in
18798         arrays. Removed extra tabs.
18799
18800 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
18801
18802         * MonthCalendar.cs: Fixed InvalidCastException.
18803
18804 2006-12-19  Jackson Harper  <jackson@ximian.com>
18805
18806         * TextControl.cs: Don't increment the position here.
18807         - When calculating char positions only add in the line break size
18808         for hard line breaks.
18809
18810 2006-12-19  Andreia Gaita  <avidigal@novell.org>
18811
18812         * SendKeys.cs: Changed some things to match ms.net behaviour
18813         when parsing shifted capital letters.
18814         
18815         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
18816         Add window handle as parameter to SendInput. X11 needs the 
18817         window handle, and the handle being passed      to it in the keys 
18818         queue is the active control handle (which windows needs), not 
18819         the window handle.
18820         
18821         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
18822         to support SendKeys on X.       
18823         
18824         * X11Keyboard: Implement helper method to lookup a linux keycode
18825         given the virtual keycode. Added table of keycode-2-virtualkey
18826         values to support this.
18827
18828 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18829
18830         * ListView.cs: Add support for SelectedIndexCollection
18831         and SelectedItemCollection 2.0 methods. Implement support
18832         for ImageKey too.
18833         * ListViewItem.cs: Add support for ListViewSubItemCollection
18834         2.0 methods. Also, fix an incorrect behavior of AddRange method
18835         (it shouldn't call Clear).
18836         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
18837
18838 2006-12-19  Jackson Harper  <jackson@ximian.com>
18839
18840         * RichTextBox.cs: 
18841         * TextBoxBase.cs: New args for FormatText
18842         * TextControl.cs: Rewrote the main drawing method, this version
18843         feels a little easier to understand and debug to me.  Hopefully it
18844         does to others also
18845         - Fix FormatText to OR in the new formating values.  Added
18846         FormatSpecified param, basically this works in the same way as
18847         BoundsSpecified in Control.
18848         - Set the caret properties when the caret is positioned.
18849         - When wrapping text make sure that we calculate the width of the
18850         last character
18851         - when calculating alignments we might have wrapped down to the
18852         next line, so don't search for an individual tag, search for the
18853         end of the line
18854         - We need to invalidate the selection area when we replace the
18855         selection.
18856         
18857 2006-12-19  Daniel Nauck  <dna@mono-project.de>
18858
18859         * Application.cs: add Restart () 2.0 support
18860
18861 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18862
18863         * MenuItem.cs: Invalidate menu item rectangle after change Enable
18864         property. Fixes #80268.
18865         
18866 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18867
18868         * MenuAPI.cs: Dont trigger select event when closes top menu
18869         item. Fixes #80270.
18870
18871 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18872
18873         * MenuAPI.cs: When you click on menuitem only trigger onselect
18874         event for top menu itens. Fixes #80271.
18875         
18876 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18877
18878         * MdiWindowManager.cs: Make IconicBounds depend on
18879         the bottom of MdiClient, not the top (fixes #80267)
18880         
18881 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18882
18883         * MdiClient.cs: Added missing 2.0 attribute
18884
18885 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18886
18887         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
18888         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
18889
18890 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18891
18892         * MenuAPI.cs: Fix click when menuitem is not popup,
18893         this regression was caused by last commit (#80272).
18894
18895 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
18896
18897         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
18898         fire click event or close menu. Fixes #80272.
18899
18900 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18901
18902         * ListViewHitTestInfo.cs: add
18903
18904 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18905
18906         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
18907         * FlatButtonAppearance.cs: add
18908         * DockingAttribute.cs: add
18909
18910 2006-12-17  Chris Toshok  <toshok@ximian.com>
18911
18912         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
18913         and rebind our columns when it does - this way, if you make
18914         changes to the DataTable (or set the Table attribute on a DataView
18915         after setting it as the DataGrid's DataSource, the changes are
18916         made visible.)  Fixes bug #80107.
18917
18918 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18919
18920         * ListViewGroup.cs: add internal Location property for layouting.
18921         * Theme.cs: add abstract ListViewGroupHeight function.
18922         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
18923
18924 2006-12-16  Andreia Gaita  <avidigal@novell.com>
18925
18926         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
18927         Added reset of selected index to 0 when adding first tab page.
18928         Fixes #80264
18929         
18930         * NumericUpDown.cs: Fix NET_2_0 check
18931
18932 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18933
18934         * ListViewGroup.cs: fixed DefaultValueAttribute value
18935
18936 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18937
18938         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
18939
18940 2006-12-15  Miguel de Icaza  <miguel@novell.com>
18941
18942         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
18943         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
18944         ScrollableControl.cs: Add a handful of methods that are
18945         overwritten in 2.0 
18946
18947 2006-12-15  Chris Toshok  <toshok@ximian.com>
18948
18949         * XplatUIWin32.cs: initial implementation of the Reversible
18950         drawing functions.  there are some problems.  DrawReversibleFrame
18951         doesn't seem to work at all for Dashed FrameStyle, and in the
18952         Thick case there are drawing errors at the corners (we probably
18953         need to bind Rectangle instead of doing moveto/lineto's.)
18954
18955 2006-12-16  Andreia Gaita  <avidigal@novell.com>
18956         
18957         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
18958         to send blocks of key messages. Send accumulates keys to send with Flush, 
18959         while SendWait sends all keys immediately.
18960                 
18961         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
18962         XplatUIX11.cs,  XplatUIX11-new.cs:
18963         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
18964         to Win32 SendInput.
18965         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
18966         
18967         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
18968         testing for ms.net on this class is very tricky, as the tests run too fast 
18969         to allow the hook to release, essentially freezing the keyboard and the 
18970         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
18971         category :p
18972
18973 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18974
18975         * Padding.cs: fixed serialization compability to MS ("_var" field names),
18976                         added missing attributes.
18977  
18978 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18979
18980         * ListViewGroup.cs: Added missing attributes.
18981         * ListViewGroupCollection.cs: Added missing attributes.
18982
18983 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18984
18985         * ListViewItem.cs: fixed ListViewSubItem text property.
18986
18987 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18988         
18989         * Control.cs: Added missing 2.0 attributes
18990         
18991 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18992         
18993         * MdiClient.cs: Added missing 2.0 attribute.
18994         * MonthCalendar.cs: Added some missing 2.0 attributes 
18995         and properties.
18996         
18997 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18998
18999         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
19000
19001 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
19002
19003         * MainMenu.cs: Add the new 2.0 constructor to help out people
19004         using the MainMenu in VS2005.
19005
19006 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19007         
19008         * MdiChildContext.cs: Removed it, no longer used.
19009         * MdiClient.cs: Added missing 2.0 attributes.
19010         
19011 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19012         
19013         * InternalWindowManager.cs: Fix a NullRef with previous 
19014         changes for toolwindows.
19015         
19016 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19017
19018         * Control.cs: 
19019         - Added AfterTopMostControl to allow for certain controls 
19020         to always stay on top when normal controls are brought to 
19021         front.
19022         
19023         * XplatUIWin32.cs: 
19024         - (DrawInversibleRectangle): Get window rectangle from Win32 
19025         in stead of from control, since Win32 doesn't calculate
19026         screen coords correctly from control's Location if it 
19027         have docked siblings.
19028         
19029         * MdiWindowManager.cs:
19030         - Correct the control menu popup location when clicked on
19031         the maximized form icon. (fixes #80223.1)
19032         - Don't show moving rectangle if mouse hasn't moved from
19033         the original clicked point.
19034         - Removed FormGotFocus handler (not used).
19035         - Calculate the control buttons location from the main
19036         window's size and not client size (fixes #79770).
19037         - Form is now closed when the form icon is double-clicked
19038         (fixes #79775). 
19039         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
19040         
19041         * InternalWindowManager.cs:
19042         - Moved some MDI-only methods to MdiWindowManager.
19043         - Removed unused properties and methods.
19044         - Unified method naming for methods handling wm messages.
19045         - Moved all message handling to seperate methods for
19046         each message.
19047         
19048         * ThemeWin32Classic.cs:
19049         - DrawManagedWindowDecorations now draws the title bar 
19050         with a gradient brush.
19051         - Add a CPDrawButtonInternal that allows us to specify
19052         light, normal and dark colors for the buttons (control 
19053         buttons for MDI children were drawn with the same light
19054         color as the background, therefore loosing the 3D effect).
19055         
19056         * SizeGrip.cs:
19057         - Add a CapturedControl property that is used to 
19058         determine the control to resize (defaults to parent). 
19059         Needed for MdiClient, since its SizeGrip's parent is
19060         MdiClient, but the control to resize is the main form.
19061         
19062         * MdiClient.cs:
19063         - Set SizeGrip's CapturedControl to the main form in order
19064         to resize the main form and not the MdiClient.
19065         - Override AfterTopMostControl to leave the scrollbars 
19066         always on top.
19067
19068 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19069
19070         * ListView.cs: fixed ListViewItemCollection AddRange and
19071                         implemented ListViewItemCollection AddRange 2.0 support.
19072
19073 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19074
19075         * ListViewGroup.cs: Add.
19076         * ListViewGroupCollection.cs: Add
19077         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
19078         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
19079                                 stub for ImageKey 2.0 support.
19080
19081 2006-12-14  Mike Kestner  <mkestner@novell.com>
19082
19083         * ListView.cs: add text padding to the autocalculation for columns
19084         of width -2.  Fixes #80207.
19085  
19086 2006-12-14  Mike Kestner  <mkestner@novell.com>
19087
19088         * ListView.cs: add some index guarding for partial row navigation 
19089         logic.  Fixes #80250.
19090
19091 2006-12-14  Mike Kestner  <mkestner@novell.com>
19092
19093         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
19094         are added or inserted to the collection.  Fixes #81099.
19095
19096 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
19097
19098         * MenuAPI.cs: Closes menu when right click out side of popup
19099         it fix problem in ContextMenu and MainMenu. Fixes #80252.
19100
19101 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19102
19103         * ListViewItem.cs: Fix dumb error.
19104
19105         * ListView.cs: Add Find and ContainsKey methods in 
19106         ListViewItemCollection, and also return true for IsReadOnly
19107         and IsFixedSize (changes for 2.0). 
19108
19109 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
19110
19111         * Control.cs: Allow Region to be set to null.
19112
19113 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19114
19115         * MdiWindowManager.cs: Remove unused (commented out) code.
19116         * Form.cs: When the MdiChild is maximized, the form needs 
19117         WM_NCMOUSELEAVE, so request it.
19118         * InternalWindowManager.cs: 
19119         - Added tooltips to control buttons.
19120         - Removed duplicated control button handling code.
19121         - Removed unused (commented out) code.
19122         
19123 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
19124
19125         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
19126         was used because we must set cursor without trigger ChangeCursor event
19127         and without change Cursor control property. Fixes #79963.
19128
19129 2006-12-12  Andreia Gaita  <avidigal@novell.com>
19130         
19131         * Control.cs: Check if Region setter value is null, and ignore
19132
19133 2006-12-12  Jackson Harper  <jackson@ximian.com>
19134
19135         * TextControl.cs: We were almost always drawing one more line then
19136         needed, since the GetLineByPixel will return the last line found
19137         at that pixel. In most cases though, we were invalidating up to
19138         the junction between two lines.
19139         - Improve debug code.
19140
19141 2006-12-12  Chris Toshok  <toshok@ximian.com>
19142
19143         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
19144         and FillReversibleRectangle.
19145
19146         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
19147         and FillReversibleRectangle.
19148
19149         * XplatUIWin32.cs: add stubs which do nothing for
19150         DrawReversibleFrame, DrawReversibleLine, and
19151         FillReversibleRectangle.
19152
19153         * XplatUIOSX.cs: add stubs which raise NIE for
19154         DrawReversibleFrame, DrawReversibleLine, and
19155         FillReversibleRectangle.
19156
19157         * XplatUIX11.cs: add working implementation for
19158         DrawReversibleFrame, DrawReversibleLine, and
19159         FillReversibleRectangle.
19160         
19161         * ControlPaint.cs: implement DrawReversibleFrame,
19162         DrawReversibleLine, and FillReversibleRectangle, by calling into
19163         the appropriate XplatUI method.
19164
19165 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19166
19167         * Form.cs: Make MdiClient have the focus even if it's
19168         not selectable, since it should receive WM_KEY* and WM_MOUSE 
19169         messages. Fixes #79907.
19170         
19171 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19172
19173         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
19174         queried after the window is created.
19175         
19176         * XplatUIX11.cs: Added SendParentNotify to implement 
19177         WM_PARENTNOTIFY logic. Fixes #79965.
19178         
19179         * Control.cs: Added MakeParam.
19180         
19181 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19182
19183         * MdiClient.cs: Resume Layout before setting window
19184         states (fixes #80201).
19185
19186 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19187
19188         * MenuAPI.cs: Deselect a menu item after performing
19189         the click (fixes #80197).
19190
19191 2006-12-11  Jackson Harper  <jackson@ximian.com>
19192
19193         * TextBoxBase.cs: We need to cap this value, since Maximum -
19194         ViewPortHeight can be less than zero.
19195         - Only do selection with the left mouse button.
19196         * TextBox.cs: Don't tell the world that we have a context menu.
19197         * Control.cs: New method so that we can control whether or not the
19198         context menu is visible outside MWF.
19199
19200 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
19201
19202         * ToolBarButton.cs: Fix text positon. 
19203
19204 2006-12-11  Miguel de Icaza  <miguel@novell.com>
19205
19206         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
19207
19208         * Control.cs (DoubleBuffered): Add implementation.
19209
19210         * Application.cs (OpenForms): Add.
19211
19212 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
19213
19214         * Form.cs: Use opacity instead of Opactiy to determine if we need
19215         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
19216
19217 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
19218
19219         * Control.cs: Fix NRE if Control.Site was set to null.
19220
19221 2006-12-11  Chris Toshok  <toshok@ximian.com>
19222
19223         * Control.cs: ControlCollection.Remove should return if the arg is
19224         null, and ControlCollection.SetChildIndex should raise a ANE.
19225
19226 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
19227
19228         * Control.cs: Verify value set for Dock property. Code formatting
19229         updates.
19230
19231 2006-12-11  Jackson Harper  <jackson@ximian.com>
19232
19233         * TextControl.cs: Draw the caret and the selection when a flag is
19234         set on the owner.
19235         * TextBoxBase.cs: We want to draw the caret and the selection for
19236         TextBox but not for TextBoxBase.
19237         - If the window is resized and scrolling is no longer needed (the
19238         whole doc is visible) set the scroll position to zero.
19239         - The default SelectWord (the one TextBox uses) should move the
19240         caret to the end of the word.
19241         - SelectAll moves the caret to the end of the selection.
19242         * TextBox.cs: We don't selectall on focus, we just do it when the
19243         control is created.
19244         
19245 2006-12-11  Mike Kestner  <mkestner@novell.com>
19246
19247         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
19248
19249 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19250
19251         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
19252         2.0 support.
19253         * ListViewItem.cs: Add Name 2.0 property.
19254
19255 2006-12-11  Andreia Gaita  <avidigal@novell.com>
19256
19257         * TabControl.cs: Set visibility on selected or default tab 
19258         when tabcontrol handle is created, so that it's contents
19259         actually show up (duh). Fixes #80193
19260         Don't redraw the control if there is no handle created, as
19261         the selected index might be completely invalid. Added some tests
19262         to check for this.
19263
19264 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
19265
19266         * ToolBar.cs: Uses maximun width and height of all buttons as 
19267         button rectangle when ButtonSize specified, it looks strange but
19268         is what happens in Win32. Fixes #80189.
19269
19270 2006-12-11  Jackson Harper  <jackson@ximian.com>
19271
19272         * TextControl.cs: Need to track undo levels ourself, since
19273         compound actions will mess them up.
19274
19275 2006-12-10  Andreia Gaita  <avidigal@novell.com>
19276
19277         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
19278         SelectedIndex value is changed (even if it's not valid).
19279         Reset SelectedIndex to 0 when the handle is created and if
19280         the current index is invalid.
19281         Fixes SelectdeIndex unit tests and #80128
19282
19283 2006-12-08  Chris Toshok  <toshok@ximian.com>
19284
19285         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
19286         calls EndEdit, it needs to be called before we set current_cell to
19287         its new value.  Otherwise, we end up committing the value in the
19288         textbox to the new cell as well.  Fixes bug #80160.
19289
19290 2006-12-08  Chris Toshok  <toshok@ximian.com>
19291
19292         * Form.cs (set_CancelButton): if the button's DialogResult is
19293         None, set it to Cancel.  Fixes bug 80180.
19294
19295 2006-12-08  Jackson Harper  <jackson@ximian.com>
19296
19297         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
19298         to watch ourselves when setting the canvas size and setting the
19299         scrollbar values.
19300
19301 2006-12-08  Chris Toshok  <toshok@ximian.com>
19302
19303         * DataGrid.cs: comment out the two MakeTransparent calls for the
19304         time being so people using trunk (and not 1.2.2) on windows can
19305         actually use the datagrid.  This deals with bug #80151.
19306
19307 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
19308
19309         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
19310         Graphics.DrawImage (image, int, int, int, int) overload instead
19311         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
19312         the dpi difference and was blurring images it drew.
19313         [Fixes bug #79960]
19314
19315 2006-12-08  Chris Toshok  <toshok@ximian.com>
19316
19317         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
19318         rowcnt is 0 (such as with an empty datasource), and make sure we
19319         initialize not_usedarea.Y to cells.Y, so we don't draw over the
19320         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
19321
19322 2006-12-08  Chris Toshok  <toshok@ximian.com>
19323
19324         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
19325         grid.
19326
19327 2006-12-08  Chris Toshok  <toshok@ximian.com>
19328
19329         [ Fixes bug #80167 ]
19330         
19331         * ThemeWin32Classic.cs: don't draw the image if the button's flat
19332         style is FlatStyle.System.
19333
19334         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
19335         ButtonBase.flat_style private, and switch uses of it to the public
19336         property.
19337         
19338 2006-12-08  Chris Toshok  <toshok@ximian.com>
19339
19340         [ Fixes bug #80121 ]
19341         
19342         * ThemeWin32Classic.cs: center the caption text in the datagrid
19343         when we draw it.
19344
19345         * DataGrid.cs: lessen the amount we add to the caption height from
19346         6 to 2.  6 was making it huge.
19347
19348 2006-12-08  Andreia Gaita  <avidigal@novell.com>
19349
19350         * UpDownBase: Handle MouseWheel call directly instead of capturing
19351         the inner textbox's OnMouseWheel. Fixes #80166
19352
19353 2006-12-08  Jackson Harper  <jackson@ximian.com>
19354
19355         * TextControl.cs: We need to invalidate the textbox when we empty
19356         it (how had this not been discovered before?)
19357
19358 2006-12-08  Jackson Harper  <jackson@ximian.com>
19359
19360         * TextBoxBase.cs: Reworked the mouse down code so I could get it
19361         to behave like MS, we now ignore the eventargs.Click and just
19362         track state ourself, which we were already doing anyways.
19363         - Constrain the double click handler to the double click size.
19364         
19365 2006-12-08  Chris Toshok  <toshok@ximian.com>
19366
19367         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
19368         direction if that scrollbar isn't shown.  fixes bug #80158.
19369
19370 2006-12-08  Andreia Gaita  <avidigal@novell.com>
19371
19372         * NumericUpDown.cs: Update value on getter. Fixes #79950
19373
19374 2006-12-08  Chris Toshok  <toshok@ximian.com>
19375
19376         * MenuItem.cs: add back in the event cloning code.  I didn't know
19377         how to do it in the face of the EventHandlerList work i'd done
19378         last week.  Fixes bug #80183.
19379
19380 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
19381
19382         * Control.cs: Add an invalidate to the BackgroundImage setter.
19383         [Fixes 80184]
19384
19385 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
19386
19387         * ToolStrip*: Add some small properties reported by MoMA, fix event
19388         firing and default properties based off of unit tests, and add some
19389         attributes based off of the class status page.
19390
19391 2006-12-07  Jackson Harper  <jackson@ximian.com>
19392
19393         * TextBoxBase.cs: Take HideSelection into account when determining
19394         whether or not to show the selection.
19395         * RichTextBox.cs: After inserting the RTF into the document move
19396         the cursor to the beginning of the document.
19397
19398 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
19399
19400         * Control.cs: Remove static ArrayList "controls" which maintained
19401         a reference to every control created.
19402         * Application.cs: Create a static FormCollection to maintain a reference
19403         to every form created.  Use it in places that formerly enumerated through
19404         the controls one looking for forms.
19405         * Form.cs: Add and remove self from above FormCollection.
19406
19407 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
19408
19409         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
19410           not libgdk (though it makes me wonder why I didn't have any
19411           problems)
19412
19413 2006-12-07  Chris Toshok  <toshok@ximian.com>
19414
19415         [ you had to know this was coming after that last commit...]
19416         
19417         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
19418         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
19419         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
19420         XCopyArea).
19421
19422 2006-12-07  Chris Toshok  <toshok@ximian.com>
19423
19424         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
19425         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
19426         all the behavior we need for double buffering.
19427
19428         * XplatUIDriver.cs: implement the 3 double buffer methods using a
19429         client side Bitmap, just like the old Control-based double buffer
19430         code did.  The methods are virtual, so each XplatUI driver
19431         subclass can replace the implementation to use a faster, platform
19432         specific approach.
19433
19434         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
19435         double buffer code, and clean things up a bit in the process.
19436
19437 2006-12-06  Chris Toshok  <toshok@ximian.com>
19438
19439         * Control.cs: reindent WndProc.
19440
19441 2006-12-06  Chris Toshok  <toshok@ximian.com>
19442
19443         [ I wanna be like BenM when I grow up ]
19444         
19445         * Hwnd.cs: create a single static Graphics object on the static
19446         Bitmap we create.  use this for our text measurements.
19447
19448         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
19449         This was causing us to allocate a backbuffer for every control,
19450         even when it wasn't flagged as double buffered.  Instead use the
19451         single graphics instance.  This might have implications for
19452         multithreaded applications.  If we run into problems we can switch
19453         to creating 1 Graphics per control, on the static Hwnd bitmap.
19454
19455         this change nets us a 7M savings in private dirty mappings when
19456         running FormsTest.exe.
19457
19458 2006-12-06  Chris Toshok  <toshok@ximian.com>
19459
19460         * ListView.cs: the BackgroundImage override is just to set
19461         attributes.  chain up to base.BackgroundImage.
19462
19463         * RichTextBox.cs: same.
19464
19465         * ToolBar.cs: same, but we need to also redraw the toolbar when it
19466         changes, so instead a handler for BackgroundImageChanged.
19467         
19468         * Control.cs: make background_image private.
19469
19470 2006-12-06  Chris Toshok  <toshok@ximian.com>
19471
19472         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
19473         sure we even need this assignment, but roll with it for now.
19474
19475         * Control.cs: make the cursor field private.
19476
19477 2006-12-06  Chris Toshok  <toshok@ximian.com>
19478
19479         * Form.cs: we don't need to explicitly set ImeMode to
19480         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
19481         behavior in the face of ImeMode.Inherit.
19482
19483         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
19484         change the ctor's assignment to use ImeMode instead of ime_mode.
19485
19486         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
19487         ImeModeInherit.  Only check for the parent's imemode (and return
19488         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
19489         This fixes the button unit test, which sets both ImeMode and
19490         DefaultImeMode to ImeMode.Disable.
19491
19492         also make the ime_mode field private.
19493
19494 2006-12-06  Chris Toshok  <toshok@ximian.com>
19495
19496         * Control.cs: make control_style private.
19497
19498         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
19499         setting the styles to true, then setting them to false instead of
19500         reverting to their previous values.
19501
19502         also, call SetStyle on the scrollbars instead of using
19503         control_style directly.
19504
19505 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
19506
19507         * FormCollection.cs: Implement. [2.0]
19508
19509 2006-12-06  Chris Toshok  <toshok@ximian.com>
19510
19511         * Control.cs: make tab_stop private.
19512
19513         * Label.cs: set TabStop, not tab_stop.  reformat some event
19514         add/remove methods to make them more compact.
19515
19516 2006-12-06  Chris Toshok  <toshok@ximian.com>
19517
19518         * RadioButton.cs: fix TabStop handling.
19519
19520 2006-12-06  Chris Toshok  <toshok@ximian.com>
19521
19522         * TextBox.cs: remove the explicit assignments to has_focus.
19523         Control does that.
19524
19525         * ButtonBase.cs: remove the assignment to has_focus.  Control will
19526         manage that.
19527         
19528 2006-12-06  Chris Toshok  <toshok@ximian.com>
19529
19530         * ButtonBase.cs: remove all uses of is_enabled from this code.
19531         it's always true when any of the code containing the checks is
19532         executed.
19533
19534 2006-12-06  Chris Toshok  <toshok@ximian.com>
19535
19536         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
19537         with different semantics (some are present in both 1.1 and 2.0
19538         profiles) so that we match MS's behavior in our unit tests.
19539
19540 2006-12-06  Jackson Harper  <jackson@ximian.com>
19541
19542         * TextControl.cs: Make this operation undoable.
19543         * TextBoxBase.cs: Factor the border width into the preferred
19544         height.
19545         - implement Modified as per the spec.
19546
19547 2006-12-06  Chris Toshok  <toshok@ximian.com>
19548
19549         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
19550
19551 2006-12-06  Chris Toshok  <toshok@ximian.com>
19552
19553         * Control.cs: make right_to_left and context_menu fields private.
19554
19555 2006-12-06  Chris Toshok  <toshok@ximian.com>
19556
19557         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
19558         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
19559         Control.child_controls private.  switch all uses over to
19560         Control.Controls.
19561
19562 2006-12-06  Chris Toshok  <toshok@ximian.com>
19563
19564         * System.Windows.Forms/GroupBox.cs,
19565         System.Windows.Forms/AccessibleObject.cs,
19566         System.Windows.Forms/ErrorProvider.cs,
19567         System.Windows.Forms/Control.cs,
19568         System.Windows.Forms/UpDownBase.cs,
19569         System.Windows.Forms/ScrollBar.cs,
19570         System.Windows.Forms/DateTimePicker.cs,
19571         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
19572         System.Windows.Forms/ToolTip.cs,
19573         System.Windows.Forms/RadioButton.cs,
19574         System.Windows.Forms/LinkLabel.cs,
19575         System.Windows.Forms/Splitter.cs,
19576         System.Windows.Forms/TextBoxBase.cs,
19577         System.Windows.Forms/ToolStripTextBox.cs,
19578         System.Windows.Forms/ContainerControl.cs,
19579         System.Windows.Forms/ThemeWin32Classic.cs,
19580         System.Windows.Forms/SizeGrip.cs,
19581         System.Windows.Forms/ToolStripDropDown.cs,
19582         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
19583         private.  switch all uses over to Control.Parent.
19584
19585 2006-12-06  Chris Toshok  <toshok@ximian.com>
19586
19587         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
19588         Control does this before calling emitting these events.
19589
19590         * TabControl.cs: same.
19591
19592         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
19593         Control.client_rect.
19594
19595         * ButtonBase.cs: use the ClientSize property instead of the
19596         client_size field.
19597
19598         * ScrollableControl.cs: same.
19599
19600         * Control.cs: another pass at making properties private.  also,
19601         move the initialization of tab_stop to the ctor.
19602
19603 2006-12-05  Andreia Gaita <avidigal@novell.com>
19604
19605         * TabControl.cs: Let the selected index be set freely if the 
19606         control handle is not yet created.
19607
19608 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
19609
19610         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
19611         internal until I can rewrite DefaultLayout.
19612         * ToolStrip.cs: Fix build error and some general cleaning.
19613         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
19614         Fix build errors caused by making some of Control's fields private.
19615
19616 2006-12-05  Jackson Harper  <jackson@ximian.com>
19617
19618         * TextControl.cs: Redo Insert a little so that it use IndexOf
19619         instead of Split, this prevents it from messing up on things like
19620         \n\n\n. Also more effecient since the split array doesn't need to
19621         be created.
19622         * TextBoxBase.cs: AppendText doesnt handle multiline and non
19623         multiline text differently, this is the first of many fixes that
19624         will make multiline/non-multiline the same thing as far as the
19625         TextBoxBase is concerned.
19626         - Don't split the text and insert lines, this can lose some line
19627         endings (like is the last line a soft or hard break). Instead use
19628         the new Insert.
19629         - Fix an off by one when combining all the lines in the Text
19630         getter.
19631         - Remove separate multiline handling from the Text getter/setter.
19632
19633 2006-12-05  Chris Toshok  <toshok@ximian.com>
19634
19635         * ButtonBase.cs: a few changes:
19636
19637         - don't reinitialize internal Control fields in the ctor when they
19638         have the same values as Control sets them.
19639
19640         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
19641         this before calling those methods.
19642
19643         - we don't need to call Refresh for anything.  use Invalidate
19644         instead.
19645
19646         - OnEnabledChanged doesn't need to redraw at all - Control.cs
19647         calls Refresh in its OnEnabledChanged.
19648         
19649         - several of the events we were registered for in the ctor to
19650         redraw ourselves already include calls to Invalidate in the
19651         property setters that raise the events.  remove the extra
19652         invalidation.
19653
19654         - reformat a switch statement that was 83274658 columns wide.
19655         
19656 2006-12-05  Mike Kestner  <mkestner@novell.com>
19657
19658         * ComboBox.cs: fix a unit test regression from a TextBox
19659         SelectionLength return of -1 when there's no selection.  
19660
19661 2006-12-05  Chris Toshok  <toshok@ximian.com>
19662
19663         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
19664         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
19665         cleaning up some of the internal Control fields being used by
19666         subclasses.
19667
19668 2006-12-05  Mike Kestner  <mkestner@novell.com>
19669
19670         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
19671         listbox after AddImplicit calls since it defaults to hidden. Add a 
19672         hack to preserve requested heights across DropDownStyle changes.
19673
19674 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
19675
19676         * PropertyGrid.cs: Hide FindFirstItem method from public API.
19677
19678 2006-12-05  Chris Toshok  <toshok@ximian.com>
19679
19680         * DataGridView.cs: fix compiler warnings.
19681
19682         * PrintControllerWithStatusDialog.cs: same.
19683
19684         * ToolBar.cs: same.
19685
19686         * FolderBrowserDialog.cs: same.
19687
19688         * Splitter.cs: same.
19689
19690         * DataGridViewComboBoxCell.cs: same.
19691
19692         * XplatUIWin32.cs: same.
19693
19694         * PictureBox.cs: same.
19695
19696         * Win32DnD.cs: same.
19697
19698         * PageSetupDialog.cs: same.
19699
19700         * FileDialog.cs: same.
19701
19702         * PrintDialog.cs: same.
19703
19704         * DataGridTextBoxColumn.cs: same.
19705
19706         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
19707
19708 2006-12-05  Chris Toshok  <toshok@ximian.com>
19709
19710         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
19711         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
19712         System.ComponentModel.EventHandlerList work.
19713
19714 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
19715
19716         * DrawTreeNodeEventArgs.cs: Added.
19717
19718 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19719         
19720         * InternalWindowManager.cs: Remove an unused field.
19721         
19722 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19723
19724         * InternalWindowManager.cs:
19725         - Save the point where the title bar is clicked.
19726         
19727         * MdiWindowManager.cs:
19728         - Only allow moving of the window as long as the 
19729         clicked point on the title bar does not get out of
19730         MdiClient's rectangle. Fixes #79982.
19731         
19732         * MdiClient.cs:
19733         - Added Horizontal/VerticalScrollbarVisible.
19734         - Simplified the scrollbar sizing algorithm.
19735         - Cache the difference in scrolled value in
19736         H/VBarValueChanged and move the calculation out
19737         of the for loop.
19738
19739 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19740
19741         * Control.cs: Make the Console.WriteLine in WndProc 
19742         write more info.
19743
19744 2006-12-05  Chris Toshok  <toshok@ximian.com>
19745
19746         * ToolStripManager.cs, ToolStripButton.cs,
19747         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
19748         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
19749         ToolStripSplitButton.cs, ToolStripSeparator.cs,
19750         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
19751         ToolStripProgressBar.cs, ToolStripContainer.cs,
19752         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
19753         to using System.ComponentModel.EventHandlerList.
19754
19755 2006-12-04  Chris Toshok  <toshok@ximian.com>
19756
19757         * LinkLabel.cs: fix up compiler warnings.
19758
19759         * TableLayoutSettings.cs: same.
19760
19761         * TreeView.cs: same.
19762
19763         * ToolBar.cs: same.
19764
19765         * TabControl.cs: same.
19766
19767         * RichTextBox.cs: same.
19768
19769         * ListViewItem.cs: same.
19770
19771         * PropertyGrid.cs: same.
19772
19773         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
19774
19775         * ToolTip.cs same.
19776
19777         * TextRenderer.cs: fix up compiler warnings.
19778
19779         * Label.cs: same.
19780
19781         * Form.cs: corcompare fixes.
19782
19783         * PictureBox.cs: fix up compiler warnings.
19784
19785         * ImageListStreamer.cs: same.
19786
19787         * TrackBar.cs: corcompare fix.
19788
19789         * Control.cs: fix up compiler warnings.
19790
19791         * SplitterPanel.cs: same.
19792
19793         * NumericTextBox.cs: same.
19794
19795         * ImageList.cs: same.
19796
19797         * StatusStrip.cs: same.
19798
19799         * ProgressBar.cs: corcompare fix.
19800
19801         * ToolStripButton.cs: fix up compiler warnings.
19802
19803         * ToolStripStatusLabel.cs: same.
19804
19805         * ToolStripSplitButton.cs: same.
19806
19807         * ToolStripSeparator.cs: same.
19808
19809         * ToolStripProgressBar.cs: same.
19810
19811         * ToolStripDropDownMenu.cs: same
19812
19813         * ToolStripDropDown.cs: same.
19814
19815         * ToolStripDropDownButton.cs: same.
19816
19817         * ToolStrip.cs: same.
19818
19819         * ToolStripControlHost.cs: same.
19820
19821         * ToolStripContentPanel.cs: same.
19822
19823         * ToolStripDropDown.cs: same.
19824
19825         * ToolStripContainer.cs: same.
19826
19827         * ToolStripPanel.cs: same, and add "new" where we need it to work
19828         with the new ArrangedElementCollection.
19829
19830         * ToolStripItemCollection.cs: add "new" where we need it to work
19831         with the new ArrangedElementCollection.
19832
19833 2006-12-04  Andreia Gaita <avidigal@novell.com>
19834
19835         * TabControl.cs: Fix default tab selection to after TabControl
19836         gets focus and not before. Fixes #80128
19837
19838 2006-12-04  Chris Toshok  <toshok@ximian.com>
19839
19840         * DataGridTableStyle.cs: remove the gross calling of
19841         datagrid.Refresh from here.  It's a broken idea and it doesn't
19842         work anyway.
19843
19844         * DataGrid.cs: instead, just register/unregister from the
19845         DataGridTableStyle events in CurrentTableStyle.  we play it
19846         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
19847         even though some would most likely not require it.  Fixes bug
19848         #80115 (and one portion of #80117 as a side effect).
19849
19850 2006-12-04  Chris Toshok  <toshok@ximian.com>
19851
19852         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
19853         so the textbox (if any) goes away.  Fixes bug #80117.
19854
19855 2006-12-04  Chris Toshok  <toshok@ximian.com>
19856
19857         * DataGridColumnStyle.cs: set the column's readonly property
19858         initially based on the property descriptor's IsReadOnly.  Fixes
19859         bug #80044.
19860
19861 2006-12-04  Chris Toshok  <toshok@ximian.com>
19862
19863         * ComboBox.cs: wrap the dropdown style changing work in
19864         SuspendLayout/ResumeLayout.  Fixes bug #79968.
19865
19866 2006-12-04  Jackson Harper  <jackson@ximian.com>
19867
19868         * TextBoxBase.cs: Fix off by one, since these are one-based.
19869         * TextBox.cs: Select all the text when we get focus.  The TextBox
19870         does this but the RTB does not.
19871
19872 2006-12-04  Chris Toshok  <toshok@ximian.com>
19873
19874         * DataGridTextBoxColumn.cs: remove some spew.
19875
19876         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
19877         but some part of me is saying "it shouldn't be here.."  At any
19878         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
19879         setting the value.
19880
19881 2006-12-04  Chris Toshok  <toshok@ximian.com>
19882
19883         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
19884         to reassign the propertydescriptor.
19885
19886 2006-12-04  Jackson Harper  <jackson@ximian.com>
19887
19888         * TextBoxBase.cs:
19889         * TextControl.cs: Remove some unused variables.  Maybe this will
19890         patch things up between mike and I.
19891         - don't split lines less then one char wide, if the viewport is
19892         that small text won't be visible anyways.
19893         
19894 2006-12-04  Jackson Harper  <jackson@ximian.com>
19895
19896         * TextBoxBase.cs: Default selection length is -1, need to do some
19897         more testing on windows to see when this is used for the property.
19898         - Redid the Lines [] property to that we properly remove soft line
19899         breaks
19900         - added support for preserving carriage returns
19901         -  CanUndo is not a variable like 'is undo enabled' it just returns
19902         true if there is undo operations available.
19903         - AppendText doesn't need to grab the last tag itself anymore,
19904         this happens automatically when we move the cursor.
19905         * TextControl.cs: Add CompoundActions to the undo class. This
19906         allows combining the other operations into one big option.  ie a
19907         paste will combine { delete old, insert new, move cursor }
19908         - Add InsertString undo operation
19909         - New method for deleting multiline text
19910         - Add carriage returns to lines. So we can preserve carriage
19911         returns when text is 'roundtripped'
19912
19913 2006-12-04  Chris Toshok  <toshok@ximian.com>
19914
19915         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
19916         minimum 0.  Fixes the scrollbar exception in bug #80136.
19917
19918 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19919
19920         * MdiClient.cs: 
19921         * MdiWindowManager: Removed unused fields and methods.
19922         
19923 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19924         
19925         * StatusBar.cs: Update all panels when a AutoSize=Contents
19926         panel needs updating.
19927         
19928         * StatusBarPanel.cs: Remove twidth and only use initialize.
19929         Fixes #80031.
19930                 
19931 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19932
19933         * Form.cs: When a form's MdiParent is set add it directly
19934         on top of the z-order in stead of relying on MdiClient's
19935         ActivateChild to do it. Fixes #80135.
19936         
19937         * MdiClient.cs: 
19938         - Remove original_order, mdi_child_list is already doing
19939         the same thing.
19940         - Create mdi_child_list on construction in
19941         stead of first use (avoids a few null checks).
19942
19943         * MenuItem.cs: Use an already existing list of mdi children
19944         to get the correct order of children and remove the other
19945         redundant list.
19946
19947 2006-12-04  Chris Toshok  <toshok@ximian.com>
19948
19949         * PropertyGridView.cs: cached_splitter_location is only used in
19950         !DOUBLEBUFFER code.
19951
19952         * PropertyGrid.cs: implement the ComComponentNameChanged event
19953         using Events, hoping that would fix the warning.  Looks like a
19954         compiler bug instead (#80144).
19955
19956         * PropertyManager.cs: remove unused method.
19957
19958 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
19959
19960         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
19961         include parentesis to fix expression evaluation. Fixes #79634.
19962
19963 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
19964         
19965         * MenuAPI.cs:
19966         - Changes to fix behavior in Menu control, some reported in #80097
19967         and other detected during behavior refactory like a select event
19968         problems.
19969         - Remove unneded "if's" conditions.
19970         - Created an internal to flag when popup is active in control, we need 
19971         it because in .NET you can have menu active but without popup active
19972         when you active menu using popup without visible items.
19973         - Mimic win32 behavior for Select and Popup events.  
19974         - Dont open popup menu when you dont have visible subitems.
19975         - Do nothing when click on disabled menu item.
19976         - Some small changes to follow the coding style guidelines.
19977         - Unselect menu only when another control gives focus. Fixes #80097.
19978         - Remove unused code.
19979         
19980         * MenuItem.cs: internal VisibleItems method to check if menu
19981         theres visible subitems, it will be usefull to fix some 
19982         behavior in Menu control.
19983         
19984 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
19985         
19986         * Timer.cs: Tag property for 2.0 profile.
19987         
19988 2006-12-01  Chris Toshok  <toshok@ximian.com>
19989
19990         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
19991         
19992         * Win32DnD.cs: comment out some unused fields.
19993
19994         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
19995         some unused properties/methods.
19996
19997         * XplatUIX11.cs: fix MousePosition so we override the base class's
19998         property instead of conflicting with it.
19999
20000         * PictureBox.cs: comment out some unused fields
20001
20002         * OSXStructs.cs: make some struct fields public.
20003
20004         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
20005         MousePosition so we override the base class's property instead of
20006         conflicting with it.
20007
20008         * X11Dnd.cs: comment out some unused fields
20009
20010         * X11DesktopColors.cs: fix some struct field visibility to quiet
20011         the compiler.
20012
20013         * X11Dnd.cs: remove some debug code.
20014
20015         * ThemeClearlooks.cs: comment out unused field.
20016
20017         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
20018
20019         * ThemeGtk.cs: comment out some unused pinvokes.
20020
20021         * Timer.cs: remove some unused fields.
20022
20023         * ThemeClearlooks.cs: comment out unused field.
20024
20025         * UpDownBase.cs: comment out unused field.
20026
20027         * DataObject.cs: comment out unused field.
20028
20029         * DataGridBoolColumn.cs: reomve unused field.
20030
20031         * DataGrid.cs: remove unused field.
20032
20033         * Cursor.cs: remove old ToBitmap code.
20034
20035         * ControlPaint.cs: remove unused method.
20036
20037         * ScrollBar.cs: remove unused fields.
20038
20039         * ComboBox.cs: remove unused field, and chain up to
20040         AccessibleObject ctor.
20041
20042         * ListBox.cs: remove unused field.
20043
20044         * ButtonBase.cs: wrap a couple fields in NET_2_0.
20045
20046         * GridEntry.cs: remove unused fields.
20047
20048         * Binding.cs: remove unused fields.
20049
20050         * AxHost.cs: remove unused method.
20051
20052         * ContainerControl.cs: remove unused field.
20053
20054         * ScrollableControl.cs: remove unused fields.
20055
20056 2006-12-01  Chris Toshok  <toshok@ximian.com>
20057
20058         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
20059         the Where/WhereString stuff.  it's easy enough to CWL
20060         Environment.StackTrace.
20061
20062         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
20063         unused private fields.
20064
20065 2006-12-01  Jackson Harper  <jackson@ximian.com>
20066
20067         * TextControl.cs: Do not update the view while inserting multiline
20068         text. If we update the view we might wrap lines, before entering
20069         the new lines, which causes the new line insertion calculations to
20070         be totally fubared.
20071         - Remove an old TODO
20072         - Make debug output a little nicer
20073         
20074 2006-12-01  Chris Toshok  <toshok@ximian.com>
20075
20076         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
20077
20078 2006-12-01  Chris Toshok  <toshok@ximian.com>
20079
20080         [ fix the majority of the CS0108 warnings we've been suppressing ]
20081         
20082         * TreeView.cs: mark BackgroundImageChanged as 'new'.
20083
20084         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
20085         to "LayoutToolBar" to quiet mcs.
20086         
20087         * TabControl.cs: mark our ControlCollection class as 'new'.
20088
20089         * TextBoxBase.cs: mark some events as 'new'.
20090
20091         * Splitter.cs: TabStop is 'new'.
20092
20093         * ControlBindingsCollection.cs: mark a few methods as new since
20094         they change the visibility from protected to public.
20095
20096         * RadioButton.cs: DoubleClick -> base class, and remove unused
20097         HaveDoubleClick.
20098
20099         * MonthCalendar.cs: ImeMode property -> base class, and mark many
20100         events as new.
20101
20102         * NumericUpDown.cs: TextChanged -> base class.
20103
20104         * CheckedListBox.cs: mark our ObjectCollection class as new to
20105         quiet mcs.
20106
20107         * FolderBrowserDialog.cs: make HelpRequest event new and have it
20108         muck with the base class.
20109
20110         * StatusBar.cs: fix some mcs warnings about Update being the same
20111         name as a base class method.
20112
20113         * RichTextBox.cs: mark some events as new, and make them do things
20114         to the base class impl.
20115
20116         * UserControl.cs: mark TextChanged as new, and have it manipulate
20117         base.TextChanged.
20118
20119         * UpDownBase.cs: mark some things new.
20120
20121         * CheckBox.cs: mark DoubleClick "new", and add some text about
20122         what we need to look at.
20123
20124         * Panel.cs: make the events "new", and manipulate the base
20125         version.  these are just here for attributes.
20126
20127         * AccessibleObject.cs: make owner private.
20128
20129         * Control.cs: deal with AccessibleObject.owner being private.
20130         cache our own copy if we need it.
20131
20132         * Button.cs: add "new" to the DoubleClickEvent.
20133
20134         * ListBox.cs: no need to track our own has_focus here.  let
20135         Control.has_focus do it for us.  Also some other work to clear up
20136         warnings about not overriding base class methods of the same name.
20137         
20138         * ComboBox.cs: clear up some warnings about not override base
20139         class methods of the same name.
20140
20141 2006-12-01  Chris Toshok  <toshok@ximian.com>
20142
20143         * Form.cs: flag a few things as "new" to quiet some of the mcs
20144         warnings.
20145
20146         * AxHost.cs: same.
20147
20148         * PrintPreviewDialog.cs: same.
20149
20150         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
20151         now DGV isn't so horrible on the class status page.  also, move
20152         all events to using System.ComponentModel.EventHandlerList.  my
20153         wrists hurt.
20154
20155 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20156
20157         * MdiWindowManager.cs:
20158         - Set form to active mdi child if shown,
20159         and update the active mdi child to the next 
20160         remaining child in the z-order if the form is hidden.
20161
20162         * Form.cs: 
20163         - Track if the form has been visible and if its 
20164         visibility is beeing changed, so that the MdiClient
20165         can properly decide the ActiveMdiChild. The MdiClient 
20166         cannot track this since the form can change visibility 
20167         before MdiClient is created.
20168
20169         * MdiClient.cs:
20170         - Don't activate anything of the parent form is changing
20171         its visibility.
20172         - Rework ActiveMdiChild to only return visible mdi 
20173         children and take into account several other corner 
20174         cases.
20175
20176 2006-12-01  Chris Toshok  <toshok@ximian.com>
20177
20178         * IBindableComponent.cs: new 2.0 interface.
20179
20180 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
20181
20182         * DataGrid.cs: Font for caption area is bold by default.
20183
20184 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
20185
20186         * Menu.cs: Tag property for 2.0.
20187         
20188 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
20189
20190         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
20191         
20192 2006-12-01  Chris Toshok  <toshok@ximian.com>
20193
20194         * TreeView.cs: doh, the Begin* events should be
20195         TreeViewCancelEventHandler.
20196
20197 2006-12-01  Chris Toshok  <toshok@ximian.com>
20198
20199         * Form.cs: Form.ControlCollection already stores off the
20200         form_owner field.  don't access the base class's internal "owner"
20201         field.
20202
20203         * Control.cs: make all the fields in Control.ControlCollection
20204         private.  there's no need for any internal fields here.
20205
20206 2006-12-01  Chris Toshok  <toshok@ximian.com>
20207
20208         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
20209         OnHandleCreated.  Fixes bug #80109.
20210
20211 2006-12-01  Chris Toshok  <toshok@ximian.com>
20212
20213         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
20214         SplitContainer.cs, Control.cs, StatusStrip.cs,
20215         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
20216         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
20217         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
20218         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
20219         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
20220         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
20221         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
20222         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
20223         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
20224         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
20225
20226         do most of the work to convert our code over to use
20227         System.ComponentModel.Component.Events for
20228         adding/removing/dispatching events.
20229
20230
20231 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
20232
20233         * DataGridView.cs: Fix an ArgumentNullException reported 
20234         twice today in IRC.
20235
20236 2006-11-30  Mike Kestner  <mkestner@novell.com>
20237
20238         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
20239         grabbed listbox.  Fixes #80036 and #80101.
20240
20241 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
20242
20243         * Message.cs: Changed ToString() to match MS.
20244         
20245 2006-11-30  Jackson Harper  <jackson@ximian.com>
20246
20247         * TextBoxBase.cs: You can still change the selected text on a read
20248         only textbox.
20249         * TextControl.cs: Lower magic number for wrap calculations. This
20250         lets text get closer to the right (far) edge.
20251
20252 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
20253
20254         * Control.cs: Tweak 2.0 layout properties.
20255         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
20256         * TextRenderer.cs: Add a new overload.
20257         * ToolStrip*: Huge amount of changes and new features.
20258
20259 2006-11-30  Mike Kestner  <mkestner@novell.com>
20260
20261         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
20262         scroll range correct.  Fixes #79994.
20263
20264 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
20265
20266         * MdiWindowManager.cs: Update main form's text when
20267         a form is closed. (fixes #80038)
20268         
20269 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
20270
20271         * ToolBar.cs:
20272         - Fix an regression in ButtonSize.
20273         - Get ImeMode default value change to "Disable".
20274         - Get ShowTooltips default value change to true, default value is 
20275         "false" but after make a test in .NET we get "true" result as default.
20276         
20277 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
20278
20279         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
20280
20281 2006-11-29  Chris Toshok  <toshok@ximian.com>
20282
20283         * XplatUIWin32.cs (GetWindowTransparency): check return value of
20284         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
20285         SetWindowTransparency hasn't been called.
20286
20287 2006-11-29  Chris Toshok  <toshok@ximian.com>
20288
20289         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
20290         if it's supported.
20291         (set_AllowTransparency): reorder things a little so that the
20292         WS_EX_LAYERED style is removed properly.
20293
20294 2006-11-29  Chris Toshok  <toshok@ximian.com>
20295
20296         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
20297         
20298         * Form.cs: only call the XplatUI transparency method (get/set) if
20299         SupportsTransparency says it's supported. Otherwise fallback to
20300         doing nothing (in the set case) or returning the instance field we
20301         cache (in the get case).
20302
20303         * XplatUIStructs.cs: add TransparencySupport flag enum.
20304         
20305         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
20306         change to SupportsTransparency.
20307
20308         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
20309         TransparencySupport.None from SupportsTransparency.
20310
20311         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
20312         TransparencySupport.Set from SupportsTransparency.
20313
20314         * XplatUIWin32.cs: implement GetWindowTransparency calling
20315         GetLayeredWindowAttributes, and implement SupportsTransparency by
20316         checking whether or not both
20317         GetWindowTransparency/SetWindowTransparency are available
20318         entrypoints.  We need to do this since SetWindowTransparency is
20319         available as of win2k, but GetWindowTransparency requires winxp.
20320         yay win32 api.
20321
20322         * XplatUI.cs: Add GetWindowTransparency, and change
20323         SupportsTransparency to allow for either/both Get/Set.
20324
20325 2006-11-29  Chris Toshok  <toshok@ximian.com>
20326
20327         * DataGrid.cs: keep from going into an infinite loop redrawing a
20328         datagrid that has no datasource.  Fixes bug #80033.
20329
20330 2006-11-29  Chris Toshok  <toshok@ximian.com>
20331
20332         * MenuItem.cs: fix the NRE when we assign text (and therefore call
20333         Invalidate) before the mainmenu has been assigned to a control.
20334
20335 2006-11-29  Chris Toshok  <toshok@ximian.com>
20336
20337         * DataGrid.cs: detect when we should be double the double click
20338         row/column autosize stuff, although that codepath has yet to be
20339         written.  part of the work for bug #79891.
20340
20341 2006-11-29  Chris Toshok  <toshok@ximian.com>
20342
20343         * Binding.cs (SetControl): fix unit test.
20344
20345 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20346
20347         * PageSetupDialog.cs: Validate the margins and set them in
20348         PageSettings. 
20349         * NumericTextBox.cs: New class to mimic the behavior of the
20350         textboxes used in the printing dialogs.
20351
20352 2006-11-29  Andreia Gaita  <avidigal@novell.com>
20353         
20354         * Form.cs: Revert previous change (remove call UpdateBounds
20355         from form constructor), because it messes with the handle creation
20356         order, and that one needs lots and lots of love.
20357         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
20358         for valid printer and throw InvalidPrinterException if document
20359         is set but printer not valid), adding a MonoTODO. Once 
20360         handle creation is done properly, we can put this back in.
20361
20362 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20363
20364         * MenuItem.cs: Create a invalidate method for menu item, to be
20365         calling from set text, it make text changes to imadiate update
20366         on screen. Fixes #80013. 
20367         
20368 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20369
20370         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
20371         fixes bug #80070 and some other problem on toolbar buttons
20372         layout.
20373
20374 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20375
20376         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
20377         with dotted brush.      Fixes #79564
20378         
20379 2006-11-28  Andreia Gaita  <avidigal@novell.com>
20380
20381         * Form.cs: Removed call to UpdateBounds on Form
20382         constructor, it was causing a call to CreateHandle
20383         before it was supposed to.
20384         * PrintControllerWithStatusDialog: Applied patch
20385         by Chris Toshok to hide controller when there are
20386         no printers available.
20387         PrintDialog.cs: initialize printer settings to 
20388         null - correct DefaultValues test #5
20389         * PrintPreviewControl.cs: Move PrintController
20390         initialization to GeneratePreview
20391         * PrintPreviewDialog.cs: 
20392         - Remove Preview generation     from Document_set(). It is 
20393         called on OnPaint
20394         - Throw InvalidPrinterException on CreateHandle if
20395         a Document is set but there are no printers or 
20396         printer is not valid.
20397         * ThemeWin32Classic: don't paint PrintPreviewControl
20398         if there is nothing to paint    
20399
20400 2006-11-28  Miguel de Icaza  <miguel@novell.com>
20401
20402         * Form.cs: Add another popular method.
20403
20404         * TabPage.cs: ditto.
20405
20406 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20407
20408         * MenuItem.cs: Fixed a warning.
20409         * InternalWindowManager: Fixed a warning.
20410
20411 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20412
20413         * MenuItem.cs:
20414         - When cloning a menu also clone MdiList and clone the 
20415           window menu items properly (as the forms and menuitems
20416           are kept in an internal hashtable, these need updating 
20417           as well)
20418         - Rewrote the window menu code, menu items are added in the
20419           order the forms were added to their parent, and they are
20420           updated every time the window menu is shown (before the
20421           list was only generated once, in the current order of the
20422           forms, and would never be updated). A checkmark is shown
20423           next to the item corresponding to the active mdi child.
20424
20425 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20426
20427         * XplatUIStructs.cs: 
20428         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
20429         
20430         * XplatUIWin32.cs: 
20431         - Added TME_NONCLIENT to TMEFlags.
20432         - Handles WM_NCMOUSEMOVE in GetMessage to 
20433           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
20434
20435         * MdiWindowManager:
20436         - Now merges mdi child menu to parent menu when maximized.
20437         - Recalculate NC areas of both mdi child and mdi parent. 
20438           Fixes #79757 (4).
20439           on window state and size changes.Fixes #79844 (3).
20440         - Handle WM_NCCALCSIZE to properly calculate borders.
20441
20442         * Form.cs:
20443         - Add/remove to the mdi containers list of mdi children 
20444           in the order they are added.
20445         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
20446           to the maximized mdi child.
20447         
20448         * InternalWindowManager.cs:
20449         - Only execute a click on the control buttons on the mouse up,
20450           not on the mouse down. Show the state of the button 
20451           (was only showing Normal state, never Pressed state). The
20452           pressed button now follows the mouse (if you click the Close 
20453           button and move the mouse over the Maximize button, the 
20454           Maximize button will be shown as pressed). Since Win32 does
20455           not generate WM_NCLBUTTONUP if you release the button outside
20456           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
20457           it as a mouse up.
20458         
20459         * ThemeWin32Classic.cs:
20460         - Draw a missing border around mdi child forms. Fixes #79844 (2).
20461
20462         * MdiClient.cs:
20463         - Added a list of forms which contains the order the forms are
20464           added to the mdi parent.
20465         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
20466         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
20467         - If the active form changes set the scrollbars to the top
20468           of the Z order, otherwise the form could hide them.
20469         - Scrollbars are now sized according to ClientSize, not 
20470           to Size, and they take into account the other scrollbar
20471           to determine maximum.
20472         
20473 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
20474         
20475         * XplatUI.cs:
20476         * XplatUIDriver.cs:
20477         * XplatUIX11.cs:
20478         * XplatUIWin32.cs:
20479         * XplatUIOSX.cs:
20480         - Added RequestAdditionalWM_NCMessages for windows to 
20481           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
20482           Currently only implemented in XplatUIWin32.
20483
20484 2006-11-27  Chris Toshok  <toshok@ximian.com>
20485
20486         * Hwnd.cs: only add the hwnd to the windows hash in
20487         set_WholeWindow and set_ClientWindow if whole_window/client_window
20488         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
20489
20490 2006-11-27  Mike Kestner  <mkestner@novell.com>
20491
20492         * ComboBox.cs: remove redundant OnDropDown call.  It is called
20493         from the ComboListBox.ShowWindow code. Fixes #79969.
20494
20495 2006-11-27  Chris Toshok  <toshok@ximian.com>
20496
20497         * Hwnd.cs: remove the setters for ExposePending and
20498         NCExposePending - noone uses them.
20499
20500 2006-11-27  Jackson Harper  <jackson@ximian.com>
20501
20502         * TextControl.cs: new param for ReplaceSelection which determines
20503         whether we select the new selection, or set the cursor to the end
20504         of the new selection.
20505         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
20506         pasting, select the new text.
20507         * RichTextBox.cs: Use new param for ReplaceSelection.
20508
20509 2006-11-27  Jackson Harper  <jackson@ximian.com>
20510
20511         * TextBoxBase.cs: Set the selection to the caret after the caret
20512         is moved, otherwise they get out of sync.
20513
20514 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
20515
20516         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
20517         it fixes #80015
20518
20519 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
20520
20521         * ThemeWin32Classic.cs: 
20522         - Fix toolbar drop down arrow position.
20523         - Fix drop down appearance when ToolBar.Appearance is normal,
20524         it fixes #80018.
20525         
20526 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
20527
20528         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
20529         * Control.cs: Same.
20530         * UpDownBase.cs: Same.
20531         * ButtonBase.cs: Same.
20532         * ScrollBar.cs: Same.
20533         * TrackBar.cs: Same.
20534         * PictureBox.cs: Same.
20535         * UserControl.cs: Same.
20536         * Label.cs: Same.
20537         * ListControl.cs: Same.
20538         * TextBoxBase.cs: Same.
20539         * ListView.cs: Same.
20540         * RichTextBox.cs: Same.
20541         * TreeView.cs: Same.
20542
20543 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
20544
20545         * PrintDialog.cs:
20546         - Text label for where 
20547         - Text label comment was not shown
20548
20549 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
20550
20551         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
20552
20553 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20554
20555         * InternalWindowManager.cs: 
20556         - Handle WM_PARENTNOTIFY to activate the form
20557         if any child control is clicked.
20558         - The form is only sizable if not minimized.
20559
20560         * MdiWindowManager.cs:
20561         - Save the IconicBounds if the form is moved.
20562         - Rework SetWindowState, now the window bounds 
20563         are stored only if the old window state is Normal.
20564         
20565         * MdiClient.cs:
20566         - In SetWindowStates store the old window state if 
20567         the window is maximized and restore window state if
20568         the window looses focus.
20569         - Don't handle any scrollbar value changes if 
20570         initializing the scroll bars. Fixes #79771.
20571         - Reworked ArrangeIconicWindows. Current algorithm
20572         tests bounds agains all other minimized windows, if
20573         any intersections create new bounds (going left to 
20574         right, bottom to top) and then test again. When 
20575         successful the bounds are saved and never computed
20576         again. Fixes #79774.
20577
20578 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20579
20580         * InternalWindowManager.cs: Added HandleTitleBarUp.
20581
20582 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20583
20584         * NumericUpDown.cs: In .NET 1.1, user entered text is still
20585         hexadecimal in ParseUserEdit.
20586
20587         
20588 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20589
20590         * MdiWindowManager.cs: 
20591         - Handle a click on the form's icon to show the 
20592         system menu (when maximized). Fixes #79775.
20593         - Change the existing click handler for the form's
20594         icon when not maximized to show on MouseUp.
20595         Fixes #79776.
20596
20597         * Form.cs: In OnResize only layout the mdi child's
20598         parent if it actually has a parent. Might not if
20599         the window is closing.
20600
20601
20602 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20603
20604         * MdiClient.cs: Ignore active MDI client for text of parent, if
20605         child has no text set.
20606
20607 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20608
20609         * ToolBar.cs: Fixed ToString to match MS.
20610
20611 2006-11-22  Andreia Gaita  <avidigal@novell.com>
20612
20613         * NumericUpDown: 
20614         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
20615         update inner values on set. Fixes #79966.
20616         - Override OnLostFocus to update value on NET 2. Fixes #79950.
20617         - Fix hexadecimal parsing.
20618         
20619         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
20620         parent. Fixes #79957
20621
20622 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20623
20624         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
20625         the actual size has to be queried, since if height /
20626         width is negative Win32 changes it to 0. 
20627         Fixes #79999 on Windows.
20628         
20629         * XplatUIX11.cs: Set height / width to 0 if negative
20630         in SetWindowPos. Fixes #79999 on Linux.
20631         
20632 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
20633
20634         * ThemeWin32Classic.cs: Fix text redenring when button is
20635         pressed.
20636
20637 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
20638
20639         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
20640         and later navigate by mouse. Fixes #79528.
20641
20642 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
20643
20644         * ToolBar.cs: Set default value for TabStop to false in
20645         constructor, it fixes remaining behavior of bug #79863.
20646
20647 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20648
20649         * MdiWindowManager.cs:
20650         * InternalWindowManager.cs:
20651         - Moved a few methods specific to Mdi from 
20652         InternalWindowManager to MdiWindowManager.
20653         Fixes #79996.
20654         
20655 2006-11-21  Chris Toshok  <toshok@ximian.com>
20656
20657         * XplatUIOSX.cs: stub out InvalidateNC.
20658
20659         * XplatUIWin32.cs: implement InvalidateNC using the call I found
20660         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
20661
20662         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
20663
20664         * XplatUIDriver.cs: add InvalidateNC abstract method.
20665
20666         * XplatUI.cs: add InvalidateNC.
20667
20668 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
20669
20670         * ToolBar.cs: Invalidate complete button area when pressed status 
20671         was changed.
20672         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
20673         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
20674         by 1 when button is pressed.
20675
20676 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20677
20678         * ToolButton.cs: Invalidate middle of DropDown button when
20679         ToolBar theres DropDownArrows.
20680         * ThemeWin32Classic.cs: Change position of DropDown arrow and
20681         fix DropDown drawing operations.
20682
20683 2006-11-20  Chris Toshok  <toshok@ximian.com>
20684
20685         * NativeWindow.cs: fix the formatting of functions ('{' on the
20686         following line), and enable the thread exception dialog.
20687
20688         * Application.cs: remove the duplicate exception catching from
20689         here.
20690
20691 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20692
20693         * Toolbar.cs: Triggers button click event when click on icon
20694         of dropdown ToolBarButton. Fixes #79912.
20695         
20696 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20697
20698         * Theme.cs:
20699         * ThemeWin32Classic.cs:
20700         - Added a property WindowBorderFont to enable themeing
20701           of mdi child windows' Text.
20702           
20703 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20704
20705         * InternalWindowManager.cs:
20706         * Form.cs:
20707         * MdiClient.cs:
20708         * MdiWindowManager.cs: 
20709         - If mdi child is maximized, set mdi parent's
20710           text to "Parent - [Child]". Fixes #79770.
20711         - If there is any maximized mdi child windows, only the active 
20712           window (and any new windows) is maximized, the rest are normal.
20713         - On a WindowState change only save mdi child's window bounds 
20714           if the old window state was normal. Fixes #79774.
20715         - The scroll bars are now calculated on hopefully all
20716           necessary events. Fixed #79771 / #79844->6 / #79906.
20717         - MdiClient.SizeScrollBars() now takes into account docked 
20718           controls in the parent when calculating available space.
20719         - InternalWindowManager now always repaints the entire title
20720           area. Fixes #79844->1/4/5.
20721         - Added RequestNCRecalc on mdi child windowstate changes.
20722           Fixes #79772.
20723
20724 2006-11-20  Mike Kestner  <mkestner@novell.com>
20725
20726         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
20727         in the MouseUp handler of the listbox and move the return handling
20728         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
20729
20730 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20731
20732         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
20733
20734 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20735
20736         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
20737           working in 1.2.x anymore. So, updated.
20738
20739 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
20740
20741         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
20742         NumberGroupSeparator of current culture instead of assuming en-US.
20743         Fixed bug #79967.
20744
20745 2006-11-17  Mike Kestner  <mkestner@novell.com>
20746
20747         * Control.cs: Add the concept of implicit bounds setting so that
20748         dock/undock round trips preserve explicitly set size/locations.
20749         Fixes #79313.
20750
20751 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20752
20753         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
20754           can't handle those filters. (Fixes bug #79961)
20755
20756 2006-11-17  Chris Toshok  <toshok@ximian.com>
20757
20758         [ fixes the exit/crashes associated with #79835.  it's clearly
20759         suboptimal though, we need to figure out a better way to solve
20760         this. ]
20761         
20762         * PrintPreviewControl.cs: deal with the new invalid printer
20763         exceptions.
20764
20765         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
20766         and return false (so CommonDialog.ShowDialog doesn't actually show
20767         the form.)
20768
20769         * PrintDialog.cs: enable/disable the Ok button depending on
20770         whether or not the printer is valid.
20771
20772         * CommonDialog.cs (ShowDialog): only actually show the form if
20773         RunDialog returns true.
20774
20775 2006-11-17  Jackson Harper  <jackson@ximian.com>
20776
20777         * TextControl.cs: When soft splitting a line, mark it as a soft
20778         split line. Also carry over the current line break to the next
20779         line.
20780
20781 2006-11-17  Chris Toshok  <toshok@ximian.com>
20782
20783         * XplatUIX11.cs: when scrolling a window with an invalid area, we
20784         only want to shift the part of the invalid area that overlaps the
20785         area we're scrolling.  we also don't want to clear the invalid
20786         area unless the invalid area was entirely contained within the
20787         scrolling area.
20788
20789 2006-11-16  Chris Toshok  <toshok@ximian.com>
20790
20791         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
20792         also make sure to free the memory returned by XGetWindowProperty
20793         in GetText().
20794
20795         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
20796
20797 2006-11-16  Chris Toshok  <toshok@ximian.com>
20798
20799         * XplatUI.cs: add a new super secret way to get at the totally
20800         unsupported X11 backend.
20801
20802 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
20803
20804         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
20805
20806 2006-11-16  Jackson Harper  <jackson@ximian.com>
20807
20808         * TreeView.cs: Allow more explicit setting of top node position
20809         for scrollbars. Slower algo, but more accurate.
20810         - CollapseAll should maintain the current top node.
20811         * TextBoxBase.cs: When positioning the caret, use the line, pos
20812         method, since the x, y method does not grab the correct tag, and
20813         the caret height never gets set correctly. (Maybe I should just do
20814         away with the caret having its own height, and always use the
20815         carets current tag for height).
20816
20817 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
20818
20819         [Fixes 79778, 79923]
20820
20821         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
20822         Parent to the FosterParent instead.
20823
20824 2006-11-16  Jackson Harper  <jackson@ximian.com>
20825
20826         * TreeView.cs: Need to recalc the topnode when we expand or
20827         collapse. The scrolling methods can't handle this on their own,
20828         since they use differences between the last scroll position, and
20829         those difference get completely messed up since we are expanding
20830         nodes.  This problem should probably be fixed in the scrolling
20831         methods, so they can figure out exactly where they are, but this
20832         will slow things down a little.
20833         * ThemeWin32Classic.cs: Special case for groupboxes with empty
20834         strings, makes nunit-gui look a lot nicer.
20835
20836 2006-11-16  Chris Toshok  <toshok@ximian.com>
20837
20838         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
20839         the broken multithreaded event handling we have in here.  File
20840         this entry under "Why we should move to the new X11 backend".
20841
20842         Any thread can make it into UpdateMessageQueue, which gets events
20843         from the X socket - some of which could belong to hwnds being
20844         managed by a different thread.  We can also have multiple threads
20845         in UpdateMessageQueue at the same time, with each one reading from
20846         the X socket.  This leads to many problems, with the following
20847         solutions:
20848
20849         We can't use hwnd.Queue.Enqueue anywhere in here and must use
20850         EnqueueLocked.
20851
20852         The MotionNotify compression we do can't work across threads
20853         (without locking the entire queue, perhaps) since we call
20854         hwnd.Queue.Peek, so we just punt and don't compress motion events
20855         unless the owning thread is the one which got the X event.
20856
20857         ConfigureNotify is another fun one, since it modifies the hwnd's
20858         bounds and then enqueues the event.  We add a lock to Hwnd which
20859         is held when setting configure_pending to true (and enqueuing the
20860         event).
20861
20862         There is a race wrt the wake socket.  we need to make sure that
20863         only 1 thread is waiting on that socket, or else a thread could
20864         sleep waiting for data that never comes.  It's difficult (but not
20865         impossible) to make happen, because it seems to require something
20866         like the following:
20867
20868             1. Thread 1 polls on wake_receive
20869         
20870             2. poll returns saying there's data to be read on
20871                wake_receive.
20872         
20873             3. Thread 2 polls on wake_receive and immediately returns
20874                saying there's data to be read.
20875
20876             4. Thread 2 reads the wakeup byte from wake_receive
20877
20878             5. Thread 1 attempts to read the wakeup byte from
20879                wake_receive.
20880
20881             6. Thread 2 exits (due to a form closing, perhaps).
20882
20883             7. Thread 1 blocks forever.
20884         
20885         Fun, eh?
20886
20887         Fixing the Expose handling isn't done yet, and the races inherent
20888         in that piece of code are responsible for the drawing mistakes you
20889         see when generating expose events in a MT app (like NPlot).  This
20890         one is the likely to be the hardest to bandaid, and it doesn't
20891         appear to cause anything but drawing problems.  The other issues
20892         caused apps to exit or hang.
20893
20894         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
20895         called from a different thread than the one that should be calling
20896         these functions.
20897
20898         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
20899
20900 2006-11-15  Chris Toshok  <toshok@ximian.com>
20901
20902         * Application.cs: null out the context's MainForm when we exit
20903         RunLoop.  Fixes a newly checked in unit test as well as the last
20904         ODE from bug #79933.
20905
20906 2006-11-15  Chris Toshok  <toshok@ximian.com>
20907
20908         * Form.cs (set_Owner): allow a null value so we can clear the
20909         form's owner.
20910         (Dispose): set all our owned_form's Owner properties to null, and
20911         clear the owned_forms collection.
20912         (WM_CLOSE): clean up this a little bit.. still not right though.
20913
20914         * ApplicationContext.cs: OnMainFormClosed should only call
20915         ExitThreadCore if the main form isn't recreating.  Fixes unit
20916         test.
20917
20918 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20919
20920         [Fixes 78346]
20921
20922         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
20923
20924 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20925
20926         [Fixes 79433]
20927
20928         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
20929         keep popup window types from stealing focus from the main form
20930         on Windows.
20931
20932         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
20933
20934         * MenuAPI.cs: Set above flag to true.
20935
20936 2006-11-15  Chris Toshok  <toshok@ximian.com>
20937
20938         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
20939         the button being released is not in wParam.
20940
20941 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20942
20943         * Form.cs: Add the released button to MouseEventArgs.Button
20944         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
20945         on Win32.
20946
20947 2006-11-15  Chris Toshok  <toshok@ximian.com>
20948
20949         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
20950         GetText().  untested because it's unused in our implementation.
20951         Control.Text always caches the text, even if
20952         ControlStyles.CacheText is not set.
20953
20954         fixes bug #79939.
20955
20956 2006-11-15  Chris Toshok  <toshok@ximian.com>
20957
20958         [ fixes #79933 ]
20959         
20960         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
20961         message.  no hiding, no disposing.
20962
20963         in the WM_CLOSE handler, hide the form if it's modal.
20964
20965 2006-11-15  Chris Toshok  <toshok@ximian.com>
20966
20967         * XplatUIX11.cs: use AddExpose instead of sending a message.
20968         fixes textbox border drawing.
20969
20970 2006-11-15  Chris Toshok  <toshok@ximian.com>
20971
20972         * PropertyGridView.cs: keep from crashing on mouse move/down when
20973         the property grid is empty.
20974
20975 2006-11-14  Jackson Harper  <jackson@ximian.com>
20976
20977         * TextControl.cs: Make PageUp and PageDown more like the MS
20978         versions.
20979         * TextBoxBase.cs: When we set the text property position the
20980         cursor at the beginning of the document.
20981
20982 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20983
20984         * Form.cs: if a mdi child's WindowState has changed
20985         before it's creation, it would display wrong control
20986         buttons.
20987         
20988 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
20989
20990         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
20991           (Fixes bug #79927)
20992
20993 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
20994
20995         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
20996         the window gets to paint its borders even if the window is
20997         getting smaller.
20998         
20999         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
21000         otherwise the old control buttons would still be painted 
21001         if the window gets bigger.
21002         
21003         * PaintEventArgs.cs: add an internal method so that the clip 
21004         rectangle can be changed.
21005         
21006 2006-11-13  Chris Toshok  <toshok@ximian.com>
21007
21008         [ fixes bug #79745 ]
21009         
21010         * NotifyIcon.cs: lots of cleanup.
21011
21012         * X11Structs.cs: add an enum for XEMBED messages.
21013
21014         * XplatUIX11.cs: reindent one of the giant switch statements, it
21015         was taking up an additional tab stop, and this file is already way
21016         too wide for my laptop's screen.
21017
21018         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
21019         we get it, resize the hwnd to the WMNormalHints max_width/height.
21020
21021 2006-11-13  Jackson Harper  <jackson@ximian.com>
21022
21023         * TextBoxBase.cs: Compute the value changes for the mouse wheel
21024         teh simple way.
21025
21026 2006-11-13  Chris Toshok  <toshok@ximian.com>
21027
21028         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
21029         #79898.  force a reference to the Region to stick around so the
21030         unmanaged object isn't collected (rendering our handle in the MSG
21031         stale).
21032
21033 2006-11-13  Chris Toshok  <toshok@ximian.com>
21034
21035         * XplatUIX11.cs: fix #79917 for window managers which support
21036
21037         using XStoreName on the raw utf8, and we need to convert to
21038         COMPOUND_TEXT if it's non-latin1.
21039
21040 2006-11-13  Chris Toshok  <toshok@ximian.com>
21041
21042         * Form.cs (set_DialogResult): we need to set closing to false if
21043         we're setting our result to None.  fixes bug #79908.
21044
21045 2006-11-13  Jackson Harper  <jackson@ximian.com>
21046
21047         * TextControl.cs: When formatting text, compute the adjusted tag
21048         lengths correctly, using FindTag for the end tag instead of trying
21049         to figure it out outselves.
21050         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
21051         the item, ItemHeight doesn't work, because trees with large
21052         imagelists use those for their height
21053         * TreeView.cs: ActualItemHeight factors in the image height
21054         - compute left edge of checkboxes correctly
21055         - when expanding/collapsing move the bottom down one pixel, so we
21056         aren't moving part of the node
21057
21058 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21059
21060         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
21061         stack in PaintEventStart so that it won't get disposed by the gc
21062         before reaching PaintEventEnd.
21063
21064 2006-11-13  Jackson Harper  <jackson@ximian.com>
21065
21066         * TextBoxBase.cs: Don't select the word if we are on a line with
21067         no text.
21068         - We don't need to position the caret on mouse up, since the mouse
21069         move handler should be doing this
21070         - When double clicking a blank line, the caret is advanced to the
21071         next line.
21072
21073 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
21074
21075         * TreeNodeCollection.cs: Avoid duplicating indexer code.
21076
21077 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
21078
21079         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
21080         Fixes part of bug #79910.
21081
21082 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
21083
21084         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
21085           (bug #79903). Some minor string updates to match ms.
21086
21087 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21088
21089         * FileDialog.cs: Don't add an extension if the filename
21090           already ends with that extension.
21091
21092 2006-11-10  Jackson Harper  <jackson@ximian.com>
21093
21094         * TreeView.cs: Use the currently highlighted node for the
21095         BeforeSelect event.
21096         * TextBoxBase.cs: There is no need to expand selection on
21097         MouseMove.
21098         - CanUndo means 'is there any undo operations', not 'is undo
21099         allowed on this textcontrol. Fixed ClearUndo unit test.
21100
21101 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
21102
21103         * Button.cs: only perform click when button is Selectable (so as 
21104         not to activate default buttons when they're disabled)
21105         
21106         * Control.cs: Rewrite of the SelectNextControl and related 
21107         methods. HandleClick now selects next control if the current one
21108         is being disabled.
21109         
21110         * Form.cs: OnActivated selects next active control only if Load 
21111         has already occurred. If Load hasn't run, there's no point in 
21112         selecting here, Load might change the state of controls.
21113         
21114         * FocusTest.cs: Tests marked as working again for these fixes
21115
21116 2006-11-10  Chris Toshok  <toshok@ximian.com>
21117
21118         * XplatUIX11.cs: a couple of fixes.
21119
21120         - use XInternAtoms with almost all the atoms we need to register,
21121         instead of many, many calls to XInternAtom.  should help a bit on
21122         startup time, at the expense of making the code look a little
21123         worse.
21124
21125         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
21126         isn't reparented (which seems to be a clue that we're running fon
21127         compiz) and they have an Owner form.  This fixes the tool windows
21128         in paint.net when running under compiz.
21129
21130         - when setting the opacity of a window, support both the case
21131         where the window has been reparented and also when it hasn't been.
21132         Since compiz/beryl doesn't seem to reparent windows, and these are
21133         the only window managers which support translucency, I'm not sure
21134         why we need the hwnd.reparented case at all.. but leave it in.
21135         now we get translucent windows in paint.net under compiz/beryl.
21136
21137 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21138
21139         * FileDialog.cs: Always return the value for FilterIndex that
21140           was set. Internally convert it to values that make sense.
21141
21142 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
21143         
21144         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
21145
21146 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
21147
21148         * Toolbar.cs: Change default value of DropDownArrows to true, the 
21149         signature still using false to make it compatible with MS but the 
21150         initial value is true. Fixes #79855.
21151
21152 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21153
21154         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
21155           only available on Linux.
21156
21157 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
21158
21159         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
21160         reduce number of calls to redraw method during toolbar creation.
21161
21162 2006-11-09  Mike Kestner  <mkestner@novell.com>
21163
21164         * ListView.cs : raise SelectedIndexChanged when an item is selected
21165         programmatically via the Item.Selected property.  Gert's nice 
21166         ListViewSelectedIndexChanged test fixture now runs clean.
21167
21168 2006-11-09  Mike Kestner  <mkestner@novell.com>
21169
21170         * ListView.cs : raise SelectedIndexChanged when a selected item is
21171         removed from the item collection using Remove or RemoveAt.
21172
21173 2006-11-09  Mike Kestner  <mkestner@novell.com>
21174
21175         * ListView.cs : raise SelectedIndexChanged once per selected item
21176         for compat with MS.  Fixes #79849+.
21177
21178 2006-11-09  Chris Toshok  <toshok@ximian.com>
21179
21180         * TabControl.cs: initialize row_count to 0, and set it to 1 when
21181         we need to (if we have any tab pages).  Fixes unit test.
21182
21183 2006-11-09  Chris Toshok  <toshok@ximian.com>
21184
21185         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
21186         width is 0, not 3.  Fixes a unit test.
21187
21188 2006-11-09  Mike Kestner  <mkestner@novell.com>
21189
21190         * ListView.cs : use Implicit scrollbars so that focus isn't 
21191         stolen from the listview when they are clicked. Fixes #79850.
21192
21193 2006-11-09  Chris Toshok  <toshok@ximian.com>
21194
21195         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
21196         have a root item.  Fixes #79879.
21197
21198 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
21199
21200         * FileDialog.cs:
21201           - Fix ToString ()
21202           - An ArgumentException is now thrown if a wrong filter
21203             is applied (matches ms). The previous filter doesn't change
21204             anymore if an exception is thrown.
21205           - Changing the FileName property also affects FileNames
21206         * ColorDialog.cs: The length of the CustomColors array is always
21207           16. It doesn't matter if we use a smaller array or null to update
21208           or change the custom colors property.
21209         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
21210           for RootFolder if we get a undefined value.
21211
21212 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21213
21214         * StatusBarPanel.cs: 
21215         - Width is set to MinWidth if Width is smaller than
21216         MinWidth. Fixes #79842.
21217         - MinWidth now always overrides Width (MSDN says MinWidth
21218         is set to Width when AutoSize = None, but they do not 
21219         behave like that).
21220         - Style has now the the correct default value.
21221         
21222 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21223  
21224         * TrackBar.cs: 
21225         - The control is completely invalidated on 
21226         Got/LostFocus to draw the focus rectangle correctly.
21227         - When AutoSize then height is always 45 (width for 
21228         vertical controls).
21229         
21230         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
21231         on the mouse when moved and it doesn't move when grabbed
21232         until the mouse moves as well. Also fixed some wrong 
21233         calculations when clicking on the thumb (control thought
21234         click was outside of thumb and didn't grab it).
21235         Fixes some of the issues in #79718.
21236
21237 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
21238
21239         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
21240
21241 2006-11-08  Chris Toshok  <toshok@ximian.com>
21242
21243         * PropertyGridView.cs: only call ToggleValue if the item is not
21244         readonly.
21245
21246 2006-11-08  Jackson Harper  <jackson@ximian.com>
21247
21248         * TextBoxBase.cs: The RichTextBox and textbox have very different
21249         word selection methods.  Implement the textbox's simple word
21250         selection here, and let the RichTextBox override and provide it's
21251         own.
21252         - Don't do extra selection on mouseup
21253         * RichTextBox.cs: Use the documents word selection algorithm, I
21254         think ideally, this function will be pulled into the
21255         RichTextBox.cs code someday.
21256
21257 2006-11-08  Chris Toshok  <toshok@ximian.com>
21258
21259         * RootGridEntry.cs: new class to represent GridItemType.Root.
21260
21261         * CategoryGridEntry.cs: reformat, and add boilerplate.
21262         
21263         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
21264         returns the UI parent anyway, and we need special handling to
21265         implement the GetTarget method in the face of it.  Also, implement
21266         Select().
21267
21268         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
21269         a root grid item, and use that instead of PropertyGrid.grid_items.
21270         Also, make use of TypeConverters (and add limitted support for
21271         ICustomTypeDescriptors) when initially populating the grid.
21272         Arrays now show up more or less properly.
21273
21274 2006-11-08  Chris Toshok  <toshok@ximian.com>
21275
21276         * Application.cs: set the modal dialog to non modal after we close
21277         it.  Fixes bug #79866.
21278
21279 2006-11-08  Jackson Harper  <jackson@ximian.com>
21280
21281         * TextControl.cs: When combining lines carry over the line end
21282         style from the end line.
21283         - Invalidate the selected area when setting it, if it is visible.
21284         * TextBoxBase.cs: Only rich text box can do full line selects.
21285         - Make sure to set the cursor position when there is a click,
21286         otherwise two clicks in separate areas could cause a large chunk
21287         to be selected.
21288
21289 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21290
21291         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
21292         Fixes #79863.
21293
21294 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21295
21296         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
21297         time. Remove tooltips when ToolButton click events.  Fixes #79856.
21298
21299 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21300
21301         * MenuAPI.cs: Ignore right click for menu actions and fixes
21302         menu border when clicked.  Fixes #79846.
21303
21304 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21305
21306         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
21307         MouseState after create wParam for message, this fixes mouse button 
21308         equal none in mouse up events.
21309         
21310 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
21311
21312         * Control.cs : Focus() now calls Select to set the Container's
21313         Active Control and to give it focus. To avoid infinite recursion
21314         (because ActiveControl also calls Focus at one point), a check 
21315         is made in Focus with the help of a new internal variable
21316         is_focusing.
21317
21318 2006-11-07  Mike Kestner  <mkestner@novell.com>
21319
21320         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
21321         if there's a selection.  Fixes #79849.
21322
21323 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
21324
21325         * PropertyGrid.cs: Avoid fixed height of help description label.
21326         Fixes part of bug #79829.
21327
21328 2006-11-07  Chris Toshok  <toshok@ximian.com>
21329
21330         * XplatUIX11.cs: fix #79790 again, by using the
21331         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
21332
21333 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21334
21335         * ToolBar.cs: Fix left click checking.
21336
21337 2006-11-07  Chris Toshok  <toshok@ximian.com>
21338
21339         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
21340
21341 2006-11-07  Chris Toshok  <toshok@ximian.com>
21342
21343         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
21344         PropertyManager unit tests.
21345
21346         * PropertyManager.cs: make property_name internal.
21347
21348 2006-11-07  Chris Toshok  <toshok@ximian.com>
21349
21350         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
21351         pass a unit test.  Also, don't set image_index to anything in
21352         response to setting the ImageList property.
21353
21354 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21355
21356         * ToolBar.cs: Ignore click events when mouse button is not a
21357         left button, only accepts other button for dropdown menus.  
21358         Fixes #79854.
21359
21360 2006-11-07  Chris Toshok  <toshok@ximian.com>
21361
21362         * DataGrid.cs: make the back and parent row buttons a little less
21363         ugly.
21364
21365 2006-11-07  Jackson Harper  <jackson@ximian.com>
21366
21367         * TextBoxBase.cs: When converting to Text don't put line breaks in
21368         for soft line breaks.
21369         * TextControl.cs: There is an initial "fake" line in the document,
21370         this is now a soft break line, so that an extra line feed doesn't
21371         get added to the end of documents.
21372
21373 2006-11-07  Chris Toshok  <toshok@ximian.com>
21374
21375         [ fix bug #79778 ]
21376         
21377         * CurrencyManager.cs: if the list is readonly, don't bother
21378         checking if IBindingList.AllowNew is true.
21379
21380         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
21381         for non-DataRowView datasources..  or rather, make it not crash.
21382         (DataGridPaintRelationRow): make sure we limit the row painting to
21383         the area not covered by the row header, and make our cell width at
21384         least large enough to cover the relation area.  This allows grids
21385         that have relations but no rows to render correctly.
21386         (DataGridPaintRowContents): same type of changes here.
21387         (SetDataSource): move back to always calling
21388         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
21389         navigating back through relations.
21390         (HitTest): handle the case where we have no cells but have
21391         relations.  Right now we generate a hit in cell 0 of whatever the
21392         row is, not sure if this is strictly correct, but it works for our
21393         purposes.
21394         
21395         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
21396         bother doing anything.
21397
21398 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
21399
21400         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
21401         early version of StatusStrip.  Not responsible for eaten
21402         application or firstborn children.
21403
21404 2006-11-06  Chris Toshok  <toshok@ximian.com>
21405
21406         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
21407         call GetTabRect with a -1 index.  Fixes #79847.
21408
21409 2006-11-06  Jackson Harper  <jackson@ximian.com>
21410
21411         * TreeNodeCollection.cs: Update scrollbars after clearing.
21412
21413 2006-11-06  Chris Toshok  <toshok@ximian.com>
21414
21415         * NumericUpDown.cs: fix the ToString method for some unit test
21416         love.
21417
21418 2006-11-06  Chris Toshok  <toshok@ximian.com>
21419
21420         * PropertyGrid.cs:
21421         - set the initial SelectedGridItem if we can.
21422
21423         - Exclude non-mergable properties only if we're merging > 1
21424         object.  Merging 1 object isn't really merging, obviously.
21425
21426         - Handle PropertySort.NoSort just like Alphabetical, which is
21427         wrong of course, but at least gets things on the screen.
21428         
21429         * PropertyGridView.cs:
21430         - Add method "FindFirstItem" which finds the first property grid
21431         item, so we can select it by default.
21432
21433         - make use of GridEntry.CanResetValue.
21434
21435         - Don't call RedrawBelowItemOnExpansion here anymore, the
21436         individual GridEntry's will do that.
21437
21438         - Remove the ITypeDescriptorContextImpl internal class.
21439         
21440         * GridEntry.cs:
21441         - this class needs to implement ITypeDescriptorContext, as it's
21442         what MS's PropertyDescriptorGridEntry does, which means we can
21443         remove the ITypeDescriptorContextImpl internal class from
21444         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
21445
21446         - keep a reference to our PropertyGridView, and move the call to
21447         RedrawBelowItemOnExpansion here from PGV.  This means
21448         programmaticly setting Expanded actually does something visible.
21449
21450         - add a CanResetValue() function which takes into account our
21451         possibly multiple "selected_objects" in the merged case.  Shifting
21452         PropertyGridView to use this method fixes another unreported
21453         crasher found running the test for #79829.
21454
21455         - when Top or Bounds is updated, make sure the PropertyGridTextBox
21456         is updated to reflect this.
21457
21458         * CategoryGridEntry.cs: the ctor takes the PGV now.
21459         
21460 2006-11-06  Jackson Harper  <jackson@ximian.com>
21461
21462         * TextControl.cs: These are 1 based.
21463         * TextBoxBase.cs: When setting the selected text, don't change the
21464         selected text tags, this is done by ReplaceText, just position the
21465         cursor at the end of the new text.
21466
21467 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
21468
21469         * ListView.cs: Allow label edit only when, when LabelEdit is
21470           set to true.
21471
21472 2006-11-06  Jackson Harper  <jackson@ximian.com>
21473
21474         * TextControl.cs: If a suitable wrapping position isn't found,
21475         just wrap right in the middle of a word.
21476
21477 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
21478
21479         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
21480           bug #79820.
21481
21482 2006-11-06  Jackson Harper  <jackson@ximian.com>
21483
21484         * TreeView.cs: Can't use the VisibleCount property when setting
21485         scrollbar heights, because this doesn't take into account whether
21486         or not the horz scrollbar just came visible.
21487
21488 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
21489
21490         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
21491         activated.  Fixes #79369, #79832.
21492
21493 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
21494
21495         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
21496           had to remove support for links that point to a directory. FileInfo
21497           returns no usefull information (means, the directory they point to)
21498           for such links. Replaced some empty string ("") with String.Empty.
21499
21500 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
21501
21502         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
21503         NullReferenceException when attempting to remove node that is not in
21504         collection. Throw NullReferenceException when null is passed to 
21505         Remove. Allow first element of the collection to be removed. Fixes
21506         bug #79831.  In GetEnumerator ().Current return null if positioned 
21507         before the first element of the collection. In GetEnumerator ().Reset,
21508         position before first element of the collection.
21509
21510 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
21511
21512         * PropertyGrid.cs: To match MS, remove default title and description
21513         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
21514         buttons.
21515
21516 2006-11-04  Chris Toshok  <toshok@ximian.com>
21517
21518         * Theme.cs: add a Clamp method, just for kicks.
21519
21520         * ThemeWin32Classic.cs: clamp all color components to [0..255].
21521
21522 2006-11-04  Chris Toshok  <toshok@ximian.com>
21523
21524         * Form.cs: if the form isn't visible, Close() does nothing.
21525
21526 2006-11-03  Chris Toshok  <toshok@ximian.com>
21527
21528         * Form.cs (Close): if the form is modal, don't Dispose of it, only
21529         Hide it.
21530         (WndProc): don't Dispose after handling the WM_CLOSE message.
21531
21532         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
21533         them as such, instead of using casts from Control to Form.  Also,
21534         don't Dispose of the modal dialog when we fall out of the loop -
21535         Close() it instead.
21536
21537         fixes bug #79813.
21538
21539 2006-11-03  Chris Toshok  <toshok@ximian.com>
21540
21541         * Control.cs (Dispose): only go through the dispose thing if we're
21542         @disposing, and we haven't already been disposed.  Fixes bug
21543         #79814.
21544
21545         * Form.cs: no reason to call "base.Dispose()" here instead of
21546         "Dispose()".
21547
21548 2006-11-03  Mike Kestner  <mkestner@novell.com>
21549
21550         * ComboBox.cs : use ToString instead of casts in AddItem for
21551         sorting functionality.  Fixes #79812.
21552
21553 2006-11-03  Chris Toshok  <toshok@ximian.com>
21554
21555         * Application.cs: pave the way for actually using the thread
21556         exception dialog.  it's ifdefed out at the moment.
21557
21558 2006-11-03  Chris Toshok  <toshok@ximian.com>
21559
21560         * ThreadExceptionDialog.cs: until we get a better layout, actually
21561         hide the details textbox and label when we shouldn't see them.
21562
21563 2006-11-03  Jackson Harper  <jackson@ximian.com>
21564
21565         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
21566         multiline textboxes anymore.  This method also determines the
21567         width/height of a textboxes canvas area.
21568         - Sorta a revert of the last patch.  For multiline just position
21569         the controls, then bail.  This way the scrollbar width won't be
21570         altered.
21571
21572 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
21573
21574         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
21575         it dont need.  Fixes #79537.
21576
21577 2006-11-02  Jackson Harper  <jackson@ximian.com>
21578
21579         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
21580         send the status after firing the DndOver event.
21581
21582 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21583
21584         * TrackBar.cs: Now orientation only switches height / width if
21585         the control's handle is created (Win32 does it like this). Also 
21586         fixed a typo in ToString() for a test to pass, changed the 
21587         exception thrown in set_LargeChange and set_SmallChange to 
21588         match Win32 behaviour, and added TrackBar tests to the unit 
21589         tests.
21590
21591 2006-11-02  Chris Toshok  <toshok@ximian.com>
21592
21593         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
21594         not _NET_WM_STATE_NO_TASKBAR.
21595
21596 2006-11-02  Jackson Harper  <jackson@ximian.com>
21597
21598         * TextControl.cs: Increment count by one, since in the update view
21599         count - 1 is used.
21600
21601 2006-11-02  Jackson Harper  <jackson@ximian.com>
21602
21603         * TextBoxBase.cs: Use client rectangle not bounds for checking if
21604         the mouse is in the client rectangle (duh).
21605
21606 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21607         
21608         * TrackBar.cs: Fixed trackbar jumping around when clicking
21609         on it - the trackbar was not detecting correctly at which
21610         side of the thumb the click was done. (fixes #79718)
21611
21612 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
21613
21614         * ListBox.cs: scroll visible area when change SelectedIndex to
21615         a non visible area.  Fixes #79481.
21616
21617 2006-11-01  Jackson Harper  <jackson@ximian.com>
21618
21619         * TextControl.cs: When replacing the selection move the selection
21620         start/end/anchor to the end of the new text.
21621
21622 2006-11-01  Jackson Harper  <jackson@ximian.com>
21623
21624         * XplatUIWin32.cs: When setting the parent change the controls
21625         visibility to it's visibility flag, not to it's old parents
21626         visibility (.Visible walks the parent chain).
21627
21628 2006-11-01  Chris Toshok  <toshok@ximian.com>
21629
21630         * XplatUIX11.cs: revert the #79790 fix, as the simple.
21631         XSetTransientForHint fix breaks paint .net's tool windows.  more
21632         work needed for that one.
21633
21634 2006-11-01  Chris Toshok  <toshok@ximian.com>
21635
21636         * ScrollBar.cs: throw ArgumentException instead of Exception in
21637         LargeChange/SmallChange setters.  fixes unit tests.
21638
21639 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
21640
21641         * ContainerControl.cs: reverted rev.67183 (which was itself
21642         a reversion of rev.66853... eh).
21643         
21644         * Control.cs: Fixes Reflector hang by changing Focus() call
21645         to what it was before rev.66643 (calling Select() here sets 
21646         ActiveControl, which in some situations calls back Focus and 
21647         eventually does a stack overflow). Temp fix.    
21648         Changes to GetNextControl() to not look for children to select when
21649         parent cannot be selectable (so it looks for siblings instead)  
21650         
21651 2006-10-31  Mike Kestner  <mkestner@novell.com>
21652
21653         * CheckedListBox.cs : off by one error in returned index from
21654         ObjectCollection.Add.  Fixes #79758.
21655
21656 2006-10-31  Chris Toshok  <toshok@ximian.com>
21657
21658         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
21659         calls for the textbox/spinner, to keep from recursing to the point
21660         where we crash.  Fixes #79760.
21661
21662 2006-10-31  Chris Toshok  <toshok@ximian.com>
21663
21664         * ListControl.cs (set_SelectedValue): don't throw exceptions on
21665         null/"" value, just return.  matches ms's behavior and fixes some
21666         failing tests.
21667
21668 2006-10-31  Chris Toshok  <toshok@ximian.com>
21669
21670         * Control.cs (set_Capture): make a logic a little easier to
21671         follow.
21672
21673         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
21674         if it's being destroyed.  A necessary fix surely, but a bandaid
21675         also, to fix the stuck capture problem in bug #78413.
21676
21677 2006-10-31  Chris Toshok  <toshok@ximian.com>
21678
21679         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
21680         convention of clearing hwnd.ClientRect when we set the
21681         width/height (so it'll be recalculated by Hwnd).
21682
21683 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
21684
21685         * ContainerControl.cs: reversed Contains check from
21686         ActiveControl due to hanging problems. This fix
21687         partly regresses #79667 (button does not have
21688         initial focus), so this might be a symptom for 
21689         a larger parenting problem (set_ActiveControl
21690         is being called but the child control does
21691         not have the parent set yet?)   
21692         
21693 2006-10-31  Mike Kestner  <mkestner@novell.com>
21694
21695         * MenuAPI.cs : fix keynav when menu is click activated.
21696
21697 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
21698
21699         * ToolStrip*: Version 0.2.
21700
21701         * MenuStrip.cs: Version 0.1.
21702
21703         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
21704
21705 2006-10-30  Chris Toshok  <toshok@ximian.com>
21706
21707         [ fixes the oversized notify icon issue in bug #79745 ]
21708         
21709         * NotifyIcon.cs: scale the icon down to the size we're given by
21710         the XplatUI layer (this would be faster if we did it once instead
21711         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
21712         since it's never invoked.
21713
21714         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
21715         pixels high by default, so let's hardcode our systray icon to that
21716         size.  The SYSTEM_TRAY protocol should really have a way for
21717         client apps to query for the correct icon size.. but oh well.  A
21718         couple of patches to deal with the screwy client_window ==
21719         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
21720         instance, and also make sure we don't XSelectInput twice).
21721
21722 2006-10-30  Chris Toshok  <toshok@ximian.com>
21723
21724         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
21725         recreating forms.  Control recreation is the bane of my existence.
21726         Fix it in a way that keeps everyone happy.
21727
21728 2006-10-30  Chris Toshok  <toshok@ximian.com>
21729
21730         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
21731         just non-CHILD ones.  otherwise sometimes scrollbars end up with
21732         client_windows not being resized to the proper size (ReportBuilder
21733         shows this extremely well).
21734
21735 2006-10-30  Chris Toshok  <toshok@ximian.com>
21736
21737         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
21738         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
21739         showing up in the gnome taskbar.  Fixes bug #79790.
21740
21741 2006-10-30  Chris Toshok  <toshok@ximian.com>
21742
21743         * ApplicationContext.cs: guard against a NRE.
21744
21745         * Application.cs: null out the old MainForm for the context, so we
21746         don't try to use it again once it's disposed.  Fixes bug #79783.
21747
21748 2006-10-30  Chris Toshok  <toshok@ximian.com>
21749
21750         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
21751         BindingContext, set the data source directly, otherwise do the
21752         lazy approach - the actual ListManager will be created when we get
21753         a BindingContext. Fixes bug #79700.
21754
21755 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21756
21757         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
21758           XplatUIX11.cs: Remove old 2 parameter SetVisible.
21759
21760         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
21761
21762 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21763
21764         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
21765         of SetVisible that allows a window to be shown, but not activated.
21766         This is needed on Windows for MenuStrip, and can probably be used
21767         with MainMenu and ComboBox to fix the focus stealing issues on
21768         Windows.
21769
21770         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
21771
21772 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
21773
21774         * PictureBox.cs: Fix the output of the ToString method.
21775
21776 2006-10-29  Chris Toshok  <toshok@ximian.com>
21777
21778         * Control.cs (get_TopLevelControl): fix bug #79781.
21779
21780 2006-10-29  Chris Toshok  <toshok@ximian.com>
21781
21782         * ListControl.cs (set_DataSource): throw Exception here, not
21783         ArgumentException, to match MS behavior.
21784
21785 2006-10-29  Chris Toshok  <toshok@ximian.com>
21786
21787         * Form.cs: remove the try-catch's around calls to GetWindowState.
21788         We can just check the return value.
21789
21790         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
21791         Instead return -1.
21792
21793         * XplatUI.cs: Add note about additional return value for
21794         GetWindowState.
21795
21796 2006-10-29  Chris Toshok  <toshok@ximian.com>
21797
21798         * Control.cs (CreateHandle): when we create our handle, we also
21799         create the handles of our child controls.  Fixes one of the
21800         Control unit tests (CH11).
21801
21802 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
21803
21804         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
21805
21806 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
21807
21808         * ThemeClearlooks.cs: A little speedup.
21809
21810 2006-10-27  Chris Toshok  <toshok@ximian.com>
21811
21812         * Control.cs: implement Control.FromChildHandle in a way that
21813         matches the docs (and fixes the failed test.)
21814
21815 2006-10-27  Chris Toshok  <toshok@ximian.com>
21816
21817         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
21818         comments).
21819
21820         * DataGrid.cs: implement ResetForeColor such that the tests
21821         succeed.
21822         
21823 2006-10-27  Chris Toshok  <toshok@ximian.com>
21824
21825         * ToolBarButton.cs: setting text/tooltiptext to null results in it
21826         being set to "".  Fixes bug #79759.
21827
21828 2006-10-27  Jackson Harper  <jackson@ximian.com>
21829
21830         * TextControl.cs: We need to clear the entire selection area when
21831         setting the start, otherwise multiline selections are still
21832         visible.
21833
21834 2006-10-26  Chris Toshok  <toshok@ximian.com>
21835
21836         * PropertyGridView.cs: 
21837
21838         - ifdef all the code specific to the double
21839         buffer case, and provide some alternatives in the non-doublebuffer
21840         code, which makes heavy use of XplatUI.ScrollWindow to move things
21841         around without having to invalidate (and cause flicker).  There
21842         are still some drawing problems in the non-doublebuffered case, so
21843         DOUBLEBUFFER is defined by default.
21844
21845         - Fix the way dropdowns are handled.  now we explicitly watch for
21846         the events which might cause the dropdown to close, and break out
21847         of the nested event loop there.  This gets rid of all Capture
21848         code, at the expense of the Msg special casing.  Seems to work,
21849         though, and fixes bug #79743.
21850
21851 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
21852         * Control.cs: SetIsRecreating now recreates implicitly added
21853         child controls as well. Finally fixes #79629. The flag passed to 
21854         SetIsRecreating has also been removed since it wasn't used.
21855         
21856 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21857
21858         * PageSetupDialog.cs: Clean some code, fix some bits, 
21859         add some checks, and add a printer sub-dialog.
21860
21861 2006-10-26  Chris Toshok  <toshok@ximian.com>
21862
21863         * PropertyGrid.cs: make set_SelectedObject call
21864         set_SelectedObjects, and move the duplicate logic to the
21865         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
21866
21867         * PropertyGridView.cs: hide the textbox when we get a
21868         SelectedObjectsChanged event.
21869
21870         Fixes bug #79748.
21871
21872 2006-10-26  Chris Toshok  <toshok@ximian.com>
21873
21874         * PropertyGridView.cs: deal with the type converter not supporting
21875         GetStandardValues() or GetStandardValues() returning null, which
21876         is does in the default case.  Fixes #79742.
21877
21878 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
21879
21880         * CheckedListBox.cs: nunit no longer crashes when selecting 
21881         Project/Edit menu option
21882         
21883 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
21884
21885         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
21886         is no menu selected. fixes #79739
21887
21888 2006-10-25  Chris Toshok  <toshok@ximian.com>
21889
21890         * PropertyGridView.cs: factor out the splitter invalidation code
21891         into the SplitterPercent setter, and for kicks implement the
21892         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
21893         amount in either direction.
21894
21895 2006-10-25  Chris Toshok  <toshok@ximian.com>
21896
21897         * PropertyGridView.cs: do some cleanup of the brush used to draw
21898         text - read only fields should be grayed out.  not sure how to do
21899         this with the textbox, though.  but the textbox's should also be
21900         readonly now at least.  Also, hide/show the textbox when resizing
21901         the control.
21902         
21903         * CursorConverter.cs: use System.Reflection when getting the
21904         properties of Cursors, as TypeDescriptor.GetProperties isn't
21905         returning static properties.
21906
21907 2006-10-25  Chris Toshok  <toshok@ximian.com>
21908
21909         * PropertyGridView.cs: factor out the up/down handling, and reuse
21910         it for page up/down.  also add End/Home support.
21911
21912 2006-10-25  Chris Toshok  <toshok@ximian.com>
21913
21914         * PropertyGridView.cs:
21915
21916         - ensure the selected grid item is visible in the scrolled area,
21917         fixes bug #79572.
21918
21919         - fix Keys.Down handling when you're on the last item in the
21920         propertygrid.
21921
21922 2006-10-25  Mike Kestner  <mkestner@novell.com>
21923
21924         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
21925         clicks too.  Fixes #79725.
21926
21927 2006-10-24  Chris Toshok  <toshok@ximian.com>
21928
21929         * PropertyGrid.cs: use property.Converter instead of
21930         TypeDescriptor.GetConverter(property.PropertyType), so we catch
21931         TypeConverters declared on the property as well as on the
21932         PropertyType.  Fixes bug #79678.
21933
21934 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
21935
21936         * MimeIcon.cs, Mime.cs:
21937           Fallback to the default platform handler if no shared mime info
21938           stuff exists (fixes #79693).
21939
21940 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21941         * ContainerControl.cs: Incorrect contains check in ActiveControl 
21942         from previous fix (duh).
21943
21944 2006-10-20  Chris Toshok  <toshok@ximian.com>
21945
21946         * PropertyGridView.cs: the dropdown should be MIN(number of items
21947         in list, 15).  Fixes #79551.
21948
21949 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21950         Fixes #79384, #79394, #79652, #79667
21951         * Application.cs: 
21952         
21953         - Modal windows are now destroyed in the proper order for windows
21954         
21955         * ContainerControl.cs:
21956         
21957         - ActiveControl setter has more conditions on when to return:
21958                 - if we're reselecting the active control, but it actually
21959                 didn't have focus (window hidden or some such), it runs
21960                 - if the active control being selected doesn't actually 
21961                 exist in the container, it returns
21962         
21963         * Form.cs
21964         
21965         - The ShowDialog now gets the current form as the owner when
21966         invoking without parameters, and correctly activates the owner 
21967         when returning
21968         
21969         * MessageBox.cs
21970         
21971         - MessageBox now catches the Escape key to exit
21972
21973 2006-10-20  Chris Toshok  <toshok@ximian.com>
21974
21975         * PropertyGridView.cs: fix a number of issues (bug #78565, and
21976         most of bug #79676):
21977
21978         - you can navigate around the property grid with the arrow keys.
21979
21980         - the dropdown is sized properly when the pg has a vertical
21981         scrollbar.
21982
21983         - fix the indentation for subentries, and properly select the
21984         entire label rect.
21985
21986         - fix the gray bar's drawing (only draw it to the last element,
21987         not for the height of the control.  Also make sure we draw that
21988         last horizontal grid line.
21989
21990         - use the same mechanism the datagrid uses wrt the editing textbox
21991         when scrolling/resizing/etc.  Namely, we hide it first, do the
21992         operation, then show it again (if it's still visible).
21993         
21994         - aggressively remove a lot of unnecessary refreshes (and also
21995         calls to Invalidate(). call more limited variants, and only redraw
21996         what we need.)
21997         
21998         * PropertyGrid.cs:
21999
22000         - when we're populating the merged collection, fill in the UI
22001         parent with either the passed in item, or the category item we
22002         create.
22003
22004         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
22005
22006         * GridItem.cs: drop some fully qualified names.
22007         
22008         * GridEntry.cs: add a "UIParent", which is basically the parent
22009         treenode.
22010
22011         * GridItemCollection.cs: add an IndexOf method.
22012
22013 2006-10-20  Mike Kestner  <mkestner@novell.com>
22014
22015         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
22016         a working win32 NC invalidation mechanism, we can't invalidate
22017         menus.  [Fixes #79705]
22018
22019 2006-10-20  Mike Kestner  <mkestner@novell.com>
22020
22021         * ListBox.cs : don't update the VScrollbar if the list is empty,
22022         just hide it.  [Fixes #79692]
22023
22024 2006-10-20  Jackson Harper  <jackson@ximian.com>
22025
22026         * RichTextBox.cs: Handle some special chars better, and don't skip
22027         the entire group when we encounter a special char that we don't
22028         handle correctly.
22029
22030 2006-10-18  Chris Toshok  <toshok@ximian.com>
22031
22032         * PropertyGridView.cs: address a number of issues from bug #79676,
22033         mostly of the cosmetic variety.
22034
22035         - The highlight rectangle for indented items not extends all the
22036         way to the left.
22037
22038         - Indented items aren't indented so much.
22039
22040         - the dropdown is properly sized width-wise if the pg has a
22041         vertical scrollbar.
22042
22043 2006-10-18  Chris Toshok  <toshok@ximian.com>
22044
22045         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
22046         systray stuff is rather convoluted to begin with.
22047
22048         systray icons are a single window for some reason (that I haven't
22049         figured out yet), and for them, client_window == whole_window.
22050         Given the way the tests are structured elsewhere to determine
22051         which paints are pending (client vs. nc), that situation will
22052         always yield PAINT, not NCPAINT.  So, if we have a pending
22053         nc_expose and no pending expose, remove the hwnd from the paint
22054         queue, and also set nc_expose_pending to false, to keep us from
22055         blocking further expose's adding the hwnd to the paint queue.
22056
22057         phew.  like i said, a rather convoluted change.  Fixes the
22058         notifyicon repaint issues in bug #79645.
22059
22060 2006-10-18  Chris Toshok  <toshok@ximian.com>
22061
22062         * Form.cs: when getting the backcolor of the form, don't get
22063         base.BackColor, as this allows parents to influence the background
22064         color.  This breaks mdi forms.  Instead, if the background_color
22065         is empty, return the default.
22066
22067 2006-10-18  Chris Toshok  <toshok@ximian.com>
22068
22069         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
22070         to being private instead of internal static.
22071
22072         * Control.cs: remove all the stupid ParentWaitingOnRecreation
22073         crap, it wasn't working for more deeply nested controls anyway,
22074         and we already have the is_recreating flag - use that instead.
22075         Before calling DestroyHandle in RecreateHandle, recurse through
22076         the control tree setting it to true.  this returns the recreate
22077         code to much of its original simplicity, while now guaranteeing we
22078         actually recreate everything we're supposed to.  This change gets
22079         fyireporting actually showing mdi children.
22080
22081 2006-10-17  Chris Toshok  <toshok@ximian.com>
22082
22083         * Form.cs: remove some debug spew, and collapse some duplicate
22084         code at the end of SetClientSizeCore.
22085
22086         * XplatUIX11.cs: 
22087         - add some more debug spew here too wrt Destroy handling.
22088         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
22089         in Control's handling of WM_DESTROY.
22090         - Remove the handling of zombie window DestroyNotifies from the
22091         event loop - we don't need it.  Now the only DestroyNotifies we
22092         actually handle are ones generated by X.
22093         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
22094         match gtk's (functioning) handling of this. This keep metacity
22095         from leaving droppings in the form of wm borders with no window
22096         contents all over the place.
22097
22098         * Control.cs:
22099         - add a bunch of debug spew wrt control recreation.
22100         - fix a bug where we weren't tracking Visible properly on
22101         recreated hwnds.
22102         - fixed the WM_PAINT double buffer handling to support re-entrant
22103         calls (yes, i know it's gross, but it's happening to us).
22104
22105 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22106         * ThemeWin32Classic.cs: changed drawing of selected days
22107         to make them look better.
22108
22109 2006-10-16  Chris Toshok  <toshok@ximian.com>
22110
22111         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
22112         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
22113
22114         * XplatUIX11.cs: move away from using hwnd.client_dc and
22115         hwnd.non_client_dc and on to a stack of dc's (and in window's
22116         case, PAINTSTRUCT's), so we can deal with nested Paint calls
22117         without puking or not disposing of Graphics objects.
22118
22119         * XplatUIOSX.cs: same.
22120
22121         * XplatUIWin32.cs: same.
22122
22123 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
22124
22125         * FileDialog.cs: Don't call on_directory_changed inside
22126           OnSelectedIndexChanged (it changes the SelectedIndex too).
22127           Instead move it to OnSelectionChangeCommitted.
22128
22129 2006-10-13  Chris Toshok  <toshok@ximian.com>
22130
22131         * XplatUIX11.cs: more Destroy work.  the current code does the
22132         following things, in order:
22133
22134         1. Enumerates all handles of all controls at or below the one
22135         being destroyed, in pre-order.  As it is doing this, it marks the
22136         handles as zombie and clears all references to them.
22137         
22138         2. calls XDestroyWindow on the window passed in.
22139
22140         3. SendMessage's WM_DESTROY to all he handles in the accumulated
22141         list.
22142
22143 2006-10-13  Chris Toshok  <toshok@ximian.com>
22144
22145         * XplatUIX11.cs: set hwnd.zombie to true before calling
22146         SendMessage (WM_DESTROY).  this keeps us from marking the new
22147         window a zombie, and also keeps us from calling sendmessage at
22148         all.
22149
22150 2006-10-13  Jackson Harper  <jackson@ximian.com>
22151
22152         * TextControl.cs: Do not show the caret and selection at the same
22153         time.  Reduces ugliness by 35%.
22154
22155 2006-10-13  Chris Toshok  <toshok@ximian.com>
22156
22157         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
22158         zombie after we do the recursive call, so we actually do call
22159         SendMessage on the children controls.
22160         (GetMessage): if we find a pending paint event for a zombie hwnd,
22161         remove the hwnd from the paint queue, or else it will always be
22162         there (and we'll effectively loop infinitely)
22163
22164 2006-10-13  Mike Kestner  <mkestner@novell.com>
22165
22166         * MenuItem.cs : add Selected format under keynav too.
22167         Fixes #79528.
22168
22169 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
22170
22171         * PropertyGrid.cs: Fixed some NRE's and small difference between our
22172         implementation and that of MS.
22173
22174 2006-10-13  Chris Toshok  <toshok@ximian.com>
22175
22176         * Control.cs (OnInvalidated) only futz with the invalid_region if
22177         the control is double buffered.  this fixes the apparent hang in
22178         the ListView unit tests.  Someone needs to make the
22179         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
22180
22181 2006-10-13  Chris Toshok  <toshok@ximian.com>
22182
22183         * PropertyGridView.cs:
22184
22185         - do a little refactoring so that only one place calls
22186         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
22187         else call that.  Also make it Refresh, since there are redraw bugs
22188         otherwise (we should take a look at that...)
22189
22190         - do a little more refactoring work to share the body of code
22191         involved with the drop down.  it was duplicated in the code
22192         dealing with the listbox handling and in the code dealing with the
22193         UITypeEditors.
22194
22195         - add a Capture to the dropdown form's control once it's
22196         displayed, and add a MouseDown handler that checks to make sure
22197         the position is inside the control.  If it's not, close the
22198         dropdown.  This fixes #78190.
22199
22200         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
22201         if the value is different than the initial value.
22202         
22203 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
22204
22205         * Control.cs: see #78650
22206         - Fixed GetNextControl for several cases:
22207                 - Changed FindFlatForward to return 
22208                 correct sibling control when more than one
22209                 control has same TabIndex as the currently 
22210                 focused one.
22211                 - Changed FindFlatBackward to loop children
22212                 from last to first and apply same logic as in
22213                 FindFlatForward
22214                 - Changed FindControlForward to search for
22215                 children when control is not a container
22216                 but has children, or search for siblings if
22217                 control is a container...
22218                 - Changed FindControlBackward   to continue
22219                 searching for child controls when hitting 
22220                 Panel-like parents
22221                 
22222         - Fixed Focus method to update ActiveControl
22223         (FocusTest.FocusSetsActive failure)
22224         
22225         * TabControl.cs:
22226         - Focus rectangle now refreshes when gaining
22227         or losing focus
22228         - Removed grab for Tab key on IsInputKey that 
22229         was keeping tab navigation from working (#78650)
22230
22231 2006-10-13  Chris Toshok  <toshok@ximian.com>
22232
22233         * PropertyGridView.cs:
22234         - Rewrite SetPropertyValue to loop over SelectedGridItem's
22235         SelectedObjects.
22236
22237         - Deal with GridItem.Value == null a few places.
22238
22239         * PropertyGrid.cs: 
22240         - replace the PopulateGridItemCollection with a pair of methods
22241         which compute the intersection of all the properties in the
22242         SelectedObjects array.  Fixes #79615.
22243
22244         - Throw ArgumentException from set_SelectedObjects if there's a
22245         null in the array.
22246
22247         - Add GetTarget method which can be used to traverse up the
22248         GridItem.Parent chain.  It depends on the assumption that
22249         selected_objects for different GridEntries are always in the same
22250         order (a safe assumption).  Use this method and loop over all the
22251         selected objects in the entry when calling RemoveValueChanged and
22252         AddValueChanged.
22253         
22254         * GridEntry.cs: Make this handle multiple selected objects.
22255         .Value returns null if not all the selected objects share the same
22256         value.
22257
22258 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
22259         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
22260           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
22261           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
22262           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
22263           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
22264         add additional functionality.
22265
22266 2006-10-12  Mike Kestner  <mkestner@novell.com>
22267
22268         * ErrorProvider.cs : new ToolTipWindow ctor sig.
22269         * HelpProvider.cs : new ToolTipWindow ctor sig.
22270         * ToolTip.cs : remove ToolTip param from Window sig since it is
22271         not used.
22272         * ToolBar.cs : add tooltip support.  Fixes #79565.
22273
22274 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22275
22276         * ComboBox.cs: move the events in set_SelectedIndex to 
22277         after the call to HighlightIndex in order to avoid 
22278         possible recursion and subsequent problems with the call
22279         to HighlightIndex and include a range check in 
22280         set_HighlightIndex. Fixes #79588
22281         
22282 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22283
22284         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
22285         to ui thread's settings instead of sunday. 
22286         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
22287
22288 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22289
22290         * DateTimePicker.cs
22291         * MonthCalendar.cs
22292         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
22293         and implement missing functionality (selecting different parts 
22294         of the date and edit them individually with the keyboard).
22295         
22296 2006-10-11  Chris Toshok  <toshok@ximian.com>
22297
22298         * Control.cs (OnInvalidated): fix NRE relating to last change.
22299
22300 2006-10-11  Chris Toshok  <toshok@ximian.com>
22301
22302         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
22303         atoms in _NET_WM_STATE here if the window is maximized.  We need
22304         to do this because we're *replacing* the existing _NET_WM_STATE
22305         property, so those atoms will be lost otherwise, and any further
22306         call to GetWindowState will return Normal for a window which is
22307         actually maximized.  Fixes #79338.
22308
22309 2006-10-11  Jackson Harper  <jackson@ximian.com>
22310
22311         * TextControl.cs: Special case for setting selection end to
22312         selection start, we basically kill the anchor.
22313         - some todo comments.
22314
22315 2006-10-11  Chris Toshok  <toshok@ximian.com>
22316
22317         * Control.cs: switch to using an "invalid_region" to track which
22318         parts of the image buffer need updating.  This is more code than
22319         the simple fix from r66532.  That version just attempted to always
22320         fill the entire buffer on redraw, which turns out to be
22321         inefficient when invalidating small rectangles.  This version
22322         simply adds the invalid rectangle to the invalid region.  When we
22323         get any WM_PAINT message we see if it can be filled using the
22324         image buffer, and if it can't (if the paint event's clip rectangle
22325         is visible in the invalid region) we first fill the image buffer.
22326         So, the image buffer is still a cache, we just fill it lazily.
22327
22328         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
22329         need it any longer.
22330
22331 2006-10-11  Chris Toshok  <toshok@ximian.com>
22332
22333         * XplatUIX11.cs (SetWindowPos): we need to update both position as
22334         well as size after calling XMoveResizeWindow.  This keeps us from
22335         ignoring future SetWindowPos calls.  Fixes the disappearing
22336         DateTimePicker in the ToolBarDockExample from bug #72499.
22337
22338 2006-10-11  Chris Toshok  <toshok@ximian.com>
22339
22340         * TextBoxBase.cs: reorder things a bit when it comes to
22341         resizing-causing-recalculation.  we were recalculating the
22342         document when our position was changed, which shouldn't happen.
22343         We only care about size changes.  Clear up some more redundant
22344         recalculation calls while I'm at it.  This makes the toolbar dock
22345         example snappy when you're just dragging toolbars around (since it
22346         causes a relayout whenever you move one.)
22347
22348 2006-10-11  Chris Toshok  <toshok@ximian.com>
22349
22350         * ToolBarButton.cs (get_Rectangle): this only returns
22351         Rectangle.Empty if Visible == false, or Parent == null.
22352         Parent.Visible doesn't matter.
22353
22354 2006-10-10  Chris Toshok  <toshok@ximian.com>
22355
22356         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
22357         by .net 1.1, so switch to an internal method instead.
22358
22359 2006-10-10  Chris Toshok  <toshok@ximian.com>
22360
22361         * Control.cs (WM_PAINT): when a control is double buffered we draw
22362         initially to the ImageBuffer and then copy from there.  But when a
22363         parent control which has child controls is double buffered, the
22364         initial drawing doesn't encompass the entire ClientRectangle of
22365         the parent control, so we end up with uninitialized bits (this is
22366         easily seen by dragging the top toolbar in
22367         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
22368         manually set the ClipRectangle of the paint_event (only the one we
22369         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
22370         of the nastiness in bug #72499.
22371
22372         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
22373         which we use in Control.cs's WM_PAINT handling.
22374
22375 2006-10-10  Jackson Harper  <jackson@ximian.com>
22376
22377         * TextBoxBase.cs: Finish off the autoscrolling stuff.
22378
22379 2006-10-10  Chris Toshok  <toshok@ximian.com>
22380
22381         * Cursor.cs: Apply a slightly different patch to the one suggested
22382         in #79609.
22383
22384 2006-10-10  Jackson Harper  <jackson@ximian.com>
22385
22386         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
22387         not the parent form.
22388         * TextControl.cs: use difference in old line count vs new count to
22389         calculate how many lines were added, this takes into account soft
22390         line breaks properly.
22391
22392 2006-10-10  Chris Toshok  <toshok@ximian.com>
22393
22394         * LinkLabel.cs: don't call MeasureCharacterRanges against a
22395         rectangle located at 0,0 and the size of the text.  Use
22396         ClientRectangle instead.  This fixes rendering of non-left aligned
22397         link labels.
22398
22399 2006-10-10  Jackson Harper  <jackson@ximian.com>
22400
22401         * TextBoxBase.cs: When we set the selection start position the
22402         caret.
22403         * TextControl.cs: Need to update the caret when we decrement it to
22404         zero.
22405         - Make sure that the selection_visible flag gets reset to false if
22406         the selection isn't visible.  Before this you could get it set to
22407         visible by changing the selection start, then changing the end to
22408         equal the start.
22409
22410 2006-10-09  Jackson Harper  <jackson@ximian.com>
22411
22412         * TreeView.cs: Don't update scrollbars when we aren't visible.
22413         * TreeNodeCollection.cs: Only need to update scrollbars if being
22414         added to an expanded visible node or the root node.
22415
22416 2006-10-09  Chris Toshok  <toshok@ximian.com>
22417
22418         * XplatUIX11.cs (SendMessage): fix NRE.
22419
22420 2006-10-09  Jackson Harper  <jackson@ximian.com>
22421
22422         * TextBoxBase.cs: Implement horizontal autoscrolling.
22423         * TextControl.cs: Add a movement types that allows moving forward
22424         and backwards without wrapping.
22425
22426 2006-10-09  Mike Kestner  <mkestner@novell.com>
22427
22428         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
22429         with focus "expansion" of labels.  Fixes #79532 and then some.
22430         * ThemeWin32Classic.cs : add LineLimit to ListView label format
22431         when wrapping.
22432
22433 2006-10-09  Jackson Harper  <jackson@ximian.com>
22434
22435         * TextBoxBase.cs: Set the default max values to MaxValue since
22436         we use the scrollbar for autoscrolling and the default value is
22437         100.  If we don't do this the caret won't keep up with typing
22438         after about 18 characters.
22439         * TextControl.cs: Make sure the selection is offset by the
22440         viewport x.  This fixes selection when using auto scrolling.
22441
22442 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
22443         
22444         * Form.cs: The active control should be selected after the 
22445         OnLoad so that any child control initialization that affects
22446         the selection is done. Fixes #79406
22447
22448 2006-10-06  Chris Toshok  <toshok@ximian.com>
22449
22450         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
22451         to have no evil effects.
22452
22453         - Stop selecting StructureNotifyMask on non-toplevel windows.
22454
22455           The only way children should be resized is by using the SWF api,
22456           and we already send WM_WINDOWPOSCHANGED messages in those cases.
22457           Toplevel windows can be interacted with via the window manager,
22458           and so we keep the input mask there.
22459
22460           The other event StructureNotifyMask gives us (that we care
22461           about) is DestroyNotify.  The code is already structured such
22462           that it assumes we won't be getting a DestroyNotify event for
22463           the window we pass to XDestroyWindow (which is what
22464           StructureNotifyMask is supposed to guarantee.)  So, that code
22465           shouldn't be affected by this either.
22466
22467         - Stop selecting VisibilityChangeMask altogether.
22468
22469           We weren't doing anything with the resulting events anyway.
22470         
22471         This vastly reduces the number of X requests and events we see
22472         when resizing/laying out a large ui.
22473
22474 2006-10-06  Chris Toshok  <toshok@ximian.com>
22475
22476         * ScrollableControl.cs (DisplayRectangle): we need to take into
22477         account the DockPadding regardless of whether or not auto_scroll
22478         == true.  rework this slightly to this effect, and fix bug #79606,
22479         and part of #72499 (you can now see the drag handles and drag
22480         toolbars around).
22481
22482 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
22483
22484         * ListViewItem.cs: Collections of selected and checked items are now
22485         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
22486         we mark the collection "dirty".
22487         * ListView.cs: Marked collections readonly. Modified UpdateSelection
22488         to only clear SelectedItems when a new item is selected and MultiSelect
22489         is enabled. CheckedItems and SelectedItems now subscribe to Changed
22490         event of ListViewItemCollection, and mark its list dirty whenever
22491         that event is fire. This allows us to return selected/checked items 
22492         in the same order as they are in the Items collection. This matches
22493         the MS behavior.
22494
22495 2006-10-06  Chris Toshok  <toshok@ximian.com>
22496
22497         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
22498         right mouse clicks.  Fixes bug #79593.
22499
22500 2006-10-06  Chris Toshok  <toshok@ximian.com>
22501
22502         * Splitter.cs: doh, fix splitters that don't want to cancel the
22503         movement when you drag them.  Also, impose the limits on the
22504         values we send to the SplitterMovingEvent.  Fixes #79598.
22505
22506 2006-10-06  Jackson Harper  <jackson@ximian.com>
22507
22508         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
22509         since we use this for auto scrolling also.
22510
22511 2006-10-05  Chris Toshok  <toshok@ximian.com>
22512
22513         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
22514         beginning to think that most datagrid column types don't need this
22515         method.  Fixes bug #79392.
22516
22517 2006-10-05  Chris Toshok  <toshok@ximian.com>
22518
22519         * DataGrid.cs: move back to a more lazy scheme for creating the
22520         CurrencyManager, so we aren't updating it every time you set
22521         either DataSource or DataMember.  Also, don't call
22522         RecreateDataGridRows if the currency manager hasn't changed.
22523
22524 2006-10-05  Chris Toshok  <toshok@ximian.com>
22525
22526         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
22527         emitted, SelectedIndex should already be updated.  Fixes bug
22528         #78929.
22529
22530 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
22531
22532         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
22533           ToolStripTextBox.cs: Initial commit.
22534         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
22535
22536 2006-10-05  Jackson Harper  <jackson@ximian.com>
22537
22538         * TabControl.cs: We need to invalidate the tab control area when
22539         new ones are added (duh).
22540
22541 2006-10-03  Chris Toshok  <toshok@ximian.com>
22542
22543         * Form.cs (ProcessDialogKey): if the focused control is in this
22544         form and is a button, call its PerformClick method here.  Fixes
22545         #79534.
22546
22547 2006-10-04  Jackson Harper  <jackson@ximian.com>
22548
22549         * TabPage.cs: Ignore setting of Visible, and add an internal
22550         method for setting the controls visibility.  TabPage's Visible
22551         property is a little strange on MS, this seems to make us
22552         compatible, and fixes cases where people set all the tab pages to
22553         visible.
22554         * TabControl.cs: Use the new internal setting on tab pages
22555         visibility.
22556
22557 2006-10-03  Mike Kestner  <mkestner@novell.com>
22558
22559         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
22560
22561 2006-10-03  Mike Kestner  <mkestner@novell.com>
22562
22563         * ListView.cs : use is_visible instead of Visible to check if 
22564         scrollbars should be placed/sized.  Also some max_wrap_width
22565         love for LargeIcon view.  [Fixes #79533]
22566
22567 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
22568
22569         * TextControl.cs :
22570           Make set_TextAlign() do actually update the align. Fixed #78403.
22571
22572 2006-10-03  Chris Toshok  <toshok@ximian.com>
22573
22574         * DataGrid.cs: fix a crash when switching datasources if the
22575         vertical scrollbar is at someplace other than Value = 0.  Also,
22576         reduce the number of recalculation passes we do in SetDataSource
22577         from 2 to 1.
22578
22579 2006-10-03  Jackson Harper  <jackson@ximian.com>
22580
22581         * TextBoxBase.cs: Move the if value the same bail check up, we
22582         don't want to empty the document if it is already empty, this
22583         seems to severly mess up the caret.  TODO: I should probably fix
22584         the empty statement to update teh caret somehow.
22585
22586 2006-10-03  Chris Toshok  <toshok@ximian.com>
22587
22588         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
22589         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
22590         reflection, an internal row type, properties on said type, etc.)
22591         will work with our datagrid.  Fixes #79531.
22592
22593 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
22594
22595         * FileDialog.cs: Don't crash if a path is not accessible
22596           (System.UnauthorizedAccessException). Fixes #79569.
22597         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
22598           a ':' too. Return unknown icon for those paths/files.
22599
22600 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
22601
22602         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
22603         GetContainerControl returns null.
22604
22605 2006-10-02  Chris Toshok  <toshok@ximian.com>
22606
22607         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
22608         call to XGetWindowAttributes instead of "handle".  fixes an X
22609         error using notifyicon after the NotifyIconWindow to Form base
22610         class switch.
22611
22612 2006-10-02  Chris Toshok  <toshok@ximian.com>
22613
22614         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
22615         server grab and looping we need to do to get down to the most
22616         deeply nested child window.
22617         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
22618         QueryPointer again after the WarpPointer so we can generate a
22619         proper (fake) MotionNotify event to be enqueued in the destination
22620         window's queue.
22621         (GetCursorPos): call QueryPointer.
22622
22623         Fixes #79556.
22624
22625 2006-10-02  Jackson Harper  <jackson@ximian.com>
22626
22627         * NotifyIcon.cs: Derive the notify icon from a form, so things
22628         like FindForm work on it.
22629         - Swallow the WM_CONTEXTMENU message, since that is generated on
22630         mouse down, and context menu is a mouse up kinda guy.  I believe
22631         the correct fix here is probably to make the notify icon entirely
22632         NC area, but this seems to work fine for anyone not manipulating
22633         WndProc.
22634
22635 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
22636
22637         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
22638           ToolStripItemCollection.cs, ToolStripLabel.cs,
22639           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
22640           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
22641           Initial implementation.
22642         * TextRenderer.cs: Provide padding to MeasureText.
22643
22644 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
22645
22646         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
22647         of ButtonBaseAccessibleObject. Fix bug #79552.
22648
22649 2006-10-02  Jackson Harper  <jackson@ximian.com>
22650
22651         * MdiWindowManager.cs: When maximizing use the containers client
22652         rect, not it's bounds, so nc area is accounted correctly.
22653         - Use the parent form's size for the menu position, since the
22654         client isn't always the full form size.
22655
22656 2006-10-01  Chris Toshok  <toshok@ximian.com>
22657
22658         * ScrollableControl.cs: make sure neither right_edge or
22659         bottom_edge are < 0, since they're used as LargeChange for the
22660         horiz/vert scrollbars respectively.  Fixes #79539.
22661
22662 2006-10-01  Chris Toshok  <toshok@ximian.com>
22663
22664         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
22665         the xplatuix11 code can cause us to destroy/recreate our handle.
22666
22667         * XplatUIX11.cs
22668         (SystrayAdd):
22669         - this code can be invoked many times for the same Hwnd.  Make
22670           sure we only destroy the client window once (the first time this
22671           method is called).  This fixes bug #79544.
22672         - Remove the call to the improperly bound XSync.  why we had two
22673           bindings to this, I will never know, but this call resulted in
22674           events being discarded from the queue(!).
22675         - correct a misunderstanding of _XEMBED_INFO - the second atom is
22676           not our current state but the state we wish to be in.  So, 0 if
22677           we don't want to be mapped.  Change it to 1.
22678         (SystrayRemove): The XEMBED spec makes mention of the fact that
22679         gtk doesn't support the reparent of client windows away from the
22680         embedder.  Looking at gtksocket-x11.c seems to agree with this.
22681         The only avenue we have for removing systray icons is to destroy
22682         them.  We don't want the handle to go away for good, though, so
22683         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
22684         #79545.
22685         
22686 2006-10-01  Chris Toshok  <toshok@ximian.com>
22687
22688         * Form.cs (WndProc): inline the native_enabled variable usage into
22689         the cases in which it's used.  Fixes #79536.
22690
22691 2006-09-29  Mike Kestner  <mkestner@novell.com>
22692
22693         * ListView.cs : toggle the selection state for ctrl clicks in 
22694         multiselect mode. [Fixes #79417]
22695
22696 2006-09-29  Mike Kestner  <mkestner@novell.com>
22697
22698         * ListView.cs : kill CanMultiSelect and refactor the selection
22699         code to support multiselection in the absence of mod keys. Steal
22700         arrow/home/end keys by overriding InternalPreProcessMessage to
22701         restore regressed keynav behavior.
22702         [Fixes #79416]
22703
22704 2006-09-29  Jackson Harper  <jackson@ximian.com>
22705
22706         * MdiClient.cs: Repaint the titlebars when the active window is
22707         changed.
22708
22709 2006-09-29  Chris Toshok  <toshok@ximian.com>
22710
22711         * Application.cs: when entering a runloop with a modal, make sure
22712         the hwnd is enabled.  Fixes #79480.
22713
22714 2006-09-29  Chris Toshok  <toshok@ximian.com>
22715
22716         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
22717         when ListManager.CanAddRows == false, bump us back one.
22718
22719         * DataGridColumnStyle.cs (ParentReadOnly): remove the
22720         listmanager.CanAddRows check.  This makes ArrayLists uneditable
22721         using a datagrid, which is not right.
22722         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
22723         is an IEditable, but call property_descriptor.SetValue regardless.
22724         fixes #79435.
22725
22726 2006-09-29  Chris Toshok  <toshok@ximian.com>
22727
22728         * DataGridBoolColumn.cs: we need to test equality in the face of
22729         possible null values (as is the case with the default NullValue).
22730         This patch keeps us from crashing in that case.
22731
22732 2006-09-29  Jackson Harper  <jackson@ximian.com>
22733
22734         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
22735         here, since it will get called for every node collection in the
22736         tree. This is now done in the treeview once the sorting is
22737         finished.
22738         * TreeView.cs: Recalculate the visible order, and update the
22739         scrollbars after sorting, set the top nope to the root so that the
22740         recalc actually works.
22741
22742 2006-09-29  Chris Toshok  <toshok@ximian.com>
22743
22744         * LinkLabel.cs: more handling of the default link collection in
22745         the face of LinkArea manipulation.  The default link collection
22746         contains 1 element (start=0,length=-1).  If the user sets LinkArea
22747         to anything and the links collection is the default, clear it.
22748         Then only add the link if its nonempty.  Fixes #79518.
22749
22750 2006-09-29  Chris Toshok  <toshok@ximian.com>
22751
22752         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
22753         piece correctly when we hit a '\n'.  Fixes #79517.
22754
22755 2006-09-29  Chris Toshok  <toshok@ximian.com>
22756
22757         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
22758         change the binding of gdk_init_check to take two IntPtr's, and
22759         pass IntPtr.Zero for both of them.  Fixes #79520.
22760
22761 2006-09-29  Mike Kestner  <mkestner@novell.com>
22762
22763         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
22764         [Fixes #78779]
22765
22766 2006-09-28  Jackson Harper  <jackson@ximian.com>
22767
22768         * XplatUIX11.cs: When translating NC messages make sure we go from
22769         whole window to screen, not client window to screen.
22770         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
22771         method doesn't exist
22772         - Skip over controls that aren't forms when arranging.
22773
22774 2006-09-28  Jackson Harper  <jackson@ximian.com>
22775
22776         * XplatUIWin32.cs: Clip the rect to the parent window.
22777         * XplatUIStructs.cs: Add clipping modes struct.
22778         * InternalWindowManager.cs: New private method that factors title
22779         bar heights in when calculating the pos of an NC mouse message.
22780         - Use SendMessage to force a paint when the form's size is changed
22781         instead of painting the decorations immediately.
22782         - Don't let the NC button click messages get to DefWndProc,
22783         because they will attempt to handle windowing themself, and this
22784         messes up z-order (it will put them in front of the scrollbars).
22785         * XplatUIX11.cs: Make sure that we don't reset window managers if
22786         we already have one (ie the window is an MDI window).
22787
22788 2006-09-28  Chris Toshok  <toshok@ximian.com>
22789
22790         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
22791         menu code really needs going over.
22792
22793 2006-09-27  Chris Toshok  <toshok@ximian.com>
22794
22795         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
22796         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
22797         window is maximizable.  So, we need to make sure that even if we
22798         clear the border/wm frame of those functions, they're still
22799         available (basically, we remove the decoration without removing
22800         the function).  Half the fix for #79338.
22801
22802 2006-09-27  Chris Toshok  <toshok@ximian.com>
22803
22804         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
22805         Fixes bug #79515.
22806
22807 2006-09-27  Chris Toshok  <toshok@ximian.com>
22808
22809         * Splitter.cs: reorder things a bit so that we don't actually
22810         draw/move the splitter until after calling OnSplitterMoving.  This
22811         lets users cancel/disallow the movement by explicitly setting
22812         event.SplitX/SplitY.  Fixes #79372.
22813
22814 2006-09-27  Jackson Harper  <jackson@ximian.com>
22815
22816         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
22817         because it is most likely on a window being destroyed, and that
22818         will give us an X11 error.
22819
22820 2006-09-27  Chris Toshok  <toshok@ximian.com>
22821
22822         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
22823         the dropdown button now toggles between showing and hiding the
22824         dropdown.  Also, get rid of dropdown_form_showing and just use
22825         dropdown_form.Visible.  We still don't do a grab, but I'll leave
22826         that part to someone who has handled Capture-fu before.
22827
22828 2006-09-27  Chris Toshok  <toshok@ximian.com>
22829
22830         * DataGrid.cs: return false if alt isn't pressed when '0' is
22831         pressed.  this keeps the '0' key from being swallowed, and fixes
22832         bug #79350.
22833
22834 2006-09-27  Chris Toshok  <toshok@ximian.com>
22835
22836         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
22837         Calling Refresh (in response to a scrollbar event) screws up the
22838         scrollbar painting.  Fixes bug #78923.
22839
22840 2006-09-27  Chris Toshok  <toshok@ximian.com>
22841
22842         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
22843         then insert into hashtable" blocks threadsafe.
22844
22845 2006-09-27  Chris Toshok  <toshok@ximian.com>
22846
22847         * MessageBox.cs (CreateParams): the styles should be |'ed with our
22848         baseclass's, since otherwise the
22849         ControlBox/MinimizeBox/MaximizeBox assignments above have no
22850         effect.  This gets the close button back in messageboxes.
22851
22852 2006-09-27  Chris Toshok  <toshok@ximian.com>
22853
22854         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
22855         flag, not just != 0.  this makes flags that are actually multiple
22856         bits (like WS_CAPTION) work.  fixes bug #79508.
22857
22858 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
22859
22860         * PageSetupDialog.cs: add support for getting and settings the 
22861         paper size, source and orientation.
22862
22863 2006-09-26  Chris Toshok  <toshok@ximian.com>
22864
22865         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
22866         and caption == "", we need to remove the resize handles as well as
22867         the title bar.
22868
22869         * Control.cs (set_Text): turns out that setting Text on a form
22870         should change the WM styles on the window, since if ControlBox ==
22871         false, the only way to get a window border is to have a non-""
22872         Text property.  check winforms/forms/text.cs for an example.  so,
22873         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
22874         update both window styles and title.  This fixes a lot of dialogs
22875         (including the preferences dialog in MonoCalendar.)
22876
22877 2006-09-26  Chris Toshok  <toshok@ximian.com>
22878
22879         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
22880         control isn't a Form), call Win32ShowWindow to hide the window,
22881         but don't update the control Visible property.  When we reparent
22882         back to a parent control, call SetVisible in order for the
22883         window's visibility to be reinstated.
22884
22885         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
22886         the FosterParent.
22887
22888         * Control.cs (ControlCollection.Remove): remove that value.Hide()
22889         call for good, since it breaks MonoCalendar (and other things I'm
22890         sure.) Also, set all_controls to null *after* the owner calls,
22891         which end up regenerating it.
22892         (ChangeParent): allow new_parent to be == null, passing
22893         IntPtr.Zero down to XplatUI.
22894
22895         this fixes #79294 the right way.
22896
22897 2006-09-26  Mike Kestner  <mkestner@novell.com>
22898
22899         * GridEntry.cs : internal SetParent method.
22900         * PropertyGrid.cs : attach to property changed on the proper
22901         target if we have a hierarchical grid with subobjects. Setup
22902         GridItem.Parent for hierarchical items.
22903         * PropertyGridView.cs : Set value on the correct target for
22904         hierarchical grids. [Fixes #78903]
22905
22906 2006-09-26  Chris Toshok  <toshok@ximian.com>
22907
22908         * Control.cs (ChildNeedsRecreating): this should return true if
22909         either we're being recreated and the child is in our list, or our
22910         parent is waiting for our recreation.
22911
22912 2006-09-26  Chris Toshok  <toshok@ximian.com>
22913
22914         * Control.cs (ControlCollection.Remove): reinstate the
22915         value.Hide() call as suggested in bug #79294.
22916
22917 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
22918
22919         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
22920         coordinates (versus a relative move).
22921
22922 2006-09-26  Chris Toshok  <toshok@ximian.com>
22923
22924         * Control.cs: rework child recreation a little bit.  It turns out
22925         that we race between the DestroyNotify the WM_DESTROY message.  If
22926         the parent gets its DestroyNotify before the child gets the
22927         WM_DESTROY message, the child ends up not recreating (since the
22928         parent finishes its recreation on DestroyNotify, and the child
22929         checks ParentIsRecreating.)
22930
22931         So, instead we store off a list of all the child controls which
22932         need to be recreated when the parent control starts to recreate
22933         itself.  Then, when child controls get their WM_DESTROY message we
22934         check to see if they're in the parent's pending recreation list,
22935         and if so, we recreate.  This removes all dependency on ordering
22936         from the code and fixes the initial MonoCalendar upgrade dialog.
22937         
22938 2006-09-26  Jackson Harper  <jackson@ximian.com>
22939
22940         * TextControl.cs: Use the Line to get the length of the line,
22941         since soft line breaks can change the end line.
22942
22943 2006-09-26  Chris Toshok  <toshok@ximian.com>
22944
22945         * Control.cs (ControlCollection.AddImplicit): don't add the
22946         control again if it's already in one of our lists.  This keeps us
22947         from adding controls over and over again for comboboxes when their
22948         handle gets recreated (as the combobox adds implicit controls in
22949         OnHandleCreated).  Fixes the X11 errors in bug #79480.
22950
22951 2006-09-26  Jackson Harper  <jackson@ximian.com>
22952
22953         * TextControl.cs: When deleting characters make sure that any
22954         orphaned zero lengthed tags get deleted.
22955         - Fix ToString for zero lengthed tags.
22956
22957 2006-09-25  Jackson Harper  <jackson@ximian.com>
22958
22959         * TextControl.cs: When getting a tag at the location there can be
22960         multiple tags at the same spot, these are 0-lengthed tags that
22961         appear when extra formatting has been stuck in a location.  We
22962         need to pull out the last of these 0 lengthed tags.
22963
22964 2006-09-25  Jackson Harper  <jackson@ximian.com>
22965
22966         * TextControl.cs: Fix print out in debug method.
22967         * TextBoxBase.cs: When text is set bail if we are setting to the
22968         previous value.
22969         
22970 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
22971
22972         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
22973           It is now possible to change the selected index in a FontXXXListBox
22974           with the up and down arrow keys from the FontXXXTextBoxes.
22975           Also, send the FontXXXTextBox mouse wheel event to the corresponding
22976           FontXXXListBoxes to match ms.
22977
22978 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
22979
22980         * SystemInformation.cs: Return a clone of the theme's MenuFont because
22981         anyone can dispose it, anytime. All other properties returns enums, 
22982         structs or basic types so they don't need such tricks.
22983
22984 2006-09-22  Jackson Harper  <jackson@ximian.com>
22985
22986         * XplatUI.cs:
22987         * XplatUIWin32.cs:
22988         * Clipboard.cs:
22989         * DataFormats.cs:
22990         * XplatUIOSX.cs:
22991         * XplatUIDriver.cs: Update interface to add a primary selection
22992         flag, so the driver can use the primary selection buffer if
22993         needed.
22994         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
22995
22996         * RichTextBox.cs: We need to supply the data object to paste now
22997         (so we can choose to supply CLIPBOARD or PRIMARY).
22998         * TextBoxBase.cs: Supply data object to paste (see above).
22999         - Middle click uses the primary selection data object.
23000         
23001 2006-09-21  Chris Toshok  <toshok@ximian.com>
23002
23003         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
23004         of SetWMStyles.  It's still a rat's nest and is largely
23005         order-dependent which I dislike immensely.  This also fixes the X
23006         button disappearing from toplevel forms.
23007
23008 2006-09-21  Mike Kestner <mkestner@novell.com>
23009
23010         * ListBox.cs: move Jordi's click/dblclick raising code to the
23011         mouse up handler.
23012
23013 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
23014
23015         * ListBox.cs: Fixes 79450
23016
23017 2006-09-21  Mike Kestner <mkestner@novell.com>
23018
23019         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
23020         to deal with people updating the TreeNodeCollection after the tree
23021         is disposed.  "Fixes" 79330.
23022
23023 2006-09-20  Jackson Harper <jackson@ximian.com>
23024
23025         * TextControl.cs: Push the cursor record onto the undo stack
23026         before the delete action. This fixes 78651.
23027
23028 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
23029
23030         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
23031         CreateParams. Fixes 79329.
23032
23033 2006-09-19  Chris Toshok  <toshok@ximian.com>
23034
23035         * XplatUIX11.cs: a couple of blanket code massage passes to clean
23036         things up a bit.  First, get rid of the NetAtoms array (and the NA
23037         enum), and just embed the atoms as static fields.  Also, add a
23038         couple of functions (StyleSet and ExStyleSet) to clean up all the
23039         bitmask testing of styles.
23040
23041         * X11Structs.cs: remove the NA enum, not needed anymore.
23042         
23043 2006-09-19  Chris Toshok  <toshok@ximian.com>
23044
23045         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
23046         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
23047         added cleanup to get MessageBox titles appearing again, which were
23048         broken by my earlier fix for caption-less/ControlBox-less windows.
23049
23050 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
23051
23052         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
23053           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
23054           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
23055           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
23056           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
23057           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
23058           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
23059           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
23060           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
23061           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
23062           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
23063             Inital import.
23064         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
23065           ToolStripButton.cs: Stubs needed for above.
23066         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
23067
23068 2006-09-15  Chris Toshok  <toshok@ximian.com>
23069
23070         * XplatUIX11.cs:
23071         - make the MessageQueues hashtable Synchronized.
23072         
23073         - SendMessage: if the Hwnd is owned by a different thread, use the
23074         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
23075         thread.  Fixes bug #79201.
23076
23077 2006-09-15  Chris Toshok  <toshok@ximian.com>
23078
23079         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
23080         ControlBox == false, we disallow maximize/minimize/close.  If the
23081         form Caption is "" we also disallow move (and get rid of the Title
23082         decoration).  Unfortunately, regardless of how things are set,
23083         we're stuck with the Title and WM menu.
23084
23085 2006-09-15  Chris Toshok  <toshok@ximian.com>
23086
23087         * Application.cs: add locking around the static message_filters
23088         ArrayList, part of #79196.
23089
23090 2006-09-15  Chris Toshok  <toshok@ximian.com>
23091
23092         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
23093         Form.ControlBox == false, the window has no titlebar nor resize
23094         handles.  fixes bug #79368.
23095
23096 2006-09-15  Chris Toshok  <toshok@ximian.com>
23097
23098         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
23099         >= 0.  Fixes bug #79370.
23100
23101 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
23102         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
23103         * Control.cs:
23104             Add properties: LayoutEngine, Margin, DefaultMargin.
23105             Add method: GetPreferredSize.
23106             Move layout logic from PerformLayout to layout engines. 
23107
23108 2006-09-13  Chris Toshok  <toshok@ximian.com>
23109
23110         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
23111         fix for #79326 broke #78718, so this change addresses that.
23112
23113         - in SendWMDestroyMessages remove the call to
23114         CleanupCachedWindows, since we might be recreating the control and
23115         need to maintain the references to right Hwnd handles.  Also, set
23116         the zombie flag to true for each of the children in the hierarchy
23117         instead of calling hwnd.Dispose.  This will cause GetMessage to
23118         ignore all events for the window except for DestroyNotify.
23119
23120         - In GetMessage, ignore messages except for DestroyNotify for
23121         zombie hwnds.
23122         
23123         * Control.cs: revert the is_recreating fix from the last
23124         ChangeLog.  It's definitely "right", but it breaks switching from
23125         an MDI form to a non-MDI form.  Will need to revisit that.
23126
23127         * Hwnd.cs: add a zombie flag, which means "the
23128         client_window/whole_window handles are invalid, but we're waiting
23129         for the DestroyNotify event to come in for them".  Set the flag to
23130         false explicitly if setting WholeWindow/ClientWindow, and also
23131         when Disposing.
23132         
23133 2006-09-13  Chris Toshok  <toshok@ximian.com>
23134
23135         * XplatUIX11.cs: rework window destruction slightly.
23136
23137         - when destroying the windows associated with a control, we don't
23138         need 2 separate XDestroyWindow calls.  Just the one for the
23139         whole_window (or for client_window if whole_window is somehow
23140         IntPtr.Zero -- can this happen?) is enough.
23141
23142         - reworked SendWMDestroyMessages slightly, so we always dispose
23143         the child control hwnd's after sending the messages.
23144         
23145         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
23146         the two places it was used (one was even using hwnd.Handle and the
23147         other hwnd.client_window.  ugh), adding another call in
23148         SendWMDestroyMessages.  We need this new call because now the
23149         DestroyNotify events in the queue will be ignored for the child
23150         controls (as their hwnd's were disposed, and the window id's
23151         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
23152
23153         - this fixes bug #79326.
23154
23155 2006-09-13  Chris Toshok  <toshok@ximian.com>
23156
23157         * Control.cs: don't always set is_recreating to false at the end
23158         of RecreateHandle, since sometimes we're not done (and won't be
23159         until WndProc handles the WM_DESTROY message).  Also, set
23160         is_recreating to false in the WM_DESTROY handling code.  Part of
23161         the fix for bug #79326.
23162
23163 2006-09-13  Miguel de Icaza  <miguel@novell.com>
23164
23165         * X11DesktopColors.cs: Start the droppage of debugging messages.
23166
23167         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
23168
23169 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
23170
23171         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
23172
23173 2006-09-12  Chris Toshok  <toshok@ximian.com>
23174
23175         * DataGrid.cs (get_ListManager): if the list_manager is null, try
23176         to create it using SetDataSource.  Fixes bug #79151.
23177
23178 2006-09-11  Chris Toshok  <toshok@ximian.com>
23179
23180         * XEventQueue.cs: add a DispatchIdle property.
23181
23182         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
23183         either the queue is null, or the queue has DispatchIdle set to
23184         true.
23185         (DoEvents): set queue.DispatchIdle to false around the
23186         peek/translate/dispatch message loop in this method.  This keeps
23187         Application.Doevents from emitting idle events.  Part of the fix
23188         for #78823.
23189
23190 2006-09-11  Chris Toshok  <toshok@ximian.com>
23191
23192         * DataGrid.cs (set_DataSource): make this work for both the
23193         winforms/datagrid test and ReportBuilder.  It seems as though when
23194         we've created a ListManager (or maybe it's if we have a
23195         BindingContext?), when we set the DataSource it clears the
23196         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
23197         #79333.
23198
23199 2006-09-11  Chris Toshok  <toshok@ximian.com>
23200
23201         * XplatUIX11.cs: deal with queue being null, which happens in all
23202         the Clipboard functions.  Fixes one of the two problems mentioned
23203         in #78612.
23204
23205 2006-09-11  Chris Toshok  <toshok@ximian.com>
23206
23207         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
23208         button on various spots (including outside the menu) works closer
23209         to MS, and doesn't crash.  Fixes #79343.
23210
23211 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
23212
23213         * ListView.cs: Do not initialize item_sorter in init. To match MS,
23214         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
23215         and the internal comparer is set. When a new ListViewItemSorter is set,
23216         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
23217         was specified. No further processing is necessary if SortOrder is set
23218         to it's current value. If Sorting is modified to None, and View is
23219         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
23220         (either custom or our internal ItemComparer) to null, on 1.0 profile
23221         only set item_sorter to null if its our internal IComparer. If Sorting
23222         is modified to Ascending or Descending, then use our internal IComparer
23223         if none is set, and if the current IComparer is our internal one then:
23224         on 2.0 profile always replace it with one for new Sorting, and on 1.0
23225         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
23226         Enum.IsDefined to verify whether a valid View value is specified in
23227         its setter. Automatically sort listview items when listview is
23228         created. In Sort, do nothing if ListView is not yet created, or if
23229         no item_sorter is set (no Sorting was set, Sorting was explicitly set
23230         to None or ListViewItemSorter was set to null). Added Sort overload
23231         taking a bool to indicate whether the ListView should be redrawn when
23232         items are sorted (we use this in ListViewItemCollection to avoid double
23233         redraws). Modified our internal IComparer to take the sort order into
23234         account. In Add and AddRange methods of ListViewItemCollection, also
23235         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
23236         view), but use overload with noredraw option to avoid double redraw.
23237         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
23238         true when View is Tile, and do the same when attempting to set View to
23239         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
23240         for selected/checked indices, as it involves overhead when sorting is
23241         done while these collections are not used all that often. Instead
23242         we'll build the indices on demand. Modified IList implementation of
23243         CheckedIndexCollection to use public methods if object is int.
23244         Modified CheckedListViewItemCollection to hide checked items if
23245         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
23246         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
23247         IList implementation in SelectedIndexCollection to use public methods
23248         if object is int. Modified SelectedListViewItemCollection to hide
23249         selected items if listview is not yet created.
23250         * ListViewItem.cs: CheckedIndices list no longer needs to be
23251         maintained separately (see ListView changes). Also clone font, fixes
23252         test failure.
23253
23254 2006-09-11  Mike Kestner  <mkestner@novell.com>
23255
23256         * ComboBox.cs: if we are updating the contents of the currently
23257         selected index, refresh the control or the textbox selection.
23258         [Fixes #79066]
23259
23260 2006-09-11  Mike Kestner  <mkestner@novell.com>
23261
23262         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
23263         the 'specified' logic has been moved there.  This seems like a bug 
23264         in Control.cs, since our current SetBoundsCore completely ignores 
23265         the specified parameter.  Peter's commit seems to indicate that is 
23266         the way the MS control implementation works.  [Fixes #79325]
23267
23268 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
23269
23270         * XplatUI.cs: Set default_class_name to be composed
23271         of current domain id. This allows MWF to be loaded in multiple
23272         domains on Win32.
23273
23274 2006-09-09  Miguel de Icaza  <miguel@novell.com>
23275
23276         * X11Keyboard.cs: If we are unable to obtain the input method, do
23277         not call CreateXic to create the input context.   Should fix
23278         #78944/79276.
23279
23280 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
23281
23282         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
23283           Simplified gnome support by adding more pinvokes to get the
23284           icon for a file or mime type.
23285
23286 2006-09-08  Jackson Harper  <jackson@ximian.com>
23287
23288         * MenuAPI.cs: Deslect popup context menu items before closing the
23289         window, so that you don't see the previously selected item
23290         selected when you reopen the menu.
23291         * TextControl.cs: Update the cursor position even if we don't have
23292         focus.  This fixes typing in things like the ComboBox.  I'm not
23293         totally sure we should always set the visibility if we don't have
23294         focus, but couldn't find any corner cases where the cursor showed
23295         up when it shouldn't.
23296
23297 2006-09-08  Chris Toshok  <toshok@ximian.com>
23298
23299         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
23300         our arrays are length 256.  & 0xff before indexing.  Fixes the
23301         crash in bug #78077.
23302         
23303 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23304
23305         * ThemeWin32Classic.cs: 
23306         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
23307         is true. Handle that check box too.
23308
23309 2006-09-07  Chris Toshok  <toshok@ximian.com>
23310
23311         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
23312         79244.
23313
23314 2006-09-07  Chris Toshok  <toshok@ximian.com>
23315
23316         * Control.cs: in set_BackColor only do the work if
23317         background_color != value.
23318
23319         * XplatUIX11.cs: move the clearing of invalid areas (both client
23320         and nc) to the same block of code where we set (nc_)expose_pending
23321         to false.  That is, move it from PaintEventEnd to PaintEventStart,
23322         so things that cause invalidates from within OnPaint will trigger
23323         another call to OnPaint.  Fixes bug #79262.
23324
23325 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
23326
23327         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
23328         * FileDialog.cs: Fix typo
23329
23330 2006-09-07  Jackson Harper  <jackson@ximian.com>
23331
23332         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
23333         for tab pages if they have any.
23334
23335 2006-09-06  Mike Kestner  <mkestner@novell.com>
23336
23337         * Splitter.cs: use the "current" rect when finishing drag handle
23338         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
23339
23340 2006-09-06  Mike Kestner  <mkestner@novell.com>
23341
23342         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
23343         support offset splitters. [Fixes #79298]
23344
23345 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
23346
23347         * Mime.cs: Fixed a bug that could override the global mime type
23348           result.
23349
23350 2006-09-05  Jackson Harper  <jackson@ximian.com>
23351
23352         * TabControl.cs: Better calculation method for setting the slider
23353         pos. Prevents crashes on really wide tabs.
23354         - Draw Image on tab pages if an image list is used.
23355
23356 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23357
23358         * MonthCalendar.cs: When Font changes, the Size should be
23359         updated to fit the new font's space requirements.
23360
23361 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
23362
23363         * ListBox.cs: If the items are cleared with Items.Clear set
23364           top_index to 0.
23365
23366 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23367
23368         * MonthCalendar.cs: Handle arrow keys as input keys. Also
23369         fire DateChanged event instead of DateSelected event when
23370         the date was changed by keyboard interaction.
23371
23372 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23373
23374         * DateTimePicker.cs: Handle DateChanged for the associated
23375         month_calendar control, and set month_calendar.Font from 
23376         OnFontChanged method, as well as resize the height of the
23377         control when needed. Make PreferredHeight proportional.
23378
23379 2006-09-01  Chris Toshok  <toshok@ximian.com>
23380
23381         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
23382         properties.
23383
23384         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
23385
23386 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
23387
23388         * FileDialog.cs: Set ClientSize instead of window size, to allow space
23389           for decorations (Fixes #79219)
23390
23391 2006-09-01  Mike Kestner  <mkestner@novell.com>
23392
23393         * ComboBox.cs: first stab at sorting plus some selection handling
23394         fixes to bring us more in line with MS behavior.  Also switches back
23395         to index based selection.  Alternative patches for index-based 
23396         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
23397         and latency@gmx.de on bug 78848.  I assume they were similar to this
23398         code I've had simmering in my tree forever.
23399         [Fixes #78848]
23400
23401 2006-09-01  Chris Toshok  <toshok@ximian.com>
23402
23403         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
23404         when setting list position guard against ending up with a -1 index
23405         (the other part of the fix for #78812).  Should probably make sure
23406         we don't need the analogous fix in the ItemDeleted case.
23407
23408         * DataGrid.cs:
23409         - in SetDataSource, work around the fact that the way
23410         OnBindingContextChanged is invoked will cause us to re-enter this
23411         method.  I'll remove the hack once I investigate
23412         OnBindingContextChanged.
23413
23414         - fix the logic in set_DataSource and set_DataMember (basically
23415         what to do if the other of the two is null.)
23416         
23417         - in OnListManagerItemChanged, we need to take into account the
23418         edit row when deciding whether or not to call RecreateDataGridRows
23419         (part of the fix for #78812).
23420
23421 2006-09-01  Jackson Harper  <jackson@ximian.com>
23422
23423         * Splitter.cs: Don't do anything if there is no control to affect
23424         (prevents us from crashing in weird tet cases).
23425         * TreeView.cs: Bounding box for the mouse movement reverting
23426         focus/selection back to previously selected node.  This matches
23427         MS, and makes the tree a lot more useable.
23428         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
23429         use clipping so they are not drawn.  This fixes when the control
23430         is set to have a transparent background, or if it was over an
23431         image.
23432
23433 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
23434
23435         * MimeIcon.cs: Improved handling for reading default icons when
23436           using gnome (2.16 made it necessary). Check and read svg icons
23437           first, then 48x48 and then 32x32 icons.
23438
23439 2006-08-31  Chris Toshok  <toshok@ximian.com>
23440
23441         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
23442         visible.
23443
23444         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
23445         ProcessKeyPreview.  Fixes part of #77806.
23446
23447         * DataGrid.cs: big patch.
23448
23449         - revert the queueing up of DataSource/DataMember if inside
23450         BeginInit/EndInit calls.  That's not the way the datagrid achieves
23451         its delayed databinding.  Instead, call SetDataSource in
23452         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
23453         #78811.
23454
23455         - Also, it wasn't mentioned in #78811, but the test case exhibits
23456         behavior that was lacking in our datagrid implementation - Columns
23457         that have mapping names that don't exist in the datasource's
23458         properties aren't shown.  Yuck.  To fix this I added the bound
23459         field to the column style, and basically any calculation to figure
23460         out anything about columns uses a loop to find the bound columns.
23461         still need to investigate if I can cache an array of the bound
23462         columns or if the indices must be the same.
23463
23464         - When setting CurrentCell, we no longer abort if the cell being
23465         edited was in the add row.  This fixes the other part of #77806.
23466
23467         - The new code also fixes #78807.
23468         
23469         * ThemeWin32Classic.cs: perpetrate the same disgusting
23470         column.bound field hack, and only render bound fields.
23471
23472 2006-08-31  Chris Toshok  <toshok@ximian.com>
23473
23474         * DataGridColumnStyle.cs: add bound field.  this field is true if
23475         the datasource has a property corresponding to the mapping name.
23476
23477         * DataGridTableStyle.cs: set the bound field on the column styles
23478         depending on whether or not we have a column for that property.
23479
23480 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
23481
23482         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
23483           splitter control (fixes #79228)
23484
23485 2006-08-31  Chris Toshok  <toshok@ximian.com>
23486
23487         * DataGridColumnStyle.cs: we need to delay the assignment of
23488         property descriptor until the last possible moment due to the lazy
23489         databinding stuff in the datagrid.  Also, fix the exceptions
23490         thrown by CheckValidDataSource to match MS.
23491
23492 2006-08-31  Jackson Harper  <jackson@ximian.com>
23493
23494         * Form.cs: When activated select the active control, if there is
23495         no active control, we select the first control.
23496         * XplatUIX11.cs: If there is no focus control when we get a
23497         FocusIn event, find the toplevel form and activate it.  This
23498         occurs when you popup a window, it becomes the focus window, then
23499         you close that window, giving focus back to the main window.
23500
23501 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23502
23503         * MonthCalendar.cs: 
23504         * ThemeWin32Classic.cs: Cache Font in bold style, as well
23505         as StringFormat with Center alignments in MonthCalendar,
23506         instead of creating new ones when drawing the control. 
23507         Also, draw the month name in bold style.
23508
23509 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
23510
23511         * Control.cs:
23512           - PerformLayout(): It would seem MS performs the fill even if the 
23513             control is not visible (part of #79218 fix)
23514           - ResetBackColor(): Use the setter to reset the color, to allow
23515             overriders to catch the change.
23516         * Form.cs:
23517           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
23518           - CreateHandle(): dito (part of $79218 fix)
23519           - Don't set an icon if we have a dialog
23520         * ScrollableControl.cs:
23521           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
23522           - ScrollIntoView(): No need to scroll if control is already visible
23523             (resolves fixme and fixes #79218)
23524
23525 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23526
23527         * MonthCalendar.cs: Change proportions in SingleMonthSize
23528         to match the aspect of the original control.
23529
23530 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
23531
23532         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
23533           get updated when they get maximized.
23534
23535 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
23536
23537         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
23538
23539 2006-08-29  Chris Toshok  <toshok@ximian.com>
23540
23541         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
23542
23543 2006-08-29  Jackson Harper  <jackson@ximian.com>
23544
23545         * TreeView.cs: Need to track selected node and highlighted node,
23546         they aren't always the same thing, when the mouse is down on a
23547         node it is hilighted, but not selected yet.
23548         - Do the HideSelection stuff right
23549         - Need to focus on rbutton mouse down. And redraw selection when
23550         right click is mouse upped.
23551
23552 2006-08-29  Mike Kestner  <mkestner@novell.com>
23553
23554         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
23555         when SubItems.Count < Columns.Count.  [Fixes #79167]
23556
23557 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
23558
23559         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
23560
23561 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
23562
23563         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
23564           from X. Only send based on ConfigureNotify if we don't have the
23565           correct location in hwnd (if the window manager moved us)
23566
23567 2006-08-28  Mike Kestner  <mkestner@novell.com>
23568
23569         * ListView.cs: remove a TODO. 
23570         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
23571         [Fixes ListView part of #79166]
23572
23573 2006-08-28  Mike Kestner  <mkestner@novell.com>
23574
23575         * ListView.cs: move wheel handler to parent since it is focused
23576         instead of the item_control now.  [Fixes #79177]
23577
23578 2006-08-28  Mike Kestner  <mkestner@novell.com>
23579
23580         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
23581         when the control is focused. [Fixes #79171]
23582
23583 2006-08-28  Mike Kestner  <mkestner@novell.com>
23584
23585         * ListView.cs: size the item and header controls for empty and
23586         unscrollable views.
23587         * ThemeWin32Classic.cs: draw disabled backgrounds.
23588         [Fixes #79187]
23589
23590 2006-08-28  Chris Toshok  <toshok@ximian.com>
23591
23592         * Form.cs: remove unused "active_form" static field.
23593
23594         * Hwnd.cs: lock around accesses to static windows collection.
23595
23596         * Application.cs: lock threads in Exit ().
23597
23598 2006-08-28  Chris Toshok  <toshok@ximian.com>
23599
23600         * NativeWindow.cs: lock around accesses to window_collection.
23601         
23602 2006-08-28  Chris Toshok  <toshok@ximian.com>
23603
23604         * Control.cs: err, fix this the right way, by locking on controls
23605         when using it.  not by making it synchronized.
23606
23607 2006-08-28  Chris Toshok  <toshok@ximian.com>
23608
23609         * Control.cs: make the static "controls" field synchronized, as it
23610         gets updated from multiple threads.
23611
23612 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
23613
23614         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
23615           Prevent other threads from exiting when calling thread sets quit state.
23616         * XEventQueue.cs: Added PostQuitState property
23617
23618 2006-08-27  Chris Toshok  <toshok@ximian.com>
23619
23620         * AsyncMethodData.cs: add a slot for the window handle.
23621
23622         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
23623         window (the destination control's window, not the foster window).
23624
23625         * Control.cs (BeginInvokeInternal): store the window's handle in
23626         the AsyncMethodData.
23627         
23628
23629 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
23630
23631         * XplatUIX11.cs:
23632           - PostQuitMessage: Removed resetting S.D display handle, we might have
23633             another loop started after calling PostQuitMessage (Fixes #79119)
23634           - Created destructor to reset S.D handle
23635
23636 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
23637
23638         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
23639
23640 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23641
23642         * TextControl.cs (Insert): Update the caret position even if we don't
23643           have a handle yet, just don't call the driver in that case.
23644         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
23645           to the end of the new selection text (Fixes #79184)
23646
23647 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23648
23649         * Form.cs (Activate): Only activate if the handle is created)
23650         * Control.c:
23651           - Mark window as invisible when it's disposed
23652           - Check if window handle is created when setting window visible, 
23653             instead of relying just on the is_created variable
23654           - Check if object is disposed when creating the control (Fixes #79155)
23655
23656 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23657
23658         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
23659           when allowing layout again. Otherwise we re-generate the anchoring 
23660           distance to the border again and actually alter what the user wanted
23661           This is ugly, it'd be better if we used DisplayRectangle instead of
23662           ClientRectangle for Control.UpdateDistances, but that causes us to
23663           have other problems (initial anchoring positons would be wrong)
23664           (Fixes #78835)
23665
23666 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23667
23668         * Control.cs:
23669           - The size and location setters shouldn't go directly to 
23670             SetBoundsCore, but to SetBounds, which triggers layout on the
23671             parent, then calls SetBoundsCore. (Related to fix for #78835)
23672           - SetBounds: Moved actual location update code into this function
23673             from SetBoundsCore, to match MS. Added call to PerformLayout if
23674             we have a parent (to trigger resizing of anchored parents if the 
23675             child size has changed (see testcase for #78835) 
23676         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
23677           new control code
23678         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
23679
23680 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23681
23682         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
23683           System.Drawing when a toplevel window gets closed; there might
23684           be other toplevel windows belonging to the same app (Fixes #78052)
23685
23686 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
23687
23688         * FileDialog.cs: After reading FileDialog settings from mwf_config
23689           use Desktop prefix only if a real folder doesn't exist anymore.
23690         * FontDialog.cs: Added char sets.
23691           It is now possible to select the font, size or style with the
23692           textboxes.
23693
23694 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
23695
23696         * PrintPreviewDialog.cs: Use assembly name constants.
23697
23698 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23699
23700         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
23701           scrollbar from whacking it's buttons)
23702
23703 2006-08-24  Chris Toshok  <toshok@ximian.com>
23704
23705         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
23706         in this patch (aggregating setting Left/Top/Width/Height to
23707         setting Bounds on the scrollbars), but the crux of the fix is in
23708         Recalculate, where we scroll by the remaining scroll_position if
23709         we're hiding a scrollbar.  The 2*$5 reward in the comment is
23710         serious.
23711
23712 2006-08-24  Jackson Harper  <jackson@ximian.com>
23713
23714         * MdiClient.cs:
23715         * MdiWindowManager.cs: If the form is made a non-mdi window we
23716         need to remove the form closed event so that closing forms works
23717         correctly.
23718
23719 2006-08-24  Jackson Harper  <jackson@ximian.com>
23720
23721         * Control.cs: Make IsRecreating internal so that the driver can
23722         check it
23723         - Temporarily remove the Hide when controls are removed, its
23724         making a whole bunch of things not work because visibility isn't
23725         getting reset elsewhere correctly
23726         * Form.cs: Need to do a full handle recreation when the mdi parent
23727         is set.
23728         * XplatUIX11.cs: If we are recreating handles don't dispose the
23729         HWNDs.  What was happening is the handles were being recreated in
23730         SendWMDestroyMessages, but then flow continued on in that method
23731         and destroyed the new handles.
23732
23733 2006-08-23  Jackson Harper  <jackson@ximian.com>
23734
23735         * Form.cs: MdiClient is always at the back of the bus
23736         * Control.cs: When the order of items in the collection is changed
23737         we need to reset the all_controls array
23738         - do the same sorta setup thats done when adding a control when a
23739         control is set on the collection.
23740
23741 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23742
23743         * TextBoxBase.cs (get_Text): Return an empty array if our document
23744           is empty (fixes #79052)
23745
23746 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23747
23748         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
23749           on WM_SYSCHAR messages (fixes #79053)
23750
23751 2006-08-23  Chris Toshok  <toshok@ximian.com>
23752
23753         * DataGrid.cs: fix flickering when scrolling vertically.
23754
23755 2006-08-23  Chris Toshok  <toshok@ximian.com>
23756
23757         * DataGrid.cs (EndEdit): only invalidate the row header when we
23758         need to.
23759
23760 2006-08-23  Chris Toshok  <toshok@ximian.com>
23761
23762         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
23763         methods.  fixes the flicker when scrolling around.
23764
23765 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23766
23767         * FileDialog.cs: Making sure the control is created before we get a 
23768           chance to use it with BeginInvoke (Fixes #79096)
23769
23770 2006-08-23  Chris Toshok  <toshok@ximian.com>
23771
23772         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
23773         width to use when painting the rows.
23774
23775 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23776
23777         * TextBoxBase.cs:
23778           - Throw ArgumentException if a negative value is passed to SelectionLength
23779           - Update the selection end if start is moved. end needs to be always
23780             after start. (Fixes #79095)
23781           - Track selection length; MS keeps the selection length even if start
23782             is changed; reset on all other operations affection selection
23783
23784 2006-08-22  Jackson Harper  <jackson@ximian.com>
23785
23786         * TreeView.cs: Make sure both scrollbars get displayed and sized
23787         correctly when the other bar is visible.
23788         - Use the original clip rectangle for checking if the area between
23789         the two scrollbars is visible, not the viewport adjusted clipping
23790         rectangle.
23791
23792 2006-08-22  Jackson Harper  <jackson@ximian.com>
23793
23794         * Binding.cs: We don't use IsBinding because it requires the
23795         control to be created, which really shouldn't be necessary just to
23796         set a property on the control.
23797
23798 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23799
23800         * ComboBox.cs: Some CB.ObjectCollection methods must throw
23801         ArgumentNullReferenceException when the argument is null.
23802
23803 2006-08-21  Jackson Harper  <jackson@ximian.com>
23804
23805         * Timer.cs: Track the thread that the timer is started in (NOT
23806         CREATED), this way messages for it will only be triggered on its
23807         queue.
23808         * XEventQueue.cs: Track the timers here, this makes timers per
23809         thread, like MS.
23810         * XplatUIX11.cs: The timers are moved to the XEventQueue.
23811
23812 2006-08-19  Chris Toshok  <toshok@ximian.com>
23813
23814         * XplatUIX11.cs: after further communication with pdb, we get the
23815         best of both worlds.  SetZOrder working for un-Mapped windows, and
23816         no X errors for un-mapped windows.
23817
23818 2006-08-19  Chris Toshok  <toshok@ximian.com>
23819
23820         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
23821         as it was causing pdn toolbars to not have the correct stacking.
23822
23823 2006-08-18  Mike Kestner  <mkestner@novell.com> 
23824
23825         * ListView.cs : guard against negative ClientArea.Width in scrollbar
23826         calculation.  Not sure why control should ever be setting a negative
23827         width though.  Fixes #78931.
23828
23829 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23830
23831         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
23832         null items in ObjectCollection class.
23833         * ListBox.cs.: Likewise.
23834
23835 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
23836
23837         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
23838           as the base method in ThemeWin32Classic should work fine.
23839           Fixed bug #78607.
23840
23841 2006-08-18  Jackson Harper  <jackson@ximian.com>
23842
23843         * Binding.cs: When validating if the value entered doesn't convert
23844         properly reset to the old value.
23845         * RadioButton.cs: Don't fire click when we get focus.
23846
23847 2006-08-18  Jackson Harper  <jackson@ximian.com>
23848
23849         * FileDialog.cs: Paint the selection on the directory combobox the
23850         same way as on MS. 
23851
23852 2006-08-17  Jackson Harper  <jackson@ximian.com>
23853
23854         * ErrorProvider.cs: Don't allow the error control to be selected.
23855         * Control.cs: Don't send the SetFocus messages, the control
23856         activation will do this, and if we do it blindly here validation
23857         does not work.
23858
23859 2006-08-17  Jackson Harper  <jackson@ximian.com>
23860
23861         * Control.cs:
23862         * ContainerControl.cs: Make validation events fire in the correct
23863         order.  TODO: For some reason the first validation event is not
23864         getting fired.
23865
23866 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23867
23868         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
23869
23870 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23871
23872         * ComboBox.cs : implement scroll wheel support for popped-down
23873         state. Fixes #78945. 
23874
23875 2006-08-17  Jackson Harper  <jackson@ximian.com>
23876
23877         * TreeView.cs: Specify treeview actions (old patch that didn't get
23878         committed for some reason).
23879         - Don't let the mouse wheel scroll us too far.  Just want to make
23880         the bottom node visible, not scroll it all the ways to the top.
23881
23882 2006-08-17  Jackson Harper  <jackson@ximian.com>
23883
23884         * XplatUIX11.cs: Mouse wheel events go to the focused window.
23885
23886 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23887
23888         * ComboBox.cs : don't do mouseover selection in simple mode.
23889
23890 2006-08-16  Jackson Harper  <jackson@ximian.com>
23891
23892         * Form.cs: Fire the closing events for all the mdi child windows
23893         when a window is closed.  If the cancel args are set to true, the
23894         main window still gets the event fired, but it doesn't not close.
23895         * MdiWindowManager.cs: Do this closing cleanup in a Closed
23896         handler, instead of when the button is clicked, so cancelling the
23897         close works correctly.
23898         * ComboBox.cs: Send the mouse down to the scrollbar.
23899
23900 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23901
23902         * ListBox.cs: When passing 'null' to SelectedItem,
23903         set SelectedIndex to -1, to unselect items. This is the
23904         observed behaviour in .Net.
23905
23906 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
23907
23908         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
23909           MS flags saying there won't be any. (fixes #78800)
23910         * Control.cs (HandleClick): Made virtual
23911
23912 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
23913
23914         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
23915           cultures. Fixed bug #78399.
23916
23917 2006-08-16  Jackson Harper  <jackson@ximian.com>
23918
23919         * Form.cs: Use the MdiClients MdiChildren property to access
23920         MdiChildren instead of creating the array from the child controls.
23921         * MdiClient.cs: Maintain a separate array of the mdi children, so
23922         that insertion order is maintained when the Z-order is changed.
23923
23924 2006-08-16  Mike Kestner  <mkestner@novell.com> 
23925
23926         * ListView.cs : add an ItemComparer and default to it for sorting.
23927         Fixes #79076, but sorting needs a complete overhaul to be compat with
23928         MS.
23929
23930 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
23931
23932         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
23933
23934 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23935
23936         * Hwnd.cs (Mapped): Properly traverse the tree
23937
23938 2006-08-15  Chris Toshok  <toshok@ximian.com>
23939
23940         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
23941         pass manager.Current.GetType() to ParseData.  It has to be the
23942         property type.  So, hold off doing the ParseData until we're in
23943         SetPropertyValue where we know the type.  This fixes the crash in
23944         #78821 but the textbox is still empty.
23945
23946 2006-08-15  Chris Toshok  <toshok@ximian.com>
23947
23948         * DataGrid.cs:
23949         - when we're scrolling, only call Edit() again if the
23950         current cell is still unobscured. Fixes bug #78927.
23951         - when handling mousedown on a cell, ensure the cell is visible
23952         before calling Edit.
23953         - remove the properties from DataGridRow, and remove the
23954         DataGridParentRow class altogether.
23955         
23956
23957 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23958
23959         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
23960           fire OnTextChanged by ourselves. There's no point calling base,
23961           we don't set the base value anywhere else. Fixes #78773.
23962
23963 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23964
23965         * ListBox.cs: Call CollectionChanged when modifying
23966         an item from Items indexer, to update the actual items
23967         in the list box.
23968
23969 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23970
23971         * PrintDialog.cs: Small fixes for focus and a pair of checks,
23972         to match .Net behaviour.
23973
23974 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23975
23976         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
23977
23978 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
23979
23980         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
23981
23982 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23983
23984         * MessageBox.cs: Prevent potential NRE exception.
23985         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
23986
23987 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
23988
23989         * MessageBox.cs: Calculate the owner of a messagebox, also make
23990           it topmost. Fixes #78753
23991
23992 2006-08-14  Chris Toshok  <toshok@ximian.com>
23993
23994         * XplatUIX11.cs: A couple of fixes so that metacity will let us
23995         programmatically move windows.  first, set the PPosition hint as
23996         well as the USPosition hint.  Second include some code from pdb
23997         that sets the window type to NORMAL when we set the transient for
23998         hint.  This is because, in the absence of a window type, metacity
23999         thinks any window with TransientFor set is a dialog, and refuses
24000         to let us move it programmatically.  fascists.
24001
24002 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
24003
24004         * XplatUIX11.cs: When setting normal hints, take into consideration
24005           an different hints previously set so we don't delete them (fixes #78866)
24006
24007 2006-08-12  Chris Toshok  <toshok@ximian.com>
24008
24009         * ToolBarButton.cs: make Layout return a boolean, if something to
24010         do with the button's layout changed.
24011
24012         * ToolBar.cs:
24013         - add another parameter to Redraw, @force, which all existing
24014           calls set to true.
24015         - make the Layout function return a boolean which is true if the
24016           layout has actually changed.  Redraw now uses this (and @force)
24017           to determine when to invalidate.  At present the only place
24018           where @force can be false is the call from OnResize, when
24019           background_image == null.  So, resizing a toolbar when the
24020           layout doesn't change results in no drawing.
24021
24022 2006-08-12  Chris Toshok  <toshok@ximian.com>
24023
24024         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
24025         the VScrollBar and HScrollbar reversed.  oops.
24026
24027         * DataGrid.cs: fix the logic that assigns sizes to the implicit
24028         scrollbars.  we were assigning them twice (once in
24029         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
24030         therefore causing two scrollbar resizes (and redraws?) to happen
24031         per grid resize.
24032
24033 2006-08-12  Chris Toshok  <toshok@ximian.com>
24034
24035         * ToolBarButton.cs: redraw the entire button if the theme tells us
24036         to.
24037
24038         * Theme.cs: add ToolBarInvalidateEntireButton.
24039
24040         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
24041         buttons, just the border.
24042
24043         * ThemeNice.cs: redraw the entire toolbar button since we need to
24044         draw the highlight image.
24045
24046         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
24047         we need to redraw the entire button (not just the border).
24048
24049 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
24050
24051         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
24052           for vertical bars. Fixes the mismatches shown by #78513
24053
24054 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
24055
24056         * FileDialog.cs: If a saved/remembered path doesn't exist
24057           anymore, fall back to "Desktop".
24058
24059 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
24060
24061         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
24062           parent. It's apparently legal to not have one
24063         * XplatUIX11.cs:
24064           - SetZOrder: Don't try to set Z-Order on an unmapped window
24065           - CreateWindow: 0,0 are legal coordinates for a window. don't move
24066             it unless the coordinates are negative
24067
24068 2006-08-10  Mike Kestner  <mkestner@novell.com>
24069
24070         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
24071         when setting to null per msdn docs.  Fixes #78854.
24072
24073 2006-08-10  Chris Toshok  <toshok@ximian.com>
24074
24075         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
24076         flickering by setting a clip rectangle on the Graphics when we
24077         need to redraw just a particular menuitem.  Also, rename "OnClick"
24078         to "OnMouseDown" to reflect what it actually is.
24079         
24080         * Form.cs: track the OnMouseDown change.
24081
24082 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
24083
24084         * CommonDialog.cs: Properly inherit the CreateParams from the form
24085           and only change what we need. Fixes #78865
24086
24087 2006-08-10  Chris Toshok  <toshok@ximian.com>
24088
24089         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
24090         flickering in flat mode (and most of the flickering in general) by
24091         only invalidating the button border (and not the entire rectangle)
24092         when the state changes.  A couple of cases still flicker:
24093         ToggleButtons, and the dropdown arrow case when the user mouse
24094         ups.
24095
24096 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
24097
24098         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
24099           for german keyboards. Numlock state shouldn't affect the behaviour
24100           of the Del key. Fixes bug #78291.
24101
24102 2006-08-10  Chris Toshok  <toshok@ximian.com>
24103
24104         * ListControl.cs: remove the items.Clear line from BindDataItems,
24105         as this is the first thing done by both subclasses in their
24106         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
24107         passed -1, refresh the list.  This gets databinding working when
24108         the datasource is set on the list before the datasource is
24109         populated (as in wf-apps/ReportBuilder.)
24110
24111         * ComboBox.cs: remove the argument to BindDataItems.  This call
24112         should really go away, and be initiated by the ListControl code.
24113
24114         * ListBox.cs: same.
24115
24116 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
24117
24118         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
24119           if no data is in the document when the control is displayed
24120
24121 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
24122
24123         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
24124           yes (fixes #78806)
24125         * TextControl.cs: 
24126           - PositionCaret: Allow positioning of caret but don't call methods 
24127             requiring a handle if the window isn't created yet
24128           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
24129           - owner_HandleCreated: Don't position the caret, just update it's 
24130             location. User might have already set a different position
24131
24132 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
24133
24134         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
24135           windows. Screws up the returned coordinates for child windows. 
24136           Fixes #78825. I'm hoping this doesn't break something, since the
24137           code was explicitly put in 8 months ago, but no bug was attached.
24138           Menus still seem to work properly.
24139
24140 2006-08-08  Chris Toshok  <toshok@ximian.com>
24141
24142         * DataGrid.cs: make BeginInit/EndInit actually do what they're
24143         supposed to do - delay data binding until the EndInit call.  Also,
24144         make the table style collection's CollectionChangeAction.Refresh
24145         work properly.
24146
24147         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
24148         (with action = Refresh) when a consituent table's MappingName is
24149         changed.
24150
24151 2006-08-08  Chris Toshok  <toshok@ximian.com>
24152
24153         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
24154         Invalidate, since changing the text can change the size of the all
24155         toolbar buttons.
24156
24157 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
24158
24159         * Form.cs (AddOwnedForm): Still need to add the form to our listif
24160           we don't have it yet
24161
24162 2006-08-08  Chris Toshok  <toshok@ximian.com>
24163
24164         * PrintControllerWithStatusDialog.cs: don't .Close() the status
24165         dialog, as this causes X errors later on, since we actually
24166         destroy the window.  Instead, .Hide() it.
24167
24168 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
24169
24170         * ComboBox.cs: Added focus reflection for popup window
24171         * XplatUIX11.cs: 
24172           - Removed transient setting for non-app windows for now, not sure it
24173             was needed
24174           - Fixed logic checking if we have captions when deciding 
24175             override_redirect, WS_CAPTION is two bits and a 0 check was not
24176             sufficient
24177           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
24178             complicated
24179         * Form.cs: 
24180           - AddOwnedForm: Don't just add the form to the list, call the property
24181             to ensure the driver is informed about the ownership as well
24182           - CreateHandle: Set the TopMost status in the driver if we have an owner
24183         * XplatUI.cs: Fixed debug statement
24184
24185 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
24186         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24187           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
24188           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
24189           TrackBarRenderer.cs: Make constructor private.
24190         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
24191         * ProfessionalColorTable.cs: Make properties virtual.
24192
24193 2006-08-06  Duncan Mak  <duncan@novell.com>
24194
24195         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
24196         is not changing.
24197
24198 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24199         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24200           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
24201           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
24202           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
24203           Initial import of new 2.0 classes.
24204
24205 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24206         * Application.cs: Add 2.0 VisualStyles properties.
24207
24208 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24209         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
24210           XplatUIX11.cs: Create property to allow access to existing private
24211           variable "themes_enabled"
24212
24213 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24214
24215         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
24216         file size, as otherwise our class libraries fail using windows. Fixes
24217         bug #78759.
24218
24219 2006-08-04  Jackson Harper  <jackson@ximian.com>
24220
24221         * Form.cs:
24222         * XplatUIX11.cs: Move the toolwindow window manager creation into
24223         the X11 driver, this way on win32 we can let windows create/handle
24224         the toolwindows.
24225
24226 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24227
24228         * PrintDialog.cs: Remove some redundant checks, add some others,
24229         clean some code, and move the focus to the text boxes when the
24230         values are incorrect.
24231
24232 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
24233
24234         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
24235
24236 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
24237
24238         * NumericUpDown.cs: Setting the Minimum and Maximum is now
24239           handled correctly. Fixes bug #79001.
24240
24241 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24242
24243         * PrintDialog.cs: The "Copies" numeric up down must have
24244         set the Minimum property to 1; only if the value is bigger
24245         than 1, activate "Collate" check box. This is the behaviour of .Net.
24246         Also modify the Document elements only if it is not null.
24247
24248 2006-08-03  Jackson Harper  <jackson@ximian.com>
24249
24250         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
24251         length. (We have a larger array then actual node count).
24252                 
24253 2006-08-03  Jackson Harper  <jackson@ximian.com>
24254
24255         * ComboBox.cs: Don't show selection by default.
24256         - The SelectAll isn't needed here, since the focus code should do
24257         that
24258         - DDL style lists to manual selection drawing, so when they
24259         get/lose focus they have to invalidate.
24260
24261 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
24262
24263         * TextBoxBase.cs: Don't always show all selections by default.
24264
24265 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
24266         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
24267           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
24268           Fixed various typos.
24269
24270 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
24271
24272         * Control.cs: Removing the controls in a ControlCollection with
24273           Clear now hides the controls as expected. Fixes bug #78804. 
24274
24275 2006-08-03  Jackson Harper  <jackson@ximian.com>
24276
24277         * Control.cs: Revert previous focus patch, it breaks reflector.
24278
24279 2006-08-03  Jackson Harper  <jackson@ximian.com>
24280
24281         * ComboBox.cs: Cleanup selection and focus with the combobox.
24282         This also eliminates some duplicated keyboard code, since now
24283         everything is handled by the main class.
24284         - Make list selection work on mouse up instead of down, to match
24285         MS.
24286
24287 2006-08-02  Jackson Harper  <jackson@ximian.com>
24288
24289         * Control.cs: Setting focus needs to go through the whole
24290         selection mechanism.
24291
24292 2006-08-02  Chris Toshok  <toshok@ximian.com>
24293
24294         * PrintPreviewDialog.cs: change MinimumSize to use
24295         base.MinimumSize so it works.
24296
24297 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
24298
24299         * TextControl.cs:
24300           - UpdateCaret: Added sanity check in case caret isn't defined yet
24301           - Line.Delete: Now updating selection and caret markers if we're
24302             transfering a node (Properly fixes #78323)
24303           - SetSelectionEnd: Added sanity check
24304         * TextBoxBase.cs: Removed broken attempt to fix #78323
24305
24306 2006-08-01  Chris Toshok  <toshok@ximian.com>
24307
24308         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
24309         Close() call is handled in Form, not here.
24310
24311 2006-08-01  Chris Toshok  <toshok@ximian.com>
24312
24313         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
24314         layout/rendering.
24315
24316         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
24317         for sizes < 100% zoom.  The code now aggressively attempts to keep
24318         from calling document.Print (), and tries not to use the scaling
24319         g.DrawImage whenever possible (it still does if you scale to >
24320         100%, since usually that involves huge images).
24321
24322         * PrintPreviewControl.cs: hook up the close button.
24323
24324 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
24325         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
24326           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
24327           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
24328           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
24329           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
24330           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
24331           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
24332           Removed [Serializable] for 2.0 Event Handlers.
24333
24334 2006-07-31  Jackson Harper  <jackson@ximian.com>
24335
24336         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
24337         * TextControl.cs: Uncomment out the body of this method.
24338
24339 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
24340
24341         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
24342           standard cursors.
24343
24344 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24345
24346         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
24347           that embed TextBox and need selections visible even if textbox is not
24348           focused to enforce that behaviour.
24349         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
24350           selection drawing
24351
24352 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24353
24354         * TextControl.cs:
24355           - Added new SetSelectionStart/SetSelectionEnd overloads
24356           - Fixed viewport width assignment to be accurate
24357           - Adjusted alignment line shift calculations to allow cursor on right
24358             aligned lines to be always visible at the right border (like MS)
24359         * TextBoxBase.cs:
24360           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
24361           - TextBoxBase_SizeChanged: recalculating canvas on size changes
24362           - CalculateScrollBars: Use ViewPort size instead of window size, to
24363             properly consider space occupied by the border and scrollbars 
24364             (Fixes #78661)
24365           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
24366             calculations; no longer leaves artifacts
24367           - CaretMoved: Adjusted window scrolling to match MS and fixed several
24368             calculation bugs (Still missing right/center align calculations)
24369
24370 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
24371
24372         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
24373           use of both scroll rect and clip rect, as they do the same.
24374
24375 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24376
24377         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
24378           in the event handler (fixes #78912)
24379
24380 2006-07-31  Chris Toshok  <toshok@ximian.com>
24381
24382         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
24383         grid.ListManager.Count, since grid.ListManager might be null.
24384         This of course begs the question "why are we drawing rows for a
24385         grid with no list manager (and therefor no rows)?"  Fixes the
24386         crash in bug #78929.
24387
24388 2006-07-31  Chris Toshok  <toshok@ximian.com>
24389
24390         * RelatedPropertyManager.cs: Don't always chain up to the parent
24391         ctor.  instead, call SetDataSource if the parent's position is !=
24392         -1.  Fixes the crash in #78822.
24393
24394 2006-07-31  Chris Toshok  <toshok@ximian.com>
24395
24396         * DataGrid.cs (get_ListManager): use field instead of property
24397         accessors for datasource and datamember.
24398         (RowsCount): make internal again.
24399         (OnMouseDown): end edits before resizing columns/rows.
24400         (OnMouseUp): restart edits after resizing columns/rows.
24401
24402 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
24403
24404         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
24405           This fixes the situation where the last set cursor is displayed
24406           whenever the mouse is over scrollbars.
24407
24408 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24409
24410         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
24411         Document properties, as well as initial values.
24412
24413 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
24414
24415         * XplatUIWin32.cs (SetBorderStyle): Setting both border
24416           and ClientEdge results in a 3-pixel border, which is
24417           wrong.
24418
24419 2006-07-28  Jackson Harper  <jackson@ximian.com>
24420
24421         * TreeNodeCollection.cs: Fix the clear method.
24422         - Fix the Shrink also
24423
24424 2006-07-27  Jackson Harper  <jackson@ximian.com>
24425
24426         * TreeView.cs: Make sure the visible order is computed when we
24427         attempt to size the scrollbars (for trees that mess with the
24428         scrolling when they shouldn't.
24429         - Make sure to give the scrollbars valid values.
24430
24431 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
24432
24433         * XplatUIX11.cs: Move motion compression code to where it
24434           has less performance impact
24435
24436 2006-07-26  Jackson Harper  <jackson@ximian.com>
24437
24438         * UpDownBase.cs: When the control is selected make the child
24439         controls non selectable, so that a click on them won't do a
24440         focus/unfocus cycle.
24441         - Don't give focus to the text box when the spinner is selected.
24442         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
24443
24444 2006-07-26  Chris Toshok  <toshok@ximian.com>
24445
24446         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
24447         satisfied with this solution.  If the bitmaps are small, we should
24448         just cache them in the PrintPreviewDialog and draw them here.
24449         Also, the layout is broken for the 2-up and 3-up cases.
24450
24451         * Theme.cs: add PrintPReviewControlPaint.
24452
24453         * PrintPreviewDialog.cs: first pass implementation.
24454
24455         * PrintPreviewControl.cs: first pass implementation.  No
24456         scrollbars yet.
24457
24458         * PrintDialog.cs: only validate fields if that particular portion
24459         of the UI is enabled.  Also, set the document's controller to a
24460         PrintControllerWithStatusDialog wrapping the document's print
24461         controller.
24462
24463         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
24464         bring up a SaveFileDialog (i hope we don't want to match the
24465         behavior of the crappy windows file entry) and set the
24466         PrinterSettings.PrintFileName accordingly.
24467
24468 2006-07-26  Jackson Harper  <jackson@ximian.com>
24469
24470         * ContainerControl.cs: Add a field that disables auto selecting
24471         the next control in a container when the container is activated.
24472         * UpDownBase.cs: Don't select the text box when the up down is
24473         selected.
24474
24475 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
24476
24477         * XEventQueue.cs: Added methods for peeking (used for compression
24478           of successive events)
24479         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
24480           mouse move events (fixes #78732)
24481
24482 2006-07-25  Jackson Harper  <jackson@ximian.com>
24483
24484         * UpDownBase.cs: Use an internal class for the textbox so that we
24485         can control focus.  the updown control should always have focus,
24486         if either the text area or the buttons are clicked.
24487         - Send the key messages to the textbox, since it never actually
24488         has focus
24489         - Activate and decativate the textbox caret.
24490
24491 2006-07-24  Jackson Harper  <jackson@ximian.com>
24492
24493         * Control.cs: Use the directed select when selecting a control,
24494         this way the container controls override will get called and the
24495         whole ActiveControl chain will get triggered.  TODO: probably need
24496         to make sure this gets done everywhere instead of the old
24497         Select(Control).
24498         * ContainerControl.cs: Implement the directed Select method to
24499         find and activate the correct child control.    
24500         
24501 2006-07-22  Mike Kestner  <mkestner@novell.com>
24502
24503         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
24504         menu handling code so that clicks without a grab work too.
24505         [Fixes #78914]
24506
24507 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
24508
24509         * FileDialog.cs: Enable the BackButton when dirstack has one element.
24510           Added some small optimizations.
24511
24512 2006-07-21  Matt Hargett  <matt@use.net>
24513
24514         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
24515
24516 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
24517
24518         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
24519           tests pass and match MS in some strange border cases.
24520
24521 2006-07-21  Chris Toshok  <toshok@ximian.com>
24522
24523         * ThemeWin32Classic.cs: handle drawing of the relation links and
24524         parent row buttons.
24525
24526         * Theme.cs: change args to DataGridPaintParentRow.
24527
24528         * DataGrid.cs: Don't use controls for the relation links and
24529         parent buttons, so we have to handle all their interactions in
24530         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
24531         when we're navigating through child tables, so we can reinstate
24532         selection, expanded state, current cell, etc.
24533
24534 2006-07-20  Chris Toshok  <toshok@ximian.com>
24535
24536         * ToolBar.cs: When we redraw a button, for whatever reason,
24537         there's no reason to redraw the entire toolbar.  Also, don't call
24538         Control.Refresh from within Redraw, as it's much heavier than
24539         Invalidate (which is really what we want).
24540
24541 2006-07-20  Chris Toshok  <toshok@ximian.com>
24542
24543         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
24544         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
24545         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
24546         traces from within a debug IBindingList datasource
24547         (in mono/winforms/datagrid) for *days*, I've finally gotten things
24548         to work in a similar fashion.
24549
24550 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24551
24552         * ListBox.cs: Don't call Sort () when setting 
24553         the Sorted property to false (avoid an unnecessary sort).
24554
24555 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24556
24557         * ListControl.cs: DataSource should throw an ArgumentException
24558         instead of a normal exception when the argument is not of the 
24559         correct type.
24560
24561 2006-07-20  Mike Kestner  <mkestner@novell.com>
24562
24563         * Control.cs: add InternalPreProcessMessage to allow us to steal
24564         key events before MWF gets its paws on them.  Adapted from a
24565         suggestion by eno.
24566         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
24567         up/down/left/right navigation. Override the new internal control
24568         method to steal the events since they never make it to WndProc.
24569         * ToolBarButton.cs: don't worry about pushed when setting hilight
24570         since the drawing code prefers pushed to hilight. Invalidate on 
24571         Hilight changes. Fixes #78547 and #78525.
24572
24573 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
24574
24575         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
24576           the canvas size. Fixes #78868
24577
24578 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
24579
24580         * Splitter.cs: Track requested split position until first layout
24581           is performed. Fixes #78871
24582
24583 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
24584
24585         * Application.cs: Removed code that forces 1.x for the version
24586           number if the version started with 0. Not sure why that code was
24587           there and I couldn't find any bugs that indicated we needed it.
24588           Fixes #78869
24589
24590 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
24591
24592         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
24593           ResetDefaults(), just write some output to the console until it's
24594           implemented. Fixes bug #78907 for now. Eliminated two warnings.
24595
24596 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
24597
24598         * PropertyGridView.cs: set StartPosition of drop down forms
24599         so they appear in correct initial spot.  Fixes #78190.
24600
24601 2006-07-19  Mike Kestner  <mkestner@novell.com>
24602
24603         * ThemeWin32Classic.cs: use parent background color when drawing
24604         flat toolbars.  Restructure the conditionals to make sure non-flat
24605         non-Divider toolbars are filled too.  Fixes #78837.
24606
24607 2006-07-19  Mike Kestner  <mkestner@novell.com>
24608
24609         * ListBox.cs: Sort on collection changes even if the handle
24610         isn't created yet.  Fixes #78813.
24611
24612 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24613
24614         * ListControl.cs: DisplayMember should never be null,
24615         and now we assign String.Empty when null is passed to it (this
24616         is the .Net way).
24617
24618 2006-07-17  Mike Kestner  <mkestner@novell.com>
24619
24620         * ListViewItem.cs: restructure Font and subitem Font handling 
24621         to hold a specific font and refer back to owner on null.
24622         Fixes #78761.
24623
24624 2006-07-17  Mike Kestner  <mkestner@novell.com>
24625
24626         * ToolBar.cs: bandaid for side-effect of previous patch which was
24627         discarding explicit heights for non-AutoSize toolbars.  Need to
24628         extend my format tester to deal with AutoSize=false. Fixes #78864.
24629
24630 2006-07-15  Jackson Harper  <jackson@ximian.com>
24631
24632         * LabelEditTextBox.cs:
24633         * TreeView.cs: Use a new LabelEdit class for node editing, this
24634         class automatically 'closes' itself when it gets the enter key or
24635         loses focus.
24636         - Use the client rectangle when setting the trees scrollbars, so
24637         border style is taken into account.
24638         
24639 2006-07-14  Jackson Harper  <jackson@ximian.com>
24640
24641         * TreeNode.cs:
24642         * TreeView.cs: Make the editing work similar to MSs, firing the
24643         events correctly and ending edits correctly.
24644
24645 2006-07-14  Mike Kestner  <mkestner@novell.com>
24646
24647         * ToolBarButton.cs:
24648         * ToolBar.cs: layout restructuring and redraw enhancements to support
24649         formatting changes gracefully, like setting TextAlign, ImageList, 
24650         ButtonSize, and Appearance.  Handles explicit button sizing quirks
24651         of the MS controls.  Things like flat toolbars ignoring button size
24652         but becoming constant sized at the largest button's size.  Normal
24653         toolbars with an image set cannot be shrunk smaller than the image,
24654         but text can be clipped/ignored.
24655         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
24656         is zero.  Seems like DrawString should be smart enough to not put
24657         anything on screen though. Also trim labels and ellipsize at the char
24658         boundary, not word.
24659         Fixes #78711 and #78483.
24660
24661 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24662
24663         * FolderBrowserDialog.cs: Disable "New Folder" button and
24664           "New Folder" contextmenu menuitem if a folder like "My Computer"
24665           is selected.
24666
24667 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24668
24669         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
24670         * FolderBrowserDialog.cs:
24671           - Use MWFConfig to store and read size and position settings
24672           - Added code to create a new folder (button or context menu).
24673             Use TreeView labeledit to change the name of the new folder.
24674
24675 2006-07-14  Jackson Harper  <jackson@ximian.com>
24676
24677         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
24678         when the tree is scrolled we end editing.
24679
24680 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24681
24682         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
24683           Down arrows
24684
24685 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
24686
24687         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
24688         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
24689         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
24690         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
24691         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
24692         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
24693         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
24694         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
24695         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
24696         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
24697         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
24698         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
24699         ListViewItemSelectionChangedEventHandler.cs,
24700         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
24701         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
24702         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
24703         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
24704         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
24705         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
24706         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
24707         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
24708         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
24709         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
24710         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
24711         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
24712         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
24713         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
24714         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
24715         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
24716         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
24717         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
24718         WebBrowserNavigatingEventHandler.cs, 
24719         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
24720
24721 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
24722
24723         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
24724         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
24725         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
24726         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
24727         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
24728         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
24729         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
24730         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
24731         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
24732         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
24733         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
24734         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
24735         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
24736         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
24737         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
24738         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
24739         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
24740         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
24741         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
24742         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
24743         ListViewItemStates.cs, MaskFormat.cs: Added
24744
24745 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
24746
24747         * PropertyGridView.cs: Fix keyboard navigation of drop down.
24748         Patch from eno for bug 78558.
24749         
24750 2006-07-13  Jackson Harper  <jackson@ximian.com>
24751
24752         * TreeView.cs: When an edit is finished make sure that the
24753         selected node is visible.
24754         - When setting the top/bottom use the scrollbars is_visible, so
24755         everything will be set correctly even if the tree isn't visible
24756         yet.
24757
24758 2006-07-13  Jackson Harper  <jackson@ximian.com>
24759
24760         * ComboBox.cs: Revert the item->index part of my previous patch.
24761         * TreeView.cs: Use LostFocus instead of Leave for detecting when
24762         the edit box has lost focus (duh).
24763         - Just make the edit box not visible when we get return, that will
24764         take the focus, which will call EndEdit
24765         * TreeNode.cs When we start editing, notify the treeview.
24766
24767 2006-07-12  Jackson Harper  <jackson@ximian.com>
24768
24769         * ComboBox.cs: Clear out old items before setting the item list.
24770         This prevents databound controls from having their items added
24771         twice.
24772         - Switch the combobox to use indices whereever possible instead of
24773         using Item's.  This allows usto navigate through lists that have
24774         more then one item with the same string value (ie a, b, b, a).
24775         - Scroll the listboxes scrollbar when a non visible item is
24776         highlighted
24777         - Allow keypress to cycle through all the possible values. For
24778         example if you have b1, b2, b3 and hold down the B key all the
24779         values will be cycled through.
24780         
24781 2006-07-12  Jackson Harper  <jackson@ximian.com>
24782
24783         * TextBoxBase.cs:
24784         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
24785         this using the internal methods.
24786         * Control.cs: Add OnGotFocusInternal.  A new method that allows
24787         controls to "override" OnGotFocus and change focus behavior if
24788         needed.
24789         - Same thing for LostFocus
24790         * ComboBox.cs: Pass off focus to the text control properly.
24791
24792 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
24793
24794         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
24795         * FolderBrowserDialog.cs: Almost a complete rewrite.
24796           - Better support for Environment.Specialfolders
24797           - Added support for MWFVFS
24798           - Made setting SelectedPath work
24799
24800 2006-07-12  Jackson Harper  <jackson@ximian.com>
24801
24802         * Control.cs: Optimze getting all the controls.
24803
24804 2006-07-11  Jackson Harper  <jackson@ximian.com>
24805
24806         * ContainerControl.cs: Override SETFOCUS in the container control,
24807         so that it is not selected on mouse click.
24808
24809 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
24810
24811         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
24812           Hopefully we will have a better way once all of focus is complete.
24813
24814 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
24815
24816         * ThemeWin32Classic.cs: Commented out some debug code and fixed
24817           a compile error with csc.
24818
24819 2006-07-11  Jackson Harper  <jackson@ximian.com>
24820
24821         * Control.cs: When hiding a control only select the next control
24822         if the current control was focused.
24823         - Don't handle enter/leave when setting/killing focus, this is
24824         done by the container control.
24825         - Remove is_selected, it's not needed anymore.
24826         - Add utility methods for selecting a child control, and for
24827         firing the Enter/Leave events.
24828         * ContainerControl.cs: When a control is activated fire the
24829         enter/leave events.
24830         - Don't wrap when processing the tab key, so that focus can be
24831         moved outside of the container.
24832         - Use the correct active control
24833
24834 2006-07-11  Jackson Harper  <jackson@ximian.com>
24835
24836         * ComboBox.cs: Remove some debug code that was blinding me.
24837         * UpDownBase.cs: These controls actually aren't implicit, they are
24838         visible to the user.
24839
24840 2006-07-10  Chris Toshok  <toshok@ximian.com>
24841
24842         * DataGrid.cs: move back to the is_adding boolean field.  god i
24843         hate this is_editing/is_adding/is_changing stuff.
24844
24845 2006-07-10  Chris Toshok  <toshok@ximian.com>
24846
24847         * DataGridTableStyle.cs: just check if the property type is bool.
24848         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
24849         Don't use CanRenderType.
24850
24851         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
24852         if our text == NullText.  Remove CanRenderType.
24853
24854         * DataGridBoolColumn.cs: nuke CanRenderType.
24855
24856         * DataGrid.cs: reenable some code to end the current edit inside
24857         of set_CurrentCell.  This fixes the other 1.1.16 regression.
24858         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
24859         Also, remove the visible_row_count arg from CalcRowHeaders, since
24860         we don't need to worry about the actual height of the area.
24861
24862 2006-07-10  Chris Toshok  <toshok@ximian.com>
24863
24864         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
24865         mode, just return.
24866
24867         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
24868         the real sense of the IsInEditOrNavigateMode property (true =
24869         navigate, false = edit).  Also, update OnKeyPress to reflect this.
24870
24871         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
24872         column style exists, we still need to set its property descriptor
24873         to match up with our list manager.
24874
24875 2006-07-10  Chris Toshok  <toshok@ximian.com>
24876
24877         * ThemeWin32Classic.cs: implement the new row/header painting
24878         approach.  The parent row painting will likely go away and
24879         replaced with label controls, but the rest seems to work ok (and
24880         efficiently).
24881
24882         * Theme.cs: change the way we draw datagrid rows.  we don't draw
24883         the row headers as a block now.  Instead we draw them in the
24884         normal draw-row loop.  Add some calls for drawing parent rows and
24885         relation rows.
24886
24887         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
24888         a default table style.  Set the defaults from ThemeEngine.Current,
24889         not SystemColors.  Fix lots of misc issues with property setters.
24890
24891         * DataGrid.cs: move loads of style information out of this class
24892         as it's being duplicated with DataGridTableStyle.  keep track of a
24893         special DataGridTableStyle for the properties we used to mirror
24894         here.  Switch all the style properties to access this table style
24895         instead of instance fields of this class.  Also add a internal
24896         class to represent parent rows (more needs to be stored here, like
24897         the selection state from the parent table, as well as the
24898         expansion state.)  Also, for datasources with relations, do the
24899         right thing for collapse/expand, and add support for the
24900         navigation/parent row buttons.
24901
24902         Lastly, fix the crash in the 1.1.16 build.
24903
24904         * GridTableStylesCollection.cs: make the explicit interface
24905         implementations call the class's methods as opposed to duplicating
24906         them.
24907
24908         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
24909         0 so the text doesn't jump around when we move the cursor.
24910
24911 2006-07-10  Jackson Harper  <jackson@ximian.com>
24912
24913         * TextBoxBase.cs:
24914         * ListBox.cs: Match MS's ToString (this makes debugging focus
24915         stuff infinitely easier).
24916
24917 2006-07-10  Jackson Harper  <jackson@ximian.com>
24918
24919         * Control.cs (SelectNextControl): When checking the control's
24920         parent use this instead of ctrl.parent so that null can be passed
24921         to SelectNextControl. (I have unit tests for this).
24922         - Remove unused var.
24923
24924 2006-07-10  Chris Toshok  <toshok@ximian.com>
24925
24926         * CurrencyManager.cs: correct one regression, the removal of the
24927         finalType field.  Also, add a MonoTODO on CanAddRows, implement
24928         Refresh() correctly, and fix some event emission in
24929         ListChangedHandler.
24930
24931 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
24932
24933         * FileDialog.cs: Don't use brackets for new folders if they exist
24934           under *nix. Instead use -(number of existing folders +1).
24935
24936 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
24937
24938         * FileDialog.cs:
24939           - Fixed really nasty bug #78771
24940           - Don't block the whole GUI when reading directories with a lot of
24941             entries. Use an other thread instead and call BeginInvoke to
24942             update the ListView in MWFFileView
24943
24944 2006-07-07  Chris Toshok  <toshok@ximian.com>
24945
24946         * Control.cs (Dispose): release any Capture when disposing.
24947
24948 2006-07-07  Chris Toshok  <toshok@ximian.com>
24949
24950         * LinkLabel.cs (Select): if we chain up to the parent, set
24951         focused_index to -1 so we'll search for the first available link
24952         the next time the user tabs into us.  Also, if the direction is
24953         backward and focused_index == -1, start the search from the last
24954         element.
24955
24956 2006-07-07  Chris Toshok  <toshok@ximian.com>
24957
24958         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
24959         is beyond the end of the text, don't do anything.
24960         (CreateLinkPieces): set our ControlStyles.Selectable based on
24961         whether or not we have any links.
24962         (Link.Invalidate): use a loop instead of foreach.
24963         (Link.set_Start): null out owner.sorted_links so it'll be
24964         recreated by CreateLinkPieces.
24965
24966 2006-07-06  Chris Toshok  <toshok@ximian.com>
24967
24968         * LinkLabel.cs: revert the SetStyle change.
24969
24970 2006-07-06  Chris Toshok  <toshok@ximian.com>
24971
24972         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
24973         (OnEnableChanged): s/Refresh/Invalidate
24974         (OnGotFocus): if we have a focused index already, refocus it (so
24975         if we mouse out/in to the window it'll focus the right link).
24976         (OnKeyDown): move the tab handling out of here.
24977         (OnLostFocus): don't set focused_index to -1, so we can refocus it
24978         when we lose focus.
24979         (OnMouseDown): don't Capture here - Control handles it.  Also,
24980         focus the active link.
24981         (OnMouseUp): don't deal with Capture.
24982         (OnPaintBackgroundInternal): remove.
24983         (OnTextAlignChanged): CreateLinkPieces before calling the
24984         superclass's method.
24985         (OnTextChanged): call CreateLinkPieces before calling superclass's
24986         method.
24987         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
24988         move around.
24989         (Select): implement this, moving the selection between different
24990         links, and call parent.SelectNextControl if we don't have another
24991         link to focus in the given direction.
24992         (CreateLinkPieces): call Invalidate instead of Refresh.
24993         
24994 2006-07-06  Chris Toshok  <toshok@ximian.com>
24995
24996         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
24997         new LinkLabel internals.
24998
24999         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
25000         over pieces looking for active/focused/etc links.  also, deal with
25001         runs of text (and links) with embedded \n's in them, and use
25002         MeasureCharacterRanges instead of MeasureString to figure out the
25003         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
25004         two-step.
25005
25006 2006-07-04  Jackson Harper  <jackson@ximian.com>
25007
25008         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
25009         XKB or key auto repeat, do it manually.  Without key auto repeat,
25010         when a key is held down we get key press, key release, key press,
25011         key release, ... with auto repeat we get key press, key press, key
25012         press ..., and then a release when the key is actually released.
25013
25014 2006-07-03  Jackson Harper  <jackson@ximian.com>
25015
25016         * TabControl.cs:
25017         * ThemeWin32Classic.cs: Tabs do not obey normal background color
25018         rules, they are always control color regardless of the background
25019         color.
25020
25021 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
25022
25023         * FileDialog.cs: Added internal class MWFConfig.
25024           Removed Registry support and replaced it with support for the new
25025           MWFConfig class. See MWFConfig comments for more information.
25026
25027 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
25028
25029         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
25030           rectangle. Added some patches from eno from bug #78490 and fixed
25031           the arrow position for small up and down CPDrawScrollButtons.
25032
25033 2006-06-30  Jackson Harper  <jackson@ximian.com>
25034
25035         * InternalWindowManager.cs: Remove some debug code.
25036         * Form.cs: When an MdiParent is set to null, the window is
25037         "detatched" and becomes a normal window.
25038         * MdiClient.cs: Don't bring the new child form to the front until
25039         it is activated (setting it as active does this), this makes the
25040         previously active forms titlebar get redrawn as inactive.
25041
25042 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
25043
25044         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
25045           with later controls
25046
25047 2006-06-29  Mike Kestner  <mkestner@novell.com>
25048
25049         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
25050         arrow in keynav state.  Fixes #78682.
25051
25052 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
25053
25054         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
25055           order (fixes #78393)
25056
25057 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
25058
25059         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
25060           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
25061           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
25062           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
25063           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
25064           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
25065           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
25066           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
25067           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
25068           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
25069           enumerations (FlagsAttribute, SerializableAttribute, added/removed
25070           values)
25071
25072 2006-06-28  Mike Kestner  <mkestner@novell.com>
25073
25074         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
25075
25076 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
25077
25078         * PropertyGrid.cs,
25079           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
25080           item lines from other area (It also makes BackColor consistent and
25081           compatible with .NET). Fixed bug #78564.
25082
25083 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
25084
25085         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
25086         Patch from Eno for #78555.
25087
25088 2006-06-27  Chris Toshok  <toshok@ximian.com>
25089
25090         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
25091
25092         * DataGridColumnStyle.cs: same.
25093
25094         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
25095         
25096         * DataGridDrawingLogic.cs: nuke.
25097
25098 2006-06-27  Chris Toshok  <toshok@ximian.com>
25099
25100         * DataGridTableStyle.cs: clean up the constructors, and build the
25101         list of child relations for this table.  I have no idea if this is
25102         where we should be doing it (it probably isn't), but since we're
25103         already iterating over the properties..
25104
25105         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
25106         struct and array for keeping track of row information, similar to
25107         what's shown in a hack on
25108         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
25109
25110         * Theme.cs: be consistent about the naming of DataGrid methods,
25111         prefering ColumnWidths and RowHeights over columnsWidths and
25112         RowsHeights.
25113
25114         * ThemeWin32Classic.cs: same, and also add support for variable
25115         sized rows (and the +/- expansion icons for related rows).
25116
25117 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
25118
25119         * TextBoxBase.cs: Applied Eno's patch from #78660
25120
25121 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
25122
25123         * Form.cs (ScaleCore): We don't want to scale our form if it's
25124           state is minimized or maximized, but we still need to scale our
25125           child windows. Also, added try/finally block to ensure layout
25126           gets reset (Fixes #78697)
25127
25128 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
25129
25130         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
25131
25132 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
25133
25134         * Form.cs: Fixed c+p error and added check to resize form if minimum
25135           size is bigger than current size (Fixes #78709)
25136
25137 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
25138
25139         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
25140
25141 2006-06-26  Mike Kestner  <mkestner@novell.com>
25142
25143         * ComboBox.cs: only do Keypress handling in the combo when there  
25144         are items in the collection. Fixes #78710.
25145
25146 2006-06-26  Chris Toshok  <toshok@ximian.com>
25147
25148         * Binding.cs: make this work bi-directionally.  also, clear up
25149         other mixups between Push/Pull Data (e.g. we're supposed to pull
25150         data when validating).
25151
25152         * BindingManagerBase.cs: trim some fully qualified collection
25153         types.
25154
25155         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
25156
25157 2006-06-23  Chris Toshok  <toshok@ximian.com>
25158
25159         * PropertyManager.cs: It appears (according to the unit tests)
25160         that PropertyManager doesn't use
25161         PropertyDescriptor.AddValueChanged to track propery value changes
25162         in its datasource, but uses the same scheme as Binding, where it
25163         looks for a <Property>Changed event and binds to it.
25164
25165         Also, according to the docs, IsSuspended always returns false for
25166         a property manager with a non-null datasource.
25167
25168 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
25169
25170         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
25171           need to update the actual DialogResult. (Fixes #78613)
25172
25173 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
25174
25175         * Form.cs (ShowDialog): Release any captures before running the
25176           new message pump (fixes #78680)
25177
25178 2006-06-22  Mike Kestner  <mkestner@novell.com>
25179
25180         * ListView.cs: Layout column widths properly in details mode even 
25181         if HeaderStyle.None is set.  Fixes #78691.
25182
25183 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
25184
25185         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
25186
25187 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
25188
25189         * Control.cs (ContainsFocus): Using new driver method to get focused
25190           window, instead of trying to use internal tracking var, which can
25191           recursion issues (Fixes #78685)
25192         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
25193           XplatUIWin32.cs: Added GetFocus method to return focused window
25194
25195 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25196
25197         * ColorDialog.cs: when the mouse button is pressed inside the color
25198         matrix, don't let the cursor move out of it until the button is
25199         released, which is the behavior on windows. Changed 'colours' by
25200         'colors' to use the same word consistently.
25201
25202 2006-06-21  Chris Toshok  <toshok@ximian.com>
25203
25204         * DataGrid.cs: add in some basic navigation stuff (navigating to a
25205         child relation and back, using a stack).  Also, remove
25206         GetDataSource and the code that calls it - it's not needed.  Also,
25207         track CurrencyManager.ListName's removal.
25208
25209 2006-06-21  Chris Toshok  <toshok@ximian.com>
25210
25211         * CurrencyManager.cs: push some of the original type checking from
25212         BindingContext.CreateBindingManager to here, and remove some of
25213         the finalType stuff.  Need more tests to make sure I've got the
25214         ListName part right, and we might need more in SetDataSource.
25215
25216         * PropertyManager.cs: add a ctor that takes just the datasource,
25217         and no property name.  Make SetDataSource work with a null
25218         property_name, and make Current return the data_source if the
25219         property descriptor is null.  this makes 'string foo = "hi";
25220         BindingContext[foo].Current' return "hi" as it should.
25221
25222         * RelatedCurrencyManager.cs: make this code more generic - there's
25223         no reason the parent manager has to be CurrencyManager, and
25224         there's no reason to pass the DataRelation.  It suffices to use a
25225         BindingManagerBase and PropetyDescriptor.
25226
25227         * RelatedPropertyManager.cs: make a similar change here.
25228         
25229         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
25230         flower I knew it could be.
25231
25232 2006-06-20  Chris Toshok  <toshok@ximian.com>
25233
25234         * PropertyManager.cs: the PropertyChangedHandler is invoked when
25235         data in the source has changed and we need to update the control,
25236         so s/PullData/PushData.
25237
25238         * CurrencyManager.cs: Refresh is meant to update the control from
25239         data in the datasource.  So, s/PullData/PushData.
25240
25241         * BindingContext.cs: add more ugliness (we weren't handling the
25242         case where data_source = DataTable and data_member = column_name).
25243
25244         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
25245         from the perspective of the datasource.  PullData pulls from the
25246         control, PushData pushes to the control.
25247
25248 2006-06-20  Chris Toshok  <toshok@ximian.com>
25249
25250         * BindingContext.cs: rewrite the CreateBindingManager code to
25251         handle navigation paths more or less properly.  This could
25252         definitely stand some more work, in particular to push the
25253         recursion up to the toplevel.  But that relies on fixes in other
25254         places (System.Data comes to mind).
25255
25256         Also, move to a flat hashtable (and encode the twolevel nature of
25257         the dictionary into the hash key).  This lets us implement the
25258         IEnumerable.GetEnumerator method.
25259
25260         * RelatedCurrencyManager.cs: new class.  Update our view based on
25261         our relation and our parent CurrencyManager's position.
25262
25263         * CurrencyManager.cs: split out some logic from the ctor into
25264         SetView, so it can be called from the new RelatedCurrencyManager
25265         subclass.
25266
25267         * RelatedPropertyManager.cs: new class.  Update our datasource
25268         based on the position of our parent CurrencyManager.
25269
25270         * PropertyManager.cs: split out some logic from the ctor into
25271         SetDataSource, so it can be called from the new RelatedDataSource
25272         subclass.  Also, make the Current getter return the value
25273         of the PropertyDescriptor, not the data_source.
25274
25275         * Binding.cs: no need to duplicate the string splitting code here.
25276
25277 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
25278
25279         * Control.cs:
25280           - set_Enabled: OnEnabledChanged is not called if the inherited state 
25281             of the control is not altered, even though  we might be changing the
25282             internal state of the control (#78458)
25283           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
25284             OnEnabledChanged, to allow easy altering of any child window state
25285           - OnEnabledChanged: Added code to enable/disable driver window state
25286           - OnParentEnabledChanged: Instead of firing the event, call 
25287             OnEnabledChanged, which will fire the event and also a) set driver
25288             window state and pass the enabled state to any grandchildren (#78458)
25289
25290 2006-06-19  Jackson Harper  <jackson@ximian.com>
25291
25292         * InternalWindowManager.cs: We don't set the cursor explicitly
25293         thats done via the response to NCHITTESTs.
25294         - Don't need to adjust for titlebar heights anymore, the
25295         coordinates are coming in the correct coordinates now (see peters
25296         last patch).
25297
25298
25299 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
25300
25301         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
25302           being translated relative to whole window, instead of client window.
25303           That caused broken offsets on mouseclick (and caused gas for our
25304           InternalWindowManager)
25305
25306 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
25307
25308         * TextControl.cs:
25309           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
25310           - Undo(): Added replay of cursor move on DeleteChars action; added
25311             calling Undo() again if a recorded cursor move is invalid (to
25312             ensure that some action is performed on Undo)
25313         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
25314
25315 2006-06-16  Jackson Harper  <jackson@ximian.com>
25316
25317         * MdiClient.cs: Instead of just sizing maximized windows when
25318         there is a resize we also have to adjust the Y of minimized
25319         windows, so they stay pinned to the bottom of the mdi container.
25320         - Eliminate separate tracking of the active control, we can just
25321         get this from the controls collection.
25322         - Paint the decorations for the newly activated titlebar so we get
25323         a pretty blue bar.
25324         * InternalWindowManager.cs:
25325         * ThemeWin32Classic.cs: Minimized windows get all three buttons
25326         even if they are a tool window.
25327         
25328 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
25329
25330         * TextControl.cs (Undo): Handle non-existent cursor locations in the
25331           undo buffer, these can happen when text was deleted and the cursor
25332           was recorded first. Since we will also have a recorded cursor
25333           after the delete this is not an issue. (Fixes #78651)
25334
25335 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
25336
25337         * AccessibleObject.cs: Remove dependence on Control.is_selected;
25338           instead properly track control states internally (allows us to
25339           remove is_selected from Control)
25340
25341 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25342
25343         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
25344         whose width is not a multiple of 8.
25345
25346 2006-06-13  Jackson Harper  <jackson@ximian.com>
25347
25348         * MdiClient.cs:  Only maximize the next child if the current one
25349         is maximized.
25350
25351 2006-06-13  Chris Toshok  <toshok@ximian.com>
25352
25353         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
25354         modified.  Also, guard against grid or grid_drawing being null in
25355         Invalidate.
25356
25357         * DataGrid.cs: Reformat tons of getters/setters.  In the
25358         DataMember setter, just call SetNewDataSource instead of
25359         duplicating some of its functionality.  In SetNewDataSource, don't
25360         check ListManager for null, since the property getter creates the
25361         object if needed.
25362
25363         * DataGridTableStyle.cs: don't set TableStyle or call
25364         SetDataGridInternal on the column here, it's done in
25365         GridColumnStylesCollection.Add.
25366
25367         * GridColumnStylesCollection.cs: fix all the explicit interface
25368         implementations to just call our methods.  Nuke AddInternal() and
25369         move the body of it to Add().  Also, add a call to
25370         column.SetDataGridInternal to Add().
25371
25372         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
25373         base()+duplicate code.  Also, use the Format property instead of
25374         format to generate an Invalidate ala MS.  Lastly, create the
25375         textbox here, unconditionally.
25376         (set_Format): call Invalidate.
25377         (get_TextBox): no need to call EnsureTextBox.
25378         (Commit): remove the message box.
25379         (Edit) remove the call to EnsureTextBox.
25380         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
25381         (EnterNullValue): no need to check textbox for null.
25382         (HideEditBox): no need to check textbox for null.
25383         (SetDataGridInColumn): add the textbox to the grid's controls.
25384         (EnsureTextBox): nuke.
25385         
25386 2006-06-13  Jackson Harper  <jackson@ximian.com>
25387
25388         * MdiWindowManager.cs: Hook up to the maximized menus paint event
25389         and redraw the buttons when needed. Unhook when the window is
25390         unmaximized.
25391         * MainMenu.cs: Add an internal Paint event, the mdi window manager
25392         needs this so that it can redraw its buttons when the menu is
25393         repainted.
25394         * InternalWindowManager.cs:
25395         * Form.cs: The method order has changed for DrawMaximizedButtons,
25396         so that it can be a PaintEventHandler.
25397         
25398 2006-06-13  Jackson Harper  <jackson@ximian.com>
25399
25400         * MdiClient.cs: When we close a maximized mdi window, the next mdi
25401         window is activated and maximized, even if it wasn't before.
25402         - When  a new window is activated repaint the decorations of the
25403         old one, so that it no longer has the Active "look" (the blue
25404         titlebar).
25405         * InternalWindowManager.cs: Open up CreateButtons to base classes
25406         so they can recreate the buttons on state changes.
25407         - If a window is maximized give it all three buttons
25408         * MdiWindowManager.cs: Create the titlebar buttons when the state
25409         is changed, this is needed because a toolwindow will not have all
25410         three buttons until it is maximized.
25411
25412 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
25413
25414         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
25415           Fixed bug #78609.
25416
25417 2006-06-12  Jackson Harper  <jackson@ximian.com>
25418
25419         * KeysConverter.cs: Make sure we handle the Ctrl special case
25420         if its the only key.
25421         
25422 2006-06-12  Jackson Harper  <jackson@ximian.com>
25423
25424         * Theme.cs: Add a method to get the size of a managed window
25425         toolbar button.
25426         * InternalWindowManager.cs: Remove the ButtonSize property, this
25427         should be retrieved from the theme.
25428         * MdiWindowManager.cs: Get the button size from the theme
25429         * ThemeWin32Classic.cs: Make the method to get the managed window
25430         titlebar button size public.
25431         - Handle the different button sizes of maximized toolwindows
25432         (should match any maximized window).
25433         - Get the titlebar height from the theme, not the WM (which gets
25434         it from the theme).
25435
25436 2006-06-12  Jackson Harper  <jackson@ximian.com>
25437
25438         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
25439         event down to the mdi window manager.
25440         - Expose some extra stuff to base classes
25441         - Make sure to end the Capture on an NC Mouse up, so that we can
25442         get double clicks properly, and the sizing doens't stick.
25443         - When doing PointToClient contain it in the workable desktop
25444         area, this prevents windows from changing size when the cursor is
25445         pulled outside of the working area while sizing.
25446         * MdiWindowManager.cs: When we get a double click maximize the
25447         window.
25448         - Reset the cursor after handling mode changes.
25449
25450 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
25451
25452         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
25453           current desktop, instead of just assuming a 0, 0 origin. This
25454           is needed for our internal window manager, to know the top
25455           margin of the desktop
25456
25457 2006-06-12  Chris Toshok  <toshok@ximian.com>
25458
25459         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
25460         we need this to get rid of the selected background in the bool
25461         column.
25462         (CancelEditing): move the ConcedeFocus call to above the Abort
25463         call.  Also, set is_changing to false and invalidate the row
25464         header if we were changing before.
25465         (ProcessKeyPreviewInternal): remove, since noone outside this
25466         class calls it anymore.  Roll the code into ProcessKeyPreview.
25467         (EndEdit): remove the internal version.
25468         (InvalidateCurrentRowHeader): make private.
25469
25470         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
25471         Keys.Escape handling (and with it the last call to
25472         DataGrid.EndEdit from outside the class.)
25473
25474
25475 2006-06-12  Chris Toshok  <toshok@ximian.com>
25476
25477         * DataGridTextBox.cs (.ctor): isedit defaults to false.
25478         (OnKeyPress): set isedit to true.
25479         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
25480         already handled by the grid.
25481
25482         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
25483         right.  ugh.
25484         (set_DataSource): SetDataSource always returns true, so stop
25485         putting it in an if statement.
25486         (EndEdit): get rid of some {}'s
25487         (ProcessGridKey): return true in case Keys.Escape.
25488         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
25489         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
25490         PositionChanged, stopped connecting to CurrentChanged.
25491         (GetDataSource): simplify this a bunch.
25492         (SetDataSource): change return type from bool to void.
25493         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
25494         to this, and make sure we don't set ListManager.Position inside
25495         set_CurrentCell.
25496         (OnListManagerItemChanged): if we're passed an actual index,
25497         redraw that row.
25498
25499         * CurrencyManager.cs (set_Position): don't call PullData here.
25500
25501 2006-06-09  Jackson Harper  <jackson@ximian.com>
25502
25503         * TreeNode.cs:  Recalculate the visible order before doing the
25504         Expand/Collapse Below calls, because those calls generate an
25505         expose.
25506         - Reduce calls to the TreeView property, which is mildly expensive
25507         by using a local var.
25508         * Form.cs: Layout the MDI child windows when creating the parent
25509         form.
25510         - Don't use the internal constructor anymore
25511         * MdiClient.cs: use the parent form width/height (if available)
25512         when laying out the child windows, we do this because the
25513         mdiclient isn't docked yet when the initial layout is done.
25514         - Don't need an internal constructor anymore.
25515
25516 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25517
25518         * FileDialog.cs: handle access errors when trying to create a folder
25519         or changing to a directory. No need to initialize out parameters.
25520
25521 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25522
25523         * FileDialog.cs: Append a number when creating a new folder if the
25524           folder already exists (use parenthesis instead of square brackets)
25525
25526 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25527
25528         * FileDialog.cs:
25529           - Disabled registry support for windows and added better registry
25530             error checking for other systems (need to investigate why it
25531             works perfectly on my system)
25532           - If a folder already exist show an error MessageBox instead of
25533             trying to create an indexed name.
25534           - Fixed a non intentional typo.
25535
25536 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25537
25538         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
25539
25540 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25541
25542         * FileDialog.cs: When creating a new folder don't crash if the
25543           folder already exists.
25544
25545 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25546
25547         * FileDialog.cs: Allmost a complete rewrite.
25548           - added a "virtual" file system that handles the differences
25549             between unix and windows file systems (especially the directory
25550             structure). Moved most of the directory and file handling code
25551             into the vfs.
25552             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
25553             UnixFileSystem and FSEntry.
25554           - Recently used folder/directory, size, location and used file names
25555             (file name ComboBox) are now stored in the registry and get read
25556             before the dialog shows up (fixes part 6 of bug #78446).
25557           - Creation of new folders/directories is now possible (context menu
25558             or ToolBar). Added TextEntryDialog for this that fills in the gap
25559             until ListView.LabelEdit works.
25560           - Fixed cursor handling (bug #78527) and focus handling for
25561             PopupButtonPanel
25562           - Various "Search in" ComboBox enhancements. The content of the
25563             dropdown listbox now almost matches ms.
25564           - Changed the behaviour when the user switches to SpecialFolder
25565             Recent to show the ListView in View.Details.
25566           - Beside using the ToolBar to change the View property of the
25567             file ListView it is now possible to use the context menu too.
25568
25569 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25570
25571         * ComboBox.cs: Don't create a new ObjectCollection when an item
25572           gets inserted. Just insert the item in the existing object_items
25573           ArrayList.
25574
25575 2006-06-08  Jackson Harper  <jackson@ximian.com>
25576
25577         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
25578         that the treeview and root node checks are done also, this fixes a
25579         regression i caused in the unit tests.
25580
25581 2006-06-07  Wade Berrier <wberrier@novell.com> 
25582
25583         * RichTextBox.cs: More ISO8859-1 -> unicode
25584
25585 2006-06-07  Mike Kestner  <mkestner@novell.com>
25586
25587         * ComboBox.cs : use items to hold highlight/selection so that
25588         collection insertions don't require synchronization.
25589
25590 2006-06-07  Jackson Harper  <jackson@ximian.com>
25591
25592         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
25593         routine.  We now always keep the sized edge at the cursor instead
25594         of computing movement and adjusting rects.  There is one buglet
25595         with this method though when the cursor is moved over area that
25596         the window can not expand too (such as the toolbars on the desktop).
25597
25598 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25599
25600         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
25601         here. Fixes crash on startup in AlbumSurfer.
25602
25603 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
25604
25605         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
25606           values
25607
25608 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25609
25610         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
25611         statement to avoid calling XNextEvent which will block if another thread
25612         took the event that we were expecting. Fixes bug #78605.
25613
25614 2006-06-07  Mike Kestner  <mkestner@novell.com>
25615
25616         * ListView.cs : isolated checkbox clicking from the selection logic.
25617         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
25618
25619 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
25620
25621         * Form.cs: Check that the value passed to Form.DialogResult
25622         is a valid enum value.
25623
25624 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25625
25626         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
25627         Computer'. Clicking it in the network view goes to 'My Computer'.
25628         Added CIFS filesystem type. Display the mount point of filesystems.
25629         Avoid duplicate mount points (happens for me with CIFS);
25630
25631 2006-06-06  Jackson Harper  <jackson@ximian.com>
25632
25633         * InternalWindowManager.cs: Draw the maximized windows buttons
25634         when resizing.
25635
25636 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25637
25638         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
25639         all other dialogs. Fixes bug #78585.
25640
25641 2006-06-06  Mike Kestner  <mkestner@novell.com>
25642
25643         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
25644         Only invalidate checkbox on checkstate changes to avoid flicker.
25645         * ListBox.cs : avoid unselect/select when clicking selected item.
25646         avoid reselection flicker for already multiselected items.
25647         Fixes #78382.
25648
25649 2006-06-06  Jackson Harper  <jackson@ximian.com>
25650
25651         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
25652         the parent form so that the menu is removed if needed.
25653
25654 2006-06-06  Mike Kestner  <mkestner@novell.com>
25655
25656         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
25657         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
25658
25659 2006-06-06  Mike Kestner  <mkestner@novell.com>
25660
25661         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
25662
25663
25664 2006-06-06  Jackson Harper  <jackson@ximian.com>
25665
25666         * Control.cs: Use the property (instead of the field) to get the
25667         default cursor so it is instantiated correctly.
25668         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
25669         resizes so we need to manually repaint the window decorations here.
25670         - Set the titlebar button locations as soon as they are created,
25671         otherwise they are not set correctly on win32.
25672         
25673 2006-06-06  Chris Toshok  <toshok@ximian.com>
25674
25675         * CurrencyManager.cs (set_Position): call PullData before
25676         OnCurrentChanged.
25677         (AddNew): after calling IBindingList.AddNew, update our
25678         listposition, and call OnCurrentChanged/OnPositionChanged (without
25679         calling PullData).
25680         (OnCurrentChanged): remove the call to PullData from here.
25681         (OnItemChanged): remove the call to PushData from here.
25682         (OnPositionChanged): change the test from == null to != null to
25683         match the other methods.
25684         (ListChangedHandler): the grossest part of the patch.  Implement
25685         this such that it passes the unit tests in CurrencyManagerTest and
25686         the output more or less matches that of MS's implementation.
25687  
25688 2006-06-06  Mike Kestner  <mkestner@novell.com>
25689
25690         * ListView.cs : only update check state on single click.
25691         * ThemeWin32Classic.cs : fix focus drawing for details view without
25692         fullrowselect.  Fixes #78454.
25693         * XplatUIX11.cs : fix for double click emission.
25694
25695 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
25696
25697         * PropertyGridView.cs : Applied Atsushi's patch to fix
25698         font dialog bug  (#78197).
25699
25700 2006-06-05  Jackson Harper  <jackson@ximian.com>
25701
25702         * TreeNode.cs: Compute the next node for expanding/collapsing
25703         correctly. We now factor in nodes without a NextNode
25704         correctly. (Fixes somes cases in nunit-gui).
25705         * InternalWindowManager.cs: Set the bounds when updating the
25706         virtual position of a tool window.
25707         
25708 2006-06-05  Chris Toshok  <toshok@ximian.com>
25709
25710         * DataGrid.cs: rename cached_currencymgr to list_manager.
25711         (set_CurrentCell): move SetCurrentCell code here, and clean it up
25712         some.
25713         (CurrentRow, CurrentColumn): single accessors so we can make the
25714         cursor movement code a lot easier to understand.
25715         (CurrentRowIndex): implement this in terms of CurrentRow.
25716         (BeginEdit): clean this up a bit.
25717         (CancelEditing): sort out the is_editing/is_changing/is_adding
25718         stuff a little.
25719         (EndEdit): minor changes.
25720         (OnKeyDown): add a comment about a (most likely) unnecessary
25721         check.
25722         (OnMouseDown): cancel editing when we click on a row header.  And
25723         use the CurrentRow setter, not CurrentCell.
25724         (ProcessDialogKey): directly call ProcessGridKey.
25725         (UpdateSelectionAfterCursorMove): factor out this common block of
25726         code (it's used everywhere that we move the cursor by updating row
25727         or column).
25728         (ProcessGridKey): pretty substantial overhaul.  Use the
25729         CurrentRow/CurrentColumn properties to make the code a lot more
25730         readable.  Only use the CurrentCell property when we have to
25731         modify both row and column at once.  Tab behavior is still broken,
25732         and Delete is untested.
25733         (Select): if we have no selected rows, set selection_start to
25734         @row.
25735         (EditCurrentCell): rename EditCell this.  It was only ever invoked
25736         with CurrentCell as the arg, so drop the arg and rename it.
25737
25738         * DataGridColumnStyle.cs: clean up the constructors a little, and
25739         drop CommonConstructor().
25740
25741         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
25742         actually get notified when the user hits it.
25743         (ProcessKeyMessage): *substantially* simplify this method.
25744         There's no reason (that I can see) for the textbox to be making
25745         calls into the datagrid at all.  Remove all of them but the ones
25746         for Enter handling.  those will take some more work.
25747
25748         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
25749         calling HideEditBox.
25750         (HideEditBox): if we have an active textbox, render it invisible
25751         without causing a re-layout of the datagrid.
25752
25753 2006-06-05  Mike Kestner  <mkestner@novell.com>
25754
25755         * ListView.cs : fix NRE crasher when focuseditem is cleared by
25756         collection changes by resetting it to Items[0].  Fixes #78587.
25757
25758 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25759
25760         * MessageBox.cs: if the height of the text is larger than the icon_size,
25761         use that. Fixes bug #78575.
25762
25763 2006-06-05  Jackson Harper  <jackson@ximian.com>
25764
25765         * TreeView.cs: Fix line drawing when scrolling.  To do this each
25766         node is basically responsible for drawing its entire horizontal
25767         area.  When drawing a node it draws its parent node lines if
25768         needed.
25769         - Adjust the clip area to the viewport rectangle
25770         - Fix Left/Right key handling to match MS. (It expand/collapses
25771         and moves to parents/first child but does not move selection to
25772         sibling nodes).
25773         - Fix SetTop to work with new bound calculation code
25774         - When scrollbars are no longer needed we need to reset scrolling
25775         vars and recalculate the visible order so the redraw is correct
25776         * TreeNode.cs: We can't expand/collapse nodes with no children.
25777
25778 2006-06-03  John Luke  <john.luke@gmail.com> 
25779
25780         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
25781         so the colors work without dev packages
25782         
25783 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
25784
25785         * Control.cs 
25786           - Select: Implemented to just use activate. Seems to match MS 
25787             behaviour closest. Documented to only do actual control walking 
25788             based on it's parameters if in a container control so I moved 
25789             the code there.
25790           - Removed selection check logic from our internal Select() method
25791         * ContainerControl.cs:
25792           - Select: Moved selection logic from Control here, since MS documents
25793             that containers obey the bool arguments. No longer calling base
25794
25795 2006-06-02  Jackson Harper  <jackson@ximian.com>
25796
25797         * TreeView.cs: If the selected node isn't changed when we get
25798         focus update the previously selected node so that we see the
25799         selection box.
25800
25801 2006-06-02  Mike Kestner  <mkestner@novell.com>
25802
25803         * ComboBox.cs: restructure grab and general mouse event handling.
25804         Make the composite control raise mouse events like it was a single
25805         control for leaves/enters/motion/up/down events.  fix dropdown list
25806         coordinate mangling and refactor it into the scrollbar subclass to
25807         reduce code duplication.  Fixes #78282 #78361 and #78457.
25808
25809 2006-06-02  Mike Kestner  <mkestner@novell.com>
25810
25811         * ScrollBar.cs: remove Capture setting/clearing, as it happens
25812         automatically in the Control.WndProc.
25813
25814 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25815
25816         * FileDialog.cs: fix crash when running SharpChess, which sets the
25817         FilterIndex to 2 with only one Filter.
25818
25819 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25820
25821         * ToolBar.cs: add SizeSpecified property.
25822         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
25823         try to figure out our real size, otherwise fallback to what the
25824         container says.
25825
25826 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
25827
25828         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
25829         * Control.cs (WndProc): MS always calls the DefWndProc to pass
25830           up the event
25831
25832 2006-06-01  Mike Kestner  <mkestner@novell.com>
25833
25834         * ListView.cs: revamp the focus management in ListView.  It still
25835         causes churn of LostFocus/GotFocus emissions on clicks, but it's
25836         better than not handling focus at all.  Will revisit when pdb feels
25837         the general focus handling is solid.  Fixes #78526.
25838
25839 2006-06-01  Jackson Harper  <jackson@ximian.com>
25840
25841         * TreeView.cs: Set the default border style in the constructor.
25842         - Move painting to use OnPaintInternal instead of capturing
25843         WM_PAINT, this is the correct way of doing things
25844         - UpdateBelow shouldn't invalidate the scrollbar area
25845         - Cap the top on update below in case the node was above the top
25846         of the viewport rectangle.
25847         - ExpandBelow and Collapse below need to obey Begin/End Update.
25848         * TreeNode.cs: Make is_expanded internal so the treenode
25849         collection can change it without firing the whole event chain.
25850         * TreeNodeCollection.cs: When clearing all the child nodes make
25851         sure to recalc the visible order.
25852         - Improve algo for remove the top node
25853
25854 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
25855
25856         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
25857           SendMessage directly calling window procedures, which in turn might
25858           call SetFocus()
25859
25860 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
25861
25862         * Control.cs: Don't handle WM_SETFOCUS if the same window already
25863           has focus (works around X11 sending a FocusIn after our SetFocus)
25864         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
25865
25866 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
25867
25868         * Mime.cs: Fix for the NET_2_0 build.
25869           NameValueCollection needs StringComparer now.
25870
25871 2006-05-31  Chris Toshok  <toshok@ximian.com>
25872
25873         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
25874         return (via an out parameter) the starting X of the column.
25875         (UpdateVisibleColumn): track change to FromPixelToColumn.
25876         (HitTest): add a ColumnResize case here.
25877         (DrawResizeLine): new function, probably poorly named.
25878
25879         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
25880         only need to keep one reference.
25881         (set_ListManager): same.
25882         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
25883         Also, add support for HitTestType.ColumnResize.
25884         (OnMouseMove): add column resize behavior here, and change the
25885         cursor to the correct one as we move around the datagrid.
25886         (OnMouseUp): terminate the column resize if we're resizing.
25887         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
25888         for the current cell.
25889         (ConnectListManagerEvents): use cached_currencymgr.
25890         (DisconnectListManagerEvents): fill this in, using
25891         cached_currencymgr.
25892         (SetCurrentCell): remove cached_currencymgr_events handling.
25893         (SetDataMember): only call DisconnectListManagerEvents if
25894         cached_currencymgr is != null.
25895         (SetDataSource): same.
25896         (OnListManagerCurrentChanged): cached_currencymgr_events ->
25897         cached_currencymgr.
25898
25899 2006-05-31  Jackson Harper  <jackson@ximian.com>
25900
25901         * BindingManagerBase.cs: Remove somedebug code that creeped into
25902         SVN.
25903         * TreeNode.cs: We get the indent level dynamically right now, so
25904         don't track it as a member.
25905         * TreeNodeCollection.cs: Make sure all nodes added to the list
25906         have parents, treeviews/topnodes setup properly.
25907         - Don't attempt to track indent level.
25908
25909 2006-05-30  Jackson Harper  <jackson@ximian.com>
25910
25911         * BindingContext.cs: Create the currency manager tables here.
25912         This allows us to more easily create null tables (when bad data
25913         members are used), and more easily create related currency
25914         managers.
25915         * CurrencyManager.cs: All the table creation stuff is done by the
25916         binding context now.
25917         - Current should throw an exception if listposition is -1.
25918         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
25919         been bound yet.
25920
25921 2006-05-30  Mike Kestner  <mkestner@novell.com>
25922
25923         * ListView.cs: allow reexpansion of zero-width column headers.
25924         Fixes #78528.
25925
25926 2006-05-28  Chris Toshok  <toshok@ximian.com>
25927
25928         * CurrencyManager.cs (get_Current): after the late binding
25929         listposition = -1 fix, we need to guard against it here and return
25930         null, otherwise we raise an exception (which is swallowed
25931         elsewhere, and breaks datagrid databinding.)
25932
25933 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
25934
25935         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
25936           than WM_SYSKEY, don't throw if get something unexpected (#78507)
25937
25938 2006-05-26  Jackson Harper  <jackson@ximian.com>
25939
25940         * ControlPaint.cs:
25941         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
25942         values, it's faster and it's all we care about (we don't care if
25943         the names aren't equal).
25944         * KeyboardLayouts.cs: Eliminate some dead code.
25945         - Lazy init things
25946         * X11Keyboard.cs: Lazy init keyboard detection.
25947         - Cleanup access modifiers a little.
25948
25949 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
25950
25951         * XplatUIX11.cs: Once again, attempting to get layout just right.
25952
25953 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
25954
25955         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
25956           the sizes of each link section, that will result in sizes that
25957           match DrawString's layout (Fixes #78391)
25958
25959 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
25960
25961         * FileDialog.cs: If AddExtension property is true autocomplete the
25962           extensions in SaveFileDialog correctly. Fixes bug #78453.
25963           Set MyNetwork and MyComputer to "C:\" for windows. This should
25964           fix part 8 of bug #78446 for now.
25965
25966 2006-05-26  Chris Toshok  <toshok@ximian.com>
25967
25968         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
25969         invalidate the current row header if we need to, but presumably
25970         we'll invalidate the row corrsponding to the bounds or
25971         editingControl.
25972         (GridHScrolled): switch back to this method, as it's part of the
25973         public api.  *sigh*.
25974         (GridVScrolled): same.
25975         (OnMouseWheel): hack up something that more or less works.  Call
25976         GridHScrolled/GridVScrolled directly, instead of duplicating much
25977         of their code here.
25978         (EnsureCellVisibility): reinstate a bunch of this code, since we
25979         can't just set the scrollbar Value and expect to do all the work
25980         in the ValueChanged handler.  Also, Call Update() after scrolling
25981         in one direction so the other XplatX11.ScrollWindow call has the
25982         proper stuff in the proper places.
25983         (EditCell): set is_editing to true before calling .Edit.
25984
25985         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
25986         don't bother comparing first.
25987         (OnKeyPress): call grid.ColumnStartedEditing before calling
25988         base.OnKeyPress.  this will set is_changing and invalidate the row
25989         header if necessary.
25990         (ProcessKeyMessage): for WM_CHAR messages, call
25991         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
25992         and WM_KEYDOWN.
25993         
25994         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
25995         it's done in the DataGrid.
25996         (NextState): call grid.ColumnStartedEditing, which takes care of
25997         invalidating the row header (and setting is_changing).
25998
25999         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
26000         here.  it's done in the DataGrid.
26001
26002 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26003
26004         * Control.cs: allow changing the cursor when the mouse position is
26005         out of bounds but Capture is set.
26006         * LinkLabel.cs: handle the case when the mouse button is pressed on the
26007         linklabel but released somewhere else.
26008
26009 2006-05-25  Jackson Harper  <jackson@ximian.com>
26010
26011         * TreeView.cs: When we get focus if there is no selected node make
26012         it the top node
26013         - Remove some uneeded setup code from Draw.
26014         * TreeNodeCollection.cs: If the tree doesn't have a top node when
26015         a new node is inserted make the new node the top.
26016         * XplatUIX11.cs:
26017         * Timer.cs: Use Utc time so that no local time zone stuff needs to
26018         be used (should be faster).
26019         
26020 2006-05-25  Chris Toshok  <toshok@ximian.com>
26021
26022         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
26023         problem with the last commit.
26024
26025 2006-05-25  Chris Toshok  <toshok@ximian.com>
26026
26027         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
26028         need the invalidate call here, while scrolling right-to-left via
26029         the left arrow key (i.e. moving the editing cell while scrolling).
26030
26031         * DataGrid.cs (.ctor): remove the initialization of
26032         ctrl_pressed/shift_pressed.  We no longer track them using key
26033         up/down handlers, but by using Control.ModifierKeys.  Also, switch
26034         to using ValueChanged handlers on the scrollbars instead of
26035         Scrolled event handlers.  This simplifies a bunch of the scrolling
26036         code.
26037         (GridHValueChanged): rename from GridHScrolled, and change it to
26038         work with the new event args.
26039         (GridVValueChanged): same.
26040         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
26041         (OnMouseWheel): actually scroll the datagrid.  Don't change the
26042         selected cell.
26043         (ProcessGridKey): correct all the keyboard navigation stuff I
26044         could find.  Ctrl up/down/left/right/home/end work now.
26045         (EnsureCellVisibility): correct method name spelling.  Also,
26046         simplify this a touch by not explicitly calling the
26047         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
26048         scrollbar value.
26049         (OnKeyUpDG): no need for this method now.
26050         
26051 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26052
26053         * LinkLabel.cs: display the OverrideCursor when hovering the label.
26054         Fixes bug #78392.
26055
26056 2006-05-25  Chris Toshok  <toshok@ximian.com>
26057
26058         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
26059         r61019.
26060
26061 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
26062
26063         * Application.cs: Moved setting of is_modal and closing to before
26064           we create the control, to allow the event handlers called as a
26065           result of creation affect closing. Also removed Gonzalo's previous
26066           change to setting DialogResult, the behaviour has been moved to 
26067           Form.ShowDialog()
26068         * Form.cs: 
26069           - ShowDialog(): Removed explicit creation of the form, let RunLoop
26070             handle it instead
26071           - ShowDialog(): If no dialog result is set, we need to return Cancel
26072           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
26073             the close is cancelled
26074
26075 2006-05-25  Jackson Harper  <jackson@ximian.com>
26076
26077         * StatusBar.cs: We only need to update the sizes of the other
26078         panels when we have auto size contents.  Also we are only updating
26079         the contents of the panel, not the borders, so compensate for the
26080         border width (TODO: get this width from the theme somehow).
26081         * TreeView.cs: Scrollable is true by default
26082         - Use invalidate instead of refresh where needed
26083         - Factor the scrollable value into scrollbar updating
26084         - Update the scrollbars if the Scrollable property is altered
26085         - Update the selected node if its ImageIndex is changed
26086         - Handle null nodes in UpdateNode (mainly so we don't have to
26087         check if selected is null when updating it
26088         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
26089         are factored into the visible count
26090         - Use VisibleCount for clarity in the code
26091         - When the font is changed we need to recurse through all the
26092         nodes and invalidate their sizes
26093         
26094 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26095
26096         * Application.cs: set the DialogResult to fixed when the main form is
26097         hidden or destroyed while being modal.
26098
26099 2006-05-25  Miguel de Icaza  <miguel@novell.com>
26100
26101         * Theme.cs: Use Tangoified messagebox icons. 
26102
26103         (GetSizedResourceImage): Also cope with width = 0 and do not
26104         trigger a warning in that case (0 means "give me your icon from
26105         the resouce, no special size needed).
26106
26107 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
26108
26109         * Application.cs: Leave runloop if the the main modal form is 
26110           hidden (fixes #78484)
26111
26112 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
26113
26114         * BindingContext.cs : reject null datasource in Contains() and
26115           Item[].
26116         * CurrencyManager.cs : check data_member validity when data_source
26117           is dataset. When it is late binding, the initial position is -1.
26118
26119 2006-05-24  Jackson Harper  <jackson@ximian.com>
26120
26121         * TreeNodeCollection.cs: Dont't recalculate the visible order on
26122         inserted nodes that aren't visible.  This changes the
26123         max_visible_order which confuses scrollbar settings.
26124         - Use the enumerator to get the prev node instead of duplicating
26125         code.
26126         * TreeView.cs: Use new method for setting scrollbar values
26127         - Don't set the bounds every time the scrollbar is updated
26128         - When updating below the root node use an invalidate instead of a
26129         refresh to prevent the child controls (scrollbars) from being
26130         refreshed. (UpdateBelow still needs to be reworked anyways).
26131         - Reenable SetBottom now that visible orders are set correctly,
26132         added some debug code incase we ever get bad values there again.
26133         - Set the scrollbar max to 2 less then the max value, this
26134         compensates for the max value being one above the node count, and
26135         for scrollbars adding one extra "notch".
26136         - When drawing image nodes if there is an imagelist we draw the
26137         first image in the list if the supplied image index is out of the
26138         image list's bounds.
26139         
26140 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
26141
26142         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
26143           we receive a size change from the WM (Fixes #78503)
26144
26145 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
26146
26147         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
26148           rectangle (Fixes #78501)
26149
26150 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
26151
26152         * ButtonBase.cs: 
26153           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
26154             as a bitfield.
26155           - Fixed MouseMove to no longer switch pressed state unless the left
26156             mouse button is pressed. Atsushi provided the original patch (#78485)
26157           
26158 2006-05-24  Jackson Harper  <jackson@ximian.com>
26159
26160         * ScrollBar.cs: New internal methods that allow us to change a
26161         couple values on the scrollbar (the most common case is maximum
26162         and large change) without getting multiple invalidates.
26163
26164 2006-05-24  Chris Toshok  <toshok@ximian.com>
26165
26166         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
26167         (Edit): save off the original state in oldState, and set
26168         grid.is_editing to true.
26169         (OnKeyDown): abort editing if escape is pressed.  also, call
26170         NextState if space is pressed.
26171         (OnMouseDown): call NextState.
26172         (NextState): factor out shared code from OnKeyDown and OnMouseDown
26173         here.  Also, only invalidate the row header once (on the initial
26174         is_changing switch) to save on redraws.
26175
26176 2006-05-24  Chris Toshok  <toshok@ximian.com>
26177
26178         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
26179         if the value in the cell is different than it was before.  This
26180         keeps us from triggering a layout when we move around a datarid
26181         with a highlighted cell.
26182         (Edit): suspend layout when creating/positining the text box, and
26183         resume passing false so we don't ever actually re-layout.
26184         (ReleaseHostedControl): same.
26185         (EnsureTextBox): reformat slightly, and set WordWrap to false.
26186
26187         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
26188         control-key sequences should go to the datagrid - remove that
26189         lock.  Also, modify the conditions under which we move between
26190         cells when moving the cursor within a cell, and remove the "this"
26191         and "base" from field accesses.  We weren't even consistent, given
26192         they all were in the base class.
26193
26194 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
26195
26196         * Binding.cs : (.ctor)
26197           An obvious NRE fix for BindingTest.CtorNullTest().
26198
26199 2006-05-23  Chris Toshok  <toshok@ximian.com>
26200
26201         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
26202         them between lines.  This fixes some quirks editing cells in the
26203         datagrid.
26204
26205 2006-05-23  Jackson Harper  <jackson@ximian.com>
26206
26207         * TreeView.cs: Use begin/end update when doing expand/collapse all
26208         so that we don't get flicker on the scrollbar.
26209
26210 2006-05-23  Jackson Harper  <jackson@ximian.com>
26211
26212         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
26213         treenode calculations to be independant of the painting code. To
26214         do this nodes track a visible order which is calculated by the
26215         treeview.
26216         - Call new methods for expanding/collapsing nodes.  These methods
26217         use scrollwindow so we don't have to update everything below the
26218         node.
26219         * TreeView.cs: Refactored drawing and scrolling code.  We don't
26220         need to update nodes when drawing anymore or calculate scrollbar
26221         stuff.
26222         - Added new methods for expanding/collapsing nodes. These methods
26223         use ScrollWindow so as to not have to redraw all the nodes below.
26224         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
26225         we add/remove nodes or sort.
26226         - Handle removing the selected and the top node properly.
26227
26228 2006-05-23  Chris Toshok  <toshok@ximian.com>
26229
26230         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
26231         maybe this should actually happen in the datagrid code?
26232         (EndEdit): no need to invalidate anything, given that
26233         ReleaseHostedControl causes the datagrid to relayout, which
26234         invalidates everything anyway.
26235
26236         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
26237         in SetCurrentCell).
26238         (set_SelectionBackColor): call InvalidateSelection instead of
26239         Refresh.
26240         (set_SelectionForeColor): same.
26241         (BeginEdit): Flesh this out a bit.
26242         (CancelEditing): only do any of this if we're editing/adding.
26243         (EndEdit): same.
26244         (OnMouseDown): there's no need to cancel editing here, it's done
26245         in SetCurrentCell.
26246         (SetCurrentCell): only invalidate the current row header if it's a
26247         different row than the new one.
26248         (ShiftSelection): fix this to work like MS does.
26249         (ResetSelection): factor out the invalidation of selected_rows to
26250         InvalidateSelection.
26251         (SetDataSource): cancel any editing that's going on.
26252
26253         * DataGridColumnStyle.cs
26254         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
26255         call the non-interface version.
26256
26257         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
26258         header rectangle with the clip rectangle so we don't redraw the
26259         entire header for just a small area.  Gets rid of the last flicker
26260         when horizontally scrolling.
26261         (DataGridPaintRow): same.
26262
26263 2006-05-23  Mike Kestner  <mkestner@novell.com>
26264
26265         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
26266         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
26267         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
26268         Critical bug report.
26269
26270 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
26271
26272         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
26273           and this fixes #78493
26274
26275 2006-05-23  Miguel de Icaza  <miguel@novell.com>
26276
26277         * Theme.cs (GetSizedResourceImage): Scale images if the proper
26278         size is not found.  
26279         
26280         * FileDialog.cs: Do not change the background for the side bar as
26281         it wont work nicely with the theme, and also reduces the artifacts
26282         in rendering the icons (which I want to fix too).
26283
26284         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
26285         resources, not resgen resources. 
26286
26287         (PlatformDefaultHandler): Pull images using the new API.
26288
26289 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
26290
26291         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
26292           a reference to the hwnd and will not remove it unless there are
26293           no pending exposures (fixes #78341)
26294         * XplatUI.cs: Improved debug
26295
26296 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
26297
26298         * MenuAPI.cs : don't handle OnClick event when it was not the left
26299           button. Fixed bug #78487.
26300
26301 2006-05-23  Mike Kestner  <mkestner@novell.com>
26302
26303         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
26304         prefer submenus to the top menu for item lookup, to avoid popping down
26305         top-row items.
26306
26307 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
26308
26309         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
26310           Graphics.FillRectangle as the visual results are really bad (even
26311           on win). We now draw perfect arrows (and perfect shadows when the
26312           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
26313           Pen.DashPattern to draw the dots of each line.
26314
26315 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
26316
26317         * FileDialog.cs: Update the filename combobox when navigating through
26318           the ListView with the cursor keys. Fixes part 7 of bug #78446.
26319
26320 2006-05-22  Mike Kestner  <mkestner@novell.com>
26321
26322         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
26323         Fixes #78463.
26324
26325 2006-05-22  Mike Kestner  <mkestner@novell.com>
26326
26327         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
26328         requests. Fix a misspelled parameter and a copy paste exception error
26329         in Select.
26330
26331 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
26332
26333         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
26334           to get the same width/height (5/13) on X11 as the default font has on
26335           win32. This means that our DefaultFont emSize is smaller than the 
26336           the MS SWF equivalent (even thought the width/height stays the same)
26337
26338 2006-05-20  Jackson Harper  <jackson@ximian.com>
26339
26340         * MdiClient.cs:
26341         * MdiWindowManager.cs:
26342         * InternalWindowManager.cs: Make sure to use the border width from
26343         the theme.
26344
26345 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
26346
26347         * PrintDialog.cs: Implements printer details
26348
26349 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
26350
26351         * FileDialog.cs: Added focus handling for PopupButtonPanel.
26352           Fixes part 1 and 2 of bug #78446
26353
26354 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
26355
26356         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
26357           instead of sticking to the first ever calculated value
26358
26359 2006-05-19  Mike Kestner  <mkestner@novell.com>
26360
26361         * ComboBox.cs: fix mouse motion selection to use MousePosition and
26362         PointToClient, since Capture is set. Fixes #78344.
26363
26364 2006-05-19  Mike Kestner  <mkestner@novell.com>
26365
26366         * ListView.cs: match MS behavior in Details view where items are not
26367         drawn if Columns.Count == 0. 
26368         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
26369         Use a separate pen to draw the check, since changing the width affects
26370         the box as well.  Fixes #78454.
26371
26372 2006-05-18  Miguel de Icaza  <miguel@novell.com>
26373
26374         * ListView.cs: ArgumentOutOfRangeException, single versions of the
26375         exception should throw the name of the invalid argument.
26376
26377         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
26378         there are no files listed. 
26379
26380 2006-05-18  Jackson Harper  <jackson@ximian.com>
26381
26382         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
26383         up.
26384
26385 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
26386
26387         * Control.cs: Brought back our old UpdateZOrder method as a private
26388           function and switched our calls from UpdateZOrder to the new one.
26389           This fixes the Paint.Net canvas disappearing bug.
26390
26391 2006-05-18  Jackson Harper  <jackson@ximian.com>
26392
26393         * Theme.cs:
26394         * ThemeWin32Classic.cs:
26395         * InternalWindowManager.cs: Move the drawing into the theme,
26396         expose everything the theme should need from the window manager.
26397
26398 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
26399
26400         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
26401           from the call to NativeWindow to avoid walking up the parent chain
26402           further than needed (speeds up setting cursors and avoids setting
26403           the wrong cursor if a parent has another cursor defined)
26404         * Cursor.cs: When loading an icon as cursor, MS uses the center of
26405           the icon as hotspot, not what's contained as hotspot in the icon
26406           file. This fixes the perceived drawing offset seen with Paint.Net
26407         
26408 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
26409
26410         * XplatUIX11.cs: 
26411           - Store the calculated rectangle in Hwnd object and use it when 
26412             setting the client size
26413           - Force Toolwindows to always be type Dock, to ensure they're on top
26414
26415 2006-05-18  Mike Kestner  <mkestner@novell.com>
26416
26417         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
26418         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
26419         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
26420         Substantial refactoring to remove confusing nested classes. Coding
26421         standard and Get+Set->property refactorings.  Shift to index based
26422         highlighting in ComboListBox instead of constantly using IndexOf and
26423         Items[]. Add invalidations on resize for DropDownList to fix ugliness
26424         in FileDialog growth.  Draw borders manually since Simple mode needs
26425         to look like two independent controls.  Make listbox border
26426         conditional to DropDownStyle.  Improved OwnerDraw support.
26427
26428 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
26429
26430         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
26431         Don't set the disposed graphics to null, so we can throw the "right"
26432         exception if the graphics is reused later (added a flag to avoid 
26433         double disposing). Some behaviours are different under 2.0 and are
26434         filled under bug #78448.
26435
26436 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
26437
26438         * Control.cs: When double-buffering is enabled, we need to reset
26439           our graphics context between paint calls. Otherwise, any 
26440           transformations and other alterations on the context will 
26441           become cumulative (#77734)
26442
26443 2006-05-18  Mike Kestner  <mkestner@novell.com>
26444
26445         * ListView.cs: do focused item selection like MS on clicks. 
26446         Rework focus handling for ItemControl so LostFocus invalidates as
26447         well.
26448         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
26449         the ListView ItemControl has focus.
26450
26451 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
26452
26453         * XplatUIX11.cs: If client_window ends up being width or height zero
26454           due to border settings, move it off window inside whole_window (#78433)
26455
26456 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
26457
26458         * Mime.cs: Shrink the mime file cache correctly.
26459
26460 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
26461
26462         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
26463
26464 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26465
26466         * XplatUIX11.cs (AddExpose): More sanity checks
26467
26468 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26469
26470         * XplatUIX11.cs:
26471           - AddExpose: Don't add expose ranges outside the size of our
26472             window
26473           - Cast opacity values to Int32 to avoid crashes with certain
26474             values
26475           - Added disabled code paths that protect against illegal cross-
26476             thread painting (Developers.exe)
26477
26478 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26479
26480         * ProgressBar.cs: Invalidate the control when it's resized
26481           since block size is based on control size. (#78388)
26482
26483 2006-05-16  Miguel de Icaza  <miguel@novell.com>
26484
26485         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
26486         of setting the incoming argument to the "reset" value, we set the
26487         this.datamember to string.empty (before we were invalidating the
26488         incoming data).   
26489
26490         Fixes 78420
26491
26492 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26493
26494         * Form.cs: Only apply transparency settings after the form
26495           is created. (Fixes #77800)
26496
26497 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26498
26499         * ApplicationContext.cs: Grab the HandleDestroyed event so
26500           we know when to fire OnMainFormClosed 
26501
26502 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26503
26504         * Application.cs: Introduced sub-class to allow tracking of
26505           threads and centralized triggering of the event mess for
26506           ThreadExit, AppExit, etc..  (#76156)
26507
26508 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
26509
26510         * MimeIcon.cs:
26511           - Do not return a null icon index value for a mime subclass.
26512             Instead try the main mime type class too.
26513           - Seems that some newer distributions don't have a link to some
26514             gnome default icons anymore. So check the default gnome dir too.
26515           
26516
26517 2006-05-16  Jackson Harper  <jackson@ximian.com>
26518
26519         * MdiClient.cs: Don't paint the parent background image if we have
26520         our own background image.
26521
26522 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26523
26524         * Control.cs:
26525           - PerformLayout: Do not shrink space filled by DockStyle.Fill
26526             controls, all filled controls are supposed to overlap (#78080)
26527           - UpdateZOrder is supposed to update the control's z-order in the
26528             parent's z-order chain. Fixed to behave like that
26529           - BringToFront: Removed obsolete code
26530           - SendToBack: Simplyfied
26531           - SetChildIndex: Trigger layout calculations when Z-order changes
26532             since layout is done by z-order
26533
26534 2006-05-16  Chris Toshok  <toshok@ximian.com>
26535
26536         [ fixes bug #78410 ]
26537         * DataGrid.cs (set_AlternatingBackColor): use
26538         grid_drawing.InvalidateCells instead of Refresh().
26539         (set_BackColor): call grid_drawing.InvalidateCells.
26540         (set_BackgroundColor): use Invalidate instead of Refresh.
26541
26542         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
26543         invalidate the cell area.
26544
26545 2006-05-15  Chris Toshok  <toshok@ximian.com>
26546
26547         [ fixes bug #78011 ]
26548         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
26549         on to DataGridPaintRow.
26550         (DataGridPaintRow): take a clip argument, and only draw the cells
26551         which intersect it.  same with the not_usedarea.
26552
26553         * Theme.cs (DataGridPaintRow) add @clip parameter.
26554
26555         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
26556         XplatUI.ScrollWindow.
26557         (ScrollToRow): same.
26558
26559         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
26560         with last column which was causing a gray swath to appear with the
26561         XplatUI.ScrollWindow code.
26562
26563 2006-05-15  Chris Toshok  <toshok@ximian.com>
26564
26565         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
26566         use XplatUI.ScrollWindow.
26567         (VerticalScrollEvent): use XplatUI.ScrollWindow.
26568
26569 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
26570
26571         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
26572
26573 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
26574
26575         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
26576           file since there are no equivalent X11 cursors
26577
26578 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
26579
26580         * MonthCalendar.cs : DateTimePicker should reflect selected date
26581           on mouse*up*, not mouse*down*. Fixed originally reported part of
26582           bug #76474.
26583
26584 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
26585
26586         * TabControl.cs : When argument index is equal or more than tab
26587           count, just ignore. Fixed bug #78395.
26588
26589 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
26590
26591         * Control.cs: Dispose all child controls when control is diposed (#78394)
26592
26593 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26594
26595         * ColorDialog.cs: Finally it is possible to select the color with
26596           the text boxes
26597
26598 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26599
26600         * PrintDialog.cs: Fix typo
26601
26602 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26603
26604         * PrintDialog.cs: PrintDialog is not resizable
26605         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
26606           color. Made some ToolBar drawing methods protected virtual.
26607
26608 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
26609
26610         * PrintDialog.cs: Implementation of the PrintDialog
26611
26612 2006-05-12  Chris Toshok  <toshok@ximian.com>
26613
26614         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
26615         thumb, instead use MoveThumb.  This has the side effect of making
26616         most of the other thumb moving machinery use MoveThumb as well.
26617         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
26618         need to actually invalidate the rectangle where the new thumb will
26619         go.
26620         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
26621         We force an Update() after, so it's not as fast as it could be,
26622         but at least there's zero flicker and no droppings.
26623         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
26624         (UpdateThumbPos): add another argument (dirty), which says whether
26625         or not to calculate/add dirty regions which we later invalidate.
26626         For cases where we know we're going to use MoveThumb, we pass
26627         false for this.  Otherwise, pass true.
26628
26629 2006-05-12  Jackson Harper  <jackson@ximian.com>
26630
26631         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
26632         the status bar.
26633         
26634 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
26635
26636         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
26637           and GetClipRegion methods and UserClipWontExposeParent property.
26638         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
26639           overriding UserClipWontExposeParent property, setting to false, since
26640           Win32 handles the required expose messages to draw our clipped parent
26641           areas internally
26642         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
26643           PaintEventStart to set the user clip region if set.
26644         * Control.cs: 
26645           - Now internally tracking the Region for the control since we need to
26646             store it if the handle is not yet created and only set it when it
26647             becomes created. Before setting the region forced handle creation
26648           - Added code to draw the parents underneath a user-clipped region
26649         * Hwnd.cs: Added UserClip property
26650
26651 2006-05-12  Chris Toshok  <toshok@ximian.com>
26652
26653         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
26654         (set_Maximum): same.
26655         (set_Minimum): same.
26656         (set_SmallChange): same.
26657         (OnMouseUpSB): remove the call to refresh when releasing the
26658         thumb.  We shouldn't need it.
26659         
26660 2006-05-12  Miguel de Icaza  <miguel@novell.com>
26661
26662         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
26663         AutoSize set to None, we do not need to relayout everything, we
26664         just need to invalidate the current region.
26665
26666         (Draw): Do not draw the entire ClientArea, just redraw the
26667         clip area being passed.
26668
26669         * MdiClient.cs: Make MdiClient constructor with the Form argument
26670         internal. 
26671
26672 2006-05-12  Jackson Harper  <jackson@ximian.com>
26673
26674         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
26675         parents background image,  but strangely not their own.
26676         - (DrawStatusBarPanel): Take into account horizontal alignment
26677         when drawing the strings and icons.
26678
26679 2006-05-12  Mike Kestner  <mkestner@novell.com>
26680
26681         * ListBox.cs: avoid invalidations for focus when the collection is
26682         empty. 
26683
26684 2006-05-12  Chris Toshok  <toshok@ximian.com>
26685
26686         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
26687         invalidate the entire thumb area.  Call InvalidateDirty which
26688         limits the redraw to the thumb itself and surrounding pixels.
26689
26690         * XplatUIX11.cs (ScrollWindow): optimize copying.
26691         
26692 2006-05-12  Chris Toshok  <toshok@ximian.com>
26693
26694         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
26695         Figure out the positioning/layout in a single pass instead of
26696         multiple recursive invocations.  Speeds up the initial display of
26697         the data grid.  Also, make many things private that were
26698         originally public but unused outside this class.
26699
26700 2006-05-11  Jackson Harper  <jackson@ximian.com>
26701
26702         * MdiClient.cs: Improved layout code.
26703
26704 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
26705
26706         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
26707           not SelectedObject.
26708
26709 2006-05-11  Chris Toshok  <toshok@ximian.com>
26710
26711         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
26712         union of that will always be {0,0,width,height}.
26713
26714 2006-05-11  Jackson Harper  <jackson@ximian.com>
26715
26716         * Form.cs: Match MS's DefaultSize for forms (they must have
26717         changed the size in sp2).
26718
26719 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
26720
26721         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
26722
26723 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
26724
26725         * TextControl.cs : Fixed bug #78109. This incorrect position
26726           comparison caused crash on automatic line split.
26727         * TextBoxBase.cs : reduce duplicate code.
26728
26729 2006-05-10  Jackson Harper  <jackson@ximian.com>
26730
26731         * MdiClient.cs: Active form is only sent to the back when using
26732         the Next form functionality, when a form is clicked the current
26733         active shouldn't be sent to the back.
26734         - Layout the mdi windows when the container is first made visible.
26735         * Form.cs: Give the MdiClient a ref to the containing form when we
26736         create it.
26737         
26738 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26739
26740         * LinkLabel.cs : link_font could be uninitialized, so populate one
26741           before actual use. Fixed bug #78340.
26742
26743 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26744
26745         * XplatUIX11.cs : clipboard format native value is IntPtr.
26746           Fixed bug #78283.
26747
26748 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26749
26750         * Control.cs: 
26751           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
26752             which is passed up the parent chain by DefWndProc
26753           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
26754             to DefWndProc (#77956)
26755         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
26756
26757 2006-05-10  Jackson Harper  <jackson@ximian.com>
26758
26759         * MdiClient.cs: We need to remove the controls from the mdi
26760         collection, when we close the window.
26761         * MdiWindowManager.cs: Special handling of closing mdi windows.
26762         * InternalWindowManager.cs: Make the close method virtual so the
26763         mdi window manager can handle it specially.
26764
26765 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
26766
26767         * DataGrid.cs:
26768           - Recalculate grid when the data source has changed
26769           - Matches styles provided by user from all data sources types
26770         * DataGridTableStyle.cs: For columns that provided by the user set the
26771         with the preferred value is there was unassigned.
26772         * CurrencyManager.cs: throw OnItemChanged event
26773
26774 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
26775
26776         * PictureBox.cs: Don't animate until handle is created. Start animation
26777           when handle is created.
26778
26779 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26780
26781         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
26782           current codebase.
26783         * XEventQueue.cs: We don't need to provide the extra info
26784
26785 2006-05-10  Jackson Harper  <jackson@ximian.com>
26786
26787         * MdiClient.cs: If the mdi clients parent form has a background
26788         image set, we draw that background image for the mdi area's
26789         background.
26790
26791 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26792
26793         * TextBoxBase.cs: Set IBeam cursor (#78347)
26794
26795 2006-05-10  Mike Kestner  <mkestner@novell.com>
26796
26797         * ToolBar.cs: fix some text padding issues with ButtonSize
26798         calculation. Update the default size to match MS documentation.
26799         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
26800         button size. Fixes #78296.
26801
26802 2006-05-10  Mike Kestner  <mkestner@novell.com>
26803
26804         * ListBox.cs: use is_visible for scrollbar positioning in case the
26805         control isn't on screen yet.  Fix off by one with Right vs Width
26806         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
26807         
26808 2006-05-10  Jackson Harper  <jackson@ximian.com>
26809
26810         * X11Dnd.cs: Drop to a control with another control on top of it.
26811         * ToolBar.cs: Work on a copy of the buttons list, so that it can
26812         be modified in click handlers. TODO: Look for similar problems in
26813         other controls.
26814
26815 2006-05-09  Jackson Harper  <jackson@ximian.com>
26816
26817         * Form.cs: Window managers need the old window state when setting
26818         window state now.
26819         * InternalWindowManager.cs: Allow the base mdi window manager to
26820         handle more of the MDI only stuff (like maximize buttons).
26821         * MdiWindowManager.cs: Fix some snafus in changing the window
26822         state.  Add all the menu functionality, for both popup and
26823         maximized menus.
26824         * MdiClient.cs: When a new form is selected the currently
26825         activated form is sent to the back, this matches MS.
26826         - Implement a new method to activate the next mdi child window.
26827
26828 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
26829
26830         * Control.cs: 
26831           - Added new InternalCapture method to allow controls to prevent
26832             the capture behaviour on the click handlers
26833           - Switched to use InternalCapture
26834         * ComboBox.cs:
26835           - Using InternalCapture to prevent mouse captures from being released
26836             on mouse button release (Fixes #78100)
26837         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
26838           returns Form borders if a caption is present. (Fixes #78310)
26839
26840 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
26841
26842         * TreeNode.cs: Changed serialization .ctor to not require every field
26843           to be present. (#78265)
26844         * OwnerDrawPropertyBag.cs: Added serialization .ctor
26845
26846 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
26847
26848         * MimeIcon.cs: for is faster than foreach for strings.
26849
26850 2006-05-05  Mike Kestner  <mkestner@novell.com>
26851
26852         * CheckedListBox.cs: update check handling code to not use selected.
26853         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
26854         behavior for visual feedback, motion response, shift/ctrl handling,
26855         and properly deal with all 4 selection modes. Updates to bounds
26856         handling logic.  Add scroll wheel support. [Fixes #77842]
26857
26858 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
26859
26860         * ListView.cs:
26861           - Moved adding of Implicit controls into .ctor. That way, subsequent
26862             creation of the controls will not cause them to think they are 
26863             toplevel windows (fixes #78200 header problem)
26864           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
26865           - Switched visibility setting of header control to use internal field
26866             to avoid triggering handle creation
26867           - Now checking if handle is created before causing a refresh when items
26868             are added (This makes us now match handle creation time with MS)
26869         * Splitter.cs: Removed loading of private splitter cursor, switched to
26870           Cursors version now that that is loading the right ones
26871         * Cursors.cs: Load proper splitter cursors from resources
26872         * Cursor.cs: Added second method of loading resource cursors for the 
26873           VS.Net users amongst us
26874
26875 2006-05-05  Mike Kestner  <mkestner@novell.com>
26876
26877         * ListView.cs: give header_control a minimum size based on the
26878         ListView size.
26879
26880 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
26881
26882         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
26883           window seems to do that with metacity, so set that type. (#78120)
26884
26885 2006-05-05  Mike Kestner  <mkestner@novell.com>
26886
26887         * ListViewItem.cs: fix Details mode checkbox layout bug.
26888         * ThemeWin32Classic.cs: draw a ListView column header for unused space
26889         at the end of the header, if it exists. [Fixes for #78200]
26890
26891 2006-05-04  Jackson Harper  <jackson@ximian.com>
26892
26893         * MdiClient.cs: Add a helper property to get the container form.
26894         * MdiWindowManager.cs: We have to make sure to use the menu origin
26895         when drawing the icons and buttons, this fixes maximized window
26896         icons/buttons on win32.
26897         * InternalWindowManager.cs: Reset the restore captions when a
26898         window goes from Maximized to Minimized and vice versa. Move the
26899         DrawMaximizedButtons into the MdiWindowManager source, tool
26900         windows can't be maximized. NOTE: This could use a little
26901         refactoring if time ever permits.
26902         
26903 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
26904
26905         * TextBox.cs: Add MWFCategoryAttributes
26906         * TextBoxBase.cs: Add MWFCategoryAttributes
26907         * Form.cs: Add MWFCategoryAttributes
26908
26909 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
26910
26911         * Control.cs: Add MWFCategoryAttributes
26912         * ScrollableControl.cs: Add MWFCategoryAttributes
26913
26914 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
26915
26916         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
26917           Divider is true. Fix a little glitch in PropertyToolBar
26918           drawing code
26919
26920 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
26921
26922         * Control.cs:
26923           - Dispose: Call base.Dispose, this causes the disposed event
26924             to be fired (and probably other, more important stuff)
26925           - SetVisibleCore: Set is_visible to true after creating the
26926             window so that the window still gets created invisible (if
26927             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
26928             to generate a WM_ACTIVE message
26929         * Form.cs: Call Dispose when we want to destroy the window, instead of
26930           just destroying the handle (Dispose will do that for us)
26931         * XplatUIX11.cs:
26932           - RootWindow also needs a queue, so we can properly process the
26933             property change events from RootWindow (like Activate)
26934           - Generatic synthetic WM_ACTIVE message when the active window is
26935             being destroyed
26936
26937 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
26938
26939         * LinkLabel.cs: Trigger a recalc of our label dimensions when
26940           bounds are changed
26941
26942 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
26943
26944         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
26945           for determining width and height (image might not be assigned if
26946           we're drawing an imagelist)
26947
26948 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
26949
26950         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
26951         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
26952           height from system
26953         * Theme.cs: No longer returns hardcoded menu height, instead calls
26954           new driver method
26955         * Form.cs (OnLoad): Scaling happens before triggering Load events 
26956           on MS (# 78257)
26957
26958 2006-05-01  Mike Kestner  <mkestner@novell.com>
26959
26960         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
26961
26962 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
26963
26964         * TextBoxBase.cs: Removed Fixme
26965         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
26966
26967 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
26968
26969         * XplatUIX11.cs:
26970           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
26971             the rectangle relative to the parent, considering borders. We
26972             don't really want that.
26973           - ScrollWindow: Fixed warning to be more understandable
26974         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
26975           scrollbars and scroll only the visible area
26976         * RichTextBox.cs: Removed debug output
26977
26978 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
26979
26980         * NumericUpDown.cs (Text): Just use base
26981         * UpDownBase.cs: Ensure txtView is created before using it
26982
26983 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
26984
26985         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
26986           casting to IntPtr to avoid 64bit overflow errors
26987
26988 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
26989
26990         * Control.cs:
26991           - AllowDrop: Don't force handle creation.
26992           - CreateHandle: Added call to tell driver if we're allowed to drop
26993
26994 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
26995
26996         * FileDialog.cs: Remember the last directory not only for the
26997           current instance but also for new FileDialog instances.
26998
26999 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
27000         
27001         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
27002           broke sending async messages
27003
27004 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27005
27006         * XplatUIX11.cs:
27007           - ScrollWindow: Fixed method. We finally generate expose events again
27008             for scrolled areas. This was causing 'garbage' when scrolling
27009             textbox and other controls that used ScrollWindow
27010           - Switched from using the regular queue for paint events to the MS 
27011             model of 'generating' paint events when the queue is empty.
27012             We use the new XQueueEvent.Paint subclass to store which windows
27013             need painting.
27014           - AddExpose now takes the x/y/width/height of the exposed area
27015             and inserts the window into the paint queue if not already there
27016           - InvalidateWholeWindow: Switched to use new AddExpose method
27017           - UpdateMessageQueue: Added which queue to monitor for paint events
27018           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
27019             the unlikely case nothing above handles it. We reset the expose
27020             pending states to get them off the queue.
27021           - GetMessage: Now pulls a paint event if no other events are in the
27022             queue
27023           - Invalidate: Switched to new AddExpose method
27024           - PeekMessage: Updated to understand pending paint events
27025           - UpdateWindow: Fixed logic bug. We were only updating if the window
27026             didn't need updating. Also switched to sending WM_PAINT directly,
27027             like MS does.
27028         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
27029           and random access Remove(). The random access is needed to handle
27030           UpdateWindow() where a WM_PAINT is sent directly without accessing
27031           the queue.
27032         * ScrollBar.cs: Added Update() calls to cause immediate updates to
27033           allow for better feedback when scrolling. Scrollbars are small and
27034           the immediate update should make it 'feel' more responsive without
27035           slowing things down. ScrollBar still needs it's invaliate logic
27036           updated to not always invalidate the whole bar on certain changes.
27037
27038 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27039
27040         * Control.cs:
27041         (BackColor): if the control does not support a transparent background,
27042         return the default backcolor when the parent backcolor is transparent.
27043
27044 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
27045
27046         * Application.cs: Updated to new StartLoop/GetMessage API
27047         * RichTextBox.cs: Provide some output on RTF parsing errors
27048         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
27049           new queue_id argument to GetMessage and PeekMessage to allow faster
27050           handling of per-thread queues in drivers.
27051         * Hwnd.cs: Added Queue tracking and property
27052         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
27053         * XEventQueue.cs: Added thread trackingA
27054         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
27055         * XplatUIX11.cs:
27056           - Implemented new per-thread queue
27057           - GetMessage: Fixed return/break behaviour on several cases. We were
27058             returning stale messages in some cases, instead of just processing
27059             the next message
27060
27061 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
27062
27063         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
27064
27065 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
27066
27067         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
27068           fixed off-by-one comparisons between Width/Height and Right/Bottom.
27069
27070 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
27071
27072         * PropertyGridView.cs: Fix drop down width.
27073
27074 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27075
27076         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
27077           a mess in DrawToolBar, so I removed one of them.
27078
27079 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27080
27081         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
27082           needed (clip). Otherwise we get artifacts.
27083
27084 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
27085
27086         * FixedSizeTextBox.cs: Added constructor to allow specifying which
27087           dimension is fixed
27088         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
27089           and switched FixedSizeTextBox to only be fixed vertical (#78116)
27090         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
27091           if it matches the scale base font (avoids unneeded scaling)
27092
27093 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
27094
27095         * X11DesktopColors.cs: One gtk_init_check should be enough
27096
27097 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
27098
27099         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
27100           match MS behaviour
27101
27102 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
27103
27104         * TextBoxBase.cs: 
27105           - Generate OnTextChanged for Backspace even if we're only deleting
27106             the current selection
27107           - When setting the Text property, only select all text if the
27108             control does not have focus when it is being set. Otherwise
27109             just place the cursor at the beginning of the control
27110
27111 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
27112
27113         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
27114           Added a little helper to draw PropertyGrid ToolBar with a different
27115           border and a different BackColor.
27116         * PropertyGrid.cs: Some background parts didn't get painted with the
27117           correct background color. Added a class that helps us to draw the
27118           correct border for PropertyGridView and a class that helps us to
27119           draw ToolBars with a different backcolor
27120         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
27121
27122 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
27123
27124         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
27125         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
27126
27127 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
27128
27129         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
27130           into the palette entries. Also, since we're working on a copy
27131           we needed to copy the palette back onto the bitmap.
27132         * Cursor.cs: Same fix as XplatUIWin32.cs.
27133
27134 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
27135
27136         * ImageListStreamer.cs: Need to read the var (or we're off)
27137
27138 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
27139
27140         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
27141           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
27142           TextBoxBase.cs: Unused var fixes
27143         * AxHost.cs: Small 2.0 fix
27144         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
27145           as it seems that is what at least Metacity expects. This will make
27146           icons show up on 64bit platforms. We still have some 64bit size
27147           issues, though, since the startup app window size still won't match.
27148
27149 2006-04-25  Mike Kestner  <mkestner@novell.com>
27150
27151         * *.cs: cleanup newly reported exception var unused warnings.
27152
27153 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27154
27155         * ThemeWin32Classic.cs: Button image alignment now matches exactly
27156           ms
27157
27158 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27159
27160         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
27161           image. The image position is always the same, no matter if the
27162           button is pressed or not.
27163
27164 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27165
27166         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
27167           selection and set the correct filename for SaveFileDialog.
27168           Patch by Emery Conrad.
27169
27170 2006-04-24  Mike Kestner  <mkestner@novell.com>
27171
27172         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
27173         check for item.X outside the ClientRect instead of item.Y. Fixes
27174         #78151.
27175
27176 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27177
27178         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
27179         trust that value blindly and do some sanity check. Fixes bug #77814.
27180
27181 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27182
27183         * ImageListStreamer.cs: save the mask as a 1bpp image.
27184
27185 2006-04-21  Mike Kestner  <mkestner@novell.com>
27186
27187         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
27188         pass Checked and Indeterminate to the Theme Engine. Improve
27189         encapsulation with ListBox.
27190         * ListBox.cs: Keep a StringFormat instead of calculating it every item
27191         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
27192         nested types.  Move all CheckState functionality to CheckedListBox.
27193         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
27194         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
27195         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
27196         single base list. Fix scrollbar sizing and placement to mirror MS.
27197         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
27198         used.
27199         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
27200         for CheckedListBox by using new DrawItemState info.  Center the
27201         checkboxes on the items. Use new StringFormat property.
27202
27203 2006-04-18  Jackson Harper  <jackson@ximian.com>
27204
27205         * Form.cs: MdiChildren don't do default locations the same way as
27206         regular forms.  This prevents a crash when trying to position the
27207         mdi windows.
27208
27209 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
27210
27211         * PropertyGridTextBox.cs: Formatting, copyright
27212         * PropertiesTab.cs: Formatting
27213         * PropertyGrid.cs: Formatting
27214         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
27215           click toggling of values
27216           
27217 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
27218
27219         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
27220         * Control.cs (.ctor): verify_thread_handle is static, don't reset
27221           every time a control is created
27222         * Application.cs: Removed obsolete EnableRTLMirroring method
27223
27224 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
27225
27226         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
27227         SelectedIndex to -1. Fixes bug #78121.
27228
27229 2006-04-17  Jackson Harper  <jackson@ximian.com>
27230
27231         * Binding.cs: Handle null values for Current and BindingContext.
27232         This occurs when binding is a little delayed.
27233         * CurrencyManager.cs: return null for Current when there are no
27234         items in the list.
27235         - Hookup to the listchanged event on the DataView and update
27236         bindings when the list is changed.  This fixes late binding of
27237         controls.
27238
27239 2006-04-17  Jackson Harper  <jackson@ximian.com>
27240
27241         * X11Dnd.cs:
27242         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
27243         Ringenbach.
27244
27245 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
27246
27247         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
27248           place
27249         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
27250           with the correct ButtonState
27251
27252 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
27253
27254         * XplatUIX11.cs: Improved distinguishing between window types to
27255           tell the WM a type closer to what the app wants (Fixes #78107)
27256
27257 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
27258
27259         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
27260           GrabHandle
27261
27262 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
27263
27264         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
27265           drawing code to reflect the size grip changes
27266
27267 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27268
27269         * ImageListStreamer.cs: fix handling of the mask that follows the main
27270         bitmap when deserializing and serialize it properly. The generated mask
27271         should better be a 1bpp image, but I'll do that later.
27272
27273 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
27274
27275         * FileDialog.cs: Show something in the DirComboBox on *nix if the
27276           path doesn't fit into some of our Current.Places
27277
27278 2006-04-13  Jackson Harper  <jackson@ximian.com>
27279
27280         * ComboBox.cs: Use borders instead of drawing our own decorations,
27281         try to obey correct rules for heights.
27282         * Theme.cs:
27283         * ThemeNice.cs:
27284         * ThemeClearLooks.cs:
27285         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
27286         this is now handled by borders.
27287         - Remove unused DrawListBoxDecorationSize method.
27288         
27289 2006-04-13  Mike Kestner  <mkestner@novell.com>
27290
27291         * MenuAPI.cs: null guarding for the disbled click check fixes crash
27292         reported by Alex.
27293
27294 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
27295
27296         * ThemeWin32Classic.cs: 
27297           - Fixed CPDrawStringDisabled
27298           - Corrected drawing of disabled menu items
27299           - Fixed drawing of disabled radio buttons (bug #78095)
27300           - Draw check in a disabled CheckBox with color ControlDark 
27301
27302 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27303
27304         * Form.cs: Use the provided width when calculating the menu size;
27305           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
27306           and ClientSize.Width won't be updated yet
27307         * Application.cs: Use Visible instead of Show() to make form visible,
27308           this way we create the handle later and menusize is considered
27309
27310 2006-04-12  Mike Kestner  <mkestner@novell.com>
27311
27312         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
27313         reporting.
27314
27315 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27316
27317         * TextBox.cs: Implemented context menu
27318
27319 2006-04-12  Mike Kestner  <mkestner@novell.com>
27320
27321         * ListView.cs: implement box selection. fixes #77838.
27322         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
27323
27324 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
27325
27326         * XplatUIX11.cs: Added setting of window type when transient window
27327           is created (metacity would move it otherwise)
27328         * X11Structs.cs: Added WINDOW_TYPE atoms
27329         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
27330           background (the control is Opaque but still wants transparent
27331           backgrounds)
27332
27333 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27334
27335         * Control.cs: Added OnPaintBackgroundInternal to allow controls
27336           that set Opaque but don't mean it (like all ButtonBase-derived
27337           controls) to still draw their background
27338         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
27339           the background
27340
27341 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
27342
27343         * Control.cs (PaintControlBackground): Set the graphics object
27344           on our PaintEvent to null to prevent it from being disposed
27345           when the PaintEvent gets disposed
27346
27347 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
27348
27349         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
27350         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
27351
27352 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27353
27354         * Control.cs: 
27355           - Added transparency check to BackColor property. Transparent
27356             backgrounds are only allowed if the control styles permit it
27357           - Added recursive painting of parent control background and
27358             foreground if a control with a transparent backcolor is drawn
27359             (Thanks to Tim Ringenback for providing his 'hack' as a base
27360              for this patch) Fixes #77985 and #78026.
27361           - Added Opaque style check before calling OnPaintBackground, no
27362             need to draw the background if the control is opaque
27363           - Removed ControlAccessibleObject owner variable (inherited from
27364             base, no need to define again)
27365           - Added some documentation links explaining the drawing events
27366             and styles
27367
27368 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
27369
27370         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
27371           that the affected control is the located at the left border of our
27372           parent (Fixes #77936)
27373
27374 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27375
27376         * TextBoxBase.cs: When rendering disabled or readonly controls,
27377           draw the background with 'Control' instead of 'Window' color as
27378           long as the user hasn't specifically set a color
27379
27380 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
27381
27382         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
27383           since that won't be updated if the user types text (only if it's
27384           programatically set)
27385
27386 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27387
27388         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
27389           layout changes do to app-triggered resizes will have the proper
27390           display rectangle for layout
27391
27392 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
27393
27394         * ThemeWin32Classic.cs:
27395           - Make use of the SystemBrushes and SystemPens wherever possible
27396           - Corrected some highlight colors
27397           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
27398             drawing
27399         * Theme.cs: Added Empty field to CPColor struct
27400
27401 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27402
27403         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
27404           is displayed when calculating the display rectangle. Thanks to Mike
27405           for teaching me the err of my ways.
27406
27407 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
27408
27409         * ScrollableControl.cs:
27410           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
27411             (instead of 0,0) and we now return the real width/height instead of
27412             just the clientrectangle, adjusted for padding. The rectangle is
27413             now cached and created by the new CalculateDisplayRectangle method.
27414           - Created new CalculateDisplayRectange method, which basically does
27415             what get_DisplayRectangle() did originally, but now using the 
27416             right edge instead of DisplayRectangle to determine the size of
27417             our scrollbars
27418           - get_Canvas(): Fixed it to properly calculate canvas for 
27419             right/bottom controls which seem to be placed to the right/bottom
27420             of any controls that have a fixed location
27421           - Removed TODO that's taken care of
27422           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
27423             and SetDisplayRectLocation according to new MSDN2 docs
27424           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
27425             event when that is called, this is added for compatibility
27426           - ScrollControlIntoView(): Implemented.
27427           - Switched scrollbars to be implicit, they shouldn't be selectable
27428         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
27429           call it when the active control is set/changed
27430         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
27431         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
27432           implicit_control variable (used for native Win32 message generation)
27433         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
27434           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
27435         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
27436         * XplatUIStructs.cs: Added ScrollBarCommands enum
27437
27438 2006-04-10  Jackson Harper  <jackson@ximian.com>
27439
27440         * ButtonBase.cs:
27441         * CheckedListBox.cs:
27442         * ComboBox.cs:
27443         * DataGrid.cs:
27444         * DataGridView.cs:
27445         * Form.cs:
27446         * GroupBox.cs:
27447         * ListBox.cs:
27448         * PrintPreviewControl.cs:
27449         * ProgressBar.cs:
27450         * PropertyGrid.cs:
27451         * Splitter.cs:
27452         * StatusBar.cs:
27453         * TrackBar.cs:
27454         * UpDownBase.cs: Fixup base event overrides.
27455         
27456 2006-04-06  Mike Kestner  <mkestner@novell.com>
27457
27458         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
27459         all user-initiated value changes to min <= value <= max-thumbsz+1.
27460         (set_Value): check for vert/horiz when calculating new thumb position.
27461         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
27462         like MS does.
27463         (OnMouseMoveSB): refactor the thumb dragging code and refine
27464         invalidation logic to reduce flicker.
27465         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
27466         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
27467         (UpdateThumbPosition): small code readability cleanup
27468
27469 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
27470
27471         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
27472           different
27473
27474 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
27475
27476         * ThemeNice.cs: Use a better graphics effect when a button is pressed
27477
27478 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
27479
27480         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
27481         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
27482           This dramatically reduces the number of Pen.Dispose calls. 
27483           Where possible call ResPool methods only once instead of calling it
27484           over and over again (for example for the same color).
27485
27486 2006-04-06  Mike Kestner  <mkestner@novell.com>
27487
27488         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
27489         Also remove an unused private field on the collection. Fixes #77972.
27490
27491 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
27492
27493         * ThemeNice.cs: Added ToolBar drawing code
27494
27495 2006-04-06  Mike Kestner  <mkestner@novell.com>
27496
27497         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
27498         I'm assuming that means we need to look up the toplevel for the
27499         provided control. Fixes the crash trace in #77911 but exposes another
27500         crash in some strange reflection usage in NDocGui.
27501
27502 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
27503
27504         * ThemeNice.cs: Gave it a little silver touch and added Images
27505           method
27506         * FontDialog.cs: FontDialog is not resizable
27507         * FileDialg.cs: Added SizeGripStyle.Show
27508
27509 2006-04-05  Jackson Harper  <jackson@ximian.com>
27510
27511         * KeyboardLayouts.cs: Remove warning.
27512
27513 2006-04-05  Jackson Harper  <jackson@ximian.com>
27514
27515         * Control.cs: Enable OnPaintInternal so we can use it for drawing
27516         all of our controls instead of Paint +=.
27517         * ListBox.cs:
27518         * ListView.cs:
27519         * MenuAPI.cs:
27520         * MessageBox.cs:
27521         * NotifyIcon.cs:
27522         * ProgressBar.cs:
27523         * ScrollBar.cs:
27524         * Splitter.cs:
27525         * StatusBar.cs:
27526         * TabControl.cs:
27527         * TextBoxBase.cs:
27528         * ToolBar.cs:
27529         * TrackBar.cs:
27530         * UpDownBase.cs:
27531         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
27532         use OnPaintInternal. Remove Width/Height and Visible checks in
27533         paint handler, this is done at a higher level now.
27534         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
27535         * PaintEventArgs.cs: Add a handled flag so controls that don't
27536         want anymore painting after OnPaintInternal can make sure OnPaint
27537         isn't called.
27538
27539 2006-04-05  Mike Kestner  <mkestner@novell.com>
27540
27541         * Form.cs: fix the menu WndProc hacks to respect the native enabled
27542         state of the form, so that we don't process events when Modal dialogs
27543         are up. Fixes #77922.
27544
27545 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
27546
27547         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
27548           checking is done.
27549
27550 2006-04-05  Mike Kestner  <mkestner@novell.com>
27551
27552         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
27553
27554 2006-04-05  Mike Kestner  <mkestner@novell.com>
27555
27556         * ListView.cs (HeaderMouseMove): null guarding for the over column
27557         when setting up the drag_to_index.  Fixes #78015.
27558
27559 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
27560
27561         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
27562           in the taskbar. Transient windows seem to accomplish that.
27563
27564 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
27565
27566         * Form.cs:
27567           - Re-enabled CreateParams.X/Y code for FormStartPosition
27568           - Added code for manual placement when creating the Control
27569           - Incomplete patch to treat MDI forms differently when
27570             setting the ClientSizeCore. (Still need to figure out handling
27571             x/y coords there)
27572         * XplatUIX11.cs:
27573           - When we're explicitly setting the X/Y position of a non-Child
27574             window, let the WM know. Metacity really wants this.
27575
27576 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27577
27578         * ThemeNice.cs: Added CPDrawButton
27579
27580 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27581
27582         * ThemeNice.cs: Changed the color for focused buttons and activated
27583           the arrows for small scroll buttons.
27584
27585 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27586
27587         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
27588           anymore. Changed some method modifiers to protected (virtual)
27589         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
27590           changes
27591         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
27592           Updated drawing of menus, buttons and progressbars; added
27593           CPDrawBorder3D 
27594
27595 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27596
27597         * ImageListStreamer.cs: implemented serialization/deserialization
27598         of the images.
27599
27600 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
27601
27602         * ThemeWin32Classic.cs:
27603           - Removed all the DrawFrameControl stuff; CPDrawButton,
27604             CPDrawCheckBox and CPDrawRadioButton are now handled directly
27605             inside the methods
27606           - Updated and corrected the drawing code of CPDrawButton,
27607             CPDrawCheckBox and CPDrawRadioButton to better match ms
27608           - Updated theme checkbox and radiobutton code to use the CP*
27609             methods
27610
27611 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
27612
27613         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
27614           bug is fixed
27615
27616 2006-03-31  Jackson Harper  <jackson@ximian.com>
27617
27618         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
27619         sometimes.
27620         * UpDownBase.cs: Don't CreateGraphics manually, use a
27621         Refresh. Ideally we would invalidate the correct areas here.
27622
27623 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
27624
27625         * XplatUIX11.cs: 
27626           - We now track the mapping state of windows. If a window (or 
27627             one of it's parents) is not mapped we no longer permit
27628             WM_PAINT messages to be generated since we'd otherwise get 
27629             lots of BadMatch X errors. Jackson did all the work figuring
27630             out the problem.
27631           - Destroying the caret if the window it's contained in is 
27632             destroyed. Can't use regular DestroyCaret method since it
27633             might fall into a drawing function (trying to remove the
27634             caret) and with that generate new BadMatch errors. Again,
27635             Jackson tracked this down.
27636           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
27637             make sure we send the messages to all windows. (The old code
27638             would send the WM_DESTROY to the window, and then all child
27639             windows would be 'gone' because the WM_DESTROY handle lookup
27640             would no longer find the destroyed window)
27641         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
27642         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
27643
27644 2006-03-31  Jackson Harper  <jackson@ximian.com>
27645
27646         * ScrollableControl.cs: Dont recalc if we are not visible.
27647
27648 2006-03-31  Mike Kestner  <mkestner@novell.com>
27649
27650         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
27651         the visibility branch.
27652
27653 2006-03-31  Jackson Harper  <jackson@ximian.com>
27654
27655         * ScrollBar.cs: Cap values when incrementing/decrementing.
27656
27657 2006-03-31  Mike Kestner  <mkestner@novell.com>
27658
27659         * MenuAPI.cs: setup menu.tracker for popup/context menus.
27660         * ToolTip.cs: guard against timer expirations with no active control.
27661         Not sure why it happened.
27662
27663 2006-03-31  Mike Kestner  <mkestner@novell.com>
27664
27665         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
27666         text.
27667         * ToolTip.cs: Position the tooltip based on where the cursor is at
27668         popup time, not at MouseEnter time.  Add a Down state so that we don't
27669         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
27670         positioning offset. Lookup DisplaySize at positioning time, since it
27671         can theoretically change during invocation.
27672         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
27673         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
27674
27675 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27676
27677         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
27678           Fixes behaviour when the Text property of the box is String.Empty
27679
27680 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
27681
27682         * XplatUIX11.cs: Only send mouseleave for our client windows, not
27683           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
27684           a window)
27685
27686 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27687
27688         * FileDialog.cs: Visual enhancement for the popup buttons in 
27689           PopupButtonPanel
27690
27691 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27692
27693         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
27694           code
27695
27696 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
27697
27698         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
27699           highlighted menu items to match ms
27700
27701 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
27702
27703         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
27704
27705 2006-03-30  Mike Kestner  <mkestner@novell.com>
27706
27707         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
27708         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
27709         go active to account for HotLight to Selected transition.
27710         * MenuItem.cs: add internal Selected prop. Fill out the Status
27711         property by calculating it from item info. Add HotLight,
27712         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
27713
27714 2006-03-30  Mike Kestner  <mkestner@novell.com>
27715
27716         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
27717
27718 2006-03-29  Jackson Harper  <jackson@ximian.com>
27719
27720         * Form.cs: Implement TODO.
27721
27722 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
27723
27724         * PrintPreviewDialog.cs: Implemented missing methods and events; still
27725           missing proper dialog setup in the constructor
27726
27727 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
27728
27729         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
27730         * Control.cs:
27731           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
27732           - Fixed ResetBindings and removed TODO
27733           - Added check for cross-thread calls to get_Handle()
27734           - Added Marshaller attribute for set_Font to satisfy class status
27735         * FontDialog.cs: Removed TODOs that seemed implemented
27736         * UpDownBase.cs: Removed unneeded TODO and Fixme
27737         * MessageBox.cs: Implemented support for Default button and removed TODO
27738         * FileDialog.cs: Removed obsolete TODO
27739         * DomainUpDown.cs: Removed obsolete TODO
27740         * ButtonBase.cs: Removed obsolete TODO
27741         * XplatUIWin32.cs: Removed obsolete TODO
27742         * Form.cs:
27743           - Removed obsolete TODO
27744           - Calling CheckAcceptButton when the acceptbutton is changed to allow
27745             internal status updates
27746           - Making sure the active control is selected when the control is created
27747         * CurrencyManager.cs: Removed obsolete TODO
27748
27749 2006-03-29  Mike Kestner  <mkestner@novell.com>
27750
27751         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
27752         of PrintPreviewDialog and RichTextBox.
27753
27754 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27755
27756         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
27757           DarkDark, Light and LightLight colors for a specific color
27758         * ThemeWin32Classic.cs:
27759           - Use Button drawing code to draw RadioButtons and CheckBoxes with
27760             Appearance = Button 
27761           - Make use of the new ResPool helper CPColor
27762           - Draw ProgressBar and StatusBar with correct 3D borders
27763
27764 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27765
27766         * ColorDialog.cs: Return selected color. Fixes bug #77940.
27767
27768 2006-03-28  Mike Kestner  <mkestner@novell.com>
27769
27770         * ListView.cs: fix Icon layout to plan for scrollbar widths when
27771         calculating col/row counts.
27772
27773 2006-03-28  Mike Kestner  <mkestner@novell.com>
27774
27775         * ColumnHeader.cs:
27776         * ListView.cs:
27777         * ListViewItem.cs:
27778         * Menu.cs: 
27779         switch to explicit interface method implementation for some methods
27780         corcompare identifies as inconsistent with MS.
27781
27782 2006-03-28  Mike Kestner  <mkestner@novell.com>
27783
27784         * MainMenu.cs: 
27785         * Menu.cs:
27786         add a few missing methods from the class status output.
27787
27788 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
27789
27790         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
27791           correct.
27792
27793 2006-03-28  Mike Kestner  <mkestner@novell.com>
27794
27795         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
27796
27797 2006-03-27  Mike Kestner  <mkestner@novell.com>
27798
27799         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
27800         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
27801
27802 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
27803
27804         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
27805
27806 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27807
27808         * ThemeWin32Classic.cs:
27809           - GroupBox: Inserted a little gap between the text and the lines
27810             on the right side
27811           - Made the code in CPDrawBorder3D more readable
27812           - Corrected the drawing location of the up and down arrows in 
27813             CPDrawScrollButton
27814
27815 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27816
27817         * ControlPaint.cs: Corrected line widths in DrawBorder for
27818           ButtonBorderStyle Inset and Outset
27819
27820 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27821
27822         * ThemeWin32Classic.cs:
27823           - Rewrote the totally broken CPDrawBorder3D method. That was
27824             one of the main problems for the terrific ThemeWin32Classic
27825             look
27826           - Updated and corrected Button drawing
27827           - Correct the dimensions of the SizeGrip to match ms ones
27828           - Removed a small drawing glitch in DrawComboBoxEditDecorations
27829         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
27830           Border3DStyle.Sunken to match ms.
27831
27832 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27833
27834         * ThemeWin32Classic.cs: First small part of the "de-uglify
27835           ThemeWin32Classic" effort, SizeGrip
27836
27837 2006-03-24  Jackson Harper  <jackson@ximian.com>
27838
27839         * XplatUIX11.cs: Give a max idle time of one second, this matches
27840         MS and forces an Idle event every second when there are no other
27841         events in the queue.
27842
27843 2006-03-24  Mike Kestner  <mkestner@novell.com>
27844
27845         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
27846         * ListView.Item.cs: fix layout issues with null image lists and images
27847         smaller than checkbox size.
27848         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
27849         mode like MS does.  It's weird, but consistent.  ;-)
27850         Fixes #77890.
27851
27852 2006-03-24  Mike Kestner  <mkestner@novell.com>
27853
27854         * ListView.cs: Scroll wheel support for the item control.  Fixes
27855         #77839.
27856
27857 2006-03-23  Jackson Harper  <jackson@ximian.com>
27858
27859         * ScrollableControl.cs: Special case negative sized areas, not
27860         zero.
27861         * MonthCalendar.cs: Save the rect of the clicked date so we can
27862         use it for invalidation.
27863         - Try to cut down on the number of invalidates
27864         - Invalidate the rect the mouse is over and was over when moving
27865         the mouse, so we get the focus box following the cursor.
27866
27867 2006-03-23  Mike Kestner  <mkestner@novell.com>
27868
27869         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
27870         focus rectangle drawing. Fixes #77835.
27871
27872 2006-03-23  Mike Kestner  <mkestner@novell.com>
27873
27874         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
27875         the if and else if and reverting back to the original == check on the
27876         None conditional.
27877
27878 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
27879
27880         * FontDialog.cs: Update the example panel if the selected index of
27881           the fontListBox changes.
27882
27883 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
27884
27885         * FileDialog.cs: Make FileDialog remember which directory it was in
27886           last in the same execution.
27887
27888 2006-03-22  Mike Kestner  <mkestner@novell.com>
27889
27890         * FileDialog.cs: make the DropDownMenu on the toolbar display
27891         RadioChecks since they are mutually exclusive and that's what MS does.
27892
27893 2006-03-22  Mike Kestner  <mkestner@novell.com>
27894
27895         * Theme.cs: add Color param to CPDrawMenuGlyph.
27896         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
27897         checks and radio marks and arrows are visible on highlighted items.
27898         * ControlPaint.cs: update to use new Theme signature.
27899
27900 2006-03-22  Mike Kestner  <mkestner@novell.com>
27901
27902         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
27903         is active. Fixes #77870.
27904
27905 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
27906
27907         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
27908           to be focused/selected after startup
27909
27910 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
27911
27912         * ColorDialog.cs: 
27913           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
27914             CustomColors and ShowHelp properties
27915           - Some internal rewrites to get better results when using the
27916             ColorMatrix
27917
27918 2006-03-22  Mike Kestner  <mkestner@novell.com>
27919
27920         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
27921         HoverSelection.  Fixes #77836.
27922
27923 2006-03-22  Mike Kestner  <mkestner@novell.com>
27924
27925         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
27926         ToggleButtons.  (De)Sensitize the Back button around a stack count of
27927         1, not 0.  Update ButtonSize based on a pixel count of the win32
27928         control.  Adjust the toolbar size/location for new button size.
27929
27930 2006-03-22  Jackson Harper  <jackson@ximian.com>
27931
27932         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
27933         true.
27934         * ScrollBar.cs: When doing increments and decrements we need to
27935         set the Value property so that ValueChanged gets raised. A
27936         possible optimization here would be to make an internal SetValue
27937         that doesn't invalidate immediately.
27938         * ToolTip.cs: Tooltips get added to their container (when
27939         supplied) so they get disposed when the container is disposed.
27940         - Don't create tooltips for String.Empty. This prevents all these
27941         little 2-3 pixel windows from showing up when running nunit-gui
27942         and driving me mad.
27943         * Form.cs: Don't set topmost when setting the owner if the handles
27944         haven't been created yet.  The topmost set will happen when the
27945         handles are created.
27946
27947 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
27948
27949         * XplatUIX11.cs:
27950           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
27951           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
27952             visible (to allow them to recalculate their sizes)
27953
27954 2006-03-21  Mike Kestner  <mkestner@novell.com>
27955
27956         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
27957         methods. Removed a ton of redundant code.  Still not really happy with
27958         the border rendering, but I think that's mainly because of the
27959         ControlDarkDark being black instead of a dark grey. Depending on how 
27960         close we want to be, we might want to revisit those color choices.
27961         Among the new features added during the refactor were DropDownArrow
27962         pressed rendering, Disabled image rendering.  Proper flat appearance
27963         boundary rendering.  Removed the Divider and Wrapping dividers since I
27964         can't figure out any combination of themes and conditions to make the
27965         MS control draw a horizontal line on a toolbar despite what the
27966         Divider property docs indicate.
27967         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
27968         conditions and incorrect layout.  Updated to coding standard.
27969         * ToolBarButton.cs: refactored layout and positioning code from
27970         ToolBar to here.  Invalidate wherever possible instead of forcing
27971         redraws of the whole toolbar. 
27972         (Known remaining issues: explicit ButtonSize smaller than provided
27973         images.)
27974
27975 2006-03-21  Mike Kestner  <mkestner@novell.com>
27976
27977         * ContextMenu.cs (Show): use the position parameter instead of just
27978         showing at the MousePosition.
27979
27980 2006-03-21  Jackson Harper  <jackson@ximian.com>
27981
27982         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
27983         control handle this.
27984         * TreeNodeCollection.cs: If we are clearing the root node we need
27985         to reset top_node so calcs can still happen.
27986         * ThemeWin32Classic.cs: This is a Flags so we need to check
27987         properly.
27988         
27989 2006-03-21  Jackson Harper  <jackson@ximian.com>
27990
27991         * DataGrid.cs: Create columns when the binding context has been
27992         changed.
27993         * X11Structs.cs: Keysyms are uints.
27994         - Add size to fix build.
27995
27996 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
27997
27998         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
27999           XplatUIOSX.cs: 
28000           - Added ResetMouseHover method to allow controls to retrigger
28001             hovering if they need it more than once
28002           - Implemented MouseHoverTime and MouseHoverSize properties
28003         * Timer.cs: Start() must reset the interval
28004         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
28005           properties
28006
28007 2006-03-21  Jackson Harper  <jackson@ximian.com>
28008
28009         * X11Keyboard.cs: improved layout detection. Move the nonchar
28010         tables into this file.
28011         * KeyboardLayouts.cs: Move the tables into resource files.
28012
28013 2006-03-21  Mike Kestner  <mkestner@novell.com>
28014
28015         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
28016
28017 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
28018
28019         * Mime.cs: Various speed optimizations. Looking up mime types
28020           is now 2 times faster than before
28021
28022 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
28023
28024         * CreateParams.cs: Added internal menu field
28025         * Control.cs: 
28026           - Switched call order for UpdateBounds; now we always call
28027             the one that also takes ClientSize, and we're calculating the 
28028             client size via driver method in the others. The previous
28029             method of tracking client size by difference wasn't working
28030             for forms where even the starting client size wouldn't match
28031             the overall form size (due to borders) (Part of fix for #77729)
28032           - CreateParams(): Do not use parent.Handle unless the handle is
28033             already created. Causes havoc with Nexxia and throws off our
28034             creation of controls
28035         * XplatUIX11.cs:
28036           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
28037           - Switched handling of ConfigureNotify over to new PerformNCCalc 
28038             method (consolidates code)
28039           - Changed RequestNCRecalc to use new PerformNCCalc method
28040           - Added calls to RequestNCRecalc when menus and borders are changed
28041             to allow app to set NC size. (Part of fix for #77729) This matches
28042             when MS send a WM_NCRECALC on Win32 windows.
28043           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
28044             (Part of fix for #77729). This matches what MS does, they also
28045             send that message when the form is made visible.
28046           - XException.GetMessage: Improved usability of X errors by including
28047             a translation of the window into Hwnd and Control class
28048           - Improved debug info for window creation, reparenting and destruction
28049           - Created helper method WindowIsMapped() [Currently not used]
28050         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
28051         * Form.cs:
28052           - CreateParams: Now setting our menu on the new internal menu field
28053           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
28054             avoid calculating the same property twice
28055         * Hwnd.cs:
28056           - Improved usability of ToString() for debugging purposes
28057           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
28058             determine the height of the menu, instead of just the font. This
28059             required to also create a graphics context and to keep a bmp 
28060             around (for performance reasons)
28061
28062 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
28063
28064         * MenuAPI.cs: Added OnMouseUp method
28065         * Form.cs:
28066           - Now remembering the requested client size, avoids size errors
28067           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
28068             instead of base if the menu is active. This is required due to
28069             control now capturing and releasing on down/up and it would
28070             prematurely release our menu capture
28071
28072 2006-03-17  Jackson Harper  <jackson@ximian.com>
28073
28074         * KeyboardLayouts.cs: Add the czech layouts.
28075
28076 2006-03-16  Jackson Harper  <jackson@ximian.com>
28077
28078         * Control.cs: Use the viewport space when sizing not the controls
28079         client size, so things like ScrollableControl that effect the
28080         viewport size (when scrollbars are added) are computed correctly.
28081         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
28082         of ManagerEntrys.
28083         - Handle creating BindingManagers for null data sources.
28084         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
28085         source, otherwise when rows are added they are added to the 'fake'
28086         datasource and we will crash when trying to set the position in
28087         those rows.
28088         - Use Implicit scrollbars on the datagrid so they arent
28089         selectable.
28090         
28091 2006-03-16  Jackson Harper  <jackson@ximian.com>
28092
28093         * Binding.cs:
28094         * InternalWindowManager.cs:
28095         * MdiWindowManager.cs:
28096         * X11Keyboard.cs: I really want Mike to love me again (fix
28097         compiler warnings).
28098
28099 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
28100
28101         * DataGrid.cs:
28102           - OnMouseDown: Switch to editing mode when clicking on the cell
28103                          even if we're clicking on the cell that's currently 
28104                          selected
28105           - ProcessGridKey: Left/Right now wrap like MS.Net does
28106           - ProcessGridKey: Tab now knows to add a new row when tab is
28107                             pressed in the cell of the last column of the 
28108                             last row
28109           - ProcessGridKey: Enter now adds another row  if pressed in the last
28110                             row and selectes the new row, same column cell
28111           - ProcessGridKey: Home/End navigate columns, not rows, like 
28112                             originally implemented
28113           - Broke ProcessKeyPreview code out into an extra Internal method
28114             so it can be called from the edit code
28115         * DataGridTextBox.cs (ProcessKeyMessage):
28116           - Switched to accept Tab keypresses
28117           - Added F2 handling to allow jumping to the end of the edited cell
28118           - Added logic to allow moving caret left/right inside edited cell
28119             and making the edited cell jump when the caret hits cell borders
28120           - Tab and Enter are now passed to the datagrid after being handled
28121         * TextBoxBase.cs:
28122           - Removed capture code now that Control handles it
28123           - set_SelectionStart now ensures caret is visible
28124
28125 2006-03-16  Jackson Harper  <jackson@ximian.com>
28126
28127         * TrackBar.cs: Debackwards the increment/decrement for handling
28128         mouse clicks on the bar with vertical trackbars.
28129         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
28130         bottom to match MS.
28131
28132 2006-03-16  Mike Kestner  <mkestner@novell.com>
28133
28134         * ListView.cs: make shift/ctrl keyboard and mouse selection 
28135         consistent with the MS control. Fix a bug in
28136         SelectedListViewItemCollection.Clear that was pissing me off for the
28137         better part of a day because the collection was being altered
28138         underneath us as we walked the list.
28139
28140 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
28141
28142         * Control.cs: Not sure how we could miss this so long, but it seems
28143           that MS.Net has Capture set all the way from before calling 
28144           OnMouseDown through sending the mouse events until after
28145           OnMouseUp. This will fix DataGrid's selection being set to end
28146           at the location of the MouseUp.
28147
28148 2006-03-15  Jackson Harper  <jackson@ximian.com>
28149
28150         * BindingContext.cs: Check the binding after its added so that it
28151           can initialize the binding managers and hookup to events.
28152         * Binding.cs: Data members seem to sometimes include rows/cols in
28153           the format Row.Column we now take this into account.
28154           - Hookup to the position changed event so we can update the
28155           control when the position has changed in the data set.
28156         * CurrencyManager.cs: Take into account the row/col naming
28157           convention when creating dataset tables.
28158         * BindingContext.cs: Using a newer better way of storing
28159           datasource/datamember pairs.  Hopefully this better matches MS for
28160           looking up binding managers.
28161
28162
28163 2006-03-15  Jackson Harper  <jackson@ximian.com>
28164
28165         * BindingContext.cs: The currency manager needs the data member
28166         name, if the member is a data set we use the name to find the
28167         correct table.
28168         * CurrencyManager.cs: When creating the list prefer an IList over
28169         an IListSource.
28170         - Attempt to create a DataTable from a DataSet (TODO: might need
28171         some better error checking here, although MS doesn't seem to have much)
28172         - If we have a DataTable create a view and use it as our list.
28173
28174 2006-03-15  Mike Kestner  <mkestner@novell.com>
28175
28176         * ListView.cs: keep a matrix of the icon mode layout to facilitate
28177         keyboard navigation. Support Up/Down/Left/Right selection correctly
28178         for all 4 View modes.
28179         * ListViewItem.cs: add internal row/col fields for icon layouts.
28180
28181 2006-03-15  Jackson Harper  <jackson@ximian.com>
28182
28183         * TabControl.cs: Redraw the tabs when we resize so their newly
28184         calculated sizes are drawn on screen.
28185         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
28186         composite characters.
28187         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
28188         - filter events so that composite characters can be created
28189         patches by peter
28190         * X11Structs.cs: Add XIMProperties enum.
28191
28192 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
28193
28194         * Control.cs (BringToFront, SendToBack): Don't use window or handle
28195           unless it's created
28196
28197 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
28198
28199         * Control.cs (PerformLayout): We don't need to consider visiblity
28200           for anchoring, only for docking. This fixes 'whacky' alignment
28201           in listbox and other controls that use implicit scrollbars after
28202           the previous PerformLayout patch
28203         * ListBox.cs: Switched to use implicit scrollbars
28204           
28205 2006-03-14  Mike Kestner  <mkestner@novell.com>
28206
28207         * ToolBar.cs: 
28208         * VScrollBar.cs:
28209         - chain up the "new event" overrides to base and use
28210         OnEvent to raise them.  Part of fix for bug #76509.
28211
28212 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
28213
28214         * FileDialog.cs: Do not select an item in the parent directory
28215           on backspace
28216
28217 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
28218
28219         * Control.cs (PerformLayout): It would seem that we considered
28220           invisible windows for our layout. Not quite the right thing
28221           to do. Now we don't any longer, thereby fixing bug #76889.
28222
28223 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
28224
28225         * Control.cs (CanFocus): I goofed. A control can have focus 
28226           even though it's not selectable. Made it match MS docs.
28227
28228 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28229
28230         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
28231           center by default (fixes #76895)
28232         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
28233           all uses of Border3DSides.All with the explicit ORd together
28234           Left|Right|Top|Bottom because I assume that nobody was aware 
28235           that All also implies a center fill. Most places I checked had
28236           a fill right above.
28237         * ProgressBarStyle.cs: Added
28238
28239 2006-03-13  Mike Kestner  <mkestner@novell.com>
28240
28241         * ListView.cs: fix breakage in drag shadow header positioning 
28242         from Peter's csc compilation fix.
28243
28244 2006-03-13  Mike Kestner  <mkestner@novell.com>
28245
28246         * ListView.cs: fix NRE produced by backspacing twice in a focused
28247         FileDialog.
28248
28249 2006-03-13  Mike Kestner  <mkestner@novell.com>
28250
28251         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
28252
28253 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28254
28255         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
28256           be changed
28257         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
28258           the allowed size before making programmatic size changes
28259
28260 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
28261
28262         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
28263           set, metacity is broken and will still use the emty sizes in 
28264           the struct. (Fix for #77089)
28265
28266 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28267
28268         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
28269           WindowExStyles and marked both enums as Flags
28270         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
28271           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
28272           to match WindowStyles split
28273         * XplatUIX11.cs:
28274           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
28275           - Updated to match WindowStyles split
28276         * XplatUIWin32.cs:
28277           - Fixed FosterParent creation, was using ExStyle on the Style field
28278             (This should help with Popup focus issues)
28279           - Updated to match WindowStyles split
28280
28281 2006-03-13  Jackson Harper  <jackson@ximian.com>
28282
28283         * MdiWindowManager.cs: Use the system menu height. Fixes some
28284         strange sizing issues.
28285
28286 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
28287
28288         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
28289         * TextBoxBase.cs:
28290           - Scroll to caret after inserting text (#77672)
28291           - Make scroll range one pixel higher, fixes off-by-one error (and
28292             makes underlines visible on the last line)
28293
28294 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
28295
28296         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
28297           the keyboard state from being stuck with keys in 'pressed' state when
28298           focus is switched away via keyboard
28299         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
28300           reset the keyboard if no X11 KeyUp events are expected to come
28301         * X11Structs.cs: Switched type of Visible to bool to match driver
28302
28303 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
28304
28305         * TextControl.cs:
28306           - Switched caret to be just 1 pixel wide, matches MS and looks less
28307             clunky
28308           - Moved caret display 1 pixel down from the top of the control
28309             to improve view
28310           - InsertCharAtCharet: Update the selection start if moving the caret
28311             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
28312           - No longer always creating the caret when the caret methods are
28313             called. Only the actual ShowCaret/HideCaret will do that now
28314           - Only setting caret visible if the owner control has focus
28315           - UpdateView: Added invalidation-shortcut logic for center and right 
28316             aligned text. Previously we'd update all according to the left
28317             logic which caused drawing errors. Also fixed height of invalidated
28318             areas, now properly invalidating the whole area (was off-by-one)
28319           - owner_HandleCreated: Always generate the document when the
28320             handle is created; this ensures that 
28321         * TextBoxBase.cs:
28322           - Fixed situation where caret would disappear under the right
28323             window border, also improved scrolling behaviour on left-
28324             aligned textboxes
28325           - Fixed right-aligned textboxes to have a border to the
28326             right instead of the caret being under the right border
28327         * XplatUIX11.cs:
28328           - Switched from 'nested' to simple visible/not visible tracking 
28329             for caret (part of fix for #77671)
28330           - No longer passing through translated FocusIn/FocusOut messages
28331             since we were notifying too often and the wrong windows. Instead
28332             we just notify our focussed window of receiving or loosing focus
28333         * XplatUIWin32.cs: Switched from 'nested' show/hide 
28334           counting for caret to simple visible yes/no behaviour (part of 
28335           fix for #77671)
28336
28337 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
28338
28339         * Mime.cs: Remove debug code...
28340
28341 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
28342
28343         * MimeGenerated.cs: Removed
28344         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
28345           and subclasses) from /usr/(local/)share/mime and
28346           $HOME/.local/share/mime.
28347
28348 2006-03-10  Jackson Harper  <jackson@ximian.com>
28349
28350         * MdiWindowManager.cs: Recalc the NC area when a window is
28351         maximized/restored so that the menu area is drawn on forms that
28352         don't have a menu.
28353
28354 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28355
28356         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
28357           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
28358           us to force a WM_NCCALCRESIZE message being sent. This is needed
28359           for MDI maximizing.
28360
28361 2006-03-10  Jackson Harper  <jackson@ximian.com>
28362
28363         * Form.cs: We need to use the ActiveMenu when calculating menu
28364         height.
28365         - Fix nullref when the window manager hasn't been created yet.
28366         * Control.cs: Fix nullref when we try to bring a control to the
28367         front that has no parent.
28368         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
28369         height.
28370         - Add a dummy item to the maximized menu so it always has the
28371         correct height. Otherwise when there are no menus we don't get our
28372         icon and buttons.
28373         
28374
28375 2006-03-10  Jackson Harper  <jackson@ximian.com>
28376
28377         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
28378         stuff.
28379         * Form.cs: Make the window_state internal so the window managers
28380         can track it.
28381         - When an MDI child is maximized let its window manager create the
28382         main menu (so it can add its icon).
28383         - Notify the window managers of state changes
28384         - Let the window manager paint its buttons and handle button
28385         clicks on the menu when it is maximized.
28386         * InternalWindowManager.cs: Move the prev_bounds into the mdi
28387         window manager, since tool windows don't use it, only mdi windows.
28388         - Tell the main form that we don't want it to handle NCPAINT
28389         itself to avoid extra painting.
28390         - Handle clicks on a maximized windows menu.
28391         - Handle window state changes
28392         - Handle minimize/maximize clicks correctly by setting the window state.
28393         * MdiWindowManager.cs: Add an icon menu that (the menu you get
28394         when clicking on the forms icon).
28395         - New method to create a forms maximized menu. This is its normal
28396         menu + an icon.
28397         - Handle window state changes.
28398         - Handle sizing of maximized windows.  Maximized windows are just
28399         drawn bigger then the parent visible area. All controls are still
28400         there, they are just outside the visible area (this matches windows).
28401         * MdiClient.cs: No scrollbars when a child window is maximized.
28402         - Let the children windows figure out how big they should be when
28403         sizing maximized windows.
28404         - Implement a version of ArrangeIconicWindows somewhat similar to
28405         Windows version.  There are some little differences, but I don't
28406         think any app will rely on the layout of minimized mdi windows.
28407
28408 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28409
28410         * Padding.cs: Several fixes to allow compiling with csc 2.0
28411
28412 2006-03-09  Jackson Harper  <jackson@ximian.com>
28413
28414         * Menu.cs:
28415         * MenuItem.cs: Cheap hack so we can add items to the list without
28416         the events being raised.  This allows adding mdi items during
28417         drawing. TODO: Should probably find a better time to add the items.
28418
28419 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28420
28421         * ThemeWin32Classic.cs:
28422           - CheckBox_DrawText: Added logic to not wrap if not enough space
28423             is available (Fix for bug #77727)
28424           - RadioButton_DrawText: Added logic not to wrap if not enough
28425             space is available (Fix for bug #77727). Also removed some
28426             duplicate code, DrawString always drawing the regular text
28427             before hitting the if statement.
28428
28429 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
28430
28431         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
28432
28433 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28434
28435         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
28436         * ContainerControl.cs: Partial implementation of some 2.0 scaling
28437           methods. Moved the new 2.0 properties into alphabetical order with
28438           other properties and added MonoTODO tags
28439
28440 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28441
28442         * AutoScaleMode.cs: Added. Fix build.
28443
28444 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28445
28446         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
28447           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
28448           and was requiring premature handle creation for calls from above
28449         * Form.cs, Control.cs: Removed handle arguments from calls to
28450           CalculateClientRect()
28451
28452 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28453
28454         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
28455           drag_column.column_rect is MarshalByRef and can't be used that way
28456
28457 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28458
28459         * AxHost.cs: Added deserialization constructor for 
28460           AxHost+State (fixes 77743)
28461
28462 2006-03-09  Mike Kestner  <mkestner@novell.com>
28463
28464         * ListView.cs: 
28465         - Added column drag reordering for details view.
28466         - fixed behavior when mouse is dragged off column and
28467         AllowColumnReorder is false.
28468         * ColumnHeader.cs: clone the format too in Clone.
28469         * Theme.cs: add DrawListViewHeaderDragDetails method.
28470         * ThemeWin32Classic.cs:
28471         - impl new method for drawing drag column shadows and targets.
28472         - support column offset for details mode in DrawListViewItem.
28473
28474 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28475
28476         * TextControl.cs: Reset the char_count when the document is cleared
28477           (Fixes bug reported on mono-winforms mailing list)
28478
28479 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28480
28481         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
28482           of calling base we simply process the key ourselves, since both
28483           DefWindowProc and the handled method would set m.Result. 
28484           (Fixes #77732)
28485
28486 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28487
28488         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
28489           method also moves the window; instead implemented a copy of
28490           Control.ScaleCore (Part of fix for #77456)
28491         * TextBoxBase.cs: 
28492           - Created new CreateGraphicsInternal method to allow providing
28493             a graphics context when no handle is created without triggering
28494             handle creation. (Part of fix for #77456)
28495           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
28496         * TextControl.cs: 
28497           - Switched Constructor to require TextBoxBase instead of Control (to
28498             allow uncast access to CreateGraphicsInternal)
28499           - Safeguarded use of owner.Handle property. No longer accessing it
28500             unless the handle is already created.
28501           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
28502           - Now triggering a recalc when owning control becomes visible
28503         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
28504           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
28505           premature handle creation (Part of fix for #77456)
28506         * Control.cs:
28507           - We now only destroy our double-buffering buffers when the
28508             control is resized or disposed, but not when visibility
28509             changes. (The code even re-created them twice every time)
28510           - Now requiring a redraw of the buffer on visibility changes
28511             (fixes bug 77654 part 2)
28512           - Not passing OnParentVisibleChanged up unless the control
28513             is visible
28514           - CanFocus: Fixed to match MS documentation
28515           - Focus: Fixed to return actual focus state and to check if
28516             setting focus is legal before setting it
28517
28518 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
28519
28520         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
28521           when to draw focus rectangle by looking at parent focus and
28522           selected state instead. This fixes TabPages on Linux sometimes
28523           having none or multiple focus rectangles.
28524         * XplatUIX11.cs (SetFocus): 
28525           - Don't set the focus if the same window already has focus
28526           - Use SendMessage instead of PostMessage (like it's Win32
28527             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
28528             to match MS behaviour
28529         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
28530           are not selectable.
28531
28532 2006-03-07  Jackson Harper  <jackson@ximian.com>
28533
28534         * PictureBox.cs: Revert line I accidently committed last week.
28535
28536 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
28537
28538         * Control.cs: 
28539           - Added new IsRecreating and ParentIsRecreating properties to
28540             allow testing if RecreateHandle has been called on ourselves
28541             or one of our parents
28542           - WndProc(WM_DESTROY): If our control handle is being recreated
28543             we immediately need to create the handle when receiving the
28544             destroy, that way our child windows find a valid parent handle
28545             when they themselves are being recreated upon WM_DESTROY receipt
28546             (fix for bug #77654 part 1)
28547         * XplatUIX11.cs:
28548           - DestroyWindow: WM_DESTROY must be sent to our own window before
28549             notifying any child windows. MS documents that child windows
28550             are still valid when WM_DESTROY is received. (Control now relies on
28551             this behaviour)
28552           - Added some fine-grain debug options
28553
28554 2006-03-06  Jackson Harper  <jackson@ximian.com>
28555
28556         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
28557         box and base calculations off this.
28558         * MdiChildContext.cs:
28559         * MdiWindowManager.cs: Don't need to ensure scrollbars here
28560         anymore.
28561         
28562 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
28563
28564         * Splitter.cs: In situations where the affected control is added
28565           to the parent's control list after the splitter, we would not
28566           populate affected. Now we try populating it on mousedown, if
28567           it's not already set, and force it to be re-set whenever our
28568           parent changes.
28569
28570 2006-03-03  Matt Hargett  <matt@use.net>
28571
28572         * Control.cs: implement Control.Padding
28573         * Padding.cs: -Padding.All returns -1 when constructing with the
28574         implicit default ctor
28575         -Padding.ToString() matches MS.NET
28576         * ContainerControl.cs: implement
28577         ContainerControl.AutoScaleDimensions
28578         * ListControl.cs: implement ListControl.FormattingEnabled
28579         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
28580         * ButtonBase.cs:
28581         * TabPage.cs: Implement UseVisualStyleBackColor.
28582         * PictureBox.cs: Implement PictureBox.InitialImage.
28583
28584 2006-03-03  Mike Kestner  <mkestner@novell.com>
28585
28586         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
28587         event declarations to proxy to base event.
28588         * ListViewItem.cs: update to use ItemControl.
28589         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
28590         * ThemeWin32Classic.cs: update to new ListView theme API and fix
28591         column header label rendering for 0 width columns.
28592
28593 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
28594
28595         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
28596           that causes the control to be created. Fixes #77476.
28597
28598 2006-03-02  Jackson Harper  <jackson@ximian.com>
28599
28600         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
28601         expose_pending.
28602
28603 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
28604
28605         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
28606           passed in for the EventArgs (fixes #77690)
28607
28608 2006-03-01  Jackson Harper  <jackson@ximian.com>
28609
28610         * ScrollBar.cs: Refresh afterbeing resized.
28611
28612 2006-02-28  Mike Kestner  <mkestner@novell.com>
28613
28614         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
28615         Clean up a tracker compile warning.
28616         * MenuItem.cs: add internal PerformPopup method.
28617         [Fixes #77457]
28618
28619 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
28620
28621         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
28622           implicit expose) when the text is set to null
28623
28624 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
28625
28626         * RichTextBox.cs (FlushText): When newline is true, we always
28627           need to split the line, even if no text is on it and we may
28628           never eat newlines. (Fixes #77669)
28629
28630 2006-02-28  Mike Kestner  <mkestner@novell.com>
28631
28632         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
28633         and set Selected instead.
28634         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
28635         collections.
28636
28637 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
28638
28639         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
28640
28641 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
28642
28643         * FontDialog.cs:
28644           - Got rid of the panel. All controls are now directly added to
28645             the dialog form
28646           - It is now possible to set a font with the Font property
28647           - MinSize and MaxSize property do now what they should
28648           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
28649           - Searching and selecting a font with the font textbox works now,
28650             the same applies to the style and size textbox
28651           - Draw the correct 3D border in the example panel
28652           - Fixed a little mem leak (unused fonts didn't get disposed)
28653           - Many other internal updates/rewrites...
28654           - Fix typo
28655
28656 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
28657
28658         * TextControl.cs: 
28659           - InsertRTFFromStream: Added 'number of characters inserted' argument
28660           - set_SelectedRTF: Now using the number of characters to calculate
28661             the new location for the selection and cursor (x/y cannot be used
28662             due to potentially already wrapped text)
28663
28664 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
28665
28666         * TextControl.cs: Added property and implemented means to allow 
28667           disabling recalculation of a document (can be used to speed up
28668           multiple inserts and is needed to make RTF inserts predictable, see
28669           bug #77659)
28670         * RichTextBox.cs: Using the new NoRecalc property of Document to
28671           keep x/y insert locations predictable. Also makes it faster inserting
28672           large chunks of RTF
28673
28674 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
28675
28676         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
28677           it's easier for a child control to handle the other messages without
28678           having to duplicate the special functionality
28679         * TextBoxBase.cs
28680           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
28681             code to handle processing the key ourselves, in order to get 
28682             access to the result of KeyEventArgs.Handled. We now only call 
28683             ProcessKey if they key hasn't been handled already. Fixes #77526.
28684           - set_Text: If null or empty string is given, just clear the 
28685             document. Fixes part of #77526
28686
28687 2006-02-27  Jackson Harper  <jackson@ximian.com>
28688
28689         * SizeGrip.cs: Paint the background color before painting the grip
28690         so things look right.
28691         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
28692
28693 2006-02-27  Mike Kestner  <mkestner@novell.com>
28694
28695         * ListView.cs:
28696           - Restructure layout and invalidation model to remove a ton of
28697           flicker from the control and speed up performance in general.
28698           - Add manual column resize, flickers like crazy, but I already have
28699           some ideas on how I'll fix that. (#76822)
28700           - Merge the three Icon-based views into a single layout method.
28701           - Move item selection interaction logic from the item since 
28702           interaction with the collections is more appropriate to the view.
28703           - Deselection on non-item clicks.
28704         * ListViewItem.cs:
28705           - Encapsulate most of the layout. Add some internal props to trigger
28706           layout.  Move to a model where Items invalidate themselves instead
28707           of just invalidating the whole control every time something changes.
28708           - Invalidate on Text/Caption changes.
28709           - switch to an offset based layout model to avoid having to absolute
28710           position every element on item moves.
28711           - correct checkbox layout to conform to MS layout.
28712         * ThemeWin32Classic.cs:
28713           - refactor some column header drawing code.
28714           - fix string justification for column headers (#76821)
28715           - make SmallIcon labels top justified for compat with MS impl.
28716         * ThemeClearlooks.cs:
28717           - adjust to new ListViewItem internal checkbox bounds api.
28718
28719 2006-02-27  Jackson Harper  <jackson@ximian.com>
28720
28721         * Control.cs:  Change where implicit controls fall in the zorder.
28722         They are now on top of all children.
28723         - Synced AddImplicit code with Add
28724         - Removed unused enumerator.
28725         * SizeGrip.cs: Remove the TODO as its been TODONE.
28726
28727 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
28728
28729         * TextControl.cs(Insert): Combine the last lines unless the insertion
28730           string ends with \n\n, otherwise we leave one line too many (Fixes
28731           something I noticed with the testapp for #77526; the bug itself was
28732           already fixed in the previous checkin)
28733
28734 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
28735
28736         * RichTextBox.cs:
28737           - SelectionColor and SelectionFont methods no longer set absolute
28738             styles. Instead, the keep font or color respectively (This 
28739             resolves a long-standing FIXME in the code)
28740           - When flushing RTF text, the insert code now considers text trailing
28741             behind the insertion point (Fixes the bug where when replacing
28742             the selected text via SelectedRTF the remainder of the line behind 
28743             the selection would stay on the first insertion line)
28744         * TextBoxBase.cs:
28745           - AppendText now updates the selection points after inserting text
28746           - AppendText now ensures that the last tag (sometimes 0-length) of
28747             the document is used for the style information (Fixes part of 
28748             bug #77220)
28749         * TextControl.cs:
28750           - Created new FontDefiniton class to allow describing partial style
28751             changes
28752           - StreamLine() now takes a lines argument, to allow it to decide
28753             whether an encountered zero-length tag is the last in the document
28754             (which must be kept to not loose the font/color contained in it,
28755             for later appends)
28756           - Created Combine() and Split() methods for Marker structs, to 
28757             support marker updates due to reformatted documents (soft line
28758             wraps)
28759           - Implemented Document.CaretTag setter
28760           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
28761             of the last line (Not the cause, but also exposed by bug #77220)
28762           - Added LineTag argument to InsertString method, to allow callers
28763             to force a certain tag to be used (required to force use of the
28764             trailing zero-length tag of a document)
28765           - Now updating markers in Combine(), to avoid stale tag markers
28766           - Added some method descriptions to aid maintenance
28767           - Implemented new FormatText concept, allowing additive/subtractive
28768             formatting by only specifying the components that are to be 
28769             changed. This was needed for resolving the RTB.SelectedColor/
28770             RTB.SelectedFont fixmes
28771           - Added Break() support method to allow breaking up linetags (used
28772             for partial formatting)
28773           - Added GenerateTextFormat() method. It is used for partial 
28774             formatting and allows to generate a full font/color from given
28775             attributes and an existing tag.
28776
28777 2006-02-26  Jackson Harper  <jackson@ximian.com>
28778
28779         * XplatUIX11.cs:  Use the correct caption height.
28780         - Translate hittest coordinates to screen coords to match MS.
28781         * XplatUIWin32.cs: When we create MDI windows we need to reset
28782         some of the style flags, so we get a nice blank window, and can
28783         draw all the decorations ourselves.
28784         - Set a clipping rectangle on the non client paint event, the
28785         window manager drawing code needs one.
28786         * Form.cs: The window manager needs to know when the window state
28787         has been updated.
28788         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
28789         don't need to factor in border and title sizes in these
28790         methods. TODO: Remove the args and fix the call points.
28791         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
28792         properly.
28793         - Let the driver set the cursors.
28794         - Improve active window handling
28795         - Correct sizes for title bars and buttons.
28796         - Match MS drawing better
28797         * MdiWindowManager.cs: We don't need to handle border style
28798         updates specially anymore.
28799         - Check for scrollbars when windows are done moving
28800         - Handle Active properly.
28801         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
28802         correctly. I am spewing the exception though, so we don't hide the
28803         bugs.
28804         
28805 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
28806
28807         * DataGridViewRowPostPaintEventArgs.cs,
28808           DataGridViewCellPaintingEventArgs.cs,
28809           DataGridViewRowCollection.cs,
28810           DataGridViewRowPrePaintEventArgs.cs,
28811           DataGridViewCell.cs: Clear a few warnings and implement a few
28812           exceptions that should be thrown.
28813
28814 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
28815
28816         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
28817           'inheriting' our parent's (non-default) cursor. (Part of
28818            the fix for #77479)
28819
28820 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
28821
28822         * XplatUIX11.cs: Fixed cast to make csc happy
28823
28824 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
28825
28826         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
28827           it's for the client area (part of fix for #77479 and needed
28828           for MDI window cursor handling)
28829         * XplatUIX11.cs
28830           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
28831             the appropriate default cursors and also passing the message
28832             up the parent chain 
28833           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
28834             for non-client areas
28835
28836 2006-02-15  Jackson Harper  <jackson@ximian.com>
28837
28838         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
28839         is a real MDI window
28840
28841 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
28842
28843         * X11DesktopColors.cs: Instead of checking the desktop session
28844           string for "KDE" check if it starts with "KDE"
28845
28846 2006-02-10  Jackson Harper  <jackson@ximian.com>
28847
28848         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
28849         systems).
28850
28851 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
28852
28853         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
28854           errors
28855         * ColorDialog.cs:
28856           - Got rid of the panel. All controls are now directly added to
28857             the dialog form
28858           - Changed to mono coding style
28859
28860 2006-02-10  Jackson Harper  <jackson@ximian.com>
28861
28862         * InternalWindowManager.cs: We don't need the set visibility to
28863         false hack anymore now that peter has written beautiful shutdown
28864         code.
28865
28866 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
28867
28868         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
28869           where already explicitly destroyed
28870
28871 2006-02-10  Jackson Harper  <jackson@ximian.com>
28872
28873         * MdiClient.cs: Handle the case where windows are too high or to
28874         the left and we need scrollbars.
28875
28876 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
28877
28878         * MimeIcon.cs: Added some icons
28879         * FileDialog.cs:
28880           - Fixed bug #77477
28881           - Got rid of the panel. All controls are now directly added to
28882             the dialog form
28883           - Changed to mono coding style
28884           - On Linux "My Computer" and "My Network" will now show some
28885             more usefull information. A new class, MasterMount, gathers
28886             this information from /proc/mount. Updated MWFFileView to make
28887             use of this information
28888           - Fixed a bug that caused FileDialog to crash when
28889             ".recently_used" file had a zero size
28890           - FilterIndex does now what it should
28891           - Some Refactoring
28892         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
28893             FileDialog changes
28894
28895 2006-02-09  Jackson Harper  <jackson@ximian.com>
28896
28897         * ComboBox.cs: Don't touch if null.
28898
28899 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
28900
28901         * Cursor.cs: 64bit safeness fix
28902         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
28903
28904 2006-02-09  Jackson Harper  <jackson@ximian.com>
28905
28906         * Form.cs: If a form is made into an MDI form update the styles so
28907         all the props can get set correctly.
28908         - Kill the mdi_container when we dont need it anymore.
28909         * InternalWindowManager.cs: Add missing NOT
28910
28911 2006-02-08  Jackson Harper  <jackson@ximian.com>
28912
28913         * InternalWindowManager.cs: Respek clipping when drawing MDi
28914         decorations.
28915
28916 2006-02-08  Jackson Harper  <jackson@ximian.com>
28917
28918         * Hwnd.cs: Add bits to track non client expose events.
28919         * XplatUIX11.cs: Track non client expose events on the hwnd. This
28920         gives us a proper invalid rect and will allow for some nice
28921         optimizations with NC client drawing
28922         - MDI windows are children windows, so move their style handling
28923         into the child window block.
28924         * InternalWindowManager.cs: Remove a state reset that was
28925         getting invoked at the wrong time. Fixes managed windows getting
28926         into a 'stuck' captured state.
28927
28928 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
28929
28930         * TextControl.cs (Document.ctor): Now initializing 
28931           selection_anchor. Fixes #77493
28932
28933 2006-02-07  Jackson Harper  <jackson@ximian.com>
28934
28935         * TrackBar.cs: The increment/decrements were backwards.
28936
28937 2006-02-07  Mike Kestner  <mkestner@novell.com>
28938
28939         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
28940         to the instance itself.
28941
28942 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
28943
28944         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
28945           on ulongs and pointers, the size differs between 32bit and 64bit
28946           systems. 
28947
28948 2006-02-07  Mike Kestner  <mkestner@novell.com>
28949
28950         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
28951         for 64 bit platforms to work around a metacity bug. 
28952
28953 2006-02-07  Jackson Harper  <jackson@ximian.com>
28954
28955         * TrackBar.cs: Process the input keys we need, and hookup to
28956         KeyDown instead of using WndProc, so we get key messages.
28957
28958 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
28959
28960         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
28961           machine we're on. 
28962         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
28963           we need to translate the XdndVersion atoms array before sending it
28964
28965 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
28966
28967         * XplatUIX11.cs: 
28968           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
28969             number of bits for the property, not the number of bytes. The
28970             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
28971             but would not crash since it specified 8 bits instead of 4 bits)
28972           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
28973             defined as XID -> long in the C headers)
28974           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
28975             references since those are now IntPtr to begin with
28976           - Switched all Atom.XXX 'int' casts to IntPtr casts
28977           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
28978           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
28979           - Added XChangeActivePointerGrab DllImport (for X11DnD)
28980         * X11Structs.cs:
28981           - Changed 'int' type for Atoms in XEvent structures to IntPtr
28982           - Changed atom in HoverStruct to be IntPtr
28983         * X11DnD.cs:
28984           - Removed local DllImports, switched code to use those from XplatUIX11
28985           - Removed/fixed casts related to the switch of Atom to be a IntPtr
28986
28987 2006-02-06  Mike Kestner  <mkestner@novell.com>
28988
28989         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
28990         method signatures in the import region.  There may still be some
28991         lingering struct marshaling issues, as I didn't drill down into those.
28992         Yet.
28993
28994 2006-02-06  Jackson Harper  <jackson@ximian.com>
28995
28996         * ComboBox.cs: Dont manually set the top_item, this is computed
28997         when the scrollbar position is set.
28998
28999 2006-02-06  Mike Kestner  <mkestner@novell.com>
29000
29001         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
29002         startup crashes on amd64.  There's other fixes needed.  All pinvoke
29003         usage of Atom needs to be mapped to IntPtr for example.  And there are
29004         likely other int/long issues to be addressed.
29005
29006 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
29007
29008         * FileDialog.cs: One more...
29009
29010 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29011
29012         * FileDialog.cs: Next try
29013
29014 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29015
29016         * FileDialog.cs: First part of fix for #77464
29017
29018 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29019
29020         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
29021           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
29022           AcceptButton border drawing.
29023
29024 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
29025
29026         * Form.cs: Moved positioning of form after auto scaling is applied,
29027           otherwise it would possibly use wrong form size.
29028
29029 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
29030
29031         * Control.cs (RecreateHandle): No need to re-create any child
29032           controls, the child windows will get destroyed automatically by
29033           the windowing system or driver, and re-created when the handle
29034           is being accessed the first time. Fixes #77456
29035         * Form.cs: No longer setting the form to closing if the handle is 
29036           being recreated. This seems like the right thing to do, don't
29037           have a bug or testcase for this, though.
29038
29039 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
29040
29041         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
29042           controls to avoid unwanted side effects
29043
29044 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
29045
29046         * Control.cs: 
29047           - ScaleCore needs to scale the bounds, not the ClientSize of the 
29048             control. Fixes #77416.
29049           - DefaultSize is 0,0 for control
29050         * TextBoxBase.cs: 
29051           - DefaultSize is 100, 20
29052           - SetBoundsCore: Now enforcing the height, no matter if the provided
29053             height is more or less than the preferred one, as long as AutoSize
29054             is on
29055         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
29056
29057 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
29058
29059         * Control.cs:
29060           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
29061             call unless both performLayout is true *and* we have a pending
29062             layout change
29063           - ResumeLayout: MS does not completely nest Suspend and Resume,
29064             they bottom out at 0, fixed our code to match that.
29065           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
29066             SetBoundsCore, we were updating even when we shouldn't. This fixes
29067             swf-anchors mis-anchoring when resizing the app fast and lots.
29068           - UpdateDistances: Now only setting the left and top distance if 
29069             we have a parent and are not suspended, this is based on
29070             a suggestion by Don Edvaldson in bug #77355.
29071           - OnVisibleChanged: Fixed logic when to create the control. We may
29072             not create the control if we have no parent or if it's not visible;
29073             switched to using Visible property instead of is_visible field 
29074             since the property also considers parent states. This fixes a bug
29075             when starting Paint.Net
29076
29077 2006-02-02  Jackson Harper  <jackson@ximian.com>
29078
29079         * Form.cs: If the forms handle hasn't been created yet don't call
29080         into xplatui to make it top most, just set the topmost flag on the
29081         form in CreateParams
29082         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
29083
29084 2006-02-01  Jackson Harper  <jackson@ximian.com>
29085
29086         * ScrollableControl.cs: Refactored the Recalculate method a
29087         little, this wasn't handling all the variants of bottom and right
29088         bars needed to be added and added/removed based on their
29089         counterparts being added/removed (which changes the drawable
29090         size). Also we special case client widths and heights of 0 and
29091         don't add the scrollbar for those.
29092
29093 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
29094
29095         * XplatUIX11.cs: 
29096           - Added method to get AbsoluteGeometry(); currently unused, but might
29097             be used in the future, if we try again to figure out toplevel
29098             coordinates with some more crappy window managers
29099           - Added FrameExtents() method to retrieve the WM set decoration size
29100           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
29101             to deal with at least KDE, FVWM and metacity (Fixes #77092)
29102         * Hwnd.cs: 
29103           - Added whacky_wm tracking var for metacity
29104           - Added logic to have default menu height if the actual menu height
29105             has not yet been calculated (part of fix for #77426)
29106         * Form.cs: Keep track whether client size has been set and re-set 
29107           it if a menu is added/removed afterwards (Fixes #77426)
29108
29109 2006-01-31  Jackson Harper  <jackson@ximian.com>
29110
29111         * Control.cs: When a new Site is set on the component attempt to
29112         pull the AmbientProperties from it.
29113
29114 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
29115
29116         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
29117           in the background of the owning form. Fixes #77332
29118
29119 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
29120
29121         * MimeIcon.cs: Fix for #77409
29122
29123 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
29124
29125         * XplatUIX11GTK.cs: Initial import
29126
29127 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
29128
29129         * FixedSizeTextBox: fixes class signature
29130
29131 2006-01-30  Jackson Harper  <jackson@ximian.com>
29132
29133         * FixedSizeTextBox.cs: New internal class that represents a
29134         textBox that will not be scaled.
29135         * TreeView.cs:
29136         * ComboBox.cs:
29137         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
29138         standard TextBox.
29139                 
29140 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
29141
29142         * XplatUIX11.cs: Retrieve default screen number instead of
29143           assuming 0. Attempted fix for #77318
29144
29145 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
29146
29147         * XplatUIWin32.cs: 
29148           - GetWindowPos: When a window is parented by FosterParent, use 
29149             the desktop instead of FosterParent as the base to get coordinates
29150           - CreateWindow: Don't make FosterParent the parent window for Popups
29151             if we don't want a taskbar entry, Popups automatically don't get one
29152         * Hwnd.cs: Need to call remove to actually remove the key from the
29153           hash table
29154
29155 2006-01-30  Mike Kestner  <mkestner@novell.com>
29156
29157         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
29158
29159 2006-01-30  Jackson Harper  <jackson@ximian.com>
29160
29161         * TreeView.cs:
29162         * TreeNode.cs: Raise events no matter how the treenode is
29163         checked. Patch by Don Edvalson.
29164
29165 2006-01-30  Jackson Harper  <jackson@ximian.com>
29166
29167         * TreeNode.cs: Signature fix.
29168
29169 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
29170
29171         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
29172
29173 2006-01-20  Mike Kestner  <mkestner@novell.com>
29174
29175         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
29176         event forwarding when menus are active.
29177         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
29178         Most of the patch is pdb's with a little rework.
29179
29180 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
29181
29182         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
29183           Removed GetMenuDC and ReleaseMenuDC methods; replaced
29184           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
29185         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
29186         * InternalWindowManager.cs: Added use of PaintEventStart/End to
29187           handling of WM_NCPAINT message, now passing the PaintEventArgs to
29188           the PaintWindowDecorations method
29189         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
29190         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
29191         * MenuAPI.cs: Made tracker window invisible
29192         * XplatUIWin32.cs:
29193           - Removed GetMenuDC and ReleaseMenuDC methods
29194           - Implemented the client=false path for PaintEventStart and
29195             PaintEventEnd
29196
29197 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
29198
29199         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
29200         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
29201           styles
29202         * Form.cs: 
29203           - MaximizeBox, MinimizeBox: Recreate the handle when setting
29204             the style
29205           - CreateParams: Reworked the styles to match MS look'n'feel,
29206             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
29207             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
29208
29209 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
29210
29211         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
29212           window is not mapped, since otherwise every form that's being 
29213           created is considered minimized, which is wrong.
29214         * Form.cs: Catching the exception and returning our internal value
29215           instead
29216
29217 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
29218
29219         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
29220           SetWindowMinMax() to have means to tell the driver about the minimum,
29221           maximum and maximized state window sizes. (Part of the fix for #76485)
29222         * Form.cs:
29223           - Implemented tracking of minimum and maximum window size, now calling
29224             new SetWindowMinMax() driver method to tell the driver (Part of the
29225             fix for #76485)
29226           - Finished handling of WM_GETMINMAXINFO method, now setting all values
29227             (Completes fix for #76485)
29228           - Calling new SetWindowMinMax driver method when the handle for a 
29229             form is created, to make sure the driver knows about it even if
29230             the values have been set before the window was created
29231           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
29232             to avoid messing up our anchoring calculations (partial fix
29233             for #77355)
29234         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
29235         * XplatUIX11.cs:
29236           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
29237           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
29238             (and presumably other freedesktop.org compliant WMs). Left the
29239             assumption unmapped=minimized, needed for SetVisible to work.
29240           - Now setting the window state when creating windows
29241           - Fixed SetVisible to consider/set the window state when mapping
29242             a Form. We cannot set the state before it's mapped, and we cannot
29243             use Form.WindowState once it's mapped (since it would ask the
29244             driver and get 'normal'. Therefore, we grab the state before
29245             mapping, map, and then set state.
29246           - Implmemented SetWindowMinMax method; Metacity does not seem to
29247             honor the ZoomHints, though.
29248         * XplatUIWin32.cs:
29249           - Removed MINMAXINFO (moved to XplatUIStructs)
29250           - Added SetWindowMinMax stub (on Win32 the only way to set that
29251             information is in response to the WM_GETMINMAXINFO message, which
29252             is handled in Form.cs)
29253           - Added logic to SetVisible to set the proper window state when a 
29254             form is made visible (fixes #75720)
29255
29256 2006-01-26  Jackson Harper  <jackson@ximian.com>
29257
29258         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
29259         same way we handle them with Invoke.
29260
29261 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
29262
29263         * Form.cs:
29264           - Added tracking of window state so CreateParams can return
29265             the appropriate style
29266           - Moved setting of WS_CAPTION style in CreateParams to allow
29267             styles without caption
29268         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
29269           control if the TextBox property is accessed. Fixes #77345
29270         * Control.cs:
29271           - get_Created: now uses is_disposed and is_created to determine
29272             return value (suggested by Jackson)
29273           - CreateHandle: No longer exits if the handle is being recreated
29274           - RecreateHandle: If the handle is not yet created call the 
29275             appropriate method to create either control or handle. If the
29276             control is already created CreateHandle will simply exit instead
29277             of just creating the handle
29278         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
29279           now SendMessage WM_DESTROY directly to the control when DestroyWindow
29280           is called.
29281         * XplatUIX11.cs: 
29282           - When DestroyWindow is called, instead of waiting for the 
29283             DestroyNotification from X11, we directly post it to the WndProc
29284             and immediately dispose the hwnd object.
29285             Same applies to DestroyChildWindows, and this obsoletes the
29286             expose_pending tracking. Contrary to Win32 behaviour we destroy our
29287             child windows before our own, to avoid X11 errors.
29288           - Removed the direct sending of WM_PAINT on UpdateWindow
29289         * XplatUIWin32.cs:
29290           - Reworked DoEvents and GetMessage to allow access to internal queue
29291             even when trying non-blocking access to the queue.  Fixes #77335. 
29292             Based on a patch suggestion by Don Edvalson. The new private
29293             GetMessage can now also be used as a backend for a PeekMessage
29294             frontend version.
29295         * XplatUI.cs: Improved debug output for CreateWindow
29296
29297 2006-01-25  Jackson Harper  <jackson@ximian.com>
29298
29299         * Help.cs: Allow param to be null. Patch by Don Edvalson.
29300
29301 2006-01-24  Jackson Harper  <jackson@ximian.com>
29302
29303         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
29304         when we have a MaxDropItems lower then the selected index.
29305
29306 2006-01-24  Jackson Harper  <jackson@ximian.com>
29307
29308         * Control.cs: Don't allow selection of non visible controls, allow
29309         selection of controls without parents.
29310
29311 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
29312
29313         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
29314         * DataGridDrawingLogic.cs: Add editing row only when is necessary
29315
29316 2006-01-23  Jackson Harper  <jackson@ximian.com>
29317
29318         * UpDownBase.cs: Make the textbox handle all the selection and
29319         tabbing. This fixes tabing to updown controls.
29320
29321 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
29322
29323         * TextBoxBase.cs: fixes exception thown the object was null
29324
29325 2006-01-23  Jackson Harper  <jackson@ximian.com>
29326
29327         * ButtonBase.cs: Just use the base CreateParams. They set
29328         visibility and enabled correctly.
29329         * ComboBox.cs:
29330         * TrackBar.cs:
29331         * MonthCalendar.cs: Lets let the base set as much of the
29332         createparams as possible so we don't have duplicate code all over
29333         the place.
29334
29335 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
29336
29337         * ThemeGtk.cs: Added TrackBar and some experimental code to
29338           get double buffering back
29339
29340 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
29341
29342         * DataGrid.cs: Allows row number set internally higher than the last
29343         when creating a new row. Restores the editing functionality.
29344
29345 2006-01-20  Mike Kestner  <mkestner@novell.com>
29346
29347         * MimeIcon.cs: delay Image creation until the icons are accessed
29348         instead of creating 190 scaled images on GnomeHandler startup.
29349
29350 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
29351
29352         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
29353           first call base before processing the event. Fixes #77279
29354
29355 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
29356
29357         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
29358           that the stride for the GDI bitmap would match the stride of
29359           a DIB or a Cursor.
29360
29361 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
29362
29363         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
29364
29365 2006-01-19  Jackson Harper  <jackson@ximian.com>
29366
29367         * ComboBox.cs: Hookup the text controls keydown event so we get
29368         those when the text control has the focus.
29369
29370 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
29371
29372         * Label.cs: Now using the base events instead of defining new ones;
29373           this allows us to just call the base properties without having to
29374           duplicate all base property logic 
29375
29376 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
29377
29378         * Label.cs: A label by default is not a tabstop (Fixes one of our
29379           failing nunit tests)
29380
29381 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
29382
29383         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
29384         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
29385
29386 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
29387
29388         * Cursor.cs: Reimplemented creating cursor bitmaps without using
29389           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
29390           This fixes #77218
29391         * XplatUIWin32.cs: 
29392           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
29393             constructor creates images that can't be saved. Part of the fix
29394             for #76103
29395           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
29396           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
29397             bug fix for handling window state in forms properly)
29398
29399 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29400
29401         * ThemeGtk.cs: Simplify ScrollBar drawing
29402
29403 2006-01-18  Jackson Harper  <jackson@ximian.com>
29404
29405         * Splitter.cs: Set the default dock style for the splitter control
29406         in the constructor.
29407
29408 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29409
29410         * ThemeGtk.cs: Corrected StateType and ShadowType for
29411           gtk_paint_box
29412
29413 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29414
29415         * Control.cs: Make use of Theme.DoubleBufferingSupported
29416         * ThemeGtk.cs:
29417           - Added drawing for flat style buttons
29418           - Added ScrollBar drawing
29419
29420 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29421
29422         * ThemeClearlooks.cs: Removed some unneeded code.
29423         * ThemeGtk.cs: First part of ThemeGtk enhancements.
29424
29425 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
29426
29427         * LinkLabel.cs: We need to update the hover drawing when
29428           leaving the control as well.
29429
29430 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
29431
29432         * DataGrid.cs: Clicking on non empty areas in the columns
29433            area was giving an exception
29434
29435 2006-01-17  Jackson Harper  <jackson@ximian.com>
29436
29437         * ThemeWin32Classic.cs:
29438         * ListView.cs: Do not draw/clip the headers when the header style
29439         is None.
29440
29441 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
29442
29443         * DataGrid.cs: Fixes 77260
29444         
29445 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
29446
29447         * DataGrid.cs: Clicking on a column on a empty grid was giving
29448           an exception
29449
29450 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
29451
29452         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
29453           or any keypress will crash the grid.
29454
29455 2006-01-17  Mike Kestner  <mkestner@novell.com>
29456
29457         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
29458         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
29459         invisible/previously-visible items.
29460         [Fixes #76909]
29461
29462 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
29463
29464         * ThemeClearlooks.cs:
29465         - Added CL_Draw_Button method; now other theme controls that are 
29466           not derived from button or do not have a button can draw buttons
29467           too
29468         - Updated ComboBox drawing
29469         - Beautified RadioButton drawing
29470         - Corrected drawing of bottom and left tabs
29471         - Beautified DateTimePicker and MonthCalendar
29472         - Added CPDrawButton and CPDrawRadioButton
29473
29474 2006-01-16  Jackson Harper  <jackson@ximian.com>
29475
29476         * ComboBox.cs: Set the initial value of the scrollbar to the
29477         current index. Reduce the numbers of refreshs and IndexOfs called.
29478
29479 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
29480
29481         * FileDialog.cs: When the file listview is focused hitting the
29482           backspace key moves the fileview to the parent directory
29483
29484 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
29485
29486         * Form.cs: 
29487           - Added RecreateHandle call when changing taskbar visibility to 
29488             trigger reparenting in Win32 driver (Fixes #75719)
29489           - If a window has minimize or maximize buttons, it cannot have
29490             a help button
29491         * XplatUIWin32.cs:
29492           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
29493             the toplevel form with FosterParent (A toolwindow not on the
29494             taskbar) (Fixes #75719)
29495           - Made FosterParent a toolwindow
29496
29497 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29498
29499         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
29500
29501 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29502
29503         * ToolTip.cs: If SetToolTip is called from a control and the mouse
29504           is currently over that control, make sure that tooltip_window.Text
29505           gets updated
29506
29507 2006-01-13  Mike Kestner  <mkestner@novell.com>
29508
29509         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
29510
29511 2006-01-13  Jackson Harper  <jackson@ximian.com>
29512
29513         * TreeView.cs: On MS GetNodeAt never actually factors in the X
29514         value passed.  Also redraw the selected node when we recieve
29515         focus, so tabbing between trees works correctly.
29516
29517 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29518
29519         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
29520           ~/.gconf/%gconf-tree.xml, so use
29521           .gconf/desktop/gnome/interface/%gconf.xml
29522
29523 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
29524
29525         * TextControl.cs: Draw text in gray if control is disabled
29526
29527 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
29528
29529         * TreeView.cs: Draw the focus rectangle outside the highlight, to
29530           make sure it's always visible. Fixes #76680.
29531
29532 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
29533
29534         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
29535
29536 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
29537
29538         * PageSetupDialog.cs: Added.
29539         * PrintDialog.cs: Attributes.
29540         * PrintPreviewControl.cs: Updates.
29541         * PrintPreviewDialog.cs: Updates.
29542         
29543 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29544
29545         * Control.cs: Undid my selection check fix, since it's not needed
29546         * TextBoxBase.cs:
29547           - Now considering the presence of hscroll/vscroll when sizing
29548             vscroll/hscroll respectively. Fixed bug #77077
29549           - Added Left/Up/Down/Right to IsInputKey list to prevent
29550             ContainerControl from stealing them. This fixes what I broke
29551             with my last checkin.
29552
29553 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
29554
29555         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
29556           I finally understand how the property can be set without a setter :-)
29557
29558 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29559
29560         * Application.cs:
29561           - Switched RunLoop to use static Message.Create to create a 
29562             Message object
29563           - Added PreProcessMessage call in runloop for keyboard events; this
29564             is part of the fix for #77219, I overlooked this originally in the
29565             MSDN doc for PreProcessMessage
29566         * Control.cs:
29567           - Removed call to PreProcessMessage from handling of keyboard 
29568             messages; it's supposed to be done in the message pump
29569           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
29570             per MSDN documentation.
29571           - IsInputChar: All chars are input chars by default; removed the 
29572             parent calling chain, MS does not document that
29573           - PreProcessMessage: If IsInputChar is true, we want to return false
29574             to allow dispatching of the message
29575           - When selecting the next control, now also check that we're not
29576             selecting ourselves again and therefore return a false positive.
29577         * TextBoxBase.cs:
29578           - Tried to match return values for IsInputKey and ProcessDialogKey
29579             to what MS returns; moved processing of our special keys outside
29580             ProcessDialogKey since MS does not seem to return true on those.
29581           - Moved code that previously was in ProcessDialogKey into new private
29582             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
29583           - Reworked handling of WM_CHAR to not have to duplicate code from
29584             Control.cs anymore, instead we simply call down to base.
29585            
29586 2006-01-12  Jackson Harper  <jackson@ximian.com>
29587
29588         * ComboBox.cs: We always need to refresh the text area when
29589         EndUpdate is called. Fixes the combobox in the file dialog.
29590         * Control.cs: Don't create the creator_thread until the controls
29591         handle is created.  Also in InvokeRequired we check if the
29592         creator_thread is null. This gives the effect of InvokeRequired
29593         returning true if the controls handle is not created yet, and
29594         matches MS.
29595
29596 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29597
29598         * XplatUI.cs:
29599           - Added StartLoop() driver method. This is used to allow drivers to
29600             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
29601             loop for a particular thread
29602           - Added EndLoop() driver method. This is called once the message
29603             pump for the thread is shut down
29604           - Added SupportsTransparency method to allow the driver to indicate
29605             opacity support for windows
29606         * Form.cs:
29607           - Removed TODO attribute, completed AllowTransparency property
29608           - Added documented logic to Opacity
29609         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
29610           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
29611           versions of CompatibleTextRendering
29612         * X11Structs.cs: Added opacity atom to our atom enumeration
29613         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
29614           of a form might be set before it's reparented by the WM, and we need
29615           the opacity value without calling up to Form)
29616         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
29617           SupportsTransparency() driver methods
29618         * Application.cs: Now calling StartLoop and EndLoop driver methods
29619         * XplatUIX11.cs:
29620           - Added opacity atom registration
29621           - Added StartLoop()/EndLoop() methods. They're empty right now but
29622             will need to get implemented when we switch to a per-thread queue
29623           - Implemented SupportsTransparency() method
29624           - Implemented SetWindowTransparency() method
29625           - Added support for setting the opacity value when a window is
29626             reparented (since the opacity needs to be set on the WM frame)
29627         * XplatUIOSX.cs, XplatUIWin32.cs:
29628           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
29629
29630 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
29631
29632         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
29633
29634 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
29635
29636         * FileDialog.cs: Added ToolTip for MWFFileView
29637         * MimeIcon.cs: Rewrote GnomeHandler.
29638           - Get currently used gnome icon theme from
29639             ($HOME)/.gconf/%gconf-tree.xml
29640           - Make use of inherited icon themes
29641           - Support SVG icon themes like Tango via librsvg
29642
29643 2006-01-12  Miguel de Icaza  <miguel@novell.com>
29644
29645         Revert's Jackson's revert which broke 2.0 builds.   Fix both
29646         builds. 
29647         
29648         * Application.cs: Move the use_compatible_text_rendering outside
29649         the NET_2_0 define.  If we ever need to use the
29650         use_compatible_text_rendering on the individual controls they will
29651         access the variable from the common shared code paths.
29652
29653 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29654
29655         * XplatUI.cs:
29656           - Added more granular debug options
29657           - Added method to print both window text and id
29658           - Switched debug output to use new Window() debug method
29659           - Added IsEnabled() driver method
29660           - Added EnableWindow() driver method
29661         * Form.cs:
29662           - Removed end_modal; no longer needed, new loop handles termination
29663             via 'closing' variable
29664           - If form is modal, setting DialogResult will now initiate loop
29665             termination via 'closing' variable
29666           - Added support for is_enabled/WS_DISABLED to CreateParams
29667           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
29668             does all the work
29669           - Removed code that's now in RunLoop from ShowDialog()
29670           - Added various documented sanity checks to ShowDialog()
29671           - Added handling of WM_DESTROY message; we set 'closing' on getting
29672             the message to indicate the message pump to terminate
29673           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
29674             send by the Application.ExitThread method. (We send the message
29675             to destroy the window after all other events have been
29676             processed through the queue, instead of destroying the handle 
29677             directly)
29678           - Moved code from Close() method to WM_CLOSE handler; added logic
29679             to only send close-related events if the form is not displayed
29680             modal
29681         * Splitter.cs (..ctor): Fixed typo in resource name
29682         * Control.cs:
29683           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
29684             brush now
29685           - set_Cursor: Now only setting calling into XplatUI if the handle for
29686             the control is already created; this avoids implict handle creation
29687             or crashes if it's not created
29688           - set_Enabled: Now setting the enabled state via the new driver method
29689             instead of just tracking it
29690           - CreateParams: Added logic to set WS_DISABLED based on enabled state
29691           - CreateControl: Reordered event firing and method calls to more
29692             closely fire events in the order MS does. Now setting the
29693             enabled state in the driver when creating the control.
29694           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
29695             match MS order
29696         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
29697           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
29698         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
29699         * Hwnd.cs:
29700           - Added tracking of window enabled state (get_Enabled/set_Enabled)
29701           - Added EnabledHwnd property to easily allow a driver to find the
29702             handle of the first enabled window in the parent chain (this is
29703             used by drivers to pass up input events of disabled windows)
29704         * XplatUIDriver.cs: Added IsEnabled() method
29705         * Application.cs:
29706           - Removed crude and obsolete exiting tracking variable
29707           - Removed internal ModalRun(); replaced by RunLoop()
29708           - Implemented private CloseForms() method to allow closing all 
29709             windows owned by a particular (or all) threads
29710           - Exit() now properly closes all windows without forcing the message
29711             pump to quit
29712           - Removed obsolete InternalExit() method
29713           - Changed Run() methods to use new RunLoop() message pump
29714           - Implemented new RunLoop() method for both modal and non-modal forms
29715         * CommonDialog.cs:
29716           - get_CreateParams: Added setting of WS_DISABLED
29717           - Simplified ShowDialog(); now all the work is done in RunLoop(),
29718             invoked via Form.ShowDialog()
29719         * NativeWindow.cs: We don't remove the window from the collection when
29720           the handle is destroyed; there might still be messages for it in the
29721           queue (mainly the resulting WM_DESTROY); instead it will be removed
29722           when Control calls InvalidateHandle in the WM_DESTROY handler
29723         * XplatUIX11.cs:
29724           - CreateWindow: Added logic to handle the WS_DISABLED window style
29725           - EnableWindow: Implemented based on Hwnd.Enabled
29726           - GetMessage: Reset PostQuitState so the method can be called again
29727           - Implemented support for disabled windows (passing messages to the
29728             first enabled parent) in handling all input messages
29729           - Added optimizations for handling Expose events
29730           - Implemeted new driver method IsEnabled()
29731           - Now always resetting paint pending tracking vars when we start paint
29732           - Re-implemented UpdateWindow via just sending a WM_PAINT message
29733         * XplatUIOSX.cs: Added IsEnabled method stub
29734         * XplatUIWin32.cs: Implemented new IsEnabled() method
29735
29736 2006-01-11  Jackson Harper  <jackson@ximian.com>
29737
29738         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29739         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
29740         variables a little.
29741         * ColorDialog.cs: Clear out the old form before adding the new
29742         panel.  
29743
29744 2006-01-11  Jackson Harper  <jackson@ximian.com>
29745
29746         * X11Dnd.cs: Make sure to add all the text formats when adding
29747         strings to the data object.
29748         * TreeNodeCollection.cs: When adding to a sorted tree we need to
29749         do some redrawing too.  Also change the UpdateNode to an
29750         UpdateBelow so the newly added node gets painted.
29751         
29752 2006-01-11  Miguel de Icaza  <miguel@novell.com>
29753
29754         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29755         LinkLabel.cs, PropertyGrid.cs: Implement the
29756         UseCompatibleTextRendering property for 2.x
29757
29758         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
29759
29760 2006-01-11  Jackson Harper  <jackson@ximian.com>
29761
29762         * TreeView.cs: Use the property for setting the selected node so
29763         the correct events get raised.
29764         * TreeNode.cs: Update the tree when the fore/back colours of a
29765         node are set.
29766
29767 2006-01-10  Jackson Harper  <jackson@ximian.com>
29768
29769         * TreeView.cs: Allow setting SelectedNode to null.
29770
29771 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29772
29773         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
29774
29775 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29776
29777         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
29778
29779 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29780
29781         * PrintDialog.cs: Added attributes and set default property values.
29782
29783 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29784
29785         * PrintControllerWithStatusDialog.cs: 
29786         Added PrintControllerWithStatusDialog.
29787
29788 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29789
29790         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
29791         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
29792
29793 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29794
29795         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
29796
29797 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
29798
29799         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
29800         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
29801
29802 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
29803
29804         * MimeIcon.cs: Added internal class SVGUtil.
29805
29806 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
29807
29808         * FileDialog.cs: Don't crash if there are two files with the
29809           same name but different locations.
29810
29811 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
29812
29813         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
29814         dates across multiple month grids. Used to not highlight entire 
29815         month, but does now.
29816         
29817 2006-01-06  Jackson Harper  <jackson@ximian.com>
29818
29819         * MonthCalendar.cs: Removed DoEvents call to prevent a running
29820         message loop. Change timer intervals to numbers that seem more
29821         natural.
29822
29823 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
29824
29825         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
29826           object for location info since screen object is now implemented.
29827
29828 2006-01-05  Jackson Harper  <jackson@ximian.com>
29829
29830         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
29831         * AsyncMethodResult.cs: We no longer use a WeakReference for the
29832         AsyncMethodResult, this is because we ALWAYS want the
29833         ManualResetEvent to get set.
29834         * Control.cs: When disposing use an async invoke to call shutdown
29835         code, so that thigns don't block on the finalizer thread.  Also
29836         check if we even have a message loop before trying to send
29837         messages, if we don't then don't bother sending messages.
29838         - No more weak references for async methods
29839         * XplatUIDriver.cs: No more weak references for async methods.
29840
29841 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29842
29843         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
29844           returns two FontFamily with the same name
29845
29846 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
29847
29848         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
29849           drawing disabled text. Instead using the ColorGrayText color
29850
29851 2006-01-04  Jackson Harper  <jackson@ximian.com>
29852
29853         * TreeNode.cs: redraw the node when its image index is changed.
29854
29855 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
29856
29857         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
29858           time I checked there are no others like it.
29859
29860 2006-01-04  Jackson Harper  <jackson@ximian.com>
29861
29862         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
29863         this gives the behavoir I was looking for.
29864         * Control.cs: Special case Invoking EventHandlers, this matches MS
29865         and fixes part of bug #76326.
29866
29867 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29868
29869         * ThemeClearlooks.cs, FileDialog.cs:
29870           - Reflect the latest Theme class changes
29871           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
29872             with DateTime
29873             
29874 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29875
29876         * Theme.cs: Cache UI resource images and resize them if needed
29877
29878 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
29879
29880         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
29881           is called. This fixes the crash in Nexxia when setting the font
29882           attributes in the chat. [However, RTF needs a look-over to make sure
29883           that all SelectionXXX methods handle the special case that selection
29884           is empty and therefore the change must be applied to all text starting
29885           at the cursor/selection start]
29886
29887 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
29888
29889         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29890           XplatUIOSX.cs: Added SendMessage and PostMessage methods
29891         * X11Keyboard.cs: Switched to new way of calling PostMessage
29892
29893 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
29894
29895         * Theme.cs: Added theme interface for images to allow the theme to
29896           control what images are used for things like FileDialog, MessageBox
29897           icons, etc.
29898         * MessageBox.cs: Now uses the new Theme icon/image interfaces
29899
29900 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
29901
29902         * FileDialog.cs:
29903           - Removed some dead code
29904           - Opening a recently used file does work now
29905           - Small UI enhancements
29906           - Refactoring
29907
29908 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
29909
29910         * FileDialog.cs: Forgot too add __MonoCS__
29911
29912 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
29913
29914         * FileDialog.cs: We are able to read recently used files now let's
29915           go on and write them.
29916
29917 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
29918
29919         * FileDialog.cs: Breathe some life into "last open"/"recently used"
29920           button
29921         * MimeIcon.cs: Do a check for the top level media type also
29922
29923 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
29924
29925         * ThemeClearlooks.cs:
29926           - Added CPDrawStringDisabled
29927           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
29928             some chars if the text doesn't fit into text_rect
29929           - DrawListViewItem: If View = View.LargeIcon center the image;
29930             rewrote the drawing of ListViewItem.Text if View = 
29931             View.LargeIcon
29932
29933 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
29934
29935         * MimeIcon.cs: Use default KDE icon theme if there is no
29936           "48x48" directory for the current icon theme, fixes #77114
29937         * Mime.cs: Disable not working and actually not used code. 
29938         * ThemeWin32Classic.cs:
29939           - Replace "new SolidBrush" in GetControlBackBrush and
29940             GetControlForeBrush with ResPool.GetSolidBrush
29941           - Changed DrawListViewItem from private to protected virtual
29942         * FileDialog.cs:
29943           - Added form.MaximizeBox = true
29944           - Don't throw an exception if there is a broken symbolic link
29945
29946 2005-12-23  Jackson Harper  <jackson@ximian.com>
29947
29948         * TabControl.cs: Give the panels focus, keyboard navigation is
29949         fixed so this works correctly now.
29950         - We need these key events also.
29951         * ToolBar.cs: Remove some of the poor mans double buffering.
29952         
29953 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
29954
29955         * ComboBox.cs: The internal TextBox now returns the focus.
29956
29957 2005-12-23  Jackson Harper  <jackson@ximian.com>
29958
29959         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
29960
29961 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
29962
29963         * Control.cs: Removed debug code
29964         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
29965           implicit children
29966
29967 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
29968
29969         * Control.cs: When creating the control, update the Z-order after
29970           all it's children are created, too. (Fixes nexxia not showing
29971           picturebox bug)
29972
29973 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
29974
29975         * Control.cs: Do not update the anchoring distances if layout is
29976           suspended, instead do it once layout is resumed
29977
29978 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
29979
29980         * Control.cs: 
29981           - After many hours of debugging, for both Jackson and
29982             myself, it turns out that it helps to set the parent of a control
29983             if you want to actually see it onscreen. In the spirit of that
29984             discovery, we're now setting the parent of the control and
29985             it's children when the control's handle is created. This fix
29986             will make Lutz Roeder's Reflector run happily. 
29987           - now just creating the handle instead of the whole control when
29988             getting a graphics context for the control.
29989
29990 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
29991
29992         * ScrollableControl.cs: When calculating the canvas, don't consider
29993           the scrollbar widths. Instead, predict if horizontal scrollbar
29994           will affect canvas when deciding on vertical display and vice versa.
29995
29996 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
29997
29998         * RichTextBox.cs: Set default RTF font for documents that don't
29999           have a font table (Fixes #77076)
30000
30001 2005-12-22  Jackson Harper  <jackson@ximian.com>
30002
30003         * TextBoxBase.cs: It's difficult to do, but you can have an empty
30004         clipboard. This prevents a NullRef in that case.
30005         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
30006         clipboard. PRIMARY is for the currently selected text only. (We
30007         should implement PRIMARY at some point.
30008
30009 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30010
30011         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
30012           a Unicode function with a structure that was defined in Ansi way.
30013           This fixes #76942.
30014
30015 2005-12-21  Jackson Harper  <jackson@ximian.com>
30016
30017         * StatusBar.cs: Statusbar handles its fore/back colours on it's
30018         on. Because thats how it rolls. (and this avoids it using ambient
30019         colours).
30020         * ThemeWin32Classic.cs: Use the proper back color for filling.
30021         * Menu.cs: Use the system menu bar color for drawing menu
30022         bars. Using the window back color will bring ambient colours into
30023         the picture.
30024
30025 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
30026
30027         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
30028           Bitmaps were created and not disposed.
30029
30030 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30031
30032         * Control.cs (CreateControl): Don't do anything if the control is
30033           already created, otherwise we'd fire the OnCreated event more than
30034           once
30035
30036 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
30037
30038         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
30039           will always match. Instead return -1. Fixes #76464.
30040
30041 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30042
30043         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
30044           neither the beginning nor the end of the line (Fixes bug #76479)
30045
30046 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
30047
30048         * Control.cs:
30049           - ControlNativeWindow.ControlFromHandle(): Now handling situation
30050             where handle is invalid
30051           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
30052             instead of slower linear search
30053         * NativeWindow.cs: Don't remove the window from the hashtable until
30054           after the driver has destroyed it (since the driver might use
30055           Control.FromHandle to lookup the control object
30056         * Hwnd.cs: Added DestroyPending property to track if a window is 
30057           already destroyed as far as the driver is concerned and only hasn't
30058           yet notified the control
30059         * XplatUIX11.cs:
30060           - Activate(): Check if the window is still valid before using the 
30061             handle
30062           - Implemented DestroyChildWindow() method to mark child windows as
30063             destroyed when a window is destroyed. This prevents situations 
30064             where we might call an X method based on queued events for a
30065             window that already has been destroyed but we haven't yet pulled
30066             the destroy method from the queue.
30067           - Added a call to the new DestroyChildWindow() method to the drivers
30068             DestroyWindow code. Also now marking the destroyed window itself
30069             as pending
30070
30071 2005-12-20  Jackson Harper  <jackson@ximian.com>
30072
30073         * StatusBar.cs:
30074         * StatusBarPanel.cs: Don't calculate panel sizes on draw
30075         anymore. Just do them when needed, also track the rects of panels
30076         so that we can optimize refreshing more in the future.
30077
30078 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
30079
30080         * ColorDialog.cs: Fixed focus drawing in small color controls
30081
30082 2005-12-19  Jackson Harper  <jackson@ximian.com>
30083
30084         * InternalWindowManager.cs:
30085         * MdiWindowManager.cs: Cleanup some coordinate system changes so
30086         moving windows works properly.
30087
30088 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
30089
30090         * Control.cs: 
30091           - Removed call to InitLayout() from SetBoundsCore(); doc says
30092             it's only called when a control is added to a container
30093           - Split InitLayout logic, moved to separate UpdateDistances() method
30094             since we need to perform those calculations more often than just
30095             when adding the control to a container. (Needed to fix #77022)
30096           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
30097           - Reduced the OnBindingContextChanged events count, don't send them
30098             unless the control is created, we still aren't totally matching
30099             MS, but I can't quite figure out some of their rules
30100
30101 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30102
30103         * ThemeClearlooks.cs: Corrected distance between ProgressBar
30104           stripes
30105
30106 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30107
30108         * ThemeClearlooks.cs:
30109           - Updated ProgressBar drawing
30110           - Corrected drawing of ScrollBars and scroll buttons
30111           - Some temporary fixes for minor pixel artefacts
30112
30113 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
30114
30115         * Control.cs:
30116           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
30117             cause events to be sent in the same order as MS does.
30118           - Added ChangeParent() method to trigger various OnXXXChanged events
30119             that need to be fired when a parent changes (This is a reworking
30120             of the patch from r54254, with the X11 errors fixed)
30121           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
30122             since on MS we get OnLayoutChanged events when calling Clear()
30123           - Changed Enabled property to consider parent state as well, if a
30124             parent is not enabled, the control will not be either
30125           - Changed Parent property to simply call Controls.Add() since that
30126             now does all the work required, this way we avoid code duplication
30127           - Threw in a few OnBindingsContextChanged calls to try and match
30128             when MS sends them. We seem to send a few too many, though.
30129           - Added call to CreateControl when adding the control to a parent.
30130             We were never calling CreateControl. Still needs some work, in
30131             some places we treat HandleCreated and ControlCreated as equal, 
30132             which is wrong
30133           - Removed obsolete commented out code from UpdateZOrder()
30134
30135 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30136
30137         * ThemeClearlooks.cs: Updated TrackBar drawing.
30138
30139 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
30140
30141         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
30142
30143 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
30144
30145         * FileDialog.cs: Add the Help button and the open readonly
30146           checkbox only if needed
30147
30148 2005-12-16  Jackson Harper  <jackson@ximian.com>
30149
30150         * Control.cs: Make sure we have an active menu before trying to
30151         process commands on it. Prevents menu-less forms from crashing
30152         when Alt is pressed.
30153         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
30154         Dieter Bremes.
30155         * RichTextBox.cs: Expand statement to help out gmcs and fix the
30156         2.0 build.
30157
30158 2005-12-16  Jackson Harper  <jackson@ximian.com>
30159
30160         * InternalWindowManager.cs: Don't translate tool windows screen
30161         coordinates. This fixes windows 'bouncing' around when being moved.
30162
30163 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
30164
30165         * TextBoxBase.cs:
30166           - MaxLength now treats 2^31-1 equal to unlimited length (this is
30167             not quite MS compatible, MS uses that number only for single line
30168             and 2^32-1 for multi-line, but I figure it won't hurt keeping
30169             the limit at 2GB)
30170           - Now enforcing the MaxLength limit when entering characters
30171           - Added argument to internal Paste() method to track if it's called
30172             from programatically or via keyboard, since keyboard driven pastes
30173             need to enforce max-length
30174           - Added logic to Paste to only paste as many chars as MaxLength 
30175             allows
30176         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
30177         * TextControl.cs:
30178           - Added Length property to return number of characters in document
30179           - Added private CharCount property which only tracks actual chars
30180             in the document (no linefeeds) and fires event when CharCount
30181             changes
30182           - Added tracking of character count to all methods that alter it
30183           - Added LengthChanged event to allow applications to subscribe
30184             to any changes to the document
30185
30186 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
30187
30188         * TextBox.cs: 
30189           - Removed local password_char field (moved to TextBoxBase)
30190           - Now setting the document's password var when password is
30191             set
30192         * TextBoxBase.cs:
30193           - Added password_char field (needed here so MultiLine can
30194             access it)
30195           - Added logic to MultiLine property setter to set the document's
30196             variable when password display is allowed
30197           - Removed debug code and made some debug code conditional
30198         * TextControl.cs:
30199           - Added RecalculatePasswordLine() method to handle special password
30200             char only lines
30201           - Added PasswordChar property, also added related tracking vars
30202           - Draw() method now uses local text var for grabbing text to draw,
30203             this var is set to line.text unless we're doing password display,
30204             then it is set to the pre-generated all-password-chars line
30205           - Added calling RecalculatePasswordLine() method for password lines
30206
30207 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
30208
30209         * Hwnd.cs: 
30210           - Added Reparented property to allow tracking of Window Manager
30211             reparenting actions (which affect X/Y calculations of toplevel 
30212             windows)
30213           - Made ToString() print window handles in hex
30214         * XplatUIX11.cs:
30215           - AddConfigureNotify(): Now uses reparented state off Hwnd to
30216             determine if X/Y needs offsetting
30217           - AddConfigureNotify(): Fixed offset calculations
30218           - Now adds ReparentNotify messages into the queue
30219           - Now processes ReparentNotify messages and causes a 
30220             WM_WINDOWPOSCHANGED message to be sent upstream if a window
30221             is reparented (as most likely it's X/Y coordinates are changed
30222             due to that)
30223
30224 2005-12-14  Jackson Harper  <jackson@ximian.com>
30225
30226         * XplatUIX11.cs: Tool windows still need to respek focus.
30227
30228 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
30229
30230         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
30231           have a working release
30232
30233 2005-12-13  Jackson Harper  <jackson@ximian.com>
30234
30235         * Form.cs: Update styles after setting the border style regardless
30236         of whether or not the window is using a window manager.
30237
30238 2005-12-13  Jackson Harper  <jackson@ximian.com>
30239
30240         * Form.cs: We now hook into an internal window manager instead of just an
30241         MDI subsystem, this is so we can have properly behaving tool windows.
30242         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
30243         * InternalWindowManager.cs: New internal class that acts as a
30244         window manager for tool windows and as a base for mdi windows.
30245         * MdiWindowManager.cs: New class that acts as a window manager for
30246         mdi windows.
30247
30248 2005-12-12  Jackson Harper  <jackson@ximian.com>
30249
30250         * Control.cs: Updates so we match behavoir for for implicit
30251         controls. Fixes explosions in MDI.
30252
30253 2005-12-12  Jackson Harper  <jackson@ximian.com>
30254
30255         * Control.cs: Implement Invalidate (Region).
30256
30257 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
30258
30259         * Control.cs: 
30260           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
30261             the same events as MS does. MS fires events for each property 
30262             except, for unknown reasons, Cursor, when the control is reparented. 
30263             I can't seem to totally match add/remove since MS also fires some 
30264             VisibleChanged events, which makes no sense. Consolidated the
30265             parenting code into a separate method so it can be called from
30266             both Add and Remove. set_Parent no longer needs any special logic
30267             as it calls the parent's add method which implicitly fires
30268             all events
30269           - Removed some obsolete code and debug output
30270           - Enabled state is inherited from parents, if this is enabled
30271
30272 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
30273
30274         * Form.cs: Removed commented out code
30275
30276 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
30277
30278         * Control.cs:
30279           - Added internal version of Invoke, with additional argument 
30280             indicating if we're calling it from a Dispose() handler. That
30281             way we can avoid BeginInvoke throwing an exception if we're
30282             calling for an already destroyed window.
30283           - Added a dispose argument to BeginInvokeInternal, and made the
30284             check if a valid window handle chain exists conditional on
30285             it not being a dispose call
30286           - Removed code in DestroyHandle to destroy our children. Since we
30287             now handle the WM_DESTROY message we will catch all our children
30288             being destroyed.
30289           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
30290         * Form.cs:
30291           - Added a field to track the application context of the form.
30292           - No need to set closing variable as response to WM_CLOSE, instead
30293             we destroy the window. We also call PostQuitMessage if the form
30294             has an application context (which makes it the main app form,
30295             which, when closed terminates the app)
30296         * XplatUI.cs:
30297           - Dropped Exit() method, it's naming was confusing
30298           - Added PostQuitMessage() which causes GetMessage to return false
30299             once the message queue is empty
30300         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
30301           PostQuitMessage()
30302         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
30303           no longer a valid XplatUI method, but left it in since it's used
30304           internally. Added empty PostQuitMessage() method.
30305         * MenuAPI.cs: Replaced call to Exit() with call to
30306           PostQuitMessage, even though this is probably no longer needed.
30307         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
30308         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
30309         * Application.cs:
30310           - Replaced call to XplatUI.Exit() with PostQuitMessage()
30311           - Removed old debug code that would call XplatUI for exception
30312             display, enabled standard exception handling (Still not enabled
30313             though, until NativeWindow's ExternalExceptionHandler define
30314             is removed
30315         * NativeWindow.cs:
30316           - Added internal method to allow control to update NativeWindow
30317             after a window has been destroyed
30318           - Added handling of already destroyed windows when calling i
30319             DestroyWindow
30320           - Added removal of handle from list on ReleaseHandle
30321         * XplatUIX11.cs:
30322           - Dropped GetMessageResult var and related code
30323           - Added PostQuitState to field to track if PostQuitMessage has been
30324             called
30325           - Dropped Exit() method
30326           - Added PostQuitMessage() method
30327           - GetMessage now will return false if PostQuitState is set and no
30328             more messages are in the queue.
30329           - Expose handler will no longer generate WM_PAINT messages if we are
30330             in PostQuitState since it's very likely any windows have already
30331             been destroyed, and since Hwnd won't get updated until we have
30332             processed the DestroyNotify we'd be causing X errors.
30333         
30334 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30335
30336         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
30337           Thanks to Mike for pointing out the err of my ways.
30338
30339 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30340
30341         * Control.cs(PreProcessMessage): Moved menu handling back, but
30342           after all other key handling, to match MS (who handles Menu in
30343           DefWndProc)
30344         * Menu.cs (WndProc): Removed my brainfart
30345
30346 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30347
30348         * Control.cs(PreProcessMessage): Removed special menu handling 
30349         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
30350
30351 2005-12-07  Mike Kestner  <mkestner@novell.com>
30352
30353         * Control.cs : special case SYSKEYUP so that we can adjust keynav
30354         state according in tracker.
30355         * Menu.cs : promote tracker field to base class and provide a tracker
30356         lookup capability.  Add/Remove shortcuts dynamically if the top menu
30357         has a tracker. Unparent items that are removed from the collection.
30358         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
30359         * Theme*.cs: add always_show_hotkeys field to support configurability
30360         of mnemonic display.  win32 doesn't show mnemonics until Alt is
30361         pressed.
30362
30363 2005-12-07  Jackson Harper  <jackson@ximian.com>
30364
30365         * MdiChildContext.cs: Use Control.ResetCursor.
30366         * Control.cs: ResetCursor needs to set the property so that the
30367         correct XplatUI call gets made.
30368
30369 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30370
30371         * Control.cs: More fixes to make our key events match MS. We
30372           were not setting the modifier state on KeyData, and we were
30373           not generating any events when Alt was pressed with a key
30374           since handling of WM_SYSxxx was missing for the OnKey methods.
30375
30376 2005-12-07  Jackson Harper  <jackson@ximian.com>
30377
30378         * MdiChildContext.cs: reenable the sizing code.
30379         - When the mouse leaves a window reset its cursor.
30380
30381 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
30382
30383         * ThemeClearlooks.cs: Reflect latest Hwnd changes
30384
30385 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30386
30387         * Hwnd.cs: Now using the theme 3d bordersize to calculate
30388           widths of Fixed3D borders
30389
30390 2005-12-07  Jackson Harper  <jackson@ximian.com>
30391
30392         * MdiClient.cs: Fix warnings. Earn Mike's love.
30393
30394 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
30395
30396         * ThemeClearlooks.cs:
30397           - Adjusted mouse over button color
30398           - Added first parts of CheckBox drawing
30399           - Added correct color for selected text background
30400           - Fixed ComboBox drawing
30401           - Added CPDrawBorder3D and CPDrawBorder
30402
30403 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
30404
30405         * XplatUIX11.cs: Added call to XBell for AudibleAlert
30406
30407 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
30408
30409         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
30410           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
30411           alert users via sound. We could add an enum arg with different
30412           types of alerts in the future
30413
30414 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
30415
30416         * Control.cs: Fix behaviour problems pointed out by Mike
30417
30418 2005-12-05  Mike Kestner  <mkestner@novell.com>
30419
30420         * StatusBarPanel.cs: add Invalidate method and hook it into all the
30421         prop setters.  Calls parent.Refresh for now, but could be maybe be
30422         optimized with an internal method on StatusBar at some point.
30423         [Fixes #76513]
30424
30425 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
30426
30427         * RichTextBox.cs: Implemented get_SelectionColor
30428
30429 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
30430
30431         * ThemeClearlooks.cs:
30432           - Removed dead code
30433           - Draw black button border only if button is Form.AcceptButton
30434           - Draw correct button color for pressed RadioButton if the mouse 
30435             has entered the button
30436           - Updated ProgressBar drawing!
30437           - Updated CPDrawSizeGrip drawing
30438           - Updated StatusBarPanel drawing
30439
30440 2005-12-05  Mike Kestner  <mkestner@novell.com>
30441
30442         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
30443         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
30444
30445 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
30446
30447         * ThemeClearlooks.cs: Initial check-in, activate with
30448           export MONO_THEME=clearlooks
30449         * ThemeEngine.cs: Added ThemeClearlooks
30450
30451 2005-12-03  Mike Kestner  <mkestner@novell.com>
30452
30453         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
30454         [Fixes #76897]
30455
30456 2005-12-02  Jackson Harper  <jackson@ximian.com>
30457
30458         * Form.cs: If the child form has no menu the default main menu is
30459         used as the active menu.
30460
30461 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
30462
30463         * ListBox.cs: Check if any items exist before trying to resolve 
30464           coordinates into items
30465
30466 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
30467
30468         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
30469           as the second color for the background hatch
30470
30471 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
30472
30473         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
30474         * RichTextBox.cs: FormatText position arguments are 1-based, now making
30475           sure that what we pass to FormatText is always 1-based. Fixes #76885
30476
30477 2005-11-29  Miguel de Icaza  <miguel@novell.com>
30478
30479         * NumericUpDown.cs (EndInit): When we are done initializing,
30480         reflect any updates on the UI.
30481
30482 2005-12-02  Jackson Harper  <jackson@ximian.com>
30483
30484         * ImplicitHScrollBar.cs:
30485         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
30486         their container controls.
30487         * TreeView.cs: Use the new implicit scrollbars.
30488
30489 2005-12-02  Jackson Harper  <jackson@ximian.com>
30490
30491         * TreeView.cs: Make top_node internal so the TreeNodeCollections
30492         can play with it.
30493         * TreeNodeCollection.cs: If we remove the topnode we need to
30494         update topnode to the next node in line.
30495         - When clearing nodes go through the same process as removing
30496         them, so they get depareneted and checked if they are top node.
30497
30498 2005-12-01  Jackson Harper  <jackson@ximian.com>
30499
30500         * TreeView.cs: When imagelists are used the image area is
30501         selectable as well as the text.
30502         - If there are no selected nodes select the first one.
30503         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
30504         so don't do it more then we need to.
30505
30506 2005-12-01  Jackson Harper  <jackson@ximian.com>
30507
30508         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
30509         that arrows can be scaled.
30510
30511 2005-12-01  Jackson Harper  <jackson@ximian.com>
30512
30513         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
30514         fail. Patch by Dieter Bremes
30515
30516 2005-11-30  Jackson Harper  <jackson@ximian.com>
30517
30518         * Form.cs: Property is 2.0 only
30519         * PrintDialog.cs: Signature fix.
30520
30521 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
30522
30523         * TextControl.cs: 
30524           - No longer artificially moves text 2 pixels down (now that we have
30525             borders this is no longer needed)
30526           - Added calcs for left, hanging and right indent
30527
30528 2005-11-23  Mike Kestner  <mkestner@novell.com>
30529
30530         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
30531
30532 2005-11-30  Jackson Harper  <jackson@ximian.com>
30533
30534         * MdiChildContext.cs: Set the cloned menus forms, as these don't
30535         get cloned as part of CloneMenu ().
30536         * Menu.cs: Make sure the parent of the items get set correctly
30537         when they are added.  And the owners are notified of the changes.
30538         * Form.cs: Create an ActiveMenu property, so that when MDI is used
30539         we can change the menu being displayed/handled by the form without
30540         changing the menu assosciated with the form.
30541         - Don't let Mdi children draw/handle menus.
30542         
30543 2005-11-30  Jackson Harper  <jackson@ximian.com>
30544
30545         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
30546         a MenuChanged event. Just to make the API a little more
30547         consistent.
30548         * MainMenu.cs:
30549         * MenuItem.cs: Use the new OnMenuChanged
30550         * MdiChildContext.cs: Handle menu merging.
30551         * Form.cs: Implement MergedMenu.
30552         
30553 2005-11-30  Jackson Harper  <jackson@ximian.com>
30554
30555         * Menu.cs: We were misusing Add. Add goes behind the specified
30556         index according to the docs, and does not replace the specified
30557         index. So I added an Insert method.
30558
30559 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
30560
30561         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
30562           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
30563           is for Jackson
30564         * RichTextBox.cs: Added calls to base for DnD events
30565
30566 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
30567
30568         * TextControl.cs:
30569           - Fixed drag-selection related crash; style fixes
30570           - Implemented undo class
30571             o Implemented method to capture document state for specified
30572               range in document tree
30573             o Implemented method to restore captured document state
30574             o Implemented cursor tracking
30575             o Implemented basic undo stack
30576           - Added undo cursor tracking to methods altering cursor location
30577           - Added undo tracking to selection deletion (still missing
30578             other text-altering hookups)
30579         * RichTextBox.cs:
30580           - Added SelectionLength property
30581           - Implemented CanPaste()
30582           - Implemented Paste()
30583           - Added missing protected methods
30584           - Fixed RTF->Document conversion; now uses font index 0 and color 
30585             index 0 as the default font for the parsed text
30586           - Fixed RTF<->Document font size translation
30587           - Fixed RTF generation, now properly handles cross-tag boundaries
30588             for single line selection
30589           - No longer always appends blank line to generated RTF
30590           - Removed TODOs
30591           - Added missing attributes
30592           - Hooked up undo-related methods
30593         * TextBoxBase.cs:
30594           - Implemented Copy()
30595           - Implemented Paste()
30596           - Implemented Cut()
30597           - Fixed caret mis-behaviour on backspace across line-boundaries
30598
30599 2005-11-29  Jackson Harper  <jackson@ximian.com>
30600
30601         * MdiClient.cs: Add a method for activating mdi children. Very
30602         basic right now. I imagine someday it might need more girth.
30603         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
30604         children windows names are added to the menu item.
30605         * ThemeWin32Classic.cs: Draw the arrow if the item is an
30606         mdilist. This happens regardless of whether or not there are any
30607         mdi windows to see in the list, and according to my tests happens
30608         before the items are even added. Also happens if there isn't even
30609         an mdi client to get windows from.
30610
30611 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
30612
30613         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
30614         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
30615
30616 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
30617
30618         * DataGridTableStyle.cs:
30619           - Create always the styles for the missing columns even if they are
30620             provided by the user (not default table style)
30621         * DataGrid.cs:
30622           - Fixes bug 76770
30623           - Fixes SetDataBinding (always re-attach source)
30624           - Fixes SetNewDataSource (only clear styles if they are not for 
30625             this source)
30626          -  Expands OnTableStylesCollectionChanged to handle style refresh 
30627             and remove properly
30628
30629 2005-11-29  Jackson Harper  <jackson@ximian.com>
30630
30631         * FileDialog.cs: Implement missing bits, remove some dead
30632         code.
30633         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
30634         creation of the panel so that the options set on the dialog are
30635         seen when the panel is created.
30636         * TreeView.cs: raise a click when items are clicked.
30637         
30638 2005-11-29  Jackson Harper  <jackson@ximian.com>
30639
30640         * MdiClient.cs: Pass some signature methods through to base.
30641
30642 2005-11-28  Jackson Harper  <jackson@ximian.com>
30643
30644         * ListView.cs: Raise the click event when items are clicked.
30645
30646 2005-11-28  Jackson Harper  <jackson@ximian.com>
30647
30648         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
30649         a nullref.
30650
30651 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
30652
30653         * ThemeNice.cs: - Removed 1 pixel bitmaps
30654           - Use SmoothingMode.AntiAlias where it makes sense
30655             (ScrollButton arrow for example)
30656           - Enhanced Button focus drawing
30657           - Fixed ComboBox drawing (no artefacts anymore, focus
30658             rectangle is back again, reduced size of ComboButton, etc.)
30659           - Fixed RadioButton focus drawing for Appearence.Button
30660           - Slight ScrollButton redesign
30661           - Some LinearGradientBrush size fixes
30662           - GroupBoxes have now rounded edges
30663           - Fixed StatusBar drawing
30664
30665 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
30666
30667         * ThemeNice.cs: - Remove dead code
30668           - use correct background colors for menus, etc.
30669           - Fake pixel drawing with 1 pixel bitmaps
30670
30671 2005-11-24  Jackson Harper  <jackson@ximian.com>
30672
30673         * MdiClient.cs: Size the scrollbars when resizing the window.
30674         - Resize the maximized windows when the client is resized
30675         * Form.cs: Make the child context available
30676         
30677 2005-11-23  Jackson Harper  <jackson@ximian.com>
30678
30679         * MdiChildContext.cs: Don't size windows if they are maximized.
30680
30681 2005-11-23  Mike Kestner  <mkestner@novell.com>
30682
30683         * ContextMenu.cs: use MenuTracker.
30684         * Control.cs: remove menu handle usage.
30685         * Form.cs: remove menu handle usage.
30686         * Hwnd.cs: remove menu handle usage.
30687         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
30688         motion and clicks to the new Tracker handlers.
30689         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
30690         and handle usage.
30691         * MenuAPI.cs: refactored to combine popup and menubar event handling.
30692         Killed the MENU and MENUITEM data types and associated collections
30693         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
30694         MenuTracker class that exposes the leftovers from the old MenuAPI
30695         static methods. Restructured Capture handling so that only one grab is
30696         done for the entire menu hierarchy instead of handing off grabs to
30697         submenus. Tracker now has an invisible control to Capture when active.
30698         * MenuItem.cs: add sizing accessors, kill Create
30699         and handle usage.
30700         * Theme.cs: remove menu handle and MENU(ITEM) usage.
30701         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
30702         MENU(ITEM). remove menu handle usage, use Menu directly.
30703         * XplatUIDriver.cs: remove menu handle usage.
30704         * XplatUIOSX.cs: remove menu handle usage.
30705         * XplatUIWin32.cs: remove menu handle usage.
30706         * XplatUIX11.cs: remove menu handle usage.
30707
30708 2005-11-22  Jackson Harper  <jackson@ximian.com>
30709
30710         * Hwnd.cs: Don't compute the menu size for
30711         DefaultClientRectangle.
30712         - Reenable menu sizes being computed for GetClienRectangle.
30713         * Form.cs: Remove comment of trechery
30714         
30715 2005-11-22  Jackson Harper  <jackson@ximian.com>
30716
30717         * Hwnd.cs: The adjustments for the menu bar are made when it is
30718         attached to the form.
30719
30720 2005-11-19  Jackson Harper  <jackson@ximian.com>
30721
30722         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
30723         (just like on windows).
30724
30725 2005-11-19  Jackson Harper  <jackson@ximian.com>
30726
30727         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
30728         use real buttons anymore because they are in non client area. The
30729         one TODO here is that I need to somehow invalidate a section of
30730         the non client area.
30731
30732 2005-11-18  Jackson Harper  <jackson@ximian.com>
30733
30734         * Control.cs: Put the enum check back in now that MDI doesnt have
30735         to use this to set border styles.
30736         * Form.cs: Only set mdi child windows borders if the handle has
30737         been created.
30738         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
30739         this directly on to the driver.
30740         - Get the move start position before adjusting for the titlebar
30741         height, this fixes the windows "skipping" when they are first
30742         moved.
30743
30744 2005-11-18  Jackson Harper  <jackson@ximian.com>
30745
30746         * XplatUIX11.cs: Just compute the mdi borders separately as they
30747         don't totally match up with normal form borders.
30748
30749 2005-11-18  Jackson Harper  <jackson@ximian.com>
30750
30751         * Control.cs: Set WS_ styles for borders, so that the driver does
30752         not have to retrieve the control instance to figure out what kind
30753         of borders it should have.
30754         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
30755         driver can know its an mdi child easily.
30756         * XplatUIX11.cs: Get the border styles and whether the window is
30757         MDI from the Styles and ExStyles params instead of having to get a
30758         control. This prevents a chicken and egg problem.       
30759
30760 2005-11-18  Jackson Harper  <jackson@ximian.com>
30761
30762         * MdiClient.cs: Fix typo so scrollbars show up correctly.
30763
30764 2005-11-18  Jackson Harper  <jackson@ximian.com>
30765
30766         * MdiClient.cs: Calculate when to add and remove scrollbars
30767         correctly.
30768         * MdiChildContext.cs: Adjust the y position to take the titlebar
30769         into account.
30770         - No height for FormBorderStyle.None
30771
30772 2005-11-18  Jackson Harper  <jackson@ximian.com>
30773
30774         * Control.cs: Allow non enum values to be used for
30775         InternalBorderStyle.  MDI does this to set a special border style.
30776         - New utility methods for converting points to/from client coords
30777         - Add the newly created control to the Controls collection before
30778         updating its style. This way UpdateStyle can walk the control
30779         heirarchy to find the control if needed.
30780         so I don't need to create a new Point object all the time.
30781         * Form.cs: Let MDI windows handle their border styles.
30782         - Set styles on MDI windows so the correct title style is derived.
30783         * MdiChildContext.cs: Move all the painting and window handling
30784         into the non client area.
30785         - Use correct sizing and put correct buttons on frames based on
30786         the FormBorderStyle.
30787         - Notify the mdi client about scrolling
30788         - Need to handle the buttons ourselves now, because they are all
30789         in non client areas and we can't add controls there.
30790         * MdiClient.cs: Halfway to scrolling, this implementation is
30791         somewhat broken though, we need to check to make sure other
30792         windows aren't causing scrolling before removing the bars. Also
30793         the bars need to be drawn on top, maybe I can switch implicit
30794         controls to be on top.
30795         * Hwnd.cs: caption_height and tool_caption_height are now
30796         properties of an hwnd, this way they can be set by the driver
30797         based on the type of window they are.  In X11 the window manager
30798         handles the decorations so caption_height is zero unless its an
30799         MDI window.
30800         - Add 3 pixel borders for MDI windows (0xFFFF).
30801         - Get rid of some code duplication, have DefaultClientRectanle
30802         just call GetClientRectangle.
30803         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
30804         Hwnd now.
30805         - Set border styles differently for mdi windows.
30806         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
30807         Hwnd now.
30808         
30809 2005-11-15  Mike Kestner  <mkestner@novell.com>
30810
30811         * Menu.cs: when adding an item to the collection, if item is already 
30812         parented, remove it from the parent.
30813
30814 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
30815
30816         * X11DesktopColors.cs: Added KDE support
30817
30818 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
30819
30820         * XplatUIWin32.cs: 
30821           - Clipboard methods now can translate Rtf format
30822           - No longer removes clipboard contents whenever a new format is added
30823             to allow placing multiple formats on the clipboard
30824         * Clipboard.cs: Clipboard now supports getting a IDataObject and
30825           will place all formats contained in it onto the clipboard. Also
30826           now cleans the clipboard before placing a new object onto it
30827         * RichTextBox.cs:
30828           - Implemented set_Rtf
30829           - Implemented set_SelectedRtf
30830           - Created InsertRTFFromStream() method to allow single code base
30831             for all properties and methods that insert RTF into document
30832           - Removed debug output
30833         * TextControl.cs:
30834           - Fixed Delete(int) to fix up line numbers
30835           - Fixed ReplaceSelection to combine start and end line
30836           - Fixed serious DeleteChars bug that would leave the document tree
30837             broken
30838           - Improved DumpTree with several logic checks to detect broken
30839             document trees
30840           - Removed debug lines
30841           - Fixed Caret.WordForward/WordBack moving code, now always also 
30842             updates caret.tag (fixes crash when word-selecting across tag
30843             boundaries via keyboard)
30844           - Added Insert() method for inserting multiline text into documents
30845           - Fixed DeleteChars() calculation errors that would cause a broken
30846             tag chain with multiple tag lines
30847           - DeleteChars() no longer crashes on multi-tag lines if not all tags
30848           - Split() no longer moves caret if split is at caret location
30849           - ReplaceSelection() now updates the cursor and re-displays it
30850           - ReplaceSelection() now uses new Insert() method to avoid code
30851             duplication
30852           - FormatText() can now handle formatting partial lines
30853         * TextBoxBase.cs:
30854           - Append now uses new TextControl.Insert() method (this avoids 
30855             duplicate code)
30856           - Implemented Ctrl-X (Cut) (
30857           - Implemented Ctrl-C (Copy)
30858           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
30859             regeneration when pasting text; roundtripping Copy&Paste within
30860             edit control still fails due to some calculation bugs in GenerateRTF)
30861           - The Delete key will now remove the current selection if it is visible
30862         * TextBox.cs: Removed debug lines
30863         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
30864           driver to be initialized and can't therefore be done via a static ctor)
30865
30866 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
30867
30868         * TextControl.cs: Added backend code for finding char arrays and strings
30869         * TextBoxBase.cs:
30870           - Added mouse wheel scroll support
30871           - Added support for VScroll and HScroll events
30872         * RichTextBox.cs:
30873           - Implemented all seven Find() variants
30874           - Implemented GetCharFromPosition()
30875           - Implemented GetCharIndexFromPosition()
30876           - Implemented GetLineFromIndex()
30877           - Implemented GetPositionFromCharIndex();
30878           - Implemented SaveFile for PlainText and UnicodeText
30879           - Fixed set_Font, now setting a new font applies that font to
30880             the whole document
30881           - Implemented generic Document to RTF converter
30882           - Implemented SaveFile for RichText format (still missing unicode
30883             conversion for non-ansi chars)
30884           - Implemented get_Rtf
30885           - Implemented get_SelectedRtf
30886
30887 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
30888
30889         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
30890           to allow any captures to be released before triggering OnClick. This
30891           way a click handler may capture the mouse without interference.
30892         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
30893           This way we send them even though X may not allow a grab (if the window
30894           isn't visible, for example)
30895
30896 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
30897
30898         * DataGridViewRowEventArgs.cs: DataGridView implementation
30899         * DataGridViewElement.cs: DataGridView implementation
30900         * DataGridViewComboBoxCell.cs: DataGridView implementation
30901         * DataGridViewDataErrorContexts.cs: DataGridView implementation
30902         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
30903         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
30904         * ImageLayout.cs: DataGridView implementation
30905         * DataGridViewComboBoxColumn.cs: DataGridView implementation
30906         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
30907         * DataGridViewSelectionMode.cs: DataGridView implementation
30908         * IDataGridViewEditingControl.cs: DataGridView implementation
30909         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
30910         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
30911         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
30912         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
30913         * DataGridViewColumnSortMode.cs: DataGridView implementation
30914         * DataGridView.cs: DataGridView implementation
30915         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
30916         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
30917         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
30918         * Padding.cs: DataGridView implementation
30919         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
30920         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
30921         * DataGridViewRowEventHandler.cs: DataGridView implementation
30922         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
30923         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
30924         * DataGridViewButtonCell.cs: DataGridView implementation
30925         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
30926         * DataGridViewEditMode.cs: DataGridView implementation
30927         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
30928         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
30929         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
30930         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
30931         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
30932         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
30933         * DataGridViewCellEventHandler.cs: DataGridView implementation
30934         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
30935         * DataGridViewCellStyleConverter.cs: DataGridView implementation
30936         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
30937         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
30938         * DataGridViewColumnEventArgs.cs: DataGridView implementation
30939         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
30940         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
30941         * QuestionEventArgs.cs: DataGridView implementation
30942         * IDataGridViewEditingCell.cs: DataGridView implementation
30943         * DataGridViewTriState.cs: DataGridView implementation
30944         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
30945         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
30946         * DataGridViewColumnCollection.cs: DataGridView implementation
30947         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
30948         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
30949         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
30950         * DataGridViewColumn.cs: DataGridView implementation
30951         * DataGridViewCellBorderStyle.cs: DataGridView implementation
30952         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
30953         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
30954         * DataGridViewRow.cs: DataGridView implementation
30955         * DataGridViewImageCellLayout.cs: DataGridView implementation
30956         * DataGridViewImageCell.cs: DataGridView implementation
30957         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
30958         * DataGridViewCheckBoxCell.cs: DataGridView implementation
30959         * DataGridViewHeaderCell.cs: DataGridView implementation
30960         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
30961         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
30962         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
30963         * DataGridViewTextBoxColumn.cs: DataGridView implementation
30964         * QuestionEventHandler.cs: DataGridView implementation
30965         * DataGridViewCellStyleScopes.cs: DataGridView implementation
30966         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
30967         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
30968         * DataGridViewCell.cs: DataGridView implementation
30969         * DataGridViewCellEventArgs.cs: DataGridView implementation
30970         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
30971         * DataGridViewCellStyle.cs: DataGridView implementation
30972         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
30973         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
30974         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
30975         * TextFormatFlags.cs: DataGridView implementation
30976         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
30977         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
30978         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
30979         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
30980         * DataGridViewButtonColumn.cs: DataGridView implementation
30981         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
30982         * HandledMouseEventArgs.cs: DataGridView implementation
30983         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
30984         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
30985         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
30986         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
30987         * DataGridViewRowCollection.cs: DataGridView implementation
30988         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
30989         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
30990         * DataGridViewHitTestType.cs: DataGridView implementation
30991         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
30992         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
30993         * DataGridViewColumnEventHandler.cs: DataGridView implementation
30994         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
30995         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
30996         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
30997         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
30998         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
30999         * DataGridViewContentAlignment.cs: DataGridView implementation
31000         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
31001         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
31002         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
31003         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
31004         * DataGridViewPaintParts.cs: DataGridView implementation
31005         * DataGridViewCellCollection.cs: DataGridView implementation
31006         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
31007         * DataGridViewImageColumn.cs: DataGridView implementation
31008         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
31009         * DataGridViewElementStates.cs: DataGridView implementation
31010         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
31011         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
31012         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
31013         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
31014         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
31015         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
31016         * DataGridViewRowHeaderCell.cs: DataGridView implementation
31017         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
31018         * DataGridViewTextBoxCell.cs: DataGridView implementation
31019         * DataGridViewBand.cs: DataGridView implementation
31020         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
31021         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
31022         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
31023         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
31024         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
31025         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
31026         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
31027         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
31028         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
31029         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
31030         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
31031
31032 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
31033
31034         * ThemeWin32Classic.cs: 
31035           - Draw the outside focus rectangle around buttons
31036           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
31037             doesn't use end caps for every dash of a line anymore. This
31038             workaround ignores the forecolor.
31039
31040 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
31041
31042         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
31043           endian safe.
31044
31045 2005-11-07  Jackson Harper  <jackson@ximian.com>
31046
31047         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
31048
31049 2005-11-07  Jackson Harper  <jackson@ximian.com>
31050
31051         * ScrollableControl.cs: Calculate the maximum and change vars
31052         (more) correctly so that scrollbars appear as a sensible size.
31053
31054 2005-11-04  Jackson Harper  <jackson@ximian.com>
31055
31056         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
31057         collection.
31058         * TreeView.cs: When the tree is sorted null out the top_node so
31059         that it is recalculated.
31060         - Use dotted lines instead of dashed lines to match MS better.
31061
31062 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
31063
31064         * ListView.cs: 
31065           - Implements key search for items. Useful when browsing files with FileDialog
31066           - When changing view mode or when clear the items reset scrollbar positions
31067
31068 2005-11-04  Jackson Harper  <jackson@ximian.com>
31069
31070         * CurrencyManager.cs: Implement the MetaDataChanged event, the
31071         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
31072         as to what the method may do as there is no real way of creating a
31073         derived CurrencyManager and calling the method. 
31074
31075 2005-11-03  Jackson Harper  <jackson@ximian.com>
31076
31077         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
31078         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
31079         method which seems to just be used internally to refresh the tabs.
31080
31081 2005-11-03  Jackson Harper  <jackson@ximian.com>
31082
31083         * TabControl.cs: Implement the remove method. Fix some broken
31084         comments.
31085
31086 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31087
31088         * DateTimePicker.cs:
31089           - Added missing DateTimePickerAccessibleObject class
31090           - Added missing events
31091           - Added OnFontChanged method
31092         * Form.cs: Added missing attributes
31093         * TreeView.cs: Added missing attributes
31094
31095 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
31096
31097         * GridItemCollection.cs: Fix signatures
31098
31099 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31100
31101         * XplatUI.cs: Updated build rev/date
31102         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
31103           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
31104         * Application.cs: Trigger context-specific ExitThread events
31105
31106 2005-11-03  Jackson Harper  <jackson@ximian.com>
31107
31108         * Menu.cs:
31109         * MainMenu.cs:
31110         * GridTableStylesCollection.cs:
31111         * Timer.cs:
31112         * TabPage.cs:
31113         * HelpProvider.cs:
31114         * StatusBar.cs:
31115         * MonthCalendar.cs: Signature fixes
31116
31117 2005-11-03  Jackson Harper  <jackson@ximian.com>
31118
31119         * TreeNodeCollection.cs: Remove should not be virtual.
31120         * TreeView.cs: Implement the last of the missing methods.
31121
31122 2005-11-03  Jackson Harper  <jackson@ximian.com>
31123
31124         * TreeNodeConverter.cs: Implement to get off my class-status back.
31125
31126 2005-11-03  Jackson Harper  <jackson@ximian.com>
31127
31128         * TreeView.cs: Hookup the bits for drag and drop.
31129         * TreeNode.cs: Don't cache the tree_view or index anymore, now
31130         that nodes can be moved from tree to tree easily this just causes
31131         all sorts of problems.
31132         * TreeNodeCollection: Don't need to give treenodes an index and
31133         treeview anymore when they are added, these are computed on the
31134         fly. Also make sure to remove a node before its added.
31135
31136 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31137
31138         * TextControl.cs:
31139           - Added CaretSelection enum
31140           - Added comparison methods to Marker struct, makes selection code
31141             more readable
31142           - Added SelectionStart and SelectionEnd as 'moveable' location for
31143             the CaretDirection enum and handler
31144           - Added selection_prev variable to track optimized invalidation for
31145             word and line selection
31146           - Added SelectionVisible property (returns true if there is a valid 
31147             selection)
31148           - Switched CaretHasFocus to only display the caret if there is no
31149             visible selection
31150           - Avoiding StringBuilder.ToString to retrieve a single char, instead
31151             using the direct character index; should be much faster
31152           - Added various conditional debug statements
31153           - Fixed invalidation calculation for selection ranges
31154           - Added ExpandSelection() method to support word and line selection
31155           - Switched SetSelectionToCaret to use new Marker compare overloads
31156           - Added central IsWordSeparator() method to determine word 
31157             separators/whitespace and FindWordSeparator() to streamline common
31158             usage of IsWordSeparator()
31159         * TextBoxBase.cs:
31160           - Removed unneeded grabbed variable, it was just mirroring
31161             Control.Capture
31162           - No longer firing OnTextChanged event when Text setter is called,
31163             since the base will fire the event for us
31164           - Added handling of Ctrl-Up/Down selection
31165           - Added handling of Shift-Cursorkey selection
31166           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
31167             words
31168           - Added handling of Shift and Ctrl-Shift-Home/End selection
31169           - Removed some debug output
31170           - Added handling for single/double/tripple-click to place caret/
31171             select word/select line respectively (Fixes bug #76031)
31172           - Added support for drag expansion of word/line selection
31173         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
31174           current selection
31175
31176 2005-11-02  Jackson Harper  <jackson@ximian.com>
31177
31178         * X11Dnd.cs: If the drag is going to and from a MWF window just
31179         copy the data instead of sending it out through the X Selection
31180         mechanism.
31181
31182 2005-11-02  Jackson Harper  <jackson@ximian.com>
31183
31184         * X11Dnd.cs:
31185         * XplatUIX11.cs: When in a drag we don't want motion notify
31186         messages to get passed on to the other controls. This prevents
31187         mouse move messages from showing up in the drag source.
31188
31189 2005-11-02  Jackson Harper  <jackson@ximian.com>
31190
31191         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
31192         the correct button is release to end a drag.
31193         * XplatUIX11.cs: Make the button state internal so the drag system
31194         can access it.  Dragging needs to know about all button releases,
31195         not just left button.
31196
31197 2005-11-02  Miguel de Icaza  <miguel@novell.com>
31198
31199         * Form.cs (Icon): If the icon is null, reset the icon to the
31200         default value. 
31201
31202         * Cursor.cs: When writing the AND-mask bitmap do not include the
31203         number of colors, but hardcode those to two (black and white),
31204         fixes the loading of color cursors (Paint Dot Net).
31205
31206         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
31207         turn off autoscaling.
31208
31209         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
31210
31211 2005-11-02  Jackson Harper  <jackson@ximian.com>
31212
31213         * X11Dnd.cs: Make sure to send a status message if the pointer
31214         enters a control that can not accept a drop, otherwise the cursor
31215         isn't updated correctly. Also tried to compress the lines of code
31216         a bit.
31217
31218 2005-11-02  Jackson Harper  <jackson@ximian.com>
31219
31220         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
31221         set actions correctly.  This isn't perfect as XDND and win32 have
31222         some differences on how you allow actions. I'll clear this up by
31223         adding a path for drag from MWF to MWF windows.
31224         * XplatUIX11.cs: Hook into the dnd system.
31225
31226 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
31227
31228         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
31229         previously shown but they are no longer need it. Very obvious when 
31230         browsing files with FileDialog.
31231
31232 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
31233
31234         * Control.cs: We always need to call OnPaintBackground. We pretty much
31235           ignore AllPaintingInWmPaint and always do the painting there, whether 
31236           it's set or not, since we always ignore the WM_ERASEBKGND message 
31237           (which we don't generate on X11). This fixes #76616.
31238         * Panel.cs: Removed unneeded background painting. This happens properly
31239           in Control.cs already
31240
31241 2005-10-31  Mike Kestner  <mkestner@novell.com>
31242
31243         * Menu.cs: Add items to collection before setting their index.
31244         * MenuItem.cs : add range checking with ArgumentException like MS.
31245         [Fixes #76510]
31246
31247 2005-10-31  Jackson Harper  <jackson@ximian.com>
31248
31249         * ListBox.cs: Invalidate if the area is visible at all not just
31250         contained in the visible rect. Fixes unselection of semi visible
31251         items.
31252
31253 2005-10-31  Jackson Harper  <jackson@ximian.com>
31254
31255         * Control.cs: Consistently name the dnd methods. Make them
31256         internal so we can override them to match some MS behavoir
31257         internally.
31258         * Win32DnD.cs: Use the new consistent names.
31259
31260 2005-10-31  Jackson Harper  <jackson@ximian.com>
31261
31262         * TreeView.cs: Don't draw the selected node when we lose focus.
31263
31264 2005-10-31  Jackson Harper  <jackson@ximian.com>
31265
31266         * X11Dnd.cs: We still need to reset the state even though a full
31267         reset isn't being done, otherwise status's still get sent all over
31268         the place.
31269
31270 2005-10-31  Jackson Harper  <jackson@ximian.com>
31271
31272         * Control.cs: Make the dnd_aware flag internal so the dnd
31273         subsystem can check it. Catch exceptions thrown in dnd handlers to
31274         match MS behavoir.
31275         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
31276         * X11Dnd.cs: Handle null data in the converters. Set the XDND
31277         version when sending a XdndEnter. Use the control/hwnd dnd_aware
31278         flags to reduce the number of dnd enters/status's sent.
31279
31280 2005-10-31  Jackson Harper  <jackson@ximian.com>
31281
31282         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
31283
31284 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
31285
31286         * PictureBox.cs: Fixes 76512
31287
31288 2005-10-28  Jackson Harper  <jackson@ximian.com>
31289
31290         * X11Dnd.cs: Early implementation to support winforms being a drag
31291         source for data on X11. Also restructured the converters so they
31292         can go both ways now.
31293         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
31294         
31295 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
31296
31297         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
31298           clipboard requests
31299
31300 2005-10-27  Jackson Harper  <jackson@ximian.com>
31301
31302         * TreeNode.cs: Implement serialization so my DnD examples will work.
31303
31304 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
31305
31306         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
31307           TreeView.cs: Don't dispose objects that are not owned.
31308           
31309 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
31310
31311         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
31312           should retrieve the current cursor and report that, but XplatUI
31313           doesn't (yet) have an interface for that (and I'm not sure I even
31314           can, on X11)
31315         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
31316           until any message loop processing is done (and the WM_SETCURSOR
31317           replaces the cursor to the proper one)
31318         * XplatUIX11.cs: 
31319           - Fixed override behaviour, we can't set the cursor globally on X11, 
31320             just for our windows.
31321           - Invalidating the System.Drawing X11 display handle when we are
31322             shutting down
31323         * Control.cs: Fix to make csc happy
31324
31325 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
31326
31327         * TextBoxBase.cs: 
31328           - get_Text: Add last line (without trailing newline) to returned
31329             value (Fixes 76212)
31330           - get_TextLength: Count last line in returned length
31331           - ToString: Call Text property instead of duplicating code
31332
31333 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
31334
31335         * ImageList.cs: Dispose ImageAttributes objects.
31336
31337 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
31338
31339         * ImageList.cs: Use attribute constructors with less arguments where
31340           possible.
31341
31342 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
31343
31344         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
31345           Use typeof instead of strings when assembly is referenced. Added
31346           some more comments.
31347
31348 2005-10-21  Jackson Harper  <jackson@ximian.com>
31349
31350         * ListView.cs: Raise a double click event. Also tried to somewhat
31351         fix when the selectedindexchanged event is raised. Its still
31352         broken though.
31353
31354 2005-10-21  Jackson Harper  <jackson@ximian.com>
31355
31356         * TreeView.cs: New method to invalidate the plus minus area of a
31357         node without invalidating the whole node (maybe this can be used
31358         in some more places).
31359         * TreeNodeCollection.cs: When adding to an empty node we need to
31360         invalidate its plus minus area so the little block shows up.
31361         
31362 2005-10-21  Jackson Harper  <jackson@ximian.com>
31363
31364         * TreeView.cs: Make sure that when we invalidate a node the bounds
31365         are big enough to cover the selected box and the focus
31366         rectangle. Use a different colour for the lines connecting nodes
31367         so they show up with all themes.
31368
31369 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
31370
31371         * NativeWindow.cs: Don't call anything that could call into the driver,
31372           we might be on a different thread.
31373
31374 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
31375
31376         * Control.cs(Dispose): Since Dispose might run on a different thread,
31377           make sure that we call methods that could call into the driver via
31378           invoke, to avoid thread issues
31379
31380 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
31381
31382         * XplatUI.cs: Removed finalizer
31383         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
31384           not allowing to be called on the finalizer thread.
31385
31386 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
31387
31388         * ImageList.cs:
31389           - Reverted r51889 and r51891.
31390           - Added ImageListItem class that stores unmodified image items and image
31391             properties required to create list images until handle is created.
31392           - Added AddItem and moved image creation logic to AddItemInternal.
31393           - Added CreateHandle method that creates images based on unmodified items.
31394           - Added DestroyHandle that changes state to store unmodified items.
31395           - Add and AddStrip methods no more create handle.
31396           - ReduceColorDepth has no return value.
31397           - Dispose destroys handle.
31398           - Modified other methods to reflect the above changes.
31399           - Implemented key support.
31400           - Added profile 2.0 members and attributes.
31401           - Added private Reset and ShouldSerialize methods that provide the same
31402             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
31403             them as they are private.
31404           - Added some more comments about implementation details.
31405
31406 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31407
31408         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
31409
31410 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31411
31412         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
31413
31414 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31415
31416         * DataGridDrawingLogic.cs: Fixes column hit calcultation
31417         * DataGridColumnStyle.cs: Remove debug message
31418
31419 2005-10-20  Jackson Harper  <jackson@ximian.com>
31420
31421         * TreeView.cs: We can always get input keys regardless of whether
31422         or not editing is enabled. They are used for navigation.
31423
31424 2005-10-20  Jackson Harper  <jackson@ximian.com>
31425
31426         * TreeNode.cs: Use the viewport rect for determining if a node
31427         needs to be moved for visibility. Don't use Begin/End edit. This
31428         calls a full refresh when its done.
31429         * TreeView.cs: New SetBottom works correctly.  Make the viewport
31430         rect property internal so the treenodes can see it. When clicking
31431         on a node we need to ensure that its visible because it might just
31432         be partly visible when clicked.
31433
31434 2005-10-20  Jackson Harper  <jackson@ximian.com>
31435
31436         * TreeNodeCollection.cs: Remove debug code.
31437
31438 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
31439
31440         * Datagrid.cs: Implements column sorting in Datagrid
31441         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
31442
31443 2005-10-20  Jackson Harper  <jackson@ximian.com>
31444
31445         * TreeNodeCollection.cs: Remove items properly. Update the correct
31446         area after removing them.
31447
31448 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
31449
31450         * Datagrid.cs: Should not call base.OnPaintBackground
31451
31452 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
31453
31454         * XplatUIX11.cs (GetMessage):
31455           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
31456             window instead of client window
31457           - Now properly calculates NC_xBUTTONUP message coordinates
31458           - ScreenToMenu now properly calculates it's coordinates of whole 
31459             window, since menus are in the whole window, not in the client
31460             window
31461           - Added WholeToScreen coordinate translation method
31462
31463 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
31464
31465         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
31466           want to return a message, loop back to the beginning of the function
31467           and grab the next real message to process instead.
31468
31469 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
31470
31471         * Splitter.cs: Properly set limits if no filler control is used
31472
31473 2005-10-19  Jackson Harper  <jackson@ximian.com>
31474
31475         * ColorDialog.cs: Don't show the help button if it is not enabled
31476         instead of disabling it (this is what MS does). Don't create the
31477         panel until the dialog is run, otherwise the vars (such as
31478         ShowHelp) are not set yet.
31479
31480 2005-10-19  Jackson Harper  <jackson@ximian.com>
31481
31482         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
31483         are reduced when adding nodes.
31484         * TreeNode.cs:
31485         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
31486         tree.
31487         
31488 2005-10-19  Jackson Harper  <jackson@ximian.com>
31489
31490         * FolderBrowserDialog.cs: End editing our treeview so the window
31491         actually gets refreshed.
31492
31493 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
31494
31495         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
31496           Obsoleted handling of WM_ERASEBKGND, now always draws our background
31497           inside of WM_PAINT
31498
31499 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31500
31501         * MenuAPI.cs: Returns after Hidding window
31502         * XplatUIX11.cs: Added TODO found while debugging menu issues
31503
31504 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
31505
31506         * XplatUIX11.cs: Do not re-map the whole window when it's size
31507           becomes non-zero unless it's supposed to be actually visible
31508
31509 2005-10-18  Jackson Harper  <jackson@ximian.com>
31510
31511         * TreeView.cs: We don't need to keep a count anymore.
31512         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
31513         use the Grow method.
31514
31515 2005-10-18  Jackson Harper  <jackson@ximian.com>
31516
31517         * TreeNodeCollection.cs: Insert is not supported on arrays, so
31518         implement it manually here.
31519
31520 2005-10-18  Jackson Harper  <jackson@ximian.com>
31521
31522         * ImageList.cs: Dont kill the list when the colour depth is
31523         changed, just change the colour depth of all the images.
31524         - Same goes for setting the image size. Just resize them all
31525         instead of killing the list softly.
31526
31527 2005-10-18  Jackson Harper  <jackson@ximian.com>
31528
31529         * Control.cs: Don't invalidate empty rectangles.
31530
31531 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31532
31533         * ListViewItem.cs:
31534           - Adds checked item to the Checked/Item lists (where empty before)
31535           - Do not add items to the Selected lists if they are already present
31536         * ListView.cs:
31537           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
31538           - When deleting items make sure that we delete them for the Selected
31539           and Checked list also.
31540
31541 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31542
31543         * Label.cs: Dispose objects no longer used
31544         * ThemeWin32Classic.cs: Dispose objects no longer used
31545
31546 2005-10-18  Jackson Harper  <jackson@ximian.com>
31547
31548         * TabControl.cs: Don't refresh the whole control when the tabs are
31549         scrolled, we just need to refresh the tab area.
31550
31551 2005-10-17  Jackson Harper  <jackson@ximian.com>
31552
31553         * XplatUIX11.cs: Compress code a little bit. Only calculate the
31554         after handle when we need it.
31555
31556 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
31557
31558         * Control.cs: When the parent size changes, recalculate anchor 
31559           positions. Partial fix for #76462
31560
31561 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
31562
31563         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
31564           drawn. Fixes #76462
31565
31566 2005-10-17  Jackson Harper  <jackson@ximian.com>
31567
31568         * MonthCalendar.cs: Don't create the numeric up down until our
31569         handle is created. Otherwise our handle is created in the
31570         constructor and we don't know if we are a WS_CHILD or WS_POPUP
31571         yet.
31572
31573 2005-10-17  Jackson Harper  <jackson@ximian.com>
31574
31575         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
31576         correctly.
31577
31578 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
31579         * TreeNode.cs : small logical fix (was using local var instead of field)
31580         
31581 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
31582
31583         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
31584
31585 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
31586
31587         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
31588
31589 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
31590
31591         * Control.cs: 
31592           - Re-implemented anchoring code. My first version was really broken.
31593             This fixes bug #76033. Unlike the previous implementation we will
31594             no longer have round errors since all numbers are calculated from
31595             scratch every time. Removed various anchor-related obsolete vars.
31596           - InitLayout no longer causes layout event firing and layout to be 
31597             performed
31598
31599 2005-10-16  Jackson Harper  <jackson@ximian.com>
31600
31601         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
31602         which was broken).
31603
31604 2005-10-16  Jackson Harper  <jackson@ximian.com>
31605
31606         * TabControl.cs: Remove debug code.
31607
31608 2005-10-16  Jackson Harper  <jackson@ximian.com>
31609
31610         * XEventQueue.cs: Increase the default queue size (very simple
31611         apps needed to grow the queue).
31612         * Hwnd.cs: No finalizer so we don't need to suppress
31613         finalization. Compute the invalid area manually so a new rectangle
31614         does not newto be created.
31615         * ScrollableControl.cs: Don't set any params (otherwise visibility
31616         isn't set correctly).
31617         * MdiChildContext.cs: New constructor takes the mdi parent so it
31618         doesn't have to be computed and avoids a crash on windows. Draw
31619         the window icon properly, and allow the text to be seen.
31620         * Form.cs: Use new MdiChildContext constructor. Make sure the
31621         child context isn't null in wndproc.
31622         * TabControl.cs: Don't set focus, this is muddling keyboard
31623         behavoir. Expand the tab rows when a window size increase will
31624         allow extra tabs to be seen. Don't allow tabs smaller than the
31625         width of a window to be scrolled out of view.
31626         * TreeNode.cs:
31627         * TreeView.cs: Use measure string to calculate a nodes width, the
31628         width is cached and only updated when the text or the font is
31629         changed. Don't check for expand/collapse clicks on the first level
31630         nodes if root lines are disabled.
31631         
31632 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
31633
31634         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
31635
31636 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
31637
31638         * DataGridBoolColumn.cs: fixes warning
31639
31640 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
31641
31642         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
31643         to match more to match more precisely the MS Net behavior
31644
31645 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
31646
31647         * Hwnd.cs: Added field to track if window is mapped
31648         * XplatUIX11.cs: 
31649           - Unmap windows if they become 0-size, re-map when 
31650             they are >0 again; fixes #76035
31651           - Re-set our error handler after initializing X11Desktop
31652             to override any error handlers Gtk or whatever was called
31653             may have set.
31654
31655 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
31656
31657         * CheckedListBox.cs: Removed unused vars
31658         * ListView.cs: Fixed signatures
31659         * RichTextBox.cs: Removed unused vars
31660         * TextBoxBase.cs: Removed unused vars
31661         * XplatUIWin32.cs: Removed unused vars
31662         * XplatUIX11.cs: Removed unused vars
31663         * XplatUI.cs: Updated version and date to latest published
31664
31665 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
31666
31667         * Cursor.cs: Added private .ctor to work around a bug in
31668           resourceset (Thanks to Geoff Norton for the help on this)
31669         * SplitterEventArgs.cs: Made fields accessible so we don't
31670           waste boatloads of objects and can reuse the same one
31671           in Splitter
31672         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
31673           any captions and borders when generating screen coordinates
31674         * Splitter.cs: Reimplemented control, now fully complete, uses
31675           rubberband drawing, supports and obeys all properties, has
31676           proper cursors
31677
31678 2005-10-13  Miguel de Icaza  <miguel@novell.com>
31679
31680         * Form.cs (Form): Setup default values for autoscale and
31681         autoscale_base_size;  Make these instance variables, not static
31682         variables. 
31683
31684         (OnLoad): on the first load, adjust the size of the form.
31685
31686 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
31687
31688         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
31689           width argument to DrawReversibleRectangle()
31690         * XplatUIWin32.cs, XplatUIX11.cs: 
31691           - Implemented width for DrawReversibleRectangle()
31692           - Added logic to DrawReversibleRectangle that recognizes a zero
31693             width or height and only draws a line in that situation
31694         
31695 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
31696
31697         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
31698         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
31699         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
31700           method (it uses our FosterParent window to get a graphics context)
31701
31702 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
31703
31704         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
31705           and SetWindowBackground methods
31706         * Control.cs:
31707           - Setting proper ControlStyles
31708           - We no longer call XplatUI.SetWindowBackground and XplatUI.
31709             EraseWindowBackground, instead we draw the window background
31710             ourselves in PaintControlBackground. This behaviour is
31711             required to match MS, where, when OnPaintBackground is not
31712             called, the background is not drawn.
31713           - Removed unneeded Refresh() in set_Text
31714         * Hwnd.cs: Dropped the ErasePending support. No longer needed
31715         * XplatUIX11.cs:
31716           - Created DeriveStyles method to translate from CreateParams to
31717             FormBorderStyle and TitleStyle, also handles BorderStyle (which
31718             matches FormBorderStyle enum values)
31719           - Consolidated SetHwndStyles and CalculateWindowRect border/title
31720             style calculations into single DeriveStyles method
31721           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
31722             from redrawing the whole window on any resize or expose.
31723           - Fixed CreateWindow usage of SetWindowValuemask. Before not
31724             all styles were applied to our whole/client window appropriately
31725           - Removed EraseWindowBackground() and SetWindowBackground() methods
31726           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
31727             no longer clear/redraw the background through X
31728           - Removed handling of erase_pending bit, we have no use for it (or
31729             so it seems)
31730         * XplatUIOSX.cs:
31731           - Removed generation and handling of WM_ERASEBKGND message
31732           - Removed EraseWindowBackground() and SetWindowBackground() methods
31733           - Removed handling of hwnd.ErasePending flag
31734         * XplatUIWin32.cs:
31735           - Removed EraseWindowBackground() and SetWindowBackground() methods
31736           - We no longer call EraseWindowBackground on PaintEventStart, we 
31737             ignore the fErase flag, erasing is handled in Control in the
31738             background handler
31739         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
31740           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
31741           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
31742           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
31743           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
31744           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
31745           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
31746
31747 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
31748
31749         * PropertyGrids.cs: Get sub properties
31750         * PropertyGridView.cs: Fix drawing code
31751
31752 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31753
31754         * ListBox.cs: Fixes 76383
31755
31756 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31757
31758         * DataGridTextBoxColumn.cs: Sets location and size before attachment
31759         * ThemeWin32Classic.cs: Fixes border drawing and calculations
31760         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
31761
31762
31763 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31764
31765         * ComboBox.cs: Fixes border drawing
31766
31767 2005-10-10  Miguel de Icaza  <miguel@novell.com>
31768
31769         * MimeIcon.cs: Ignore errors if the file can not be read.
31770
31771 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31772
31773         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
31774          - Fixed border calculations
31775          - Fixed horizontal scrolling in single column listboxes
31776          - Fixed drawing issues
31777
31778 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
31779
31780         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
31781           FormBorderStyle enum
31782         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
31783           code to determine FormBorderStyles from CreateParams
31784         * Form.cs:
31785           - Fixed bug where we'd set the wrong window styles if we were
31786             not creating an MDI window
31787           - Added call to XplatUI.SetBorderStyle when form borders are set
31788         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
31789         * Hwnd.cs:
31790           - Removed obsolete edge style
31791           - Switched from BorderStyle to FormBorderStyle
31792         
31793 2005-10-10  Jackson Harper  <jackson@ximian.com>
31794
31795         * Form.cs: Use the property to get the window handle instead of
31796         accessing it directly. Prevents a null reference exception.
31797
31798 2005-10-10  Jackson Harper  <jackson@ximian.com>
31799
31800         * TreeView.cs: Don't adjust the rect given to DrawString now that
31801         our libgdiplus draws correctly.
31802
31803 2005-10-08  Jackson Harper  <jackson@ximian.com>
31804
31805         * TreeView.cs: Don't try to find the clicked on node if there are
31806         no nodes in the tree.
31807
31808 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
31809
31810         * RichTextBox.cs:
31811
31812           restore
31813
31814 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
31815
31816         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
31817           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
31818           ErrorProvider.cs:
31819           Use ResPool for brushes and dispose System.Drawing objects that
31820           are not used anymore.
31821
31822 2005-10-07  Jackson Harper  <jackson@ximian.com>
31823
31824         * MdiChildContext.cs: Use the new borders instead of drawing them
31825         ourselves.
31826
31827 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
31828
31829         * Calling UpdateBounds after changing the window's BorderStyle 
31830         since the style can change the ClientSize
31831
31832 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31833
31834         * Control.cs: Made PaintControlBackground virtual
31835         * Panel.cs: Overriding PaintControlBackground instead of using paint
31836           event; paint event method was interfering with 'real' users of the
31837           event.
31838
31839 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
31840
31841         * ThemeWin32Classic.cs: remove border drawing since it is handled
31842         by the base control class now and was causing double border drawing.
31843
31844 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31845
31846         * Panel.cs: Redraw our background on paint. Not a pretty solution,
31847           but it does seem to match MS behaviour. This fixes bug #75324
31848
31849 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31850
31851         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
31852           somewhat hackish looking
31853
31854 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31855
31856         * TextBoxBase.cs:
31857           - We now accept Enter even if AcceptEnter is false, if the containing
31858             form does not have an AcceptButton configured (fixes bug #76355)
31859           - Calculations are now fixed to no longer use Width/Height, but
31860             ClientSize.Width/Height, since we now support borders (this was
31861             a result of fixing borders and therefore bug #76166)
31862           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
31863             true (fixes bug #76354)
31864         
31865 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31866
31867         * Control.cs: 
31868           - Defaulting BorderStyle and setting it in XplatUI when our window 
31869             is created
31870           - Added enum check to InternalBorderStyle setter
31871         * XplatUIX11.cs: 
31872           - Added drawing of window borders
31873           - Now properly calculates WM decorations offset for toplevel 
31874             windows (fixes bug #74763)
31875         * XplatUIWin32.cs: 
31876           - Implemented BorderStyles for windows (we're letting win32 draw 
31877             the border for us)
31878           - Fixed the signature for SetWindowLong
31879         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
31880           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
31881           setting borders
31882         * UpDownBase.cs: Remove drawing of borders, this is handled by
31883           the driver, outside the client area
31884         * ListView.cs: Removed bogus border calculations. The control should
31885           be oblivious to borders, since those are not part of the client
31886           area. 
31887         * X11DesktopColors.cs: Commented out (currently) unneeded variables
31888         * ThemeWin32Classic.cs: Removed border calculations from ListView 
31889           drawing code
31890
31891 2005-10-06  Jackson Harper  <jackson@ximian.com>
31892
31893         * MdiChildContext.cs: Clear out the old virtual position remove
31894         all the unneeded calls to CreateGraphics.
31895
31896 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31897
31898         * TextControl.cs: Use proper color for highlighted text; fixes #76350
31899
31900 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31901
31902         * Form.cs: 
31903           - Added loading and setting of our new default icon
31904           - Only set icon if window is already created
31905
31906 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31907
31908         * Label.cs:
31909           - Do not explicitly set the foreground and background colors, to
31910             allow inheriting from parents (fixes #76302)
31911           - Use Control's InternalBorderStyle property to deal with borders
31912
31913 2005-10-06  Jackson Harper  <jackson@ximian.com>
31914
31915         * MdiChildContext.cs: Use the new xplatui function to draw a
31916         reversible rect.
31917
31918 2005-10-06  Jackson Harper  <jackson@ximian.com>
31919
31920         * Form.cs: Add the parent before creating the child context cause
31921         we need the parent when setting up the child.
31922
31923 2005-10-06  Jackson Harper  <jackson@ximian.com>
31924
31925         * FolderBrowserDialog.cs: redo the tree population code so a
31926         second thread isn't used. Should be a lot faster and more stable
31927         now.
31928
31929 2005-10-05  Jackson Harper  <jackson@ximian.com>
31930
31931         * TreeView.cs: There are no expand/collapse boxes if the node has
31932         no children.
31933
31934 2005-10-05  Jackson Harper  <jackson@ximian.com>
31935
31936         * X11DesktopColors.cs: Get menu colours for the gtk theme.
31937
31938 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
31939
31940         * FileDialog.cs: Fix InitialDirectory
31941
31942 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
31943
31944         * ComboBox.cs:
31945                 - Fixes changing between styles
31946                 - Fixes simple mode
31947                 - Fixes last item crashing when navigating with keyboard
31948
31949 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
31950
31951         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
31952
31953 2005-10-05  Jackson Harper  <jackson@ximian.com>
31954
31955         * TreeView.cs: If updating the root node do a full refresh.
31956         * TreeNode.cs: The root node should be expanded by default. Also
31957         added a utility prop to tell if we are the root node.
31958         * TreeNodeCollection.cs: Only refresh if the node we are being
31959         added to is expanded. Also added a comment on a potential
31960         optimization.
31961         
31962 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
31963
31964         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
31965           in dispose method. Fixes #76330
31966
31967 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
31968
31969         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
31970
31971                 - Implements vertical and horizontal scrolling using XplatUI
31972                 - Fixes keyboard navagation
31973                 - Fixes EnsureVisible
31974                 - Drawing fixes
31975                 - Handles and draws focus properly
31976
31977
31978 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
31979
31980         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
31981           Create handle. NET_2_0: Destroy handle when value is null.
31982
31983 2005-10-03  Jackson Harper  <jackson@ximian.com>
31984
31985         * ScrollBar.cs: My last scrollbar patch was broken. This is a
31986         revert and a new patch to prevent the thumb from refreshing so
31987         much.
31988
31989 2005-10-02  Jackson Harper  <jackson@ximian.com>
31990
31991         * ScrollBar.cs: Don't update position if it hasn't actually
31992         changed. This occurs when you hold down the increment/decrement
31993         buttons and the thumb gets to the max/min.
31994
31995 2005-10-01  Jackson Harper  <jackson@ximian.com>
31996
31997         * Form.cs:
31998         * MdiChildContext.cs:
31999         * MdiClient.cs: Implement ActiveMdiChild in Form.
32000
32001 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
32002
32003         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
32004
32005 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
32006
32007         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
32008           be found
32009
32010 2005-09-30  Jackson Harper  <jackson@ximian.com>
32011
32012         * ListBox.cs: Don't do a full refresh unless some data has
32013         actually changed.
32014
32015 2005-09-30  Jackson Harper  <jackson@ximian.com>
32016
32017         * TreeView.cs: Make sure that the checkboxes size is factored in
32018         even when not visible.
32019
32020 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
32021
32022         * FileDialog.cs: Fix Jordi's build break
32023
32024 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
32025
32026         * FileDialog.cs: 
32027                 - Use standard the Windows colours for the combobox as espected
32028                 - Dispose objects that use resouces when no longer need them
32029
32030 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
32031
32032         * X11DesktopColors.cs: Initial incomplete implementation
32033         * XplatUIX11.cs: Added call to initialize X11DesktopColors
32034
32035 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
32036
32037         * Theme.cs: 
32038           - Switched Theme color names to match the names defined in 
32039             System.Drawing.KnownColors. Life's hard enough, no need to make 
32040             it harder.
32041           - Added setters to all theme color properties so themes can set
32042             their color schemes. The setters also propagate the color changes
32043             to System.Drawing.KnownColors via reflection
32044         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
32045           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
32046           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
32047           use the new, more logical theme color names
32048         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
32049           post-NT colors
32050         * ThemeWin32Classic.cs:
32051           - Removed code to set the old classic Windows colors. Instead it
32052             now relies on the colors returned by System.Drawing.KnownColors
32053             which will be either modern static colors (Unix) or colors
32054             read from the user's configuration (Win32)
32055           - Updated to use the new, more logical theme color names
32056           - Switched DataGrid drawing code to use only Theme colors instead of
32057             a mix of System.Drawing.KnownColors and Theme colors
32058           - DrawFrameControl(): Removed code that fills the button area, the
32059             fill would overwrite any previous fill done by a control. This
32060             fixes bug #75338 
32061           - Added DrawReversibleRectangle() stub
32062         * ScrollableControl.cs: Set visible state to false when scrollbars
32063           are removed (pdn fix)
32064         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
32065           DrawReversibleRectangle() method to allow drawing primitive 
32066           'rubber bands'
32067         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
32068
32069 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32070
32071         * ImageList.cs: Add(Icon): Create handle.
32072
32073 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
32074
32075         * ListView.cs:
32076         * ThemeWin32Classic.cs:
32077                 - Fixes detail mode
32078                 - Sets clippings
32079                 - Issues with drawing
32080
32081 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32082
32083         * ImageList.cs: Moved RecreateHandle back to ImageList as event
32084           source has to be the ImageList.
32085
32086 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32087
32088         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
32089
32090 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32091
32092         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
32093
32094 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32095
32096         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
32097
32098 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
32099         * GridItem.cs: Fixed TODOs
32100         * GridItemCollection.cs: Added ICollection interface
32101
32102 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32103
32104         * ImageList.cs: Resize icons when needed.
32105
32106 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
32107
32108         * ListViewItem.cs
32109                 - Fixes GetBounds and returns on screen rects
32110         * ListView.cs:
32111                 - Fixes vertical and horzintal scrolling of items
32112         * ThemeWin32Classic.cs:
32113                 - Fixes drawing
32114                 
32115 2005-09-29  Raja R Harinath  <harinath@gmail.com>
32116
32117         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
32118
32119 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
32120
32121         * ImageList.cs: Added comments about handle creation. Moved Handle,
32122           HandleCreated and OnRecreateHandle implementations to ImageCollection.
32123           Handle is created in Add methods.
32124
32125 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
32126          
32127         * DataGridDrawingLogic.cs: 
32128                 - Takes rows into account on Colum calculations
32129                 - Returns the column when clickig
32130         * DataGrid.cs:
32131                 - Fixes default HitTestInfo values
32132                 - Fixes HitTestInfo.ToString
32133                 - Fixes ResetBackColor          
32134         
32135 2005-09-28  Jackson Harper  <jackson@ximian.com>
32136
32137         * MdiChildContext.cs: Obey rules for fixed sized windows (no
32138         sizing or cursor changes). Also added some temp code to draw the
32139         titlebars text (Makes dev a little easier).
32140
32141 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
32142
32143         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
32144
32145 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
32146          
32147         * ListBox.cs: Fixes bug 76253
32148
32149 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
32150
32151         * ImageList.cs: Added comments about the current implementation. Added
32152           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
32153           Format32bppArgb to preserve transparency and can use Graphics.FromImage
32154           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
32155           with Bitmap.LockBits for better performance. Revised the whole file to
32156           match MS.NET behaviour and provide better performance. Non-public
32157           interface members are calling public members even when they throw
32158           NotSupportedException for better maintainability. Moved ColorDepth,
32159           ImageSize, ImageStream and TransparentColor implementations to
32160           ImageCollection for better performance as these properties are not used
32161           by ImageList.
32162         * ImageListStreamer.cs: Added a new internal constructor that takes an
32163           ImageList.ImageCollection and serializes Images based on
32164           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
32165           match ImageList property name.
32166
32167 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
32168
32169         * ListBox.cs: Fixes IndexFromPoint for last item
32170
32171 2005-09-27  Jackson Harper  <jackson@ximian.com>
32172
32173         * Form.cs: Set the position of new mdi children correctly.
32174
32175 2005-09-27  Jackson Harper  <jackson@ximian.com>
32176
32177         * MdiClient.cs: New mdi children need to be added to the back of
32178         the controls collection so the zorder is set correctly. Also add a
32179         count of all the child windows that have been created.
32180
32181 2005-09-27  Jackson Harper  <jackson@ximian.com>
32182
32183         * Form.cs (CreateParams): Setup MDI forms correctly.
32184
32185 2005-09-27  Jackson Harper  <jackson@ximian.com>
32186
32187         * MdiChildContext.cs:
32188         * MonthCalendar.cs:
32189         * UpDownBase.cs:
32190         * ListBox.cs:
32191         * ListView.cs:
32192         * TextBoxBase.cs:
32193         * TreeView.cs:
32194         * ScrollableControl.cs:
32195         * ComboBox.cs: Add implicit controls using the new implict control
32196         functionality in ControlCollection. Also try to block multiple
32197         control add in a suspend/resume layout to save some cycles.
32198         
32199 2005-09-27  Jackson Harper  <jackson@ximian.com>
32200
32201         * Control.cs: Add functionality to the controls collection to add
32202         'implicit controls' these are controls that are created by the
32203         containing control but should not be exposed to the user. Such as
32204         scrollbars in the treeview.
32205         * Form.cs: The list var of the ControlsCollection is no longer
32206         available because of the potential of implicit controls getting
32207         ignored by someone accessing the list directly.
32208
32209 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
32210
32211         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
32212           loose it's parent. (Fixed bug introduced in r49103 when we added
32213           setting the child parent to null on Remove)
32214
32215 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
32216
32217         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
32218         * Splitter.cs: Added missing attributes for BorderStyle property.
32219         * TextBoxBase.cs: Marked Calculate* methods internal.
32220         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
32221         MS.NET.
32222
32223 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
32224          
32225         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
32226
32227 2005-09-25  Jackson Harper  <jackson@ximian.com>
32228
32229         * TreeView.cs: Update the node bounds correctly regardless of
32230         whether the node is visible.
32231
32232 2005-09-25  Jackson Harper  <jackson@ximian.com>
32233
32234         * ImageList.cs: Don't dispose the image after it is added to the
32235         image list. Only reformat images that need to be resized.
32236
32237 2005-09-25  Jackson Harper  <jackson@ximian.com>
32238
32239         * ImageList.cs: Don't set the format when changing the image.
32240
32241 2005-09-25  Jackson Harper  <jackson@ximian.com>
32242
32243         * TreeView.cs: We can't just assume the node has a font. Use the
32244         treeviews font if no node font is available.
32245
32246 2005-09-25  Jackson Harper  <jackson@ximian.com>
32247
32248         * TreeView.cs: Allow the scrollbars to be reset with negative
32249         values.
32250         - Don't add scrollbars to negative sized windows.
32251
32252 2005-09-23  Jackson Harper  <jackson@ximian.com>
32253
32254         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
32255         old Mono.Posix. Also remove some stray code that shouldn't have
32256         been committed.
32257
32258 2005-09-23  Jackson Harper  <jackson@ximian.com>
32259
32260         * TreeView.cs: Attempt at proper sizing of the horizontal
32261         scrollbar. Also don't resize the scrollbars unless they are
32262         visible.
32263
32264 2005-09-23  Jackson Harper  <jackson@ximian.com>
32265
32266         * TreeView.cs: We don't need to expand the invalid area when the
32267         selection changes, as this is all drawn in the node's bounding
32268         box. The area needs to be expanded (previous typo was contracting
32269         it) when the focus rect moves.
32270
32271 2005-09-23  Jackson Harper  <jackson@ximian.com>
32272
32273         * TreeView.cs: Display the selection box under the correct
32274         circumstances. We were rendering white text with no selection box
32275         before.
32276
32277 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
32278
32279         * TextControl.cs(Split): Now updates selection start/end if it points 
32280           into a line that's being split. Fixes a FIXME and bug #75258
32281
32282 2005-09-23  Jackson Harper  <jackson@ximian.com>
32283
32284         * Binding.cs:
32285         * ListControl.cs: Don't use the path when retrieving binding
32286         managers from the binding context. My bat sense tells me that the
32287         path is only used on insertion.
32288
32289 2005-09-22  Jackson Harper  <jackson@ximian.com>
32290
32291         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
32292
32293 2005-09-22  Jackson Harper  <jackson@ximian.com>
32294
32295         * Splitter.cs: There are special cursors used for splitting.
32296         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
32297
32298 2005-09-22  Jackson Harper  <jackson@ximian.com>
32299
32300         * Splitter.cs: Change the cursor appropriately when the splitter
32301         is moused over, so the user actually knows there is a splitter
32302         there.
32303
32304 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
32305
32306        * Label.cs : Fix ToString method to give same output as MS.NET
32307
32308 2005-09-22  Jackson Harper  <jackson@ximian.com>
32309
32310         * TreeView.cs: Create the scrollbars when the handle is created
32311         and add them right away, just make them invisble. Also account for
32312         the window being shrunk vertically to the point that the vert
32313         scrollbar needs to be added.
32314         - Remove some 0.5 adjustments to get around anti aliasing issues.
32315         
32316 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
32317          
32318         * MainMenu.cs: Fixes default value
32319         * MenuItem.cs: Fixes default value
32320
32321 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
32322
32323         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
32324
32325 2005-09-21  Jackson Harper  <jackson@ximian.com>
32326
32327         * Control.cs: Don't try to set the border style on the window if
32328         it hasn't been created. When the window is created the border
32329         style will be used.
32330
32331 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
32332
32333         * Control.cs (Update): Don't call XplatUI if we don't have a
32334           window handle yet
32335
32336 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
32337
32338         * ContainerControl.cs: Instead of throwing an exception, print
32339           a one-time warning about Validate not being implemented
32340         * XplatUIWin32.cs: Removed debug output
32341
32342 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
32343
32344         * Control.cs: Only set XplatUI background if we expect the windowing
32345           system to handle the background. This stops controls that draw their
32346           own background from flickering
32347
32348         * XplatUIX11.cs: Support custom visuals and colormaps for window 
32349           creation. This allows, amongst other things, using MWF X11 windows 
32350           with OpenGL.
32351
32352 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
32353
32354         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
32355           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
32356           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
32357           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
32358           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
32359           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
32360           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
32361           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
32362           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
32363           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
32364           GridColumnStylesCollection.cs, 
32365           IDataGridColumnStyleEditingNotificationService.cs,
32366           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
32367           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
32368           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
32369           TreeNodeCollection.cs, AmbientProperties.cs, 
32370           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32371           DataObject.cs, ErrorProvider.cs, Splitter.cs,
32372           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
32373           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
32374           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
32375           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
32376           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
32377           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
32378           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
32379           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
32380           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
32381           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
32382           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
32383           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
32384           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
32385           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
32386           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
32387           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
32388           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
32389           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
32390           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
32391           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
32392           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
32393           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
32394           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
32395           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
32396           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
32397           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
32398           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
32399           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
32400           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
32401           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
32402           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
32403           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
32404           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
32405           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
32406           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
32407
32408 2005-09-21  Jackson Harper  <jackson@ximian.com>
32409
32410         * TreeNode.cs: Call Before/After Expand not Collapse when
32411         expanding.
32412
32413 2005-09-20  Jackson Harper  <jackson@ximian.com>
32414         
32415         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
32416
32417 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
32418          
32419         * ListViewItem.cs:
32420                 - Fixes bug 76120
32421                 - Fixes proper storing of subitems
32422                 - Fixes not updated items
32423
32424 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
32425
32426         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
32427           things if our window handle isn't created yet. Also disabled 
32428           debug for TextBoxBase
32429
32430 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
32431
32432         * MenuAPI.cs: Remove filtering of events to allow menu usage
32433
32434 2005-09-20  Miguel de Icaza  <miguel@novell.com>
32435
32436         * Cursor.cs: Allow null to be passed to Cursor.Current.
32437
32438 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
32439
32440         * ThemeWin32Classic.cs:
32441           - Change some private methods/fields to protected virtual so that 
32442             they can be accessed and overriden in derived classes
32443           - First refactoring of some methods. Derived themes now don't 
32444             need to duplicate the complete code from ThemeWin32Classic
32445         * ThemeNice.cs:
32446           - Added nice StatusBar
32447           - Derive from ThemeWin32Classic and not Theme
32448           - Removed duplicate ThemeWin32Classic code
32449
32450 2005-09-20  Miguel de Icaza  <miguel@novell.com>
32451
32452         * Control.cs (ControlCollection.Add): If the value null is passed
32453         the control is ignored. 
32454
32455         Optimize this loop.
32456
32457 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
32458
32459         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
32460           PostQuitMessage state.
32461         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
32462
32463 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
32464
32465         * Application.cs: Our constructor will never get called, move 
32466           initialization to fields; fixes bug #75933
32467
32468 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
32469
32470         * FileDialog.cs :
32471                 - Allow files to be selected properly using file name
32472                 combo box.
32473                 - Add ability to change diretory (absolute / relative)
32474                 using file name combo box.
32475
32476 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
32477          
32478         * ListBox.cs: 
32479                 - Fixes Multicolumn listboxes item wrong calculations
32480                 - Allows to click when only one item is in the listbox
32481                 - Fixes crash when no items using keyboard navigation
32482
32483 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
32484
32485         * ComboBox.cs: Reverted almost everything from the latest patch which
32486           broke ComboBox
32487
32488 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
32489         
32490         * ToolTip.cs:
32491                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
32492         * ComboBox.cs:
32493                 - When DropDownStyle is Simple, it does not show scrollbar 
32494                 to the last item of the list.
32495                 - When DropDownStyle is Simple, it crashed when the list was 
32496                 scrolled down with the down cursor key.
32497                 - Fixed a bug that when DropDownStyle is DropDownList, the 
32498                 selected item was not shown.
32499                 - The position of the selected item was not preserved when 
32500                 the next dropdown happened.
32501         * ThemeWin32Classic.cs:
32502                 - Items were wrapped at the right end.
32503         * CheckedListBox.cs:
32504                 - Fixed Add method
32505         * ListBox.cs:
32506                 - Items should be fully shown.
32507                 - When resizing and vertical scrollbar disappeared, the item 
32508                 of index 0 should be on the top of the list.
32509                 - GetItemRectangle should consider the size of ver. scrollbar
32510         * StatusBar.cs:
32511                 - SizingGrip area should not be allocated when it is not 
32512                 displayed.
32513                 - Now it reflects MinWidth of the containing panel and 
32514                 fixed a crash that happens when its width becomes so small.
32515
32516 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
32517
32518         * CheckedListBox.cs: Fixes bug 76028
32519         * ListBox.cs: Fixes bug 76028
32520
32521 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
32522
32523         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
32524         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
32525
32526 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
32527
32528         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
32529
32530 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
32531
32532         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
32533
32534 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
32535
32536         * IRootGridEntry.cs: Added
32537         * PropertyGridCommands.cs: Added
32538         * PropertiesTab.cs: Added missing methods and property
32539         * PropertyGridView.cs: Made class internal
32540         * PropertyGridTextBox.cs: Made class internal
32541
32542 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32543
32544         * MimeIcon.cs: Try to check some other environment variables
32545           if "DESKTOP_SESSION" returns "default"
32546
32547 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32548
32549         * ThemeNice.cs: Corrected background colors (e.g. menus)
32550         * ColorDialog.cs: Use correct background colors for controls
32551
32552 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32553
32554         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
32555
32556 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
32557
32558         * RichTextBox.cs: Added initial implementation
32559         * lang.cs: Removed. Was accidentally checked in long time ago
32560         * TODO: Removed. Contents were obsolete
32561
32562 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
32563                                                                                 
32564         * PropertiesTab.cs : Added
32565
32566 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
32567                                                                                 
32568         * PropertyGrid.cs : Update
32569         * PropertyGridView.cs : Update
32570         * System.Windows.Forms.resx : Added images and strings
32571
32572 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
32573
32574         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
32575  
32576 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
32577
32578         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
32579           a busy loop right after the Ungrab the X11 display is otherwise 
32580           blocked
32581
32582 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
32583
32584         * ThemeWin32Classic.cs: Optimise the use of clipping
32585
32586 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
32587
32588         * DataGrid.cs: fixes recursion bug
32589
32590 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
32591
32592         * ThemeNice.cs: 
32593           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
32594           - Cleanup
32595
32596 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
32597
32598         * ThemeNice.cs: Draw nice ProgressBars
32599
32600 2005-09-01  Miguel de Icaza  <miguel@novell.com>
32601
32602         * VScrollBar.cs: Another buglet found by Aaron's tool. 
32603
32604         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
32605         bug finder.
32606
32607 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
32608
32609         * ThemeNice.cs:
32610           - Added nicer menu drawing
32611           - Updated DrawTab
32612           - some refactoring
32613
32614 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
32615
32616         * CreateParams.cs (ToString): Made output match MS
32617         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
32618             handle is already created (to avoid forcing window creation)
32619         * XplatUIX11.cs: Set window text to caption after creating window,
32620           in case Text was set before window was created
32621         * Form.cs: Use this.Text instead of a static string as caption
32622
32623 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
32624
32625         * NotifyIcon.cs: Don't set the window to visible; this screws
32626           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
32627           OnPaint without a bitmap)
32628         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
32629           happen very often anyway; we could add the check to the WM_PAINT 
32630           event generation code
32631
32632 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
32633
32634         * NotifyIcon.cs: Fill the icon area with a background color, to 
32635           avoid 'residue' when transparent icons are drawn
32636         * XplatUIX11.cs:
32637           - Handle whole_window == client_window when destroying windows
32638           - SystrayAdd(): Set client_window to whole_window value to
32639             get mouse and other events passed to NotifyIcon
32640
32641 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
32642
32643         * Form.cs: Set proper default for Opacity property
32644         * NotifyIcon.cs:
32645           - ShowSystray(): Don't bother creating telling the OS
32646             about the systray item if no icon is provided
32647           - Now handles WM_NCPAINT message to deal with whole/client window
32648             split
32649           - Create window as visible to not get caught by Expose optimization
32650         * Hwnd.cs: Removed debug message
32651         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
32652           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
32653             PaintEventStart/End to use new client argument
32654         * TextBoxBase.cs:
32655           - Commented out debug messages
32656           - Switched PaintEventStart/End to use new client argument
32657         * XplatUI.cs: Added client window bool to PaintEventStart()/
32658           PaintEventEnd() calls, to support drawing in non-client areas
32659         * XplatUIDriver.cs: 
32660           - Added client window bool to PaintEventStart()/PaintEventEnd() 
32661             calls, to support drawing in non-client areas
32662           - Added conditional compile to allow using MWF BeginInvoke 
32663             on MS runtime
32664         * XplatUIX11.cs:
32665           - Added some conditional debug output
32666           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
32667             whole/client window split
32668           - Implemented handling of client argument to PaintEventStart()/End()
32669         * Control.cs:
32670           - Throw exception if BeginInvoke() is called and the window handle
32671             or one of the window's parent handles is not created
32672           - Added conditional compile to allow using MWF BeginInvoke on
32673             MS runtime
32674           - get_Parent(): Only sets parent if handle is created. This avoids
32675             forcing window handle creation when parent is set.
32676           - Now fires Layout and Parent changed events in proper order
32677           - Switched to use Handle instead of window.Handle for Z-Order setting,
32678             the get_Parent() patch above causes us to possibly get null for 'window'
32679           - Implemented handling of client argument to PaintEventStart()/End()
32680           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
32681             default handling)
32682           - Now sends a Refresh() to all child windows when Refresh() is called
32683
32684 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
32685
32686         * Form.cs: Added (non-functional) Opacity property
32687         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
32688
32689 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
32690         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
32691           use export MONO_THEME=nice to activate it.
32692           Currently supported controls:
32693           - Button
32694           - ComboBox
32695           - ScrollBar
32696           - TabControl (TabAlignment.Top only, other will follow)
32697         * ThemeEngine.cs: Add theme nice
32698         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
32699           if enabled
32700
32701 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
32702
32703         * Splitter.cs: Resize docked control and its neighbor.
32704
32705 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32706         -- Making Windows with Menus layout correctly --
32707         * Form.cs : The first leg of the fix
32708                 Menu setter - adjust Client Size as needed to make space for the menu
32709                 SetClientSizeCore - doesn't call base version to be able to pass the 
32710                         menu handle to XplatUI.CalculateWindowRect
32711         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
32712         * XplatUIX11.cs: The critical second leg of the fix
32713                 GetWindowPos needs to use a recalculated client_rect
32714                 so that resizing the window doesn't break layout of child controls. 
32715                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
32716                 Lots of \t\n killed
32717
32718 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
32719
32720         * Label.cs: Now properly recalculates width and height on Font and Text
32721           changes if AutoSize is set
32722
32723 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32724         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
32725
32726 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
32727
32728         * ImageList.cs: Makes ToString method compatible with MS
32729
32730 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
32731
32732         * MenuAPI.cs: fixes bug 75716
32733
32734 2005-08-11 Umadevi S <sumadevi@novell.com>
32735         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
32736
32737 2005-08-11 Umadevi S <sumadevi@novell.com>
32738         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
32739
32740 2005-08-10  Umadevi S <sumadevi@novell.com>
32741         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
32742
32743 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
32744
32745         * Menu.cs: fixes bug 75700
32746         * MenuAPI.cs: fixes navigation issues
32747
32748 2005-08-09  Umadevi S <sumadevi@novell.com>
32749         * CheckedListBox.cs - simple fix for GetItemChecked.
32750
32751 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
32752
32753         * ComboBox.cs: Serveral fixes
32754         * ListBox.cs: Serveral fixes
32755
32756 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32757
32758         * ComboBox.cs: Fixes FindString methods and GetItemHeight
32759         * ListBox.cs: Fixes FindString methods
32760
32761 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32762
32763         * DataGrid.cs: fixes bugs exposed by new tests
32764
32765 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
32766
32767         * Mime.cs: Compile Mono assembly references only if compiling
32768           with Mono (Allows to build with VS.Net again)
32769
32770 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
32771
32772         * Control.cs (PaintControlBackground): Draw background image
32773         corrrectly.
32774         (CheckForIllegalCrossThreadCalls): Stubbed.
32775         
32776         * Form.cs (OnCreateControl): Center when should be centered.
32777         
32778         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
32779
32780 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
32781
32782         * Binding.cs: Binding to properties should be case unsensitive
32783
32784 2005-07-18 vlindos@nucleusys.com
32785
32786         * DataGrid.cs: fixes setmember order
32787
32788 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
32789
32790         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
32791         * FileDialog.cs: FileDialog is now resizable and uses the new
32792           MimeIconEngine
32793
32794 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
32795
32796         * DataGridTextBoxColumn.cs: default value
32797         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
32798         * GridTableStylesCollection.cs: fixes checking MappingName
32799         * DataGridDrawingLogic.cs: fixes drawing logic issues
32800         * DataSourceHelper.cs: rewritten to make compatible with more data sources
32801         * DataGrid.cs: fixes    
32802
32803 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
32804
32805         * MimeGenerated.cs: Use case sensitive comparer for
32806           NameValueCollections
32807
32808 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
32809
32810         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
32811         * ThemeWin32Classic.cs: bug fixes, code refactoring
32812         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
32813         * DataGrid.cs: bug fixes, code refactoring
32814         * DataGridTextBox.cs: bug fixes, code refactoring
32815         * DataGridColumnStyle.cs:  bug fixes, code refactoring
32816         * Theme.cs:  bug fixes, code refactoring
32817
32818 2005-07-01  Peter Bartok  <pbartok@novell.com> 
32819
32820         * TextControl.cs: Quick fix for the reported crash on ColorDialog
32821           and other text box usage
32822
32823 2005-07-01  Jackson Harper  <jackson@ximian.com>
32824
32825         * TabControl.cs: Make sure the bottom of the tab covers the pages
32826         border.
32827
32828 2005-06-30  Peter Bartok  <pbartok@novell.com> 
32829
32830         * Form.cs (ShowDialog): Assign owner of the dialog
32831         * TextBoxBase.cs: Always refresh caret size when deleting, caret
32832           might have been moved to a tag with different height
32833
32834 2005-06-30  Jackson Harper  <jackson@ximian.com>
32835
32836         * Form.cs: Don't create an infinite loop when setting focus
32837         * MenuItem.cs: Don't dirty the parents if we don't have any
32838
32839 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
32840
32841         * LibSupport.cs: Rename
32842
32843 2005-06-29  Peter Bartok  <pbartok@novell.com>
32844
32845         * TextBoxBase.cs: Re-align caret after deleting a character
32846         * TextControl.cs:
32847           - DeleteChars(): Ensure that tag covers the provided position
32848           - StreamLine(): Drop reference for dropped tag
32849
32850 2005-06-29  Peter Bartok  <pbartok@novell.com> 
32851
32852         * TextControl.cs: 
32853           - Selections now work properly, anchoring at the initial location
32854             and properly extending in either direction (SetSelectionToCaret(),
32855             SetSelectionStart() and SetSelectionEnd())
32856           - No longer redraws the whole control on selection change, now
32857             calculates delta between previous and new selection and only
32858             invalidates/redraws that area
32859           - Fixed FindPos() math off-by-one errors
32860           - Changed DeleteChars() to verify the provided tag covers the
32861             provided position, selections may have a tag that doesn't cover
32862             the position if the selection is at a tag border
32863           - Fixed off-by-one errors in DeleteChars()
32864           - Added missing streamlining check in DeleteChars() to remove
32865             zero-length tags
32866           - Implemented Invalidate() method, now properly calculates exposures
32867             between two given lines/positions
32868           - Implemented SetSelection()
32869           - Obsoleted and removed FixupSelection()
32870           - Improved RecalculateDocument() logic, removing code duplication
32871
32872 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32873
32874         * LibSupport.cs: changes to match different input/output arguments.
32875
32876 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32877
32878         * LibSupport.cs: added libsupport.so init routine.
32879
32880 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
32881         
32882         * ControlBindingsCollection.cs
32883                 - Throws an exception on null datasource when adding
32884                 - Checks for duplicated bindings when adding
32885
32886 2005-06-28  Jackson Harper  <jackson@ximian.com>
32887
32888         * TreeView.cs (OnKeyDown): Support left and right properly
32889         (navigates as well as expanding and collapsing.
32890         - Add support for Multiply, this expands all the selected nodes
32891         children.
32892         - Fix some tabbing.
32893
32894 2005-06-28  Jackson Harper  <jackson@ximian.com>
32895
32896         * TreeView.cs: Implement keyboard navigation, currently supports,
32897         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
32898         support for toggling checkboxes with the space bar.
32899
32900 2005-06-28  Jackson Harper  <jackson@ximian.com>
32901
32902         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
32903         tree.
32904
32905 2005-06-28  Jackson Harper  <jackson@ximian.com>
32906
32907         * TreeView.cs: Add missing event.
32908
32909 2005-06-27  Peter Bartok  <pbartok@novell.com> 
32910
32911         * TextControl.cs:
32912           - Made line ending size configurable (now allows for counting 
32913             lineendings as \n or \r\n)
32914           - Added margin to viewport to keep caret visible on right side
32915           - Fixed translation routines for line/pos to documentpos to consider
32916             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
32917           - Fixed some line-endings to be unix style
32918           - Fixed Document.FormatText to perform it's calculations 1-based
32919           - Added descriptions for a few methods that might otherwise get 
32920             used wrong
32921           - Added NOTE section with some basic conventions to remember at 
32922             the top of the file
32923           - Major fixup for RichTextBox selection drawing:
32924             * Fixed crashes when multiple tags on a single line were selected
32925             * fixed selection box drawing not overlaying text
32926             * fixed bogus offset calculation for tags not starting at index 1
32927             * Switched behaviour from using multiple Substrings of a 
32928               StringBuilder.ToString() to using multiple 
32929               StringBuilder.ToString(start, length) statements, hoping this is
32930               faster (kept original version commented out in the code, in case
32931               original version was faster)
32932         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
32933           alignment != Left
32934         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
32935           call it as well
32936
32937 2005-06-27  Jackson Harper  <jackson@ximian.com>
32938
32939         * TabControl.cs: Move to the left and right with the arrow
32940         keys. These keys don't cycle beyond first and last like
32941         tab. Refresh all the tabs when scrolling them to the left or
32942         right.
32943
32944 2005-06-27  Jackson Harper  <jackson@ximian.com>
32945
32946         * TabControl.cs:
32947           - ToString: Added method
32948           - CreateParams: Remove TODO and comment
32949           - OnKeyDown: Cycle through bounds properly.
32950           - SelectedIndex: Scroll to the right or left if we need to
32951           display the newly selected tab.
32952
32953 2005-06-23  Jackson Harper  <jackson@ximian.com>
32954
32955         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
32956         set.
32957
32958 2005-06-23  Jackson Harper  <jackson@ximian.com>
32959
32960         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
32961         CTRL-SHIFT-TAB, and HOME, END are there any others?
32962
32963 2005-06-23  Jackson Harper  <jackson@ximian.com>
32964
32965         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
32966
32967 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
32968         
32969         * DataGridTextBoxColumn.cs: fixes and enhancements
32970         * ThemeWin32Classic.cs: fixes and enhancements
32971         * DataGridBoolColumn.cs:  fixes and enhancements
32972         * DataGridDrawingLogic.cs:  fixes and enhancements
32973         * CurrencyManager.cs: fixes and enhancements
32974         * DataGrid.cs: fixes and enhancements
32975         * DataGridColumnStyle.cs:  fixes and enhancements
32976
32977 2005-06-22  Jackson Harper  <jackson@ximian.com>
32978
32979         * TabControl.cs: Add some missing methods that just call into the
32980         base. Make the TabPageCollection's IList interface behave in the
32981         same manner as the MS implementation.
32982
32983 2005-06-22  Peter Bartok  <pbartok@novell.com> 
32984
32985         * TextControl.cs: Added sanity check
32986         * TextBoxBase.cs: 
32987           - Fixed wrapping behaviour, don't set wrap on single line controls
32988             (this fixes the breakage of colordialog introduced in an earlier
32989              checkin)
32990           - Added rudimentary support for autoscrolling right-aligned controls
32991             (still needs fixing, also, center alignment scroll is missing)
32992
32993 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
32994         
32995         * ScrollBar.cs: Fixes thumbpos on Maximum values
32996
32997 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
32998         
32999         * PropertyGridView.cs: Pass context information to UITypeEditors 
33000
33001 2005-06-21  Peter Bartok  <pbartok@novell.com> 
33002
33003         * TextBoxBase.cs:
33004           - Now calling PositionCaret with absolute space coordinates
33005           - Enabled vertical scrolling
33006           - Better tracking of scrollbar changes, tied into WidthChange
33007             event
33008           - Improved cursor tracking
33009           - Removed debug output
33010         * TextControl.cs:
33011           - PositionCaret coordinates are now works in absolute space, not 
33012             the canvas
33013           - Improved tracking of document size
33014           - Added events for width and height changes
33015
33016 2005-06-21  Peter Bartok  <pbartok@novell.com>
33017
33018         * Form.cs: Set focus to active control when form is activated
33019         * TextControl.cs: 
33020           - Added word-wrap functionality to RecalculateLine() 
33021           - Added some short function descriptions for VS.Net to aid in
33022             writing dependent controls
33023           - Added Caret property, returning the current coords of the caret
33024           - Added ViewPortWidth and ViewPortHeight properties
33025           - Added Wrap property
33026           - Added CaretMoved event
33027           - Removed some old debug code
33028           - Split() can now create soft splits
33029           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
33030           - Added method to format existing text
33031           - Fixed size/alignment calculations to use viewport
33032           - RecalculateDocument now can handle changing line-numbers while
33033             calculating lines
33034
33035         * TextBox.cs:
33036           - Added some wrap logic, we don't wrap if alignment is not left
33037           - Added casts for scrollbar var, base class switched types to
33038             also support RichTextBoxA
33039           - Implemented handling of scrollbar visibility flags
33040
33041         * TextBoxBase.cs:
33042           - Switched scrollbars type to RichTextBoxScrollBars to support
33043             RichTextBox
33044           - Added tracking of canvas width/height
33045           - Switched scrollbars to be not selectable (to keep focus on text)
33046           - Added central CalculateDocument() method to handle all redraw
33047             requirements
33048           - Added ReadOnly support
33049           - Added WordWrap support
33050           - Fixed handling of Enter key (we now treat it as a DialogKey)
33051           - Fixed caret positioning when h or v scroll is not zero
33052           - Fixed placing/generation of vertical scrollbar
33053           - Added CalculateScrollBars() method to allow updating scrollbar
33054             limits and visibility
33055           - Fixed handling of horizontal scroll
33056           - Added handling of vertical scroll
33057           - Implemented auto-'jump' when caret moves to close to a left or
33058             right border and there is text to be scrolled into view (currently
33059             there's the potential for a stack overflow, until a bug in
33060             scrollbar is fixed)
33061
33062 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
33063         
33064         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
33065
33066 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
33067
33068         * Mime.cs:
33069         - added inodes.
33070         - return application/x-zerosize for files with size zero
33071           (if no extension pattern matches).
33072         - check matches collection for strings too.
33073         - return only the first mime type if the name value
33074           collection has more than one mime type.
33075
33076 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
33077         
33078         * PropertyGrid.cs: Cleaned up some TODOs
33079         * PropertyGridView.cs: Added support for UITypeEditors
33080
33081 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
33082         
33083         * DataGrid.cs: clears cached value
33084
33085 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
33086
33087         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
33088         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
33089         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
33090         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
33091         
33092 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
33093
33094         * ThemeWin32Classic.cs: fixes colour
33095
33096 2005-06-15  Peter Bartok  <pbartok@novell.com>
33097
33098         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
33099         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
33100         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
33101         * Control.cs: Added some MWFCategory and MWFDescription attributes
33102         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
33103
33104 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
33105
33106         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
33107         usage
33108
33109 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
33110
33111         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
33112         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
33113         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
33114         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
33115         * DataGrid.cs: default datagrid settings for Default Styles, fixes
33116         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
33117
33118 2005-06-13  Jackson Harper  <jackson@ximian.com>
33119
33120         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
33121         isn't printed when the user enables dropping. (X11 does accept
33122         drops).
33123         
33124 2005-06-13  Jackson Harper  <jackson@ximian.com>
33125
33126         * TreeView.cs: Remove some TODOS.
33127
33128 2005-06-13  Jackson Harper  <jackson@ximian.com>
33129
33130         * Form.cs: Hook into the mdi framework.
33131         * MdiClient.cs: Use the base control collections add method so
33132         parents get setup correctly. Set the default back colour and dock
33133         style.
33134         * MdiChildContext.cs: New class, this bad actor handles an
33135         instance of an MDI window. Right now there is only basic
33136         support. You can drag, close, and resize windows. Minimize and
33137         Maximize are partially implemented.
33138
33139 2005-06-13  Jackson Harper  <jackson@ximian.com>
33140
33141         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
33142         freaky when both vals are negative. NOTE: There are probably other
33143         places in XplatUIX11 that this needs to be done.
33144
33145 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
33146
33147         * DataGrid.cs: implement missing methods, move KeyboardNavigation
33148         * DataGridColumnStyle.cs: fixes signature
33149
33150 2005-06-12  Jackson Harper  <jackson@ximian.com>
33151
33152         * XplatUIX11.cs: Use sizing cursors similar to the ones on
33153         windows.
33154
33155 2005-06-11  Jackson Harper  <jackson@ximian.com>
33156
33157         * StatusBarPanel.cs: Signature cleanups. Implement
33158         BeginInit/EndInit.
33159
33160 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
33161
33162         * DataGridTextBoxColumn.cs: Honors aligment
33163         * GridColumnStylesCollection.cs: Contains is case unsensitive
33164         * GridTableStylesCollection.cs: several fixes
33165         * DataGridTableStyle.cs: default column creation
33166         * DataGridDrawingLogic.cs: fixes
33167         * CurrencyManager.cs: ListName property
33168         * DataGrid.cs: multiple styles support
33169         * DataGridColumnStyle.cs: fixes
33170         
33171
33172 2005-06-10  Peter Bartok  <pbartok@novell.com>
33173
33174         * Control.cs(Select): Moved SetFocus call to avoid potential
33175           loops if controls change the active control when getting focus
33176         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
33177           the up/down buttons
33178
33179 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
33180
33181         * ImageListConverter.cs: Implemented
33182
33183 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
33184
33185         * MonthCalendar.cs: Wired in NumericUpDown control for year
33186
33187 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
33188
33189         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
33190           DoubleClick events, since they are not meant to be fired.
33191
33192 2005-06-09  Peter Bartok  <pbartok@novell.com>
33193
33194         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
33195           Jonathan's standalone controls into MWF, implemented missing
33196           events, attributes and methods; added xxxAccessible classes
33197         * AccessibleObject.cs: Made fields internal so other classes
33198           can change them if needed
33199
33200 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
33201
33202         * UpDownBase.cs: Complete implementation
33203         * NumericUpDown.cs: Complete implementation
33204         * DomainUpDown.cs: Complete implementation
33205
33206 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
33207
33208         * DataGridTextBoxColumn.cs: drawing fixes
33209         * DataGridCell.cs: fixes ToString method to match MSNet
33210         * DataGridTableStyle.cs: fixes
33211         * DataGridBoolColumn.cs: fixes, drawing
33212         * DataGridDrawingLogic.cs: fixes, new methods
33213         * DataGridTextBox.cs: Keyboard and fixes
33214         * DataGrid.cs:
33215                 - Keyboard navigation
33216                 - Scrolling fixes
33217                 - Row selection (single, multiple, deletion, etc)
33218                 - Lots of fixes
33219         
33220 2005-06-07  Jackson Harper  <jackson@ximian.com>
33221
33222         * ThemeWin32Classic.cs: Clear the background area when drawing
33223         buttons.
33224
33225 2005-06-06  Peter Bartok  <pbartok@novell.com>
33226
33227         * ImageListStreamer.cs: Fixed signature for GetData
33228         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
33229         * ComboBox.cs:
33230           - Added missing ChildAccessibleObject class
33231           - Added missing OnXXXFocus overrides, switched to using those
33232             instead of the event handler
33233         * Control.cs:
33234           - Added Parent property for ControlAccessibleObject
33235           - Fixed signatures
33236           - Fixed attributes
33237           - Added ResetBindings()
33238         * ListBindingConverter.cs: Implemented some methods
33239         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
33240         * ImageList.cs: Implemented basic handle scheme, removed TODOs
33241         * ContainerControl.cs: Fixed signature, now subscribing to the
33242           ControlRemoved event instead of overriding the handler, LAMESPEC
33243         * CurrencyManager.cs: Added missing attribute
33244         * MonthCalendar.cs: Added missing properties
33245
33246 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
33247
33248         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
33249         
33250 2005-06-06  Gaurav Vaish and Ankit Jain
33251
33252         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
33253         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
33254         
33255 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
33256
33257         * Control.cs: fixes CreateParams Width / Height.
33258
33259 2005-06-05  Peter Bartok  <pbartok@novell.com>
33260
33261         * Win32DnD.cs: Removed compilation warnings
33262
33263 2005-06-05  Peter Bartok  <pbartok@novell.com>
33264
33265         * Control.cs (CreateParams): Since we don't know if one of the
33266           properties we use is overridden, lets make sure if we fail accessing
33267           we continue with a backup plan
33268
33269 2005-06-05  Peter Bartok  <pbartok@novell.com>
33270
33271         * Win32DnD.cs:
33272           - Removed debug output
33273           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
33274             struct
33275           - Plugged resource leak
33276         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
33277           MS size
33278
33279 2005-06-05  Peter Bartok  <pbartok@novell.com>
33280
33281         * XplatUIWin32.cs: Removed DnD code
33282         * Win32DnD.cs: Implemented drop source and drop target functionality
33283
33284 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33285
33286         * UpDownBase.cs: remove duplicate addition of event, enable some code
33287         that was commented out.
33288         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
33289         Validate input when a key is pressed. It works fine now for every
33290         combination of Hexadecimal. Only missing some drawing love when sharing
33291         space with other controls.
33292
33293 2005-06-04  Peter Bartok  <pbartok@novell.com>
33294
33295         * Control.cs:
33296           - We need to pass a window for DragDrop, so enable callback events
33297           - Added DnD callback events when being a DragSource
33298         * XplatUI.cs (StartDrag): Added window handle argument
33299         * XplatUIDriver.cs (StartDrag): Added window handle argument
33300         * QueryContinueDragEventArgs: Made fields internally accessible so
33301           drivers can set them
33302         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
33303           can set them
33304
33305 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
33306
33307         * DataGridTextBoxColumn.cs: column text editing
33308         * DataGridTableStyle.cs: Respect columns styles created by the user
33309         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
33310         * DataGridBoolColumn.cs: bool column editing
33311         * DataGrid.cs: fixes to scrolling, properties, etc
33312         * DataGridTextBox.cs: handle keyboard
33313         * DataGridColumnStyle.cs: fixes
33314
33315 2005-06-02  Jackson Harper  <jackson@ximian.com>
33316
33317         * ImageListStreamer.cs: Somewhat broken implementation of
33318         GetObjectData. The RLE needs some work to match MS properly.
33319
33320 2005-06-02  Jackson Harper  <jackson@ximian.com>
33321
33322         * X11Dnd.cs: Attempting to keep at least one file in MWF
33323         monostyled.
33324
33325 2005-06-02  Peter Bartok  <pbartok@novell.com>
33326
33327         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
33328           that way
33329
33330 2005-06-02  Peter Bartok  <pbartok@novell.com>
33331
33332         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
33333         * XplatUI.cs: Added DoDragDrop() method
33334         * XplatUIDriver.cs: Added DoDragDrop() method
33335
33336 2005-06-02  Jackson Harper  <jackson@ximian.com>
33337
33338         * Splitter.cs: Implement BorderStyle.
33339
33340 2005-06-02  Jackson Harper  <jackson@ximian.com>
33341
33342         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
33343         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
33344         X11 using XDND.
33345
33346 2005-06-02  Peter Bartok  <pbartok@novell.com>
33347
33348         * DataObject.cs:
33349           - Added Data setter
33350           - Fixed broken insertion code for SetData, now also
33351             overwrites any existing entry of the same format name
33352         * Hwnd.cs: Added list of pointers that automatically gets
33353           freed when the window is disposed
33354         * XplatUI.cs: Call driver initialization method when loading
33355           a driver
33356         * Control.cs:
33357           - OnDragLeave takes EventArgs, not DragEventArgs
33358           - Added setting of WS_EX_ACCEPTFILES style when dropping is
33359             supported
33360           - Forces style update when drop state changes
33361         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
33362           not perfect since we cannot (yet) call the IDataObject.GetData()
33363           method, we keep getting 0x80004005 error, dunno why)
33364
33365 2005-06-02  Peter Bartok  <pbartok@novell.com>
33366
33367         * DragEventArgs.cs: Make fields internal so we can cache the
33368           object and re-set the fields from XplatUI
33369
33370 2005-06-02  Jackson Harper  <jackson@ximian.com>
33371
33372         * Control.cs: Add some internal methods so the DnD subsystem can
33373         raise DnD events. Also call into the driver when AllowDrop is set.
33374         * XplatUI.cs:
33375         * XplatUIDriver.cs: New method for setting whether or not a window
33376         is allowed to accept drag and drop messages.
33377                 
33378 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
33379         
33380         * ScrollBar.cs: Make sure that values sent in Scroll events
33381         are always between Maximum and Minimum.
33382
33383 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
33384
33385         * Menu.cs: Call MenuChanged when menuitem visibility has been
33386         changed.
33387         * MenuItem.cs: Rebuild menu when item is (not) visible.
33388         * MainMenu.cs: MainMenu has special MenuChanged.
33389         * Theme.cs: Caption and FrameBorderSize are not fixed.
33390         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
33391         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
33392         * XplatUIX11.cs,
33393         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
33394         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
33395
33396 2005-05-30  Jackson Harper  <jackson@ximian.com>
33397
33398         * DataFormat.cs: We can't statically initialize this stuff because
33399         it calls into the xplatui and could create a loop. So we lazy init
33400         it.
33401
33402 2005-05-28  Jackson Harper  <jackson@ximian.com>
33403
33404         * Control.cs: Proper implementation of Product(Name/Version).
33405
33406 2005-05-27  Jackson Harper  <jackson@ximian.com>
33407
33408         * DataObject.cs: Dont crash if no data is found.
33409
33410 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
33411         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
33412                 as per status page, guessing it should be set to true
33413
33414 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
33415
33416         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
33417         * DataGridTableStyle.cs: set proper formatting text, def header text
33418         * ThemeWin32Classic.cs: new themable paramaters
33419         * DataGridBoolColumn.cs: paint check box, get data, fixes
33420         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
33421         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
33422         * DataGridColumnStyle.cs: fixes
33423         * Theme.cs: new themable paramaters
33424                 
33425 2005-05-26  Peter Bartok  <pbartok@novell.com>
33426
33427         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
33428
33429 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33430         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
33431
33432 2005-05-24  Peter Bartok  <pbartok@novell.com>
33433
33434         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
33435           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
33436           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
33437           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
33438           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
33439           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
33440           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
33441           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
33442           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
33443           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
33444           missing attributes, etc
33445         * DataGridPreferredColumnWidthTypeConverter.cs: Added
33446
33447 2005-05-24  Peter Bartok  <pbartok@novell.com>
33448
33449         * Help.cs: Added, implemented trivial functions, throws up MessageBox
33450           when user tries to get help
33451         * DataObject.cs, DataFormats.cs, LinkArea.cs,
33452           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
33453           to suppress warnings
33454         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
33455           avoid unreachable code warning
33456
33457 2005-05-20  Peter Bartok  <pbartok@novell.com>
33458
33459         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
33460
33461 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33462
33463         * DataGridTextBoxColumn.cs: Basic painting methods
33464         * DataGridTableStyle.cs: Set table style in the column
33465         * ThemeWin32Classic.cs: Use Theme for colors
33466         * DataGridDrawingLogic.cs: Implement more drawing
33467         * DataGrid.cs: drawing, theming, enhacements, fixes
33468         * DataGridColumnStyle.cs: fixes, drawing
33469         * Theme.cs: theming for Datagrid
33470
33471 2005-05-20  Peter Bartok  <pbartok@novell.com>
33472
33473         * Cursor.cs: Implemented GetObjectData() method
33474
33475 2005-05-20  Peter Bartok  <pbartok@novell.com>
33476
33477         * Cursors.cs: Added setting of cursor name
33478         * Cursor.cs:
33479           - Implemented constructors
33480           - Implemented Draw and DrawStretched
33481           - Implemented Current property
33482           - Implemented == and != operators
33483           - Implemented Dispose()
33484           - Implemented ToString
33485           - Added missing attributes
33486         * XplatUIX11.cs:
33487           - Added missing reset for OverrideCursor when DoEvents is called
33488           - Fixed creation of cursor, logic was wrong
33489         * XplatUIWin32.cs:
33490           - Added missing reset for OverrideCursor when DoEvents is called
33491           - Fixed creation of cursor, bit arrays were swapped
33492         * Clipboard.cs: Removed obsolete MonoTODO attribute
33493
33494 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33495
33496         * ComboBox.cs: fixes OnSelectedItemChanged
33497         * ControlBindingsCollection.cs: fixes item range check
33498
33499 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33500
33501         * UpDownBase.cs:
33502                 - Calc preferred height properly
33503                 - Implement missing properties
33504                 
33505         * NumericUpDown.cs: Implement missing events
33506
33507 2005-05-19  Jackson Harper  <jackson@ximian.com>
33508
33509         * TabControl.cs: New method that resizes the tab pages before
33510         redrawing them. This as needed as the control is double buffered
33511         and sizing will not be recalculated unless ResizeTabPages is
33512         called.
33513         * TabPage.cs: Set base.Text instead of Text in the constructor so
33514         that UpdateOwner does not get called. Use the new Redraw method of
33515         TabControl instead of Refresh so the sizing is recalculated.
33516         * ThemeWin32Classic.cs: Draw the text for button tabs.
33517
33518 2005-05-19  Jackson Harper  <jackson@ximian.com>
33519
33520         * Control.cs: Paint control background images. Fix typo where
33521         PaintControlBackground was not getting called correctly.
33522
33523 2005-05-19  Peter Bartok  <pbartok@novell.com>
33524
33525         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
33526           I can investigate, apparently I broke FileDialog
33527
33528 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
33529
33530         * AxHost.cs: Some simple properties.
33531         * Control.cs: window must be accessible after ctor.
33532         * Form.cs: Added TransparencyKey property.
33533         * TextBoxBase.cs: Implemented Clear. Text property can be null.
33534         * XplatUIWin32.cs: SetBorderStyle implemented.
33535
33536 2005-05-18  Peter Bartok  <pbartok@novell.com>
33537
33538         * DataObject.cs: Entries are not global but particular to the
33539           DataObject, now it behaves that way
33540         * XplatUIWin32.cs: Implemented Clipboard methods
33541         * Clipboard.cs: Implemented
33542         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
33543         * XplatUIOSX.cs: Updated to final clipboard prototypes
33544         * XplatUIX11.cs: Implemented Clipboard methods
33545         * XplatUIDriver.cs: Updated to final clipboard prototypes
33546         * XplatUIStructs.cs:
33547           - Added BITMAPINFOHEADER struct
33548           - Added ClipboardFormats enum
33549         * X11Structs.cs:
33550           - Added ClipboardStruct
33551           - Added Atom enum items for clipboard types
33552           - Fixed atom types for Selection event structures
33553         * DataFormats.cs:
33554           - Added internal properties and methods for drivers to enumerate
33555             all known formats
33556           - Switched initialization method to allow drivers to assign their
33557             own IDs even for the MS predefined clipboard IDs
33558         * XplatUI.cs: Updated to final clipboard interface
33559
33560 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33561         * PropertyGridView.cs: Fixed compiler warnings.
33562
33563 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33564         * PropertyGrid.cs: Added some event calls
33565         * PropertyGridView.cs: Change drawing code to use double buffering
33566         * PropertyGridTextBox.cs: Changed Text property name
33567         * GridItem.cs: Added Bounds property.
33568         * GridEntry.cs: Added Bounds property.
33569
33570 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
33571
33572         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
33573         since GetType() may not return the correct type if the object is
33574         a remoting proxy.
33575
33576 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
33577
33578         * TreeNodeCollection.cs: fixes get/set item ranges
33579         
33580 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
33581
33582         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
33583                 
33584 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
33585
33586         * ComboBox.cs: Fix item range comparation
33587         * ListView.cs: Fix item range comparation
33588
33589 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
33590
33591         * FontDialog.cs:
33592           - Clear example panel when OnPaint is called
33593           - Better solution for displaying the example panel text
33594           - Select default indexes in the ListBoxes
33595
33596 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
33597
33598         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
33599
33600 2005-05-11  Peter Bartok  <pbartok@novell.com>
33601
33602         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
33603         * SelectionRangeConverter.cs: Implemented
33604         * PropertyGrid.cs: Fixed attribute value
33605         * Control.cs:
33606           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
33607           - Added Sebastien Pouliot's CAS Stack Propagation fixes
33608         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
33609           that's common to all drivers. First methods to go there are
33610           Sebastien Pouliot's CAS Stack Propagation helper methods
33611         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
33612           Sebastien Pouliot for CAS Stack Propagation
33613
33614 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
33615
33616         * OSXStructs.cs:
33617           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
33618
33619 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
33620
33621         * DataGridTextBoxColumn.cs: fixed some members
33622         * GridColumnStylesCollection.cs: indexed column is case insensitive
33623         * DataGridTableStyle.cs: fixes
33624         * ThemeWin32Classic.cs: add new theme parameter
33625         * Theme.cs: add new theme parameter
33626         * DataGridDrawingLogic.cs: Datagrid's drawing logic
33627         * DataGrid.cs: fixes, new internal properties, etc.
33628         * DataGridColumnStyle.cs: allows to set grid value
33629         *
33630
33631 2005-05-10  Peter Bartok  <pbartok@novell.com>
33632
33633         * AccessibleObject.cs:
33634           - Removed MonoTODO attribute on help, method is correct
33635           - Fixed Bounds property
33636         * AxHost.cs: Moved MonoTODO
33637         * ButtonBase.cs: Now setting AccessibleObject properties
33638         * RadioButton.cs: Setting proper AccessibleObject role
33639         * CheckBox.cs: Setting proper AccessibleObject role
33640         * ControlBindingsCollection.cs: Added properties, methods and attributes
33641         * DataFormats.cs: Fixed awkward internal API, and changed to enable
33642           userdefined DataFormats.Format items as well
33643         * ListControl.cs: Removed data_member from the public eye
33644         * OpenFileDialog.cs:
33645           - Made class sealed
33646           - Added missing attributes
33647         * SaveFileDialog.cs: Added missing attributes
33648         * ImageListStreamer.cs: Fixed code that caused warnings
33649         * LinkLabel.cs: Removed unreachable code
33650         * TreeView.cs: Fixed code that caused warnings
33651         * PropertyGridView.cs: Fixed code that caused warnings
33652         * GridColumnStylesCollection.cs: Added missing attributes
33653         * GridTableStylesCollection: Added missing attribute
33654         * PropertyManager: Added .ctor
33655         * SecurityIDType: Added
33656         * DataObject.cs: Implemented class
33657         * LinkArea.cs: Added missing attribute
33658
33659 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
33660
33661         * RadioButton.cs: call base method to allow to fire OnClick event
33662         * UpDownBase.cs: OnMouseUp call base method
33663         * CheckedListBox.cs: call base method before returning
33664         * TrackBar.cs: call base method before returning
33665         
33666
33667 2005-05-10  Peter Bartok  <pbartok@novell.com>
33668
33669         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
33670           for messages
33671
33672 2005-05-10  Peter Bartok  <pbartok@novell.com>
33673
33674         * DataFormats.cs: Implemented
33675         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
33676           XplatUIX11.cs: Added Clipboard APIs
33677         * XplatUIWin32.cs: Implemented Clipboard APIs
33678         * FolderBrowserDialog.cs: Added missing event, attributes
33679
33680 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
33681
33682         * CheckBox.cs: call base method to allow to fire OnClick event
33683
33684 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
33685
33686         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
33687
33688 2005-05-06  Peter Bartok  <pbartok@novell.com>
33689
33690         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
33691         * Screen.cs: Implemented
33692         * HelpNavigator.cs: Added
33693         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
33694           property
33695         * HelpProvider.cs: Implemented all we can do until we have a CHM
33696           help library (which means that "What's This" does work now)
33697
33698 2005-05-06  Jackson Harper  <jackson@ximian.com>
33699
33700         * XplatUIX11.cs: Fix waking up the main loop.
33701                 
33702 2005-05-05  Peter Bartok  <pbartok@novell.com>
33703
33704         * XplatUI.cs: Updated revision
33705         * Form.cs: Removed enless loop
33706         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
33707         * Label.cs (OnPaint): Added call to base.OnPaint()
33708         * ToolTip.cs: Made ToolTipWindow reusable for other controls
33709         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
33710         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
33711         * AxHost.cs: Added
33712         * ButtonBase.cs: Moved base.OnPaint() call to end of method
33713         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
33714           to ToolTip.ToolTipWindow for drawing and size methods; this allows
33715           reuse of ToolTipWindow by other controls
33716         * SizeGrip.cs: Moved base.OnPaint() call to end of method
33717         * XplatUIX11.cs: Now clipping drawing area (experimental)
33718         * PictureBox.cs: Moved base.OnPaint() call to end of method
33719         * Theme.cs: Fixed ToolTip abstracts to match new format
33720         * ErrorProvider.cs: Implemented
33721
33722 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
33723
33724         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
33725         * LinkLabel.cs:
33726                 - Adds cursors
33727                 - Handles focus
33728                 - Implements LinkBehavior
33729                 - Fixes many issues
33730
33731 2005-05-03  Jackson Harper  <jackson@ximian.com>
33732
33733         * ListView.cs: Calculate the scrollbar positioning on resize and
33734         paint, so they get put in the correct place.
33735
33736 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
33737
33738         * ColorDialogs.cs: The small color panels are now handled by
33739           SmallColorControl. This fixes drawing of the focus rectangle
33740           and adds a 3D border.
33741
33742 2005-05-03  Peter Bartok  <pbartok@novell.com>
33743
33744         * Control.cs: Modified version of Jonathan Chamber's fix for
33745           double-buffering
33746
33747 2005-05-03  Jackson Harper  <jackson@ximian.com>
33748
33749         * ListView.cs: Remove redraw variable. Control now handles whether
33750         or not a redraw needs to be done, and will only raise the paint
33751         event if redrawing is needed.
33752
33753 2005-05-03  Jackson Harper  <jackson@ximian.com>
33754
33755         * Splitter.cs: No decorations for the splitter form. Cache the
33756         hatch brush.
33757
33758 2005-05-03  Jackson Harper  <jackson@ximian.com>
33759
33760         * TreeView.cs: Use dashed lines to connect nodes. Use the
33761         ControlPaint method for drawing the focus rect instead of doing
33762         that in treeview.
33763
33764 2005-05-02  Peter Bartok  <pbartok@novell.com>
33765
33766         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
33767
33768 2005-04-29  Jackson Harper  <jackson@ximian.com>
33769
33770         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
33771         entire image buffer. Just clear the clipping rectangle.
33772
33773 2005-04-29  Jackson Harper  <jackson@ximian.com>
33774
33775         * ThemeWin32Classic.cs: Don't draw list view items that are
33776         outside the clipping rectangle.
33777
33778 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
33779
33780         * ListBox.cs: added horizontal item scroll
33781
33782 2005-04-29  Jackson Harper  <jackson@ximian.com>
33783
33784         * ThemeWin32Classic.cs: Remove some old debug code that was
33785         causing flicker with the new double buffering code.
33786
33787 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
33788
33789         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
33790         behave like combobox and comboboxlist (still not sure if this is
33791         correct though).
33792
33793 2005-04-28  Jackson Harper  <jackson@ximian.com>
33794
33795         * ThemeWin32Classic.cs: Don't fill the middle of progress
33796         bars. This fills areas outside of the clip bounds that don't need
33797         to be filled.
33798
33799 2005-04-28  Jackson Harper  <jackson@ximian.com>
33800
33801         * Control.cs: Don't expose functionality to touch the image buffers.
33802         * ProgressBar.cs:
33803         * ListView.cs: We do not need to (and no longer can) manipulate
33804         the image buffers directly. All of this is handled by Control.
33805
33806 2005-04-28  Peter Bartok  <pbartok@novell.com>
33807
33808         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
33809           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
33810           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
33811
33812 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
33813
33814         * Combobox:
33815                 - Adjust control's height for non-simple comboboxes (bug fix)
33816                 - Remove dead code
33817         * MenuAPI.cs: remove unused var
33818         * ScrollBar.cs: remove unsed var
33819                  
33820         * ListBox.cs: unselect items when clearing
33821
33822 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
33823
33824         * ListControl.cs: honors OnPositionChanged and default Selected Item
33825         * ListBox.cs: unselect items when clearing
33826
33827 2005-04-27  Jackson Harper  <jackson@ximian.com>
33828
33829         * X11Keyboard.cs: Initialize a default keyboard and give a warning
33830         if a "correct" keyboard is not found. This will make us not crash,
33831         but might give some users bad keyboard layouts...seems to be the
33832         same thing rewind does.
33833
33834 2005-04-27  Jackson Harper  <jackson@ximian.com>
33835
33836         * BindingManagerBase.cs: Attach the current/position changed
33837         handlers to their respective events.
33838
33839 2005-04-27  Jackson Harper  <jackson@ximian.com>
33840
33841         * Control.cs: Make sure that the first WM_PAINT does a full draw,
33842         not just a blit.
33843         * ThemeWin32Classic.cs: Don't fill the background for picture
33844         boxes. This could overright user drawing.
33845         * ComboBox.cs: Just fill the clipping rect not the entire client
33846         rect when drawing the background. This prevents pieces of the
33847         image buffer from getting overwritten and is theoretically faster.
33848
33849 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
33850
33851         * ComboBox.cs: Databinding support fixes, fire missing events
33852         * ListControl.cs: implement missing methods and properties, fixes
33853         * ThemeWin32Classic.cs: Databiding support on Drawing
33854         * CheckedListBox.cs: Databinding support fixes, fire missing events
33855         * ListBox.cs: Databinding support fixes, fire missing events
33856         
33857 2005-04-25  Peter Bartok  <pbartok@novell.com>
33858
33859         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
33860
33861 2005-04-25  Jackson Harper  <jackson@ximian.com>
33862
33863         * TreeView.cs: Use the horizontal scrollbars height not width when
33864         determining how much of the client area is available.
33865
33866 2005-04-25  Jackson Harper  <jackson@ximian.com>
33867
33868         * Control.cs: Double buffering is handled differently now. As per
33869         the spec, the extra buffer is created in the WM_PAINT message and
33870         passed down to the control's drawing code.
33871         * GroupBox.cs:
33872         * Label.cs:
33873         * CheckBox.cs:
33874         * ProgressBar.cs:
33875         * RadioButton.cs:
33876         * ColorDialog.cs:
33877         * ComboBox.cs:
33878         * PropertyGridView.cs:
33879         * UpDownBase.cs:
33880         * MessageBox.cs:
33881         * MenuAPI.cs:
33882         * ListView.cs:
33883         * ButtonBase.cs:
33884         * SizeGrip.cs:
33885         * ScrollBar.cs:
33886         * ListBox.cs:
33887         * TrackBar.cs:
33888         * ToolBar.cs:
33889         * PictureBox.cs:
33890         * DateTimePicker.cs:
33891         * StatusBar.cs:
33892         * TreeView.cs: Update to new double buffering system.
33893         * MonthCalendar.cs: Uncomment block, as Capture is now
33894         working. Update to new double buffering
33895         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
33896         * PaintEventArgs.cs: New internal method allows us to set the
33897         graphics object. This is used for double buffering.
33898         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
33899         rectangle. The internal paint_area var has been removed from
33900         StatusBar. The clipping rect should be used instead.
33901         * Theme.cs: Give the PictureBox drawing method a clipping rect.
33902         * TabPage.cs: The RefreshTabs method was removed, so just call the
33903         tab controls Refresh method now.
33904         * TabControl.cs: Update to new double buffering. Make sure the
33905         handle is created before sizing the tab pages, otherwise we will
33906         get stuck in a loop.
33907
33908 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
33909
33910         * LinkLabel.cs: Fix typo, bug #74719; patch
33911           from Borja Sanchez Zamorano
33912
33913 2005-04-22  Jackson Harper  <jackson@ximian.com>
33914
33915         * TreeNode.cs: Implement Handle stuff.
33916         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
33917
33918 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
33919
33920         * DataGridTextBoxColumn.cs: call base constructors, fixes
33921         * GridColumnStylesCollection.cs: missing events, methods, and functionality
33922         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
33923         * DataGridTableStyle.cs: implements create default column styles
33924         * DataGridBoolColumn.cs: which types can handle
33925         * DataGrid.cs: missing methods, fixes, new functionality
33926         * DataGridColumnStyle.cs: fixes
33927
33928 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
33929         * FolderBrowserDialog.cs:
33930         - Use a thread to fill the TreeView
33931         - Adjusted some sizes
33932
33933 2005-04-19  Peter Bartok  <pbartok@novell.com>
33934
33935         * LinkLabel.cs: (Re-)create the pieces when setting the Text
33936           property. Fixes #74360.
33937
33938 2005-04-19  Jackson Harper  <jackson@ximian.com>
33939
33940         * XEventQueue.cs: Lock when getting the lockqueue size.
33941         * PictureBox.cs: Call base OnPaint
33942         
33943 2005-04-19  Peter Bartok  <pbartok@novell.com>
33944
33945         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
33946           messages were no longer being processed (this broke BeginInvoke)
33947
33948           
33949 2005-04-18  Jackson Harper  <jackson@ximian.com>
33950
33951         * TreeView.cs: buglet that caused node images to get drawn
33952         regardless of whether or not they were in the clipping rectangle.
33953
33954 2005-04-18  Jackson Harper  <jackson@ximian.com>
33955
33956         * CurrencyManager.cs: There are four rules for GetItemProperties:
33957         - If the type is an array use the element type of the array
33958         - If the type is a typed list, use the type
33959         - If the list contains an Item property that is not an object, use
33960         that property
33961         - use the first element of the list if there are any elements in
33962         the list.
33963         
33964 2005-04-17  Jackson Harper  <jackson@ximian.oom>
33965
33966         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
33967         click. This handles offsets for scrolling properly and reduces
33968         memory. Also fixed GetNode to not offset now that TopNode works
33969         properly.
33970         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
33971         
33972 2005-04-17  Jackson Harper  <jackson@ximian.com>
33973
33974         * CursorConverter.cs: Initial implementation.
33975
33976 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
33977
33978         * ListControl.cs: work towards complex data binding support on ListControl
33979         * CurrencyManager.cs: work towards complex data binding support on ListControl
33980         * ListBox.cs: work towards complex data binding support on ListControl
33981
33982
33983 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
33984
33985         * GridTableStylesCollection.cs: fixes name and constructor
33986         * DataGridTableStyle.cs: fixes
33987         * DataGridBoolColumn.cs: fixes names and constructors
33988         * DataGrid.cs: define methods and properties. Some init implementations
33989         * DataGridCell.cs: define methods and properties. Some init implementations
33990         * GridTablesFactory.cs: Define methods and properties
33991
33992 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
33993
33994         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
33995         graphics port changes.  We still want the coordinates in global screen
33996         coordinates.
33997
33998 2005-04-14  Jackson Harper  <jackson@ximian.com>
33999
34000         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
34001         check plus minus or checkbox clicks unless those features are enabled.
34002
34003 2005-04-14  Jackson Harper  <jackson@ximian.com>
34004
34005         * TreeView.cs: Add methods for setting the top and bottom visible
34006         nodes. TreeNode::EnsureVisible uses these methods.
34007         * TreeNode.cs: Implement EnsureVisible
34008
34009 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
34010
34011         * Form.cs: Pospone menu assignation if the window has not been created yet
34012         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
34013         size and position
34014
34015 2005-04-12  Jackson Harper  <jackson@ximian.com>
34016
34017         * TreeView.cs: Set the TopNode properly when scrolling
34018         occurs. This has the added benifit of reducing the amount of
34019         walking that needs to be done when drawing. Also removed an old
34020         misleading TODO.
34021         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
34022         
34023 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
34024
34025         * Timer.cs: fixes interval setting when the timer is already enabled
34026         
34027 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
34028
34029         * FolderBrowserDialog.cs: First approach
34030
34031 2005-04-09  Peter Bartok  <pbartok@novell.com>
34032
34033         * FolderBrowserDialog: Added
34034
34035 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
34036
34037         * LinkLabel.cs: move drawing code into the theme
34038         * ThemeWin32Classic.cs: drawing code and painting background bugfix
34039         * Theme.cs: define DrawLinkLabel method
34040
34041 2005-04-05  Jackson Harper  <jackson@ximian.com>
34042
34043         * BindingContext.cs: Use weak references so these bad actors don't
34044         stay alive longer then they need to.
34045
34046 2005-04-05  Jackson Harper  <jackson@ximian.com>
34047
34048         * ListControl.cs: Basic implementation of complex databinding.
34049         * ComboBox.cs:
34050         * ListBox.cs: Add calls to ListControl databinding methods.
34051
34052 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
34053
34054         * FileDialog.cs:
34055           - Don't change PopupButtonState to Normal when the
34056             PopupButton gets pressed several times.
34057           - Renamed ButtonPanel to PopupButtonPanel
34058
34059 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
34060
34061         * ColorDialog.cs: Use cached objects instead of creating them
34062         * LinkLabel.cs: Use cached objects instead of creating them
34063         * Splitter.cs: Use cached objects instead of creating them
34064         * FontDialog.cs: Use cached objects instead of creating them
34065         * PropertyGridView.cs: Use cached objects instead of creating them
34066         * MessageBox.cs: Use cached objects instead of creating them
34067         * FileDialog.cs: Use cached objects instead of creating them
34068         * ThemeWin32Classic.cs: Use cached objects instead of creating them
34069         * TreeView.cs: Use cached objects instead of creating them
34070         
34071 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
34072
34073         * Control.cs: use Equals to compare the font since no == op
34074         * ScrollBar.cs: use Equals to compare the font since no == op
34075
34076 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
34077
34078         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
34079
34080 2005-04-01  Jackson Harper  <jackson@ximian.com>
34081
34082         * Binding.cs: Implement IsBinding.
34083         * BindingManagerBase.cs:
34084         * PropertyManager.cs:
34085         * CurrencyManager.cs: Add IsSuspended property.
34086
34087 2005-04-01  Jackson Harper  <jackson@ximian.com>
34088
34089         * Binding.cs: Had some IsAssignableFrom calls backwards.
34090
34091 2005-04-01  Jackson Harper  <jackson@ximian.com>
34092
34093         * Binding.cs: Handle null data members when pulling data.
34094         * PropertyManager.cs: Handle the data member being a property that
34095         does not exist.
34096
34097 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
34098
34099         * DataGridTextBoxColumn.cs: fixes signature
34100         * DataGrid.cs: calls right constructor
34101
34102 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
34103
34104         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
34105         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
34106         * GridTableStylesCollection.cs: implements GridTableStylesCollection
34107         * DataGridTableStyle.cs: implements DataGridTableStyle
34108         * DataGridBoolColumn.cs: implements DataGridBoolColumn
34109         * DataGridTextBox.cs: implements DataGridTextBox
34110         * DataGridColumnStyle.cs: implements DataGridColumnStyle
34111
34112 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
34113
34114         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
34115
34116 2005-03-29  Peter Bartok  <pbartok@novell.com>
34117
34118         * Application.cs:
34119           - Properly implemented CompanyName property
34120           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
34121             returns a path that includes CompanyName, ProductName and
34122             Version (fixes bug #70330)
34123
34124 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
34125
34126         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
34127           fixes bug #72588.
34128
34129 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
34130
34131         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
34132         
34133           - Added ReadOnly CheckBox
34134           - Further refactoring: moved some code from Open-/SaveFileDialog
34135             to FileDialog
34136
34137 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
34138
34139         * OpenFileDialog.cs: Fixed CheckFileExists
34140         * FileDialog.cs:
34141           Moved FileView and DirComboBox outside FileDialog class.
34142           They can now be used outside FileDialog
34143
34144 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
34145
34146         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
34147         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
34148
34149 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
34150
34151         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34152           - Added missing CreatePrompt property in SaveDialog
34153           - Overall SaveDialog handling should be better now
34154           - Added non standard ShowHiddenFiles property
34155           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
34156           - Added InitialDirectory and RestoreDirectory support
34157
34158 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
34159
34160         * FileDialog.cs: Made dirComboBox usable
34161
34162 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
34163
34164         * FileDialog.cs: Added Filter support (case sensitiv)
34165
34166 2005-03-24  Jackson Harper  <jackson@ximian.com>
34167
34168         * TabControl.cs: Need a couple more pixels for the lines.
34169
34170 2005-03-23  Jackson Harper  <jackson@ximian.com>
34171
34172         * TabControl.cs: Give the tab page focus when it is selected.
34173
34174 2005-03-23  Jackson Harper  <jackson@ximian.com>
34175
34176         * TabControl.cs: Account for the drawing of tabs borders when
34177         invalidating. If the slider was clicked dont do click detection on
34178         the tabs.
34179
34180 2005-03-23  Jackson Harper  <jackson@ximian.com>
34181
34182         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
34183
34184 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
34185
34186         * CategoryGridEntry.cs: Added
34187         * GridItem.cs: Added helper properties
34188         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
34189         * GridEntry.cs: Updated code for collection
34190         * PropertyGrid.cs: Cleaned up some formatting
34191         * PropertyGridView.cs: Added drop down functionality for enums.
34192         * GridItemCollection.cs: Added enumerator logic
34193         * PropertyGridEntry.cs: Added
34194
34195 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
34196
34197         * FileDialog.cs:
34198           - Removed unnecessary commented code
34199           - Fixed handling for entering the filename manually in the combobox
34200
34201 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
34202
34203         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
34204
34205 2005-03-18  Peter Bartok  <pbartok@novell.com>
34206
34207         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
34208           them being touching the border
34209
34210 2005-03-18  Peter Bartok  <pbartok@novell.com>
34211
34212         * TextControl.cs: Quick hack to center text better
34213
34214 2005-03-18  Peter Bartok  <pbartok@novell.com>
34215
34216         * ControlPaint.cs:
34217           - Don't throw NotImplemented exceptions, just print a notice once
34218             instead (requested by Miguel). This makes running existing SWF
34219             apps a bit easier
34220         * Control.cs:
34221           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
34222           - Added context menu trigger on right click
34223         * Panel.cs: Trigger invalidate on resize
34224         * StatusBar.cs:
34225           - Removed old double-buffer drawing
34226           - Added ResizeRedraw style to force proper update of statusbar
34227         * ListView.cs:
34228           - Removed debug output
34229         * ThemeWin32Classic.cs:
34230           - Fixed drawing of status bar, now draws Text property if there
34231             are no defined panels
34232
34233 2005-03-18  Jackson Harper  <jackson@ximian.com>
34234
34235         * ImageList.cs: When the image stream is set pull all the images
34236         from it.
34237         * ImageListStreamer.cs: Implement reading image list streams.
34238
34239 2005-03-18  Peter Bartok  <pbartok@novell.com>
34240
34241         * ThemeWin32Classic.cs (DrawPictureBox):
34242           - Fixed calculations for centered drawing
34243           - Fixed drawing for normal mode, not scaling the image on normal
34244
34245 2005-03-18  Peter Bartok  <pbartok@novell.com>
34246
34247         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
34248           textbox
34249         * FileDialog.cs:
34250           - Made Open/Save button the accept button for FileDialog
34251           - Tied the cancel button to the IButtonControl cancel button
34252           - Save/Open now properly builds the pathname
34253           - Now handles user-entered text
34254           - Preventing crash on right-click if no item is selected
34255           - Fixed Text property, now uses contents of textbox
34256           - Fixed SelectedText property, now just returns the text part that
34257             is selected in the text box
34258
34259 2005-03-18  Jackson Harper  <jackson@ximian.com>
34260
34261         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
34262         rect, make sure to de-adjust the interior rect after drawing the
34263         tab text.
34264
34265 2005-03-18  Peter Bartok  <pbartok@novell.com>
34266
34267         * MenuAPI.cs: Remove menu *before* executing selected action to
34268           prevent the menu from 'hanging around'
34269           
34270 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
34271
34272         * XplatUIOSX.cs: Implemented WorkingArea property
34273
34274 2005-03-17  Peter Bartok  <pbartok@novell.com>
34275
34276         * XplatUIX11.cs: Fixed menu coord calculations
34277         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
34278           for calculating offsets
34279
34280 2005-03-17  Peter Bartok  <pbartok@novell.com>
34281
34282         * Hwnd.cs: Do not consider menu presence for default client
34283           rectangle location/size
34284         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
34285           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
34286           translation functions
34287         * FileDialog.cs: Fixed (what I presume is a) typo
34288
34289 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
34290
34291         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
34292           X access (avoids X-Async errors)
34293
34294 2005-03-16  Jackson Harper  <jackson@ximian.com>
34295
34296         * TabControl.cs: Raise the SelectedIndexChanged event.
34297
34298 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
34299
34300         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34301           - Removed vertical ToolBar and replaced it with a custom panel
34302             (desktop and home button already work)
34303           - Added Help button (some controls get resized or relocated then)
34304           - Draw correct text depending on Open or Save.
34305           - Fixed some typos...
34306
34307 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
34308
34309         * ScrollBar.cs:
34310           - Only change Maximum and Minimum when need it (bug fix)
34311
34312 2005-03-15  Peter Bartok  <pbartok@novell.com>
34313
34314         * Form.cs: Use Handle for icon, to trigger creation if
34315           the window does not yet exist
34316         * Control.cs:
34317           - CanSelect: Slight performance improvement
34318           - Focus(): Preventing possible recursion
34319           - Invalidate(): Removed ControlStyle based clear flag setting
34320           - WM_PAINT: fixed logic for calling OnPaintBackground
34321           - WM_ERASEBKGND: Fixed logic, added call to new driver method
34322             EraseWindowBackground if the control doesn't paint background
34323         * XplatUIWin32.cs:
34324           - Moved EraseWindowBackground() method to internal methods
34325           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
34326             is sent via SendMessage on BeginPaint call on Win32
34327         * XplatUIX11.cs:
34328           - Added EraseWindowBackground() method
34329           - No longer sends WM_ERASEBKGND on .Expose, but on call to
34330             PaintEventStart, which more closely matches Win32 behaviour
34331           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
34332           - Fixed SetFocus() to properly deal with client and whole windows
34333         * Hwnd.cs: Added ErasePending property
34334         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
34335         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
34336
34337 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
34338
34339         * XplatUIOSX.cs:
34340           - Fix hard loop when timers exist.
34341           - Fix bugs with middle and right click for 3 button mice.
34342
34343 2005-03-11  Peter Bartok  <pbartok@novell.com>
34344
34345         * XplatUIX11.cs:
34346           - get_WorkingArea: Need to call X directly, GetWindowPos only
34347             returns cached data now
34348           - Added sanity check to GetWindowPos hwnd usage
34349
34350 2005-03-11  Jackson Harper  <jackson@ximian.com>
34351
34352         * BindingManagerBase.cs: This method isn't used anymore as
34353         PullData now updates the data in the control.
34354
34355 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
34356
34357         * Form.cs: fixes menu drawing on X11
34358         * MenuAPI.cs:  fixes menu drawing on X11
34359
34360 2005-03-11  Peter Bartok  <pbartok@novell.com>
34361
34362         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
34363           from Jonathan Gilbert; should fix bug #73606
34364         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
34365           in Screen coordinates. Thanks, Jordi.
34366         * Form.cs: Added missing attribute
34367
34368 2005-03-11  Peter Bartok  <pbartok@novell.com>
34369
34370         * Form.cs:
34371           - Rudimentary Mdi support
34372           - Removed outdated FormParent code
34373           - Implemented lots of missing properties and methods, still missing
34374             transparency support
34375           - Added missing attributes
34376           - Implemented support for MaximumBounds
34377           - Added firing of various events
34378         * XplatUI.cs: Added SetIcon() method
34379         * XplatUIDriver.cs: Added SetIcon() abstract
34380         * XplatUIOSX.cs: Stubbed out SetIcon() method
34381         * XplatUIX11.cs:
34382           - Implemented SetIcon() support
34383           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
34384           - Switched to unix line endings
34385         * XplatUIWin32.cs:
34386           - Made POINT internal so for can access it as part of MINMAX
34387           - Implemented SetIcon() support
34388           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
34389             native Mdi support again, might have to go managed)
34390         * Control.cs: Now fires the StyleChanged event
34391         * MdiClient.cs: Added; still mostly empty
34392
34393 2005-03-10  Peter Bartok  <pbartok@novell.com>
34394
34395         * SaveFileDialog.cs: Added emtpy file
34396
34397 2005-03-08  Peter Bartok  <pbartok@novell.com>
34398
34399         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
34400           in turn triggers OnCreateContro) when creating a handle for the
34401           first time.
34402         * TextControl.cs: Fixed endless loop in certain cases when
34403           replacing the current selection
34404
34405 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
34406
34407         * ScrollBar.cs:
34408           - Honors NewValue changes in Scroll events allowing apps to change it
34409           - Adds First and Last Scroll events
34410           - Fixes Thumb events
34411
34412 2005-03-07  Peter Bartok  <pbartok@novell.com>
34413
34414         * Hwnd.cs: Added DefaultClientRectangle property
34415         * XplatUI.cs: Now using the X11 driver Where() method, which provides
34416           more detailed debug information
34417         * XplatUIX11.cs:
34418           - Fixed size-change feedback loop, where we would pull an old size
34419             off the queue and mistakenly change our window's size to an
34420             earlier value
34421           - Now compressing ConfigureNotify events, to reduce looping and
34422             redraw issues
34423         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
34424           is called
34425
34426 2005-03-07  Jackson Harper  <jackson@ximian.com>
34427
34428         * Binding.cs: Push data pushes from data -> property. Check if the
34429         property is readonly when attempting to set it.
34430
34431 2005-03-07  Jackson Harper  <jackson@ximian.com>
34432
34433         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
34434         instead of IsSubclassOf. Pulling data now sets the value on the
34435         control.
34436         * PropertyManager.cs:
34437         * CurrencyManager.cs: Just need to pull data when updating now,
34438         because PullData will set the value on the control.
34439
34440 2005-03-04  Jackson Harper  <jackson@ximian.com>
34441
34442         * Binding.cs: Implement data type parsing and converting on pulled
34443         data. TODO: Are there more ways the data can be converted?
34444
34445 2005-03-04  Jackson Harper  <jackson@ximian.com>
34446
34447         * Binding.cs: Support <Property>IsNull checks. Also bind to the
34448         controls Validating method so we can repull the data when the
34449         control loses focus.
34450
34451 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
34452
34453         * ColumnHeader.cs:
34454           - Fixes null string format
34455           
34456         * ListView.cs:
34457           - Adds enum type checks
34458           - Fixes redrawing and recalc need after changing some properties
34459           - Fixes on focus_item set after the event
34460           - Fixes adding columns after the control has been created
34461           
34462         * ThemeWin32Classic.cs:
34463           - Fixes CheckBox focus rectangle
34464           - Fixes ColumnHeader drawing
34465
34466
34467 2005-03-03  Jackson Harper  <jackson@ximian.com>
34468
34469         * Binding.cs: Bind to <Property>Changed events so we can detect
34470         when properties are changed and update the data.
34471
34472 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
34473
34474         * ImageList.cs:
34475           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
34476           - Fixes ImageList constructor with ImageList container
34477           - Fixes image scaling (wrong parameters at DrawImage)
34478
34479 2005-02-02  Jackson Harper  <jackson@ximian.com>
34480
34481         * Binding.cs: Make property searches case-insensitive. Eliminate
34482         some duplicated code.
34483
34484 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
34485
34486         * ComboBox.cs:
34487                 - Handle focus event
34488                 - Fix scrollbar events
34489                 - Discard highlighted item if remove it
34490                 - Fixes SelectedItem with strings
34491
34492 2005-03-01  Peter Bartok  <pbartok@novell.com>
34493
34494         * Control.cs:
34495           - Fixed Visible property, now follows (once again) parent chain
34496             to return false if any control in the chain is visible=false
34497           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
34498           - Fixed several places where is_visible instead of Visible was used
34499           - Implemented FIXME related to focus selection when setting focused
34500             control to be invisible
34501
34502         * XplatUIWin32.cs: Now using proper method to find out if window is
34503           visible. Thanks to Jordi for pointing it out
34504
34505 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
34506
34507         * ComboBox.cs: show/hide scrollbar instead of creating it
34508
34509 2005-02-27  Jackson Harper  <jackson@ximian.com>
34510
34511         * CurrencyManager.cs: Add PositionChanged stuff.
34512
34513 2005-02-27  Peter Bartok  <pbartok@novell.com>
34514
34515         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
34516         * XplatUIOSX.cs: Added GetMenuOrigin() stub
34517         * XplatUIWin32.cs: Implemented GetMenuOrigin()
34518         * XplatUIX11.cs:
34519           - Implemented GetMenuDC()
34520           - Implemented GetMenuOrigin()
34521           - Implemented ReleaseMenuDC()
34522           - Implemented generation of WM_NCPAINT message
34523           - Implemented generation and handling of WM_NCCALCSIZE message
34524         * Form.cs: Added debug helper message for Jordi's menu work
34525         * Hwnd.cs:
34526           - Modified ClientRect property; added setter, fixed getter to handle
34527             setting of ClientRect
34528           - Added MenuOrigin property
34529
34530 2005-02-26  Peter Bartok  <pbartok@novell.com>
34531
34532         * XplatUIX11.cs:
34533           - Destroys the caret if a window that's being destroyed contains it
34534           - Ignores expose events coming from the X11 queue for windows that
34535             already are destroyed
34536           - Now uses the proper variable for handling DestroyNotify, before we
34537             marked the wrong window as destroyed
34538           - Improved/added some debug output
34539
34540 2005-02-26  Peter Bartok  <pbartok@novell.com>
34541
34542         * X11Keyboard.cs: Fixes to work on 64bit systems
34543
34544 2005-02-26  Peter Bartok  <pbartok@novell.com>
34545
34546         * Control.cs:
34547           - Now calling OnHandleDestroyed from DestroyHandle()
34548             instead of Dispose()
34549           - Removed bogus call to controls.Remove() from DestroyHandle()
34550
34551 2005-02-26  Peter Bartok  <pbartok@novell.com>
34552
34553         * Control.cs: Properly destroy child windows when our handle is
34554           destroyed
34555
34556 2005-02-25  Peter Bartok  <pbartok@novell.com>
34557
34558         * XplatUI.cs:
34559           - Added 'DriverDebug' define to allow tracing XplatUI API calls
34560           - Alphabetized Static Methods and Subclasses
34561
34562         * XplatUIX11.cs:
34563           - Added XException class to allow custom handling of X11 exceptions
34564           - Created custom X11 error handler, tied into XException class
34565           - Added support for MONO_XEXCEPTIONS env var to allow the user
34566             to either throw an exception on X errors or continue running
34567             after displaying the error
34568           - Added handling of DestroyNotify message
34569           - Added handler for CreateNotify message (still disabled)
34570           - Improved (tried to at least) Where method to provide file and lineno
34571         * X11Structs.cs:
34572           - Added XErrorHandler delegate
34573           - Added XRequest enumeration (to suppor translation of errors)
34574
34575 2005-02-25  Jackson Harper  <jackson@ximian.com>
34576
34577         * PropertyManager.cs: Implement editing features
34578         * CurrencyManager.cs:
34579         * Binding.cs: First attempt at UpdateIsBinding
34580         * BindingManagerBase.cs: Call UpdateIsBinding before
34581         pushing/pulling data.
34582
34583 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
34584
34585         * MenuAPI.cs: Respect disabled items
34586         * ThemeWin32Classic.cs
34587                 - Caches ImageAttributes creation for DrawImageDisabled
34588                 - Fixes vertical menu line drawing
34589                 - Draws disabled arrows in disable menu items
34590
34591 2005-02-24  Peter Bartok  <pbartok@novell.com>
34592
34593         * Hwnd.cs:
34594           - Added UserData property to allow associating arbitrary objects
34595             with the handle
34596           - Fixed leak; now removing Hwnd references from static windows array
34597         * XplatUIWin32.cs:
34598           - Fixed Graphics leak in PaintEventEnd
34599           - Removed usage of HandleData, switched over to Hwnd class
34600         * HandleData.cs: Removed, obsoleted by Hwnd.cs
34601
34602 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
34603
34604         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
34605         * ScrollBar.cs: Fixes bug
34606         * TrackBar.cs: removes death code, clipping, mimize refreshes,
34607          keyboard navigation enhancements
34608
34609 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
34610
34611         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
34612         * GroupBox.cs: Add control styles
34613         * Label.cs: Add control styles
34614         * UpDownBase.cs: Add control styles
34615         * ListBox.cs: Add control styles
34616         * XplatUIWin32.cs: Fixes wrong parameter order
34617
34618
34619 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
34620
34621         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
34622
34623 2005-02-23  Jackson Harper  <jackson@ximian.com>
34624
34625         * PropertyManager.cs: Implement property binding. This doesn't
34626         seem to work yet though as (I think) there are some bugs in
34627         System.ComponentModel.PropertyDescriptor.
34628         * BindingContext.cs: Use new PropertyManager constructor.
34629
34630 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
34631
34632         * ProgressBar.cs: use clip region in ProgressBar
34633         * ThemeWin32Classic.cs: use clip region in ProgressBar
34634
34635 2004-02-22  Jackson Harper  <jackson@ximian.com>
34636
34637         * BindingsCollection.cs: Remove some debug code.
34638
34639 2005-02-22  Jackson Harper  <jackson@ximian.com>
34640
34641         * BindingContext.cs:
34642         * ControlBindingsCollection.cs:
34643         * CurrencyManager.cs:
34644         * Binding.cs:
34645         * BindingManagerBase.cs: Initial implementation
34646         * BindingsCollection.cs: Add an internal contains method that the
34647         BindingManagerBase uses to ensure bindings aren't added twice to
34648         the collection.
34649         * PropertyManager.cs: Stubbed out.
34650         * Control.cs:
34651         * ContainerControl.cs: Hook up databinding
34652         
34653 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
34654
34655         * XplatUIOSX.cs:
34656           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
34657           Fixed Invalidate/Update chain.
34658           Fixed tons of other minor bugs (this is almost a complete rewrite).
34659
34660 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
34661
34662         * ComboBox.cs: do subcontrol creation when the control is created
34663
34664 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34665
34666         * Label.cs: fixes image drawing (image and imagelist)
34667         * ThemeWin32Classic.cs: cache brushes
34668         
34669 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34670
34671         * Form.cs: Move menu drawing code to Theme class
34672         * ComboBox.cs: Move ComboBox drawing code to Theme class
34673         * MenuItem.cs: Move menu drawing code to Theme class
34674         * MenuAPI.cs: Move menu drawing code to Theme class
34675         * ThemeWin32Classic.cs: New methods
34676         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
34677         * ListBox.cs: Move Listbox drawing code to Theme class
34678         * Theme.cs: New methods
34679
34680 2005-02-20  Peter Bartok  <pbartok@novell.com>
34681
34682         * Control.cs:
34683           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
34684             only process mnemonics on those)
34685           - Fixed event sequence for key handling; first calling
34686             ProcessKeyEventArgs now
34687         * TextBoxBase.cs:
34688           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
34689             for processing non-character keys
34690           - Fixed WM_CHAR to generate proper event sequence before processing
34691         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
34692           generation
34693
34694 2005-02-19  Peter Bartok  <pbartok@novell.com>
34695
34696         * UserControl.cs: Added TextChanged event; added attributes
34697         * SizeGrip.cs: Implemented resizing and optional display of grip
34698         * Form.cs: Fixed attribute
34699         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
34700           Changed meaning of ScrollWindow bool argument; instead of the
34701           clear attribute (which will be true usually anyway), it gives the
34702           option of moving child controls as well.
34703         * XplatUIX11.cs:
34704           - Changed to match new ScrollWindow argument
34705           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
34706             now handles the implicit parent window a WM puts around us
34707         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
34708           to work)
34709         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
34710         * TreeView.cs: Adjusted to new ScrollWindow arguments
34711
34712 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34713
34714         * Form.cs: Menu integration with non-client area
34715         * MenuItem.cs: Menu integration with non-client area
34716         * MenuAPI.cs: Menu integration with non-client area
34717
34718 2005-02-18  Peter Bartok  <pbartok@novell.com>
34719
34720         * MethodInvoker.cs: Added
34721         * MdiLayout.cs: Added
34722         * SendKeys.cs: Started implementation
34723         * ErrorIconAlignment.cs: Added
34724
34725 2005-02-18  Peter Bartok  <pbartok@novell.com>
34726
34727         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
34728         * Form.cs: Added handling for Menu-related Non-client messages
34729
34730 2005-02-17  Peter Bartok  <pbartok@novell.com>
34731
34732         * UpDownBase.cs: Fixed typo, compilation errors
34733         * DomainUpDown.cs: Fixed attribute value
34734
34735 2005-02-16  Miguel de Icaza  <miguel@novell.com>
34736
34737         * UpDownBase.cs: Attach entry events.
34738         Propagate events.
34739         Add ForeColor property, Focused, InterceptArrowKeys (interception
34740         does not work yet).
34741
34742 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
34743
34744         * Form.cs:
34745                 - Redraw non client are on Setmenu
34746                 - Calc proper menu starting point
34747
34748 2005-02-17  Peter Bartok  <pbartok@novell.com>
34749
34750         * Application.cs: Fixed message_filter check
34751
34752 2005-02-17  Peter Bartok  <pbartok@novell.com>
34753
34754         * Application.cs: Now calls registered message filters
34755         * DockStyle.cs: Fixed attribute
34756         * Form.cs: Fixed attribute
34757         * Menu.cs: Fixed attribute
34758         * ToolTip.cs: Fixed attribute
34759         * TreeNode.cs: Added missing attributes and arranged in regions
34760         * PropertyGrid.cs: Fixed signatures
34761         * TreeNodeCollection.cs: Added attributes
34762         * Splitter.cs: Added missing attributes; arranged into regions
34763         * TabPage.cs: Added missing attributes; arranged into regions
34764         * TextBoxBase.cs: Added missing attributes
34765         * TextBox.cs: Added missing attributes
34766         * ArrangeDirection.cs: Added missing attributes
34767         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
34768         * ToolBarButton.cs: Fixed attributes
34769         * AnchorStyles.cs: Fixed attribute
34770         * TrackBar.cs: Fixed attributes
34771         * TabControl.cs: Added missing attributes and arranged into regions
34772         * ToolBar.cs: Fixed attribute
34773         * StatusBar.cs: Fixed signature, organized into regions and added
34774           attributes
34775         * StatusBarPanel.cs: Fixed attributes
34776         * ContentsResizedEventArgs.cs: Implemented
34777         * ContentsResizedEventHandler.cs: Implemented
34778         * DateBoldEventArgs.cs: Implemented
34779         * DateBoldEventHandler.cs: Implemented
34780         * UpDownEventArgs.cs: Implemented
34781         * UpDownEventHandler.cs: Implemented
34782         
34783 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
34784
34785         * Form.cs: first Menu NC refactoring
34786         * MenuAPI.cs: first Menu NC refactoring
34787         
34788 2005-02-16  Peter Bartok  <pbartok@novell.com>
34789
34790         * ImeMode.cs: Added missing attributes
34791         * Menu.cs: Fixed attribute
34792         * GroupBox.cs: Fixed attribute
34793         * Label.cs: Fixed attribute
34794         * ColorDialog.cs (RunDialog): Removed TODO attribute
34795         * ComboBox.cs: Fixed attributes
34796         * ListControl.cs: Added missing attributes
34797         * PropertyGrid.cs: Fixed attributes
34798         * Control.cs: Fixed attributes
34799         * ListViewItem.cs: Added TypeConverter attribute
34800         * NotifyIcon.cs: Fixed attributes
34801         * ListView.cs: Fixed attributes
34802         * ButtonBase.cs: Fixed attribute
34803         * ImageList.cs: Added missing attributes
34804         * ContainerControl.cs: Fixed signature
34805         * CheckedListBox.cs: Fixed attribute; added missing attributes
34806         * Panel.cs: Fixed attributes
34807         * PropertyTabChangedEventArgs.cs: Added missing attribute
34808         * PropertyValueChangedEventArgs.cs: Added missing attribute
34809         * Binding.cs: Fixed attribute
34810         * ListViewItemConverter: Implemented ListViewSubItemConverter class
34811         * ListBox.cs: Fixed attribute; added missing attributes;
34812         * ScrollableControl.cs: Added missing attributes
34813         * PictureBox.cs: Added missing attributes; implemented missing property
34814         * DateTimePicker.cs: Added missing attributes
34815         * Theme.cs (ToolWindowCaptionHeight): Fixed type
34816         * MonthCalendar.cs: Fixed attributes
34817         * StatusBarPanel.cs: Added missing attributes
34818         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
34819
34820 2005-02-16  Peter Bartok  <pbartok@novell.com>
34821
34822         * TextBoxBase.cs: The previous method to enforce height yet remember
34823           the requested high was less than ideal, this is an attempt to do
34824           it better.
34825         * Control.cs: Added comment about possible problem
34826         * Copyright: Updated format
34827         * GridItemType.cs: Fixed swapped values
34828
34829 2005-02-15  Jackson Harper  <jackson@ximian.com>
34830
34831         * BaseCollection.cs: Use property so we never access an
34832         uninitialized list. Also initialize the list in the property.
34833
34834 2005-02-15  Peter Bartok  <pbartok@novell.com>
34835
34836         * GroupBox.cs (ProcessMnemonic): Implemented
34837         * Label.cs (ProcessMnemonic): Implemented
34838         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
34839           hotkeys
34840
34841 2005-02-15  Peter Bartok  <pbartok@novell.com>
34842
34843         * RadioButton.cs (ProcessMnemonic): Implemented
34844         * CheckBox.cs (ProcessMnemonic): Implemented
34845         * Control.cs:
34846           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
34847             handling
34848           - Added internal method to allow calling ProcessMnemonic from other
34849             controls
34850         * ContainerControl.cs:
34851           - Started support for handling validation chain handling
34852           - Implemented ProcessMnemonic support
34853           - Added Select() call to Active, to make sure the active control
34854             receives focus
34855         * Form.cs: Setting toplevel flag for Forms (this was lost in the
34856           FormParent rewrite)
34857         * ThemeWin32Classic.cs:
34858           - DrawCheckBox(): Fixed stringformat to show hotkeys
34859           - DrawRadioButton(): Fixed stringformat to show hotkeys
34860         * CommonDialog.cs: Removed WndProc override, not needed
34861
34862 2005-02-14  Peter Bartok  <pbartok@novell.com>
34863
34864         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
34865           missed those in the rewrite
34866
34867 2005-02-14  Miguel de Icaza  <miguel@novell.com>
34868
34869         * NumericUpDown.cs (Increment, ToString): Add.
34870         (DecimalPlaces): implement.
34871         
34872         Add attributes.
34873         
34874         * UpDownBase.cs: Add the designer attributes.
34875
34876 2005-02-13  Peter Bartok  <pbartok@novell.com>
34877
34878         * Panel.cs: Removed border_style, now in Control
34879         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
34880           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
34881
34882 2005-02-13  Peter Bartok  <pbartok@novell.com>
34883
34884         * MouseButtons.cs: Added missing attributes
34885         * XplatUIStructs.cs: Added enumeration for title styles
34886         * LeftRightAlignment.cs: Added missing attributes
34887         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
34888           it compatible with Graphics.FromHwnd()
34889         * SelectedGridItemChangedEventArgs.cs: Fixed property type
34890         * Keys.cs: Added missing attributes
34891         * SelectionRange.cs: Added missing attributes
34892         * SelectionRangeConverter.cs: Added
34893         * XplatUI.cs:
34894           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
34895             ReleaseMenuDC methods
34896           - Renamed ReleaseWindow to UngrabWindow
34897           - Added proper startup notice to allow version identification
34898         * Form.cs:
34899           - Added missing attributes
34900           - Removed FormParent concept
34901         * Label.cs: Removed border_style field, now in Control
34902         * RadioButton.cs: Now properly selects RadioButton when focus is
34903           received
34904         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
34905         * Control.cs:
34906           - Added missing attributes
34907           - Added borderstyle handling
34908           - Removed FormParent concept support
34909           - Fixed calls to XplatUI to match changed APIs
34910           - Fixed bug that would case us to use disposed Graphics objects
34911           - Removed unneeded internal methods
34912           - PerformLayout(): Fixed to handle DockStyle.Fill properly
34913           - SelectNextControl(): Fixed to properly check common parents
34914         * TextBoxBase.cs: Removed border_style field (now in Control)
34915         * MessageBox.cs:
34916           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
34917             fixed calculations for form size
34918           - Added support for localized strings and icons
34919           - Improved form size calculations, added border
34920         * ListView.cs: Removed border_style field (now in Control)
34921         * X11Structs.cs: Moved several structs from X11 driver here
34922         * X11Keyboard.cs: Changed debug message
34923         * Application.cs: Removed FormParent concept support
34924         * CommonDialog.cs:
34925           - Resetting end_modal flag
34926           - Removed FormParent concept support
34927         * NativeWindow.cs: Removed FormParent concept support
34928         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
34929           Client area and Non-Client whole window to allow support for WM_NC
34930           messages
34931         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
34932           prevent using it until it supports Hwnd as per Geoff Norton's request
34933         * ToolBar.cs: Fixed drawing, was not doing proper drawing
34934         * PictureBox.cs: Removed border_style field, now in Control
34935         * XplatUIWin32.cs: Added new driver methods
34936
34937 2005-02-12  Peter Bartok  <pbartok@novell.com>
34938
34939         * OpacityConverter.cs: Implemented
34940         * Hwnd.cs: Internal class to support drivers that need to emulate
34941           client area/non-client area window behaviour
34942
34943 2005-02-11  Peter Bartok  <pbartok@novell.com>
34944
34945         * KeysConverter.cs: Implemented
34946
34947 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
34948
34949         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
34950         * LinkLabel: Added missing attributes
34951         * MainMenu.cs: fixes ToString
34952         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
34953         * ListBox.cs: fixes event position
34954         * TrackBar.cs: adds missing attributes and events
34955         
34956 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
34957
34958         * MenuItem.cs: Use SystemInformation and bug fixes
34959         * MenuAPI.cs: Use SystemInformation and bug fixes
34960
34961 2005-02-09  Jackson Harper  <jackson@ximian.com>
34962
34963         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
34964         their keystate otherwise things like VK_MENU get stuck "on".
34965
34966 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
34967
34968         * ListBox.cs: Fixes AddRange bug
34969         
34970 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
34971
34972         * ProgressBar.cs
34973                 - Add missing attributes
34974                 - Add missing method
34975                 
34976         * CheckedListBox.cs: Added missing attributes
34977                 - Add missing attributes
34978                 - Remove extra method
34979         
34980         * ComboBox.cs: Added missing attributes
34981         * VScrollBar.cs: Added missing attributes
34982         * ScrollBar.cs:  Added missing attributes
34983         * ListBox.cs: Fixes signature, add missing consts
34984         * LinkArea.cs:   Added missing attributes
34985         
34986
34987 2005-02-08  Peter Bartok  <pbartok@novell.com>
34988
34989         * Menu.cs: Added missing attributes
34990         * MainMenu.cs: Added missing attributes
34991         * GroupBox.cs: Added missing attributes
34992         * Label.cs: Added missing attributes
34993         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
34994         * ColorDialog.cs:
34995           - Added Instance and Options properties
34996           - Added missing attributes
34997         * Cursor.cs: Made Serializable
34998         * NotifyIcon: Added missing attributes
34999         * MenuItem.cs: Added missing attributes
35000         * TextBoxBase.cs: Implemented AppendText() and Select() methods
35001         * Panel.cs: Added Missing attributes
35002         * MonthCalendar.cs: Fixed CreateParams
35003
35004 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
35005         
35006         * LinkLabel.cs:
35007                 - Fixes signature
35008                 - Fixes issues with links
35009                 - Adds the class attributes
35010
35011 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
35012         
35013         * ComboBox.cs:
35014                 - Fixes button when no items available in dropdown
35015                 - Fixes repainting problems
35016                 - Adds the class attributes
35017                 
35018 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35019
35020         * XplatUIOSX.cs: Detect the menu bar and title bar height from
35021         the current theme.  Cache these on startup.
35022
35023 2005-02-07  Jackson Harper  <jackson@ximian.com>
35024
35025         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
35026         the scrollbar buttons when they are depressed.
35027
35028 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35029
35030         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
35031         Get the display size from the main displayid.  We currently dont
35032         support multiple display configurations.
35033
35034 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35035
35036         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
35037
35038 2005-02-07  Miguel de Icaza  <miguel@novell.com>
35039
35040         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
35041
35042 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
35043
35044         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
35045
35046 2005-02-04  Jackson Harper  <jackson@ximian.com>
35047
35048         * ThemeWin32Classic.cs: Respect the clipping rect when
35049         drawing. Only fill the intersection of clips and rects so there
35050         isn't a lot of large fills.
35051         * ScrollBar.cs: Pass the correct clipping rect to the theme
35052         engine. Remove some debug code.
35053
35054 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
35055         
35056         * DateTimePicker.cs:
35057                 - Fixed crash on DateTime.Parse, use Constructor instead
35058
35059 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
35060         
35061         * MenuItem.cs:
35062         * MenuAPI.cs:
35063                 - Owner draw support (MeasureItem and DrawItem)
35064
35065 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
35066         
35067         *  Menu.cs:
35068                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
35069                 - Fixes MenuItems.Add range
35070         * MenuItem.cs:
35071                 - MergeMenu and Clone and CloneMenu functions
35072
35073 2005-02-03  Jackson Harper  <jackson@ximian.com>
35074
35075         * ScrollBar.cs: Make abstract
35076         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
35077         is abstract.
35078
35079 2005-02-03  Jackson Harper  <jackson@ximian.com>
35080
35081         * ScrollBar.cs: First part of my scrollbar fixups. This removes
35082         all the unneeded refreshes and uses invalidates with properly
35083         computed rects.
35084
35085 2005-02-03  Peter Bartok  <pbartok@novell.com>
35086
35087         * ComponentModel.cs: Added
35088         * IDataGridEditingService.cs: Added
35089         * Timer.cs: Added missing attributes
35090         * ToolTip.cs: Added missing attributes
35091
35092 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
35093
35094         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
35095
35096 2005-02-03  Peter Bartok  <pbartok@novell.com>
35097
35098         * ListBox.cs: Added missing attributes
35099
35100 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
35101         
35102         * ListBox.cs:
35103                 - Fixes font height after font change
35104                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
35105                 
35106 2005-02-02  Peter Bartok  <pbartok@novell.com>
35107
35108         * HandleData.cs: Introduced static methods to allow class
35109           to be more self-contained and track it's own HandleData objects
35110         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
35111           HandleData to use new static methods
35112
35113 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
35114
35115         * Combobox.cs:
35116                 - Fixes default size and PreferredHeight
35117                 - Missing events
35118                 - ObjectCollection.Insert implementation
35119                 
35120         * ListControl.cs
35121                 - Fixes signature
35122         * ListBox.cs:
35123                 - Several fixes
35124                 - ObjectCollection.Insert implementation
35125                 - No selection after clean
35126                 - Small fixes
35127
35128 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
35129
35130         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
35131
35132 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
35133
35134         * Combobox.cs:
35135                 - Caches ItemHeight calculation for OwnerDrawVariable
35136                 - Handles dropdown properly
35137                 - Fixes several minor bugs
35138
35139 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
35140
35141         * ListBox.cs:
35142                 - Fixes 71946 and 71950
35143                 - Fixes changing Multicolumn on the fly
35144                 - Fixes keyboard navigation on Multicolumn listboxes
35145
35146 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35147         
35148         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
35149         crash reporter log.
35150
35151 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35152
35153         * XplatUIOSX.cs: Allow applications to actually exit.
35154
35155 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35156
35157         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
35158         their parent at creation time rather than lazily later.  Fixes a major
35159         regression we were experiencing.
35160
35161 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
35162
35163         * ThemeWin32Classic.cs: more date time picker painting fixes
35164         * DateTimePicker.cs: more monthcalendar drop down fixes
35165         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
35166
35167 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
35168
35169         * ScrollBar.cs:
35170                 - When moving the thumb going outside the control should stop the moving
35171                 - Adds the firing of missing events
35172                 - Fixes no button show if Size is not specified
35173                 - End / Home keys for keyboard navigation
35174
35175 2005-01-30  Peter Bartok  <pbartok@novell.com>
35176
35177         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
35178           sanity check to prevent theoretical loop
35179         * XplatUIWin32.cs (SetVisible): Removed debug output
35180         * XplatUIX11.cs (SystrayChange): Added sanity check
35181         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
35182         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
35183           behaviour, valid until the X11 client window rewrite is done
35184         * TextBox.cs (ctor): Setting proper default foreground and background
35185           colors
35186
35187 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
35188
35189         * Theme: Added DrawDateTimePicker to interface
35190         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
35191         * DateTimePicker.cs: Created (still needs keys and painting code)
35192         * DateTimePickerFormat.cs: added
35193         * MonthCalendar.cs: fixed CreateParams for popup window mode
35194           
35195 2005-01-29  Peter Bartok  <pbartok@novell.com>
35196
35197         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
35198           this should also the calculations for ligher/darker
35199         * Theme.cs: Fixed defaults for ScrollBar widths/heights
35200
35201 2005-01-29  Peter Bartok  <pbartok@novell.com>
35202
35203         * ArrangeDirection.cs: Added
35204         * ArrangeStartingPositon.cs: Added
35205         * SystemInformation.cs: Implemented
35206         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35207           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
35208           used by SystemInformation class
35209         * X11Strucs.cs: Added XSizeHints structure
35210         * MenuAPI.cs:
35211           - Fixed CreateParams to make sure the menu window is always visible
35212           - TrackPopupMenu: Added check to make sure we don't draw the
35213             menu offscreen
35214
35215 2005-01-29  Peter Bartok  <pbartok@novell.com>
35216
35217         * HandleData.cs: Added method for altering invalid area
35218         * TextBoxBase.cs: Implemented TextLength
35219
35220 2005-01-28  Peter Bartok  <pbartok@novell.com>
35221
35222         * XplatUIX11.cs: Improvement over last patch, not sending
35223           the WM_PAINT directly anymore, instead we scroll any pending
35224           exposed areas and let the system pick out the WM_PAINT later
35225
35226 2005-01-28  Peter Bartok  <pbartok@novell.com>
35227
35228         * SWF.csproj: Deleted, no longer used. Instead,
35229           Managed.Windows.Forms/SWF.csproj should be used
35230         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
35231           directly, to avoid a potential race condition with the next
35232           scroll
35233
35234 2005-01-28  Peter Bartok  <pbartok@novell.com>
35235
35236         * XplatUI.cs: Made class internal
35237
35238 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
35239
35240         * CheckedListBox.cs:
35241                 - Draw focus
35242                 - Fixed Drawing
35243                 - Missing methods and events
35244
35245 2005-01-27  Peter Bartok  <pbartok@novell.com>
35246
35247         * Application.cs (Run): Don't use form if we don't have one
35248
35249 2005-01-27  Peter Bartok  <pbartok@novell.com>
35250
35251         * TextBoxBase.cs (get_Lines): Fixed index off by one error
35252
35253 2005-01-27  Peter Bartok  <pbartok@novell.com>
35254
35255         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
35256         * GridItem.cs: Added; Patch by Jonathan S. Chambers
35257         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
35258         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
35259         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
35260         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
35261         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35262         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
35263         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35264         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35265         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35266         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
35267
35268 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
35269
35270         * Combobox.cs:
35271                 - Draw focus on Simple Combobox
35272                 - Fixes drawing issues
35273                 - fixes 71834
35274
35275 2005-01-27  Peter Bartok  <pbartok@novell.com>
35276
35277         * Form.cs:
35278           - Place window in default location, instead of hardcoded 0/0
35279           - Send initial LocationChanged event
35280         * Control.cs:
35281           - UpdateBounds after creation to find out where the WM placed us
35282           - Make sure that if the ParentForm changes location the Form
35283             is notified
35284         * XplatUIX11.cs: XGetGeometry will not return the coords relative
35285             to the root, but to whatever the WM placed around us.
35286             Translate to root coordinates before returning toplevel
35287             coordinates
35288         * XplatUIWin32.cs: Removed debug output
35289         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
35290           flag to GetWindowPos, to allow translation of coordinates on X11
35291
35292 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
35293
35294         * ListBox.cs: connect LostFocus Event
35295
35296 2005-01-27  Peter Bartok  <pbartok@novell.com>
35297
35298         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35299           XplatUIX11.cs: Extended the Systray API
35300         * Form.cs: Removed debug output
35301         * Application.cs: Fixed focus assignment, always need to call
35302           XplatUI.Activate() since Form.Activate() has rules that may
35303           prevent activation
35304         * NotifyIcon.cs: Should be complete now
35305         * ToolTip.cs: Worked around possible timer bug
35306
35307 2005-01-27  Jackson Harper  <jackson@ximian.com>
35308
35309         * TabControl.cs:
35310         - Only invalidate the effected tabs when the
35311         selected index changes. This reduces drawing and gets rid of some
35312         flicker.
35313         - Only refresh if the tabs need to be shifted, otherwise only
35314         invalidate the slider button.
35315         - On windows the tabs are not filled to right if the slider is
35316         visible.
35317         
35318 2005-01-27  Jackson Harper  <jackson@ximian.com>
35319
35320         * TabControl.cs: Only refresh on mouseup if we are showing the
35321         slider. Also only invalidate the button whose state has changed.
35322
35323 2005-01-26  Peter Bartok  <pbartok@novell.com>
35324
35325         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
35326         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
35327           and SystrayRemove() methods
35328         * XplatUIOSX.cs: Stubbed Systray methods
35329         * XplatUIX11.cs:
35330           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
35331             methods
35332           - Fixed broken XChangeProperty calls (marshalling messed up things)
35333         * X11Structs.cs: Added enums and structs required for Size hinting
35334         * NotifyIcon.cs: Added & implemented
35335
35336 2005-01-26  Jackson Harper  <jackson@ximian.com>
35337
35338         * TabControl.cs: Space vertically layed out tabs properly.
35339
35340 2005-01-26  Peter Bartok  <pbartok@novell.com>
35341
35342         * Form.cs (CreateClientParams): Always set the location to 0,0
35343           since we're a child window.
35344
35345         * Control.cs (SetVisibleCore): Always explicitly setting the location
35346           of a toplevel window, apparently X11 doesn't like to move windows
35347           while they're not mapped.
35348
35349 2005-01-26  Jackson Harper  <jackson@ximian.com>
35350
35351         * TabControl.cs: Implement FillToRight size mode with vertically
35352         rendered tabs.
35353
35354 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
35355
35356         * ControlPaint.cs, ThemeWin32Classic.cs
35357                 - Fixes DrawFocusRectangle
35358
35359 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
35360
35361         * MenuAPI.cs:
35362                 - MenuBar tracking only starts when item is first clicked
35363                 - Fixes menu hidding for multiple subitems
35364                 - Unselect item in MenuBar when item Executed
35365                 - Fixes bug 71495
35366
35367 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
35368
35369         * ListControl.cs:
35370                 - IsInputKey for ListBox
35371         * ListBox.cs:
35372                 - Focus item
35373                 - Shift and Control item selection
35374                 - Implement SelectionMode.MultiExtended
35375                 - Fixes RightToLeft
35376         * ComboBox.cs:
35377                 - IsInputKey implemented
35378                 - Do not generate OnTextChangedEdit on internal txt changes
35379                 
35380 2005-01-23  Peter Bartok  <pbartok@novell.com>
35381
35382         * AccessibleObject.cs: Partially implemented Select()
35383         * MonthCalendar.cs: Added missing attributes and events
35384         * Form.cs: Fixed CreateParams behaviour, now controls derived from
35385           form can properly override CreateParams.
35386         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35387           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
35388           Control performs Invalidate & Update
35389         * NativeWindow (CreateHandle): Added special handling for Form
35390           and Form.FormParent classes to allow overriding of From.CreateParams
35391         * Control.cs:
35392           - ControlNativeWindow: Renamed 'control' variable to more intuitive
35393             name 'owner'
35394           - ControlNativeWindow: Added Owner property
35395           - Removed usage of Refresh() on property changes, changed into
35396             Invalidate(), we need to wait until the queue is processed for
35397             updates, direct calls might cause problems if not all vars for
35398             Paint are initialized
35399           - Added call to UpdateStyles() when creating the window, to set any
35400             styles that CreateWindow might have ignored.
35401           - Added support for Form CreateParent overrides to UpdateStyles()
35402         * MessageBox.cs: Removed no longer needed FormParent override stuff,
35403           CreateParams are now properly overridable
35404         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
35405           CreateParams are now properly overridable
35406
35407 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
35408
35409         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
35410         OnTextBoxChanged.
35411
35412         Capture LostFocus and OnTextBoxChanged.  The later introduces a
35413         recursive invocation that I have not figured out yet.
35414
35415         Reset the timer when not using (it was accumulating).
35416
35417
35418         (OnTextBoxChanged): Set UserEdit to true here to track whether the
35419         user has made changes that require validation.
35420
35421         Reset changing to avoid loops.
35422
35423 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
35424
35425         * NumericUpDown.cs: Display value at startup.
35426
35427         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
35428         ValidateEditText.
35429
35430         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
35431         filled in.  Added some basic parsing of text.
35432
35433         Still missing the OnXXX method overrides, and figuring out the
35434         events that must be emitted.
35435
35436         * UpDownBase.cs: Handle UserEdit on the Text property.
35437         
35438 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
35439
35440         * ComboBox.cs:
35441           - Fixes IntegralHeight
35442           - ToString method
35443
35444 2005-01-21  Jackson Harper  <jackson@ximian.com>
35445
35446         * TabControl.cs: Set the SelectedIndex property when SelectedTab
35447         is set so that the page visibility is updated and the tabs are
35448         sized correctly.
35449
35450 2005-01-21  Jackson Harper  <jackson@ximian.com>
35451
35452         * TabControl.cs: Use cliping rectangle for blitting. Give the
35453         theme the clipping rect so we can do clipping while
35454         drawing. Remove some debug code.
35455
35456 2005-01-21  Jackson Harper  <jackson@ximian.com>
35457
35458         * TabPage.cs: Add a new method so tab pages can force the tab
35459         control to recalculate the tab page sizes.
35460         * TabControl.cs: UpdateOwner needs to make the tab control recalc
35461         sizes.
35462
35463 2005-01-20  Jackson Harper  <jackson@ximian.com>
35464
35465         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
35466
35467 2005-01-20  Jackson Harper  <jackson@ximian.com>
35468
35469         * TreeView.cs: Set the bounds for nodes properly. They were
35470         getting screwed up when checkboxes were not enabled, but images
35471         were.
35472
35473 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
35474
35475         * ListBox.cs:
35476                 - Owner draw support
35477                 - Fixes
35478                 
35479 2005-01-20  Jackson Harper  <jackson@ximian.com>
35480
35481         * XplatUIStructs.cs: More misc keys
35482         * X11Keyboard.cs: Ignore some control keys.
35483
35484 2005-01-20  Jackson Harper  <jackson@ximian.com>
35485
35486         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
35487         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
35488
35489 2005-01-19  Peter Bartok  <pbartok@novell.com>
35490
35491         * Control.cs: Un-selecting the control when it is loosing focus
35492
35493 2005-01-19  Jackson Harper  <jackson@ximian.com>
35494
35495         * TreeView.cs: Hook up to the text controls leave event so we can
35496         end editing when the users clicks outside the text box.
35497         
35498 2005-01-19  Jackson Harper  <jackson@ximian.com>
35499
35500         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
35501         get set in the conversion array.
35502
35503 2005-01-19  Peter Bartok  <pbartok@novell.com>
35504
35505         * Application.cs (ModalRun): Added a call to CreateControl to ensure
35506           focus is properly set
35507         * Button.cs:
35508           - Added missing attributes
35509           - removed styles, those are already set in the base class
35510         * ButtonBase.cs:
35511           - Added missing attributes
35512           - Added clip window styles
35513         * CheckBox.cs: Added missing attributes
35514         * CommonDialog.cs:
35515           - FormParentWindow.CreateParams: Added required clip styles
35516         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
35517           also filters modifier keys
35518         * MessageBox.cs:
35519           - Added assignment of Accept and Cancel button to enable Enter
35520             and Esc keys in MessageBox dialogs
35521           - FormParentWindow.CreateParams: Added required clip styles
35522         * RadioButton.cs: Added missing attributes
35523         * TextControl.cs: No longer draws selection if control does not
35524           have focus
35525         * TextBoxBase.cs:
35526           - Now draws simple rectangle around test area to make it obvious
35527             there's a control. This is a hack until we properly support borders
35528           - A few simple fixes to support selections better, now erases selected
35529             text when typing, and resets selection when using movement keys
35530
35531 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
35532
35533         * UpDownBase.cs: Added some new properties.
35534
35535         * DomainUpDown.cs: Implement a lot to get my test working.
35536
35537 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35538
35539         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
35540
35541 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35542
35543         * OSXStructs (WindowAttributes): Fixed csc complaints
35544
35545 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35546
35547         * XplayUIOSX.cs:
35548           OSXStructs.cs: Initial refactor to move enums and consts into
35549           OSXStructs and use them in the driver for greater readability.
35550
35551 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35552
35553         * XplatUIOSX.cs: Initial support for Standard Cursors.
35554         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
35555
35556 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
35557
35558         * ComboBox.cs: ability to change style when the ctrl is already
35559         created, missing methods and events, bug fixes, signature fixes
35560
35561 2005-01-19  Peter Bartok  <pbartok@novell.com>
35562
35563         * Cursors.cs (ctor): Added ctor to fix signature
35564
35565 2005-01-18  Peter Bartok  <pbartok@novell.com>
35566
35567         * Button.cs: Implemented DoubleClick event
35568         * ButtonBase.cs:
35569           - Fixed keyboard handling to behave like MS, where the press of
35570             Spacebar is equivalent to a mousedown, and the key release is
35571             equivalent to mouseup. Now a spacebar push will give the same
35572             visual feedback like a mouse click.
35573           - Added missing attributes
35574           - Added ImeModeChanged event
35575           - Added support for generating DoubleClick event for derived classes
35576         * CheckBox.cs:
35577           - Implemented DoubleClick event
35578           - Added missing attributes
35579         * CommonDialog.cs: Added missing attribute
35580         * ContextMenu.cs: Added missing attributes
35581         * RadioButton.cs:
35582           - AutoChecked buttons do not allow to be unselected when clicked
35583             (otherwise we might end up with no selected buttons in a group)
35584           - Added missing attributes
35585           - Implemented DoubleClickEvent
35586         * ThreadExceptionDialog.cs: Enabled TextBox code
35587
35588 2005-01-18  Peter Bartok  <pbartok@novell.com>
35589
35590         * Form.cs: Removed debug output
35591         * Button.cs: Added support for DoubleClick method
35592
35593 2005-01-18  Peter Bartok  <pbartok@novell.com>
35594
35595         * Form.cs:
35596           - Added method to parent window that allows triggering size
35597             calculations when a menu is added/removed
35598           - set_Menu: Cleaned up mess from early days of Form and Control,
35599             now properly triggers a recalc when a menu is added/removed
35600           - Added case to select form itself as focused form if no child
35601             controls exist
35602           - Added PerformLayout call when showing dialog, to ensure properly
35603             placed controls
35604         * Control.cs:
35605           - Select(): Made internal so Form can access it
35606           - Focus(): Only call Xplat layer if required (avoids loop), and sets
35607             status
35608         * Application.cs (Run): Removed hack and calls PerformLayout instead
35609           to trigger calculation when Form becomes visible
35610
35611 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
35612
35613         * ComboBox.cs: fixes for ownerdraw
35614
35615 2005-01-18  Peter Bartok  <pbartok@novell.com>
35616
35617         * TextControl.cs:
35618           - Sentinel is no longer static, each Document gets it's own, this
35619             avoids locking or alternatively overwrite problems when more
35620             than one text control is used simultaneously.
35621           - Switched to use Hilight and HilightText brushes for text selection
35622
35623         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
35624
35625 2005-01-18  Peter Bartok  <pbartok@novell.com>
35626
35627         * Control.cs:
35628           - Hooked up the following events:
35629                 o ControlAdded
35630                 o ControlRemoved
35631                 o HandleDestroyed
35632                 o ImeModeChanged
35633                 o ParentChanged
35634                 o TabStopChanged
35635                 o Invalidated
35636                 o SystemColorsChanged
35637                 o ParentFontChanged
35638                 o Move
35639           - Removed debug output
35640           - Added a call to the current theme's ResetDefaults when a color change
35641             is detected
35642         * Form.cs: Now setting the proper ImeMode
35643         * Theme.cs: Defined a method to force recreation of cached resources
35644           and rereading of system defaults (ResetDefaults())
35645         * ThemeWin32Classic.cs: Added ResetDefaults() stub
35646
35647 2005-01-17  Peter Bartok  <pbartok@novell.com>
35648
35649         * Control.cs: Added missing attributes
35650
35651 2005-01-17  Jackson Harper  <jackson@ximian.com>
35652
35653         * TreeNode.cs: Implement editing. Add missing properties selected
35654         and visible.
35655         * TreeView.cs: Implement node editing. Also some fixes to use
35656         Invalidate (invalid area) instead of Refresh when selecting.
35657
35658 2005-01-17  Peter Bartok  <pbartok@novell.com>
35659
35660         * Control.cs:
35661           - Implemented InvokeGotFocus() method
35662           - Implemented InvokeLostFocus() method
35663           - Implemented InvokePaint() method
35664           - Implemented InvokePaintBackground() method
35665           - Implemented InvokeClick() method
35666           - Implemented FindForm() method
35667           - Implemented RectangleToClient() method
35668           - Implemented ClientToRectangle() method
35669           - Implemented ResetBackColor() method
35670           - Implemented ResetCursor() method
35671           - Implemented ResetFont() method
35672           - Implemented ResteForeColor() method
35673           - Implemented ResetImeMode() method
35674           - Implemented ResetLeftToRight() method
35675           - Implemented ResetText() method
35676           - Implemented Scale() methods
35677           - Implemented ScaleCore() method
35678           - Implemented Update() method
35679           - Removed unused variables
35680           - Stubbed AccessibilityNotifyClients and
35681             ControlAccessibleObject.NotifyClients() methods (dunno what to do
35682             with those yet)
35683           - Now setting proper default for RightToLeft property
35684           - Fixed bug in SetClientSizeCore that would cause windows to get
35685             really big
35686           - Now sending Click/DoubleClick events
35687           - Now selecting controls when left mouse button is clicked on
35688             selectable control
35689         * AccessibleEvents.cs: Added
35690         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
35691         * XplatUIOSX.cs: Stubbed UpdateWindow() method
35692         * XplatUIWin32.cs: Implemented UpdateWindow() method
35693         * XplatUIX11.cs: Implemented UpdateWindow() method
35694         * Form.cs: Removed stray semicolon causing CS0162 warning
35695         * ThemeWin32Classic.cs: Fixed unused variable warnings
35696         * ScrollableControl.cs: Now calls base method for ScaleCore
35697         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
35698           style to avoid interference with internal click handler (which is
35699           different than standard Control click handling)
35700         * RadioButton.cs:
35701           - Now unchecks all sibling radio buttons when control is
35702             selected (Fixes #68756)
35703           - Removed internal tabstop variable, using the one inherited from
35704             Control
35705
35706 2005-01-17  Jackson Harper  <jackson@ximian.com>
35707
35708         * NavigateEventArgs.cs: Fix base type.
35709         * LinkLabel.cs: Sig fix
35710         
35711 2005-01-17  Jackson Harper  <jackson@ximian.com>
35712
35713         * TreeView.cs: Only invalidate the effected nodes bounds when
35714         selecting nodes.
35715
35716 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35717
35718         * XplatUIWin32.cs: fixes Win32 marshaling
35719         * XplatUIX11.cs: fixes method signature
35720
35721 2005-01-17  Peter Bartok  <pbartok@novell.com>
35722
35723         * XplatUIX11.cs: Clean up resources when we no longer need them
35724
35725 2005-01-17  Peter Bartok  <pbartok@novell.com>
35726
35727         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
35728           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
35729           and DestroyCursor() methods.
35730         * Cursor.cs: Partially implemented, now supports standard cursors;
35731           still contains some debug code
35732         * Cursors.cs: Implemented class
35733         * Control.cs:
35734           - WndProc(): Added handling of WM_SETCURSOR message, setting the
35735             appropriate cursor
35736           - Implemented Cursor property
35737           - Replaced break; with return; more straightforwar and possibly
35738             faster
35739           - Now properly setting the result for WM_HELP
35740         * X11Structs.cs: Added CursorFontShape enum
35741         * XplatUIStructs.cs:
35742           - Added StdCursor enum (to support DefineStdCursor() method)
35743           - Added HitTest enum (to support sending WM_SETCURSOR message)
35744         * XplatUIX11.cs:
35745           - Now sends the WM_SETCURSOR message
35746           - Implemented new cursor methods
35747         * XplatUIOSX.cs: Stubbed new cursor methods
35748         * XplatUIWin32.cs:
35749           - Implemented new cursor methods
35750           - Added GetSystemMetrics function and associated enumeration
35751
35752 2005-01-15  Peter Bartok  <pbartok@novell.com>
35753
35754         * Control.cs:
35755           - WndProc(): Now handles EnableNotifyMessage
35756           - SelectNextControl(): Fixed bug where if no child or sibling
35757             controls exist we looped endlessly
35758
35759 2005-01-14  Jackson Harper  <jackson@ximian.com>
35760
35761         * TreeView.cs: Recalculate the tab pages when a new one is added
35762         so that the proper bounding rects are created.
35763
35764 2005-01-14  Jackson Harper  <jackson@ximian.com>
35765
35766         * TreeView.cs: Draw a gray box instead of a grip in the lower
35767         right hand corner when there are both horizontal and vertical
35768         scroll bars.
35769
35770 2005-01-14  Jackson Harper  <jackson@ximian.com>
35771
35772         * Control.cs: When erasing backgrounds use FromHwnd instead of
35773         FromHdc when there is a NULL wparam. This occurs on the X driver.
35774         * XplatUIX11.cs: Set the wparam to NULL.
35775
35776 2005-01-13  Jackson Harper  <jackson@ximian.com>
35777
35778         * PictureBox.cs: Implement missing methods (except ToString, need
35779         to test that on windows) and events. When visibility is changed we
35780         need to redraw the image because the buffers are killed. When size
35781         is changed refresh if the sizemode needs it.
35782
35783 2005-01-13  Peter Bartok  <pbartok@novell.com>
35784
35785         * Control.cs (SelectNextControl): Was using wrong method to select
35786           a control
35787
35788 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35789
35790         * ComboBox.cs: fixes dropstyle
35791
35792 2005-01-13  Peter Bartok  <pbartok@novell.com>
35793
35794         * Form.cs:
35795           - Implemented Select() override
35796           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
35797           - Now sets keyboard focus on startup
35798         * Control.cs (SelectNextControl): Now properly handles directed=true
35799         * TextBoxBase.cs:
35800           - WndProc: Now passes tab key on to base if AcceptTabChar=false
35801           - Added (really bad) focus rectangle (mostly for testing)
35802         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
35803           to enforce redraw on focus changes
35804         * ContainerControl.cs:
35805           - Fixed detection of Shift-Tab key presses
35806           - Fixed traversal with arrow keys
35807         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
35808           gonna keep this or if it's complete yet
35809         
35810 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35811
35812         * ComboBox.cs: missing properties, fixes
35813
35814 2005-01-13  Peter Bartok  <pbartok@novell.com>
35815
35816         * Panel.cs (ctor): Setting Selectable window style to off
35817         * Splitter.cs (ctor): Setting Selectable window style to off
35818         * GroupBox.cs (ctor): Setting Selectable window style to off
35819         * Label.cs (ctor): Setting Selectable window style to off
35820
35821 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
35822
35823         * UpDownBase.cs (InitTimer): If the timer has been already
35824         created, enable it.
35825
35826         Use a TextBox instead of a Label.
35827
35828 2005-01-12  Jackson Harper  <jackson@ximian.com>
35829
35830         * TreeView.cs: Refresh the tree after sorting the nodes. Always
35831         draw the connecting node lines (when ShowLines is true).
35832         * TreeNode.cs: The nodes index can now be updated. This is used
35833         when a node collection is sorted.
35834         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
35835         insert or an existing unsorted node collection can be sorted.
35836         
35837 2005-01-12  Peter Bartok  <pbartok@novell.com>
35838
35839         * ContainerControl.cs: Implemented ProcessDialogKeys()
35840
35841 2005-01-12  Peter Bartok  <pbartok@novell.com>
35842
35843         * Control.cs:
35844           - Implemented SelectNextControl() method
35845           - Several focus related bug fixes
35846           - Fixed Docking calculations to match MS documentation and
35847             behaviour
35848
35849 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
35850
35851         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
35852         bug fixes
35853
35854 2005-01-12  Peter Bartok  <pbartok@novell.com>
35855
35856         * Control.cs:
35857           - Fixed broken Contains() method
35858           - Implemented GetNextControl() method. Finally. This is the pre-
35859             requisite for focus handling.
35860
35861 2005-01-12  Peter Bartok  <pbartok@novell.com>
35862
35863         * OSXStrucs.cs: Added
35864
35865 2005-01-12  Peter Bartok  <pbartok@novell.com>
35866
35867         * XplatUIWin32.cs:
35868           - Removed PeekMessageFlags
35869           - Implemented SetWindowStyle() method
35870         * XplatUIStructs.cs: Added PeekMessageFlags
35871         * X11Structs: Added missing border_width field to XWindowChanges struct
35872         * XplatUIX11.cs:
35873           - PeekMessage: Now throws exception if flags which are not yet
35874             supported are passed
35875           - Implemented SetWindowStyle() method
35876           - Fixed SetZOrder to handle AfterHwnd properly
35877         * XplatUI.cs: Added SetWindowStyle() method
35878         * XplatUIDriver.cs: Added SetWindowStyle() abstract
35879         * Control.cs:
35880           - Implemented UpdateStyles() method
35881           - Implemented UpdateZOrder() method
35882         * XplatUIOSX.cs: Added SetWindowStyle() stub
35883
35884 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
35885
35886         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
35887         button mouse).
35888
35889
35890 2005-01-11  Jackson Harper  <jackson@ximian.com>
35891
35892         * TreeView.cs: Still need to draw lines to siblings even if out of
35893         the current node is out of the clip.
35894
35895 2005-01-11  Jackson Harper  <jackson@ximian.com>
35896
35897         * TreeView.cs: When setting the hbar/vbar/grip position use
35898         SetBounds so that perform layout is only called once. Also suspend
35899         and resume layout so layout is only done once for all controls.
35900         - Removed some debug fluff
35901         * SizeGrip.cs: Call base implmentation in overriding methods.
35902         - When visibility is changed the drawing buffers are killed so we
35903         need to redraw.
35904
35905 2005-01-11  Jackson Harper  <jackson@ximian.com>
35906
35907         * TreeView.cs: Calculate the open node count while drawing. This
35908         saves us an entire tree traversal for every paint operation. Use
35909         a member var for the open node count so less vars are passed around.
35910
35911 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
35912
35913         * MonthCalendar.cs:
35914         - fixed selection to use mousemove, not mouse polling on timer
35915         * ThemeWin32Classic.cs
35916         - removed redundant unused variable "no_more_content"
35917         
35918 2005-01-11  Peter Bartok  <pbartok@novell.com>
35919
35920         * XplatUIX11.cs (DoEvents): Needs to return when no more events
35921           are pending, so it now calls PeekMessage instead of GetMessage;
35922           implemented a incomplete version of PeekMessage
35923         
35924 2005-01-11  Peter Bartok  <pbartok@novell.com>
35925
35926         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
35927           I18n issues
35928         * TextBoxBase.cs: Added sending of TextChanged event
35929
35930 2005-01-10  Jackson Harper  <jackson@ximian.com>
35931
35932         * TreeView.cs: Try not to draw outside the clipping rectangle on
35933         each node element.
35934
35935 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
35936
35937         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
35938
35939 2005-01-10  Jackson Harper  <jackson@ximian.com>
35940
35941         * TreeView.cs:
35942         - Implement fast scrolling. Now only the newly
35943         exposed nodes are drawn and the old image is moved using the
35944         XplatUI::ScrollWindow method.
35945         - Factor in height of nodes when calculating whether or not the
35946         node is in the clipping rect.
35947
35948 2005-01-10  Jackson Harper  <jackson@ximian.com>
35949
35950         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
35951
35952 2005-01-10  Peter Bartok  <pbartok@novell.com>
35953
35954         * Application.cs: Added temporary hack to resolve all our resize
35955           required issues on startup. This will get fixed properly at
35956           some point in the future
35957
35958 2005-01-10  Jackson Harper  <jackson@ximian.com>
35959
35960         * SizeGrip.cs: New internal class that is used as a sizing
35961         grip control...hence the name.
35962
35963 2005-01-10  Peter Bartok  <pbartok@novell.com>
35964
35965         * Control.cs: Implemented proper TabIndex handling, now assigning
35966           a tabindex when a control is added to a container
35967         * GroupBox.cs (ctor): Now sets the Container style bit, required
35968           for Control.GetNextControl()
35969
35970 2005-01-09  Jackson Harper  <jackson@ximian.com>
35971
35972         * TextBoxBase.cs: Clear window when scrolling (fixes build).
35973
35974 2005-01-09  Peter Bartok <pbartok@novell.com>
35975
35976         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35977           XplatUIX11.cs: Added ability to control ScrollWindow expose and
35978           an overload for ScrollWindow to allow only scrolling a rectangle
35979
35980 2005-01-09  Peter Bartok <pbartok@novell.com>
35981
35982         * Form.cs:
35983           - Implemented SetDesktopBounds method
35984           - Implemented SetDesktopLocation method
35985
35986 2005-01-08  Jackson Harper  <jackson@ximian.com>
35987
35988         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
35989         the node count has changed, this removes to VScroll::Refresh calls
35990         when drawing.
35991
35992 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
35993
35994         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
35995
35996 2005-01-07  Jackson Harper  <jackson@ximian.com>
35997
35998         * TreeNode.cs: Just update the single node when it is
35999         checked. Don't refresh after toggling, the Expand/Collapse already
36000         handles this.
36001         * TreeView.cs: Respect clipping a little more when drawing. Try
36002         not to redraw things that don't need to be redrawn. Just hide the
36003         scrollbars when they are no longer needed instead of removing
36004         them, so they don't have to be created again and again.
36005         
36006 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
36007
36008         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
36009         coordinates to window space to place the caret properly, FIXED.
36010         Implement GetWindowState & SetWindowState
36011
36012 2005-01-06  Peter Bartok <pbartok@novell.com>
36013
36014         * Form.cs:
36015           - Implemented ClientSize property
36016           - Implemented DesktopBounds property
36017           - Implemented DesktopLocation property
36018           - Implemented IsRestrictedWindow property
36019           - Implemented Size property
36020           - Implemented TopLevel property
36021           - Implemented FormWindowState property
36022         * Control.cs:
36023           - Implemented GetTopLevel() method
36024           - Implemented SetTopLevel() method
36025         * X11Structs.cs (Atom):
36026           - Added AnyPropertyType definition
36027           - Added MapState definiton and updated XWindowAttribute struct
36028         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
36029         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
36030         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
36031         * XplatUIWin32.cs:
36032           - Implemented GetWindowState() and SetWindowState() methods
36033           - Fixed Win32GetWindowLong return type
36034         * XplatUIX11.cs:
36035           - Introduced central function for sending NET_WM messages
36036           - Implemented GetWindowState() and SetWindowState() methods
36037         * TextBoxBase.cs (set_Lines):
36038           - Now uses Foreground color for text added via Text property (Duh!)
36039           - Added code to remember programmatically requested size (fixes
36040             behaviour when Multiline is set after Size)
36041           - Added AutoSize logic
36042
36043 2005-01-06  Jackson Harper  <jackson@ximian.com>
36044
36045         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
36046
36047 2005-01-06  Jackson Harper  <jackson@ximian.com>
36048
36049         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
36050         set to less then 0.
36051
36052 2005-01-06  Jackson Harper  <jackson@ximian.com>
36053
36054         * ScrollableControl.cs: Lazy init the scrollbars.
36055         
36056 2005-01-06  Jackson Harper  <jackson@ximian.com>
36057
36058         * Theme.cs: Speed up getting pens and solid brushes, by using
36059         their ARGB as a hash instead of tostring and not calling Contains.
36060
36061 2005-01-06  Peter Bartok <pbartok@novell.com>
36062
36063         * Form.cs:
36064           - Implemented OnActivated and OnDeactivate event trigger
36065           - Implemented Activate() method
36066           - Fixed ShowDialog() to activate the form that was active before
36067             the dialog was shown
36068         * XplatUIX11.cs:
36069           - Added global active_window var that tracks the currently active
36070             X11 window
36071           - Now always grabs Property changes from the root window to always
36072             catch changes on the active window property
36073           - Added code to PropertyNotify handler to send Active/Inactive
36074             messages when state changes. This puts X11 and Win32 en par on
36075             WM_ACTIVATE notifications (except for double notifications when
36076             the user clicks away from our modal window to another one of our
36077             windows)
36078
36079 2005-01-05  Jackson Harper  <jackson@ximian.com>
36080
36081         * ImageList.cs: Implment ctor
36082
36083 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36084
36085         * XplatUIOSX.cs: Implement Activate/SetTopmost
36086
36087 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36088
36089         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
36090
36091 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36092
36093         * XplatUIOSX.cs: Implement GetActive/SetFocus.
36094
36095 2005-01-05  Peter Bartok <pbartok@novell.com>
36096
36097         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
36098           XplatUIOSX.cs: Added GetActive method to return the currently
36099           active window for the application (or null, if none is active)
36100         * Form.cs:
36101           - Implemented ActiveForm
36102           - Commented out owner assignment for modal dialogs (causes problems
36103             on Win32, since the owner will be disabled)
36104           - Reworked some Active/Focus handling (still incomplete)
36105         * CommonDialog.cs: Commented out owner assignment for modal dialogs
36106           (causes problems on Win32, since the owner will be disabled)
36107         * IWin32Window: Added ComVisible attribute
36108
36109 2005-01-05  Peter Bartok <pbartok@novell.com>
36110
36111         * ToolTip.cs (WndProc): Enable setting focus now that we have the
36112           required XplatUI functions.
36113
36114 2005-01-05  Peter Bartok <pbartok@novell.com>
36115
36116         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
36117           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
36118           to implement focus and activation handling; still incomplete and
36119           with debug output
36120
36121 2005-01-04  Peter Bartok <pbartok@novell.com>
36122
36123         * TextBoxBase.cs: Changed access level for Document property to
36124           match switch to internal for TextControl
36125
36126 2005-01-04  Peter Bartok <pbartok@novell.com>
36127
36128         * AccessibleObject: Added ComVisible attribute
36129
36130 2005-01-04  Jackson Harper  <jackson@ximian.com>
36131
36132         * X11Keyboard.cs: Remove unneeded var.
36133
36134 2005-01-04  Jackson Harper  <jackson@ximian.com>
36135
36136         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
36137         but PAINT.
36138         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
36139         ClientMessage. This makes apps exit cleanly (more often).
36140         
36141 2005-01-04  Jackson Harper  <jackson@ximian.com>
36142
36143         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
36144         handling focus, return correct colors and fonts,
36145         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
36146         handle selection, horizontal scrolling, and mouse interaction.
36147
36148 2005-01-04  Peter Bartok <pbartok@novell.com>
36149
36150         * ICommandExecutor.cs: Added
36151         * IDataGridColumnStyleEditingNotificationService.cs: Added
36152         * IFeatureSupport.cs: Added
36153         * IFileReaderService.cs: Added
36154         * IDataObject.cs: Added ComVisible attribute
36155         * AmbientProperties.cs: Added
36156         * BaseCollection.cs: Added missing attributes
36157         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
36158         * BaseCollection.cs: Added missing attributes
36159         * Binding.cs: Added TypeConverter attribute
36160         * BindingContext.cs: Added DefaultEvent attribute
36161         * BindingsCollection.cs: Added DefaultEvent attribute
36162         * Button.cs: Added DefaultValue attribute
36163         * DragEventArgs.cs: Added ComVisible attribute
36164         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
36165         * KeyEventArgs.cs: Added ComVisible attribute
36166         * KeyPressEventArgs.cs: Added ComVisible attribute
36167         * MouseEventArgs.cs: Added ComVisible attribute
36168         * NavigateEventArgs.cs: Added
36169         * NavigateEventHandler.cs: Added
36170         * FeatureSupport.cs: Added
36171         * OSFeature.cs: Added
36172         * Theme.cs: Added abstract Version property to support OSFeature
36173         * ThemeWin32Classic.cs: Added Version property to
36174           support OSFeature.Themes
36175         * ProgressBar.cs: Removed OnPaintBackground override, not required since
36176           the proper styles to avoid background drawing are set, also doesn't
36177           match MS signature
36178         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
36179         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
36180         * ScrollEventArgs.cs: Added ComVisible attribute
36181         * SplitterEventArgs.cs: Added ComVisible attribute
36182         * AccessibleSelection.cs: Added Flags attribute
36183         * Appearance.cs: Added ComVisible attribute
36184         * Border3DSide.cs: Added ComVisible attribute
36185         * Border3DStyle.cs: Added ComVisible attribute
36186         * BorderStyle.cs: Added ComVisible attribute
36187         * DragAction.cs: Added ComVisible attribute
36188         * ErrorBlinkStyle.cs: Added
36189         * ScrollEventType.cs: Added ComVisible attribute
36190         * AnchorStyles.cs: Added Editor attribute
36191         * DockStyle.cs: Added Editor attribute
36192         * HorizontalAlignment.cs: Added ComVisible attribute
36193         * HelpEventArgs.cs: Added ComVisible attribute
36194         * PaintEventArgs.cs: Added IDisposable
36195
36196 2005-01-04  Peter Bartok <pbartok@novell.com>
36197
36198         * TextControl.cs: Switched Line, LineTag and Document classes to
36199           internal
36200
36201 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
36202
36203         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
36204         Simple mode, fixes, IntegralHeight, etc.
36205
36206 2005-01-04  Peter Bartok <pbartok@novell.com>
36207
36208         * TextBoxBase.cs: Using proper font variable now
36209
36210 2005-01-04  Peter Bartok <pbartok@novell.com>
36211
36212         * Form.cs (ShowDialog): Set parent to owner, if provided
36213         * GroupBox.cs: Removed unused vars
36214         * TextControl.cs:
36215           - Added GetHashCode() for Document and LineTag classes
36216           - Removed unused variables
36217           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
36218             to allow translation between continuous char position and line/pos
36219         * CheckBox.cs: Removed vars that are provided by base class
36220         * RadioButton.cs: Removed vars that are provided by base class, added
36221           new keyword where required
36222         * LinkLabel.cs: Added new keyword where required
36223         * Control.cs (WndProc): Removed unused variable
36224         * TextBoxBase.cs:
36225           - Finished SelectionLength property
36226           - Implemented SelectionStart property
36227           - Implemented Text property
36228           - Removed unused vars
36229         * MessageBox.cs: Added new keyword where required
36230         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
36231           WndProc signature
36232         * MenuAPI.cs: Added new keyword where required
36233         * ButtonBase.cs: Removed vars that are provided by base class, added
36234           new keyword where required
36235         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
36236           argument to double, to allow compiling with csc 2.0 (Atsushi ran
36237           into this)
36238         * Application.cs (Run): Now triggers the ThreadExit event
36239         * CommonDialog.cs: Added new keyword where required; now properly sets
36240           parent (owner) for dialog
36241         * XplatUIX11.cs: Commented out unused vars
36242         * StatusBar.cs: Fixed signature for Text property
36243         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
36244
36245 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
36246
36247         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
36248         TrackBar.cs, MonthCalendar.cs: remove unused vars
36249
36250 2005-01-03  Jackson Harper  <jackson@ximian.com>
36251
36252         * ThemeWin32Classic.cs:
36253         * X11Keyboard.cs: Remove unused vars.
36254
36255 2005-01-03  Peter Bartok  <pbartok@novell.com>
36256
36257         * TextBox.cs:
36258           - set_Text: Tied into TextControl
36259           - set_TextAlignment: Tied into TextControl
36260         * TextControl.cs:
36261           - Added alignment properties and implemented alignment handling
36262             and drawing (still has a bug, not generating proper expose events)
36263           - Added new Line() constructor to allow passing the line alignment
36264           - Fixed selection setting, properly handling end<start now
36265           - Added aligment considerations to RecalculateDocument()
36266         * TextBoxBase.cs:
36267           - Now properly enforces control height for single line controls
36268           - Added support for CharacterCasing
36269           - Added IsInputKey override
36270           - Fixed Keys.Enter logic
36271           - Added SetBoundsCore override
36272           - Fixed mouse selection handling
36273
36274 2005-01-03  Jackson Harper  <jackson@ximian.com>
36275
36276         * TreeView.cs:
36277           - Collapse and uncheck all nodes when CheckBoxes is disabled.
36278           - Checkboxes are always aligned to the bottom of the node,
36279           regardless of item height.
36280           - Use the node bounds to draw the text so we can center it when
36281           the item height is greater then the font height.
36282           - Node::Bounds are only the text part of the node.
36283         * TreeNode.cs: New method to combine collapsing and unchecking all
36284           nodes recursively.
36285
36286 2005-01-02  Jackson Harper  <jackson@ximian.com>
36287
36288         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
36289         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
36290         tree when a check is changed. TODO: Only refresh the checked node.
36291
36292 2004-12-30  Jackson Harper  <jackson@ximian.com>
36293
36294         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
36295         * TreeNode.cs: When collapsing make sure to never collapse the
36296         root node.
36297
36298 2004-12-29  Jackson Harper  <jackson@ximian.com>
36299
36300         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
36301         
36302 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
36303
36304         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
36305
36306 2004-12-28  Peter Bartok  <pbartok@novell.com>
36307
36308         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
36309           not yet assigned
36310
36311 2004-12-28  Peter Bartok  <pbartok@novell.com>
36312
36313         * Control.cs (WndProc): Added WM_HELP handler, now generates
36314           HelpRequested event
36315         * Form.cs: Added HelpButton property and required support code
36316         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
36317
36318 2004-12-28  Peter Bartok  <pbartok@novell.com>
36319
36320         * CommonDialog.cs:
36321           - Made DialogForm.owner variable internal
36322           - Added check to ensure owner form is set before setting
36323             owner properties in CreateParams
36324
36325 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
36326
36327         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
36328           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
36329           GetCursorPos.  Fix major visibility issues.  Rework the windowing
36330           system to support borderless/titleless windows (implements menus).
36331           Fix GetWindowPos.  Implement initial background color support for
36332           views.
36333
36334 2004-12-28  Peter Bartok  <pbartok@novell.com>
36335
36336         * Form.cs (get_CreateParams): Make sure we have an owner before using
36337           the owner variable. Implement proper default if no owner exists
36338
36339 2004-12-28  Peter Bartok  <pbartok@novell.com>
36340
36341         * In preparation for making Managed.Windows.Forms the default build target
36342           for System.Windows.Forms, the following stubbed files were added.
36343           Dialogs are currently being implemented by contributors and are only
36344           short-term place holders.
36345         * ColorDialog.cs: Initial check-in (minmal stub)
36346         * DataGrid.cs: Initial check-in (minimal stub)
36347         * DataGridLineStyle.cs: Initial check-in (minimal stub)
36348         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
36349         * DataGridTableStyle.cs: Initial check-in (minimal stub)
36350         * FontDialog.cs: Initial check-in (minimal stub)
36351         * FileDialog.cs: Initial check-in (minimal stub)
36352         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
36353         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
36354         * OpenFileDialog: Initial check-in (minimal stub)
36355         * IComponentEditorPageSite.cs: Initial check-in
36356         * Splitter.cs: Initial check-in (for Jackson)
36357         * SplitterEventArgs.cs: Initial check-in (for Jackson)
36358         * SplitterEventHandler.cs: Initial check-in (for Jackson)
36359         * TextBox.cs: Initial check-in; still needs some wiring to
36360           TextControl backend
36361         * Form.cs: Implemented ControlBox property
36362         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
36363         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
36364         * TextControl.cs: Added selection functionality; added todo header
36365         * TextBoxBase.cs:
36366           - Implemented Lines property
36367           - Implemented TextHeight property
36368           - Implemented SelectedText property
36369           - Implemented SelectionLength property
36370           - Implemented SelectAll method
36371           - Implemented ToString method
36372           - Removed and cleaned up some debug code
36373           - Implemented (still buggy) mouse text selection
36374
36375 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
36376
36377         * ComboBox.cs: Complete DropDownList implementation, fixes.
36378
36379 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
36380
36381         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
36382         * ComboBoxStyle.cs: ComboBoxStyle enum
36383         * ComboBox.cs: Initial work on ComboBox control
36384
36385 2004-12-21  Peter Bartok  <pbartok@novell.com>
36386
36387         * Control.cs (ctor, CreateParams): Moved setting of is_visible
36388           forward so that anything that creates a window gets the default,
36389           also no longer uses Visible property in CreateParams to avoid
36390           walking up the parent chain and possibly get the wrong visible
36391           status. Fixed IsVisible to no longer walk up to the parent.
36392
36393 2004-12-21  Peter Bartok  <pbartok@novell.com>
36394
36395         * Form.cs (ShowDialog): Unset modality for the proper window
36396  
36397 2004-12-20  Peter Bartok  <pbartok@novell.com>
36398
36399         * CommonDialog.cs: Initial check-in
36400
36401 2004-12-20  Peter Bartok  <pbartok@novell.com>
36402
36403         * Control.cs (Visible): Now uses the parent window instead of the
36404           client area window for the property
36405
36406         * Form.cs
36407           - ShowDialog(): Now uses the proper window for modality
36408           - The default visibility state for the form parent is now false. This
36409             will prevent the user from seeing all the changes to the form and
36410             its controls before the application hits Application.Run()
36411           - Removed some stale commented out code
36412
36413         * NativeWindow.cs:
36414           - Added FindWindow() method to have a method to check for existence
36415             of a window handle
36416           - Added ability to override default exception handling (for example
36417             when debugging with VS.Net; to do this the ExternalExceptionHandler
36418             define must be set
36419           - Removed some useless debug output
36420
36421         * XplatUIX11.cs:
36422           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
36423             not working as expected
36424           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
36425             property to allow switching back to the modal window if focus is
36426             given to another one of our windows (Application Modal)
36427           - Now only sets override_redirect if we create a window
36428             without WS_CAPTION
36429           - Moved EventMask selection before mapping of newly created window
36430             so we can catch the map event as well
36431           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
36432           - Added various Atom related DllImports
36433           - Implemented Exit() method
36434           - .ctor() : No longer shows window if WS_VISIBLE is not defined
36435             in the CreateParams
36436
36437         * MessageBox.cs: Now properly deals with the FormParent window by
36438           providing an override the FormParent CreateParams property to
36439           set as POPUP instead of OVERLAPPED window.
36440
36441 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
36442
36443         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
36444         Minor code cleanup.
36445
36446 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
36447         
36448         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
36449
36450 2004-12-18  Peter Bartok  <pbartok@novell.com>
36451
36452         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
36453           implementing SetModal() method
36454
36455 2004-12-18  Peter Bartok  <pbartok@novell.com>
36456
36457         * X11Structs.cs (XGCValues): Fixed type of function element
36458         * XplatUI.cs: Added ScrollWindow() method
36459         * XplatUIDriver.cs: Added ScrollWindow() abstract
36460         * XplatUIWin32.cs: Implemented ScrollWindow() method
36461         * XplatUIX11.cs: Implemented ScrollWindow() method
36462         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
36463
36464 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36465
36466         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
36467         Some more keyboard support (INCOMPLETE)
36468
36469 2004-12-17  Peter Bartok  <pbartok@novell.com>
36470
36471         * TextControl.cs:
36472         - Added color attribute to line tags.
36473         - Added color argument to all functions dealing with tags
36474         - Added color argument support to various functions
36475         - Fixed miss-calculation of baseline/shift in certain circumstances
36476
36477         * TextBoxBase.cs: Added new color option to test code
36478
36479 2004-12-17  Jackson Harper  <jackson@ximian.com>
36480
36481         * TreeNode.cs:
36482         * MonthCalendar.cs: Signature fixes
36483
36484 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36485
36486         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
36487         keyboard event moved it.  Create a new graphics context for each paint resolves this
36488
36489 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36490
36491         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
36492         Make caret exist and go blink blink.  Initial keyboard support.
36493         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
36494         works.
36495
36496 2004-12-17  Jackson Harper  <jackson@ximian.com>
36497
36498         * XplatUIStructs.cs: Updated set of virtual keycodes.
36499         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
36500
36501 2004-12-17  Jackson Harper  <jackson@ximian.com>
36502
36503         * XplatUIX11.cs: Prune old keyboard code.
36504
36505 2004-12-17  Jackson Harper  <jackson@ximian.com>
36506
36507         * XplatUIX11.cs: When generating mouse wparams get the modifier
36508         keys from the ModifierKeys property.
36509
36510 2004-12-17  Jackson Harper  <jackson@ximian.com>
36511
36512         * X11Keyboard.cs: Send up/down input when generating
36513         messages. Remove some unused vars.
36514
36515 2004-12-17  Jackson Harper  <jackson@ximian.com>
36516
36517         * TabControl.cs:
36518         * TreeView.cs: get rid of warnings.
36519
36520 2004-12-17  Jackson Harper  <jackson@ximian.com>
36521
36522         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
36523
36524 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
36525
36526         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
36527           CheckedListBox.cs: Implementation
36528
36529 2004-12-17  Peter Bartok  <pbartok@novell.com>
36530
36531         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
36532
36533 2004-12-16  Peter Bartok  <pbartok@novell.com>
36534
36535         * TextControl.cs:
36536           - InsertCharAtCaret(): Fixed start pos fixup
36537           - CaretLine_get: No longer derives the line from the tag, the tag
36538             could be stale if lines in the document have been added or deleted
36539           - RebalanceAfterDelete(): Fixed bug in balancing code
36540           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
36541           - Line.Streamline(): Now can also elminate leading empty tags
36542           - DumpTree(): Added a few more tests and prevented exception on
36543             uninitialized data
36544           - Added Debug section for Combining lines
36545           - Delete(): Now copies all remaining properties of a line
36546           
36547         * TextBoxBase.cs:
36548           - Left mousebutton now sets the caret (and middle button still acts
36549             as formatting tester, which must go away soon)
36550           - Added Debug section for Deleting/Combining lines
36551           - Fixed calculations for UpdateView after Combining lines
36552
36553 2004-12-16  Peter Bartok  <pbartok@novell.com>
36554
36555         * TextControl.cs: Now properly aligns text on a baseline, using the
36556           new XplatUI.GetFontMetrics() method. Simplified several calculations
36557         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
36558           defined
36559
36560 2004-12-16  Peter Bartok  <pbartok@novell.com>
36561
36562         * XplatUI.cs: Added GetFontMetrics() method
36563         * XplatUIDriver.cs: Added GetFontMetrics() abstract
36564         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
36565           into libgdiplus, our private GetFontMetrics function
36566         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
36567         * XplatUIWin32.cs: Implemented GetFontMetrics() method
36568
36569 2004-12-16  Jackson Harper  <jackson@ximain.com>
36570
36571         * XplatUIStruct.cs: Add enum for dead keys
36572         * X11Keyboard.cs: Map and unmap dead keys.
36573
36574 2004-12-16  Jackson Harper  <jackson@ximian.com>
36575
36576         * X11Keyboard.cs: Detect and use the num lock mask.
36577
36578 2004-12-16  Peter Bartok  <pbartok@novell.com>
36579
36580         * Control.cs (CreateGraphics): Added check to make sure the
36581           handle of the window exists before calling Graphics.FromHwnd()
36582
36583 2004-12-16  Peter Bartok  <pbartok@novell.com>
36584
36585         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
36586           contains a lot of code that's not supposed to be there for the
36587           real thing, but required for developing/testing the textbox
36588           backend.
36589
36590 2004-12-16  Peter Bartok  <pbartok@novell.com>
36591
36592         * TextControl.cs:
36593         - Fixed Streamline method
36594         - Added FindTag method to Line
36595         - Added DumpTree method for debugging
36596         - Added DecrementLines() method for deleting lines
36597         - Fixed UpdateView to update the cursor to end-of-line on single-line
36598           updates
36599         - Added PositionCaret() method
36600         - Fixed MoveCaret(LineDown) to move into the last line, too
36601         - Added InsertChar overload
36602         - Fixed InsertChar tag offset calculations
36603         - Added DeleteChar() method
36604         - Added Combine() method for folding lines
36605         - Fixed Delete() method, no longer allocates wasted Line object and
36606           now copies all properties when swapping nodes
36607         - Delete() method now updates document line counter
36608
36609 2004-12-15  Jackson Harper  <jackson@ximian.com>
36610
36611         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
36612         * X11Keyboard.cs: Expose the currently selected modifier keys
36613         through a property.
36614
36615 2004-12-15  Peter Bartok  <pbartok@novell.com>
36616
36617         * TextControl.cs: Initial check-in. Still incomplete
36618
36619 2004-12-15  Jackson Harper  <jackson@ximian.com>
36620
36621         * TreeNode.cs:
36622         * TreeView.cs: Fix build on csc (second time today ;-))
36623
36624 2004-12-15  Jackson Harper  <jackson@ximian.com>
36625
36626         * TreeView.cs: Store the treenodes plus/minus box bounds when it
36627         is calculated and use this for click testing.
36628         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
36629
36630 2004-12-15  Jackson Harper  <jackson@ximian.com>
36631
36632         * TreeView.cs: Pass the nodes image index to the image list when
36633         drawing that image.
36634
36635 2004-12-15  Jackson Harper  <jackson@ximian.com>
36636
36637         * X11Keyboard.cs: Set messages hwnd.
36638         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
36639         post_message calls.
36640
36641 2004-12-15  Jackson Harper  <jackson@ximian.com>
36642
36643         * X11Keyboard.cs: Fix to compile with csc.
36644         
36645 2004-12-15  Jackson Harper  <jackson@ximian.com>
36646
36647         * X11Structs.cs: Add key mask values
36648         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
36649         * X11Keyboard.cs: New file - Extrapolates and interpolates key
36650         down/up foo into WM_CHAR foo
36651         * KeyboardLayouts.cs: Common keyboard layouts
36652         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
36653         post messages into the main queue.
36654
36655 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
36656
36657         * Button.cs: implement ProcessMnemonic
36658         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
36659           brushes everytime
36660         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
36661         * ButtonBase.cs: Show HotkeyPrefix (not the &)
36662
36663 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
36664         
36665         * MonthCalendar.cs: Implemented click-hold for next/previous month
36666           and date selection
36667           
36668 2004-12-11  Peter Bartok  <pbartok@novell.com>
36669
36670         * X11Structs.cs:
36671           - Added XKeyboardState (moved from XplatUIX11.cs)
36672           - Added XCreateGC related enums and structures
36673           - Added GXFunction for XSetFunction
36674
36675         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
36676
36677         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
36678           CaretVisible() calls
36679
36680         * ToolTip.cs: Added code to prevent stealing focus from app windows
36681
36682         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
36683           DestroyCaret, SetCaretPos and CaretVisible)
36684
36685         * XplatUIX11.cs:
36686           - Added implementation for caret functions
36687           - Moved hover variables into a struct, to make it a bit easier
36688             on the eyes and to debug
36689           - Removed XKeyboardState (moved to XplatUIX11.cs)
36690           - Moved Keyboard properties into the properties region
36691
36692         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
36693           call to get a graphics context for our control
36694
36695         * XplatUIOSX.cs: Added empty overrides for the new caret functions
36696
36697         * TreeView.cs: Fixed bug. No matter what color was set it would always
36698           return SystemColors.Window
36699
36700         * XplatUIWin32.cs: Implemented caret overrides
36701
36702 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
36703
36704         * ListBox.cs: fire events, implement missing methods and properties,
36705         sorting.
36706
36707 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
36708
36709         * MonthCalendar.cs: invalidation bug fixing
36710         * ThemeWin32Classic.cs: paint fixing
36711
36712 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
36713
36714         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
36715         prepare the CGContextRef there now.
36716
36717 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
36718
36719         * MonthCalendar.cs:
36720           - optimisationL only invalidate areas that have changed
36721         * ThemeWin32Classic.cs:
36722           - only paint parts that intersect with clip_area
36723
36724 2004-12-09  Peter Bartok  <pbartok@novell.com>
36725
36726         * Application.cs: Undid changes from r37004 which cause problems
36727         on X11
36728
36729 2004-12-09  Ravindra  <rkumar@novell.com>
36730
36731         * ToolBar.cs: Added support for displaying ContextMenu
36732         attached to a button on ToolBar.
36733         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
36734         property.
36735
36736 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36737
36738         * Label.cs: autosize works in text change and removes unnecessary
36739         invalidate
36740
36741 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36742
36743         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
36744         remove warnings
36745
36746 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
36747
36748         * XplatUIOSX.cs: Added mouse move/click/grab support
36749         Remove some debugging WriteLines not needed anymore.
36750         Add window resizing/positioning.
36751         Fix visibility on reparenting.
36752
36753 2004-12-08  Peter Bartok  <pbartok@novell.com>
36754
36755         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
36756
36757 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
36758
36759         * XplatUIOSX.cs: Initial checkin
36760         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
36761
36762 2004-12-03  Ravindra <rkumar@novell.com>
36763
36764         * ListView.cs: Added some keybindings and fixed scrolling.
36765         ScrollBars listen to ValueChanged event instead of Scroll
36766         Event. This would let us take care of all changes being
36767         done in the scrollbars' values programmatically or manually.
36768         * ListView.cs (CanMultiselect): Added a check for shift key.
36769         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
36770         * ListViewItem.cs (Clone): Fixed. We need to make a copy
36771         of ListViewSubItemCollection as well.
36772
36773 2004-12-06  Peter Bartok <pbartok@novell.com>
36774
36775         * Control.cs (Parent): Added check and exception to prevent
36776         circular parenting
36777
36778 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
36779
36780         * ListBox.cs: implemented clipping, selection single and multiple,
36781         bug fixing
36782
36783 2004-12-03  Ravindra <rkumar@novell.com>
36784
36785         * ListView.cs (ListView_KeyDown):
36786         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
36787         when CTRL key is pressed.
36788         * ListViewItem.cs (Selected): Fixed setting the property.
36789
36790 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
36791
36792         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
36793
36794         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
36795         MinimizeBox, ShowInTaskbar, TopMost properties.
36796
36797         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
36798         will be implemented).
36799
36800 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
36801
36802         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
36803
36804         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
36805         tests.
36806         
36807         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
36808         
36809         * TreeView.cs: BackColor is Colors.Window.
36810
36811 2004-12-01  Jackson Harper  <jackson@ximian.com>
36812
36813         * TreeView.cs: When resizing the tree if the user is making it
36814         smaller we don't get expose events, so we need to handle adding
36815         the horizontal scrollbar in the size changed handler as well as
36816         the expose handler.
36817
36818 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
36819
36820         * DrawItemState.cs: fixes wrong enum values
36821
36822 2004-12-01  Jackson Harper  <jackson@ximian.com>
36823
36824         * TreeView.cs: Resize the hbar as well as the vbar on resize.
36825
36826 2004-12-01  Jackson Harper  <jackson@ximian.com>
36827
36828         * NodeLabelEditEventArgs.cs:
36829         * NodeLabelEditEventHandler.cs:
36830         * OpenTreeNodeEnumerator.cs:
36831         * TreeNode.cs:
36832         * TreeNodeCollection.cs:
36833         * TreeView.cs:
36834         * TreeViewAction.cs:
36835         * TreeViewCancelEventArgs.cs:
36836         * TreeViewCancelEventHandler.cs:
36837         * TreeViewEventArgs.cs:
36838         * TreeViewEventHandler.cs: Initial implementation.
36839
36840 2004-12-01  Ravindra <rkumar@novell.com>
36841
36842         * ListView.cs (CalculateListView): Fixed scrolling related
36843         calculations. Also, removed some debug statements from other
36844         places.
36845         * ListViewItem.cs: Changed access to 'selected' instance variable
36846         from private to internal.
36847         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
36848
36849 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
36850
36851         * ThemeWin32Classic.cs: remove cache of brush and pens for
36852         specific controls and use the global system, fixes scrollbutton
36853         bugs (for small sizes, disabled, etc)
36854         
36855         * ScrollBar.cs: does not show the thumb for very small controls
36856         (as MS) and allow smaller buttons that the regular size
36857
36858 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
36859
36860         * UpDownBase.cs: Add abstract methods for the interface.
36861         Add new virtual methods (need to be hooked up to TextEntry when it
36862         exists).
36863         Add override methods for most features.
36864         Computes the size, forces the height of the text entry.
36865
36866         * NumericUpDown.cs: Put here the current testing code.
36867
36868         * Set eol-style property on all files that do not have mixed line
36869         endings, to minimize the future problems.  There are still a few
36870         files with mixed endings, and someone should choose whether they
36871         want to move it or not.
36872
36873 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
36874
36875         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
36876         System.Colors
36877         
36878 2004-11-30  Ravindra <rkumar@novell.com>
36879
36880         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
36881         drawing and replaced use of SystemColors by theme colors.
36882         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
36883         * ListView.cs (ListViewItemCollection.Add): Throw exception when
36884         same ListViewItem is being added more than once.
36885
36886 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
36887
36888         * MonthCalendar.cs:
36889           - ControlStyles love to make the control not flicker
36890           
36891 2004-11-30  Peter Bartok  <pbartok@novell.com>
36892
36893         * CharacterCasing.cs: Added
36894
36895 2004-11-29  Peter Bartok  <pbartok@novell.com>
36896
36897         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36898           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
36899           I am removing these files as they conflict with already completed
36900           work. While it is fantastic to get contributions to MWF, I
36901           respectfully ask that everyone please coordinate their contributions
36902           through mono-winforms-list or #mono-winforms at this time. We're
36903           explicitly avoiding stubbing and don't want controls that don't have
36904           their basic functionality implemented in svn. Please also see
36905           http://www.mono-project.com/contributing/winforms.html
36906
36907
36908 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
36909
36910         * Application.cs (ModalRun): Don't hang after exit.
36911
36912         * Theme.cs: New TreeViewDefaultSize property.
36913
36914         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
36915         with less hardcoded SystemColors constant.
36916         Implemented TreeViewDefaultSize.
36917
36918         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36919         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
36920
36921
36922 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
36923
36924         * MonthCalendar.cs:
36925           - Fix NextMonthDate and PrevMonthDate click moving calendar
36926
36927 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
36928
36929         * MonthCalendar.cs:
36930           - Fix usage of ScrollChange Property when scrolling months
36931
36932 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
36933
36934         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
36935          - Fixes menu destroying
36936          - Support adding and removing items on already created menus
36937
36938 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
36939
36940         * MonthCalendar.cs:
36941           - Re-worked all bolded dates handling to match win32
36942         * ThemeWin32Classic.cs:
36943           - Fixed rendering with bolded dates
36944
36945 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
36946
36947         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
36948         - Horizontal scroolbar
36949         - Multicolumn
36950         - Fixes
36951
36952
36953 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
36954
36955         * MonthCalendar.cs:
36956           - Fix Usage of MaxSelectionCount from SelectionRange
36957           - Fixed Shift + Cursor Selection
36958           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
36959           - Fixed normal cursor selection to be compat with win32
36960           - Fixed Shift + Mouse Click selection
36961
36962 2004-11-24  Peter Bartok <pbartok@novell.com>
36963
36964         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
36965         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
36966         * XplatUIX11.cs:
36967           - CreatedKeyBoardMsg now updates keystate with Alt key
36968           - Added workaround for timer crash to CheckTimers, Jackson will
36969             develop a proper fix and check in later
36970           - Implemented DispatchMessage
36971           - Removed calling the native window proc from GetMessage (call
36972             now moved to DispatchMessage)
36973
36974         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
36975           the keydata (Fixes bug #69831)
36976
36977         * XplatUIWin32.cs:
36978           - (DispatchMessage): Switched to return IntPtr
36979           - Added DllImport for SetFocus
36980
36981 2004-11-24  Ravindra <rkumar@novell.com>
36982
36983         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
36984         background drawing.
36985         * ListViewItem.cs: Fixed various properties, calculations
36986         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
36987         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
36988         and some internal properties. Fixed MouseDown handler and Paint
36989         method.
36990
36991 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
36992
36993         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
36994
36995 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
36996
36997         * ContainerControl.cs: correct accidental check in of local changes
36998
36999 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37000
37001         * ThemeWin32Classic.cs:
37002                 - Fixed Drawing Last month in grid (sometimes not showing)
37003         * MonthCalendar.cs:
37004                 - Fixed title width calculation bug (makeing title small)
37005
37006 2004-11-23  Peter Bartok <pbartok@novell.com>
37007
37008         * XplatUIX11.cs:
37009           - Added generation of WM_MOUSEHOVER event
37010           - Added missing assignment of async_method atom
37011           - Fixed WM_ERASEBKGND; now only redraws the exposed area
37012
37013 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
37014
37015         * ThemeWin32Classic.cs:
37016                 - Fixed Drawing of today circle when showtodaycircle not set
37017                 - fixed drawing of first and last month in the grid (gay dates)
37018         * MonthCalendar.cs:
37019                 - Fixed Drawing of today circle
37020                 - Fixed drawing of grady dates
37021                 - Fixed HitTest for today link when ShowToday set to false
37022                 - Fixed DefaultSize to obey ShowToday
37023
37024 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
37025
37026         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
37027         * System.Windows.Forms/Theme.cs
37028         * MonthCalendar.cs: added for MonthCalendar
37029         * SelectionRange.cs: added for MonthCalendar
37030         * Day.cs: added for MonthCalendar: added for MonthCalendar
37031         * DateRangeEventArgs.cs: added for MonthCalendar
37032         * DateRangeEventHandler.cs: added for MonthCalendar
37033
37034 2004-11-22  Ravindra <rkumar@novell.com>
37035
37036         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
37037         property.
37038
37039 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
37040
37041         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
37042         event handler.
37043         
37044         * NumericUpDown.cs: Added new implementation.
37045         * UpDownBase.cs: Added new implementation.
37046
37047         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
37048         implementations.
37049         
37050         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
37051         implementations.
37052
37053         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
37054         methods.
37055
37056 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
37057
37058         * Timer.cs  (Dispose): Should call the base dispose when
37059         overriding.
37060
37061 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
37062
37063         * ScrollBar.cs: updates thumb position when max, min or increment
37064         is changed
37065
37066 2004-11-21  Ravindra <rkumar@novell.com>
37067
37068         * ListView.cs: Implemented item selection, activation and
37069         column header style. Fixed properties to do a redraw, if
37070         required. Added support for MouseHover, DoubleClick, KeyDown
37071         and KeyUp event handling and some minor fixes.
37072         * ListViewItem.cs: Fixed constructor.
37073         * ThemeWin32Classic.cs: Improved drawing for ListView.
37074
37075 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
37076
37077         * ThemeWin32Classic.cs: initial listbox drawing code
37078         * DrawMode.cs: new enumerator
37079         * ListControl.cs: stubbed class
37080         * ListBox.cs: initial implementation
37081         * Theme.cs: new methods definitions
37082         * SelectionMode.cs: new enumerator
37083
37084 2004-11-17  Peter Bartok  <pbartok@novell.com>
37085
37086         * XplatUIWin32.cs: Added double-click events to the class style
37087         * Control.cs (WndProc):
37088           - Added handling of click-count to MouseDown/ MouseUp events.
37089           - Added handling of middle and right mouse buttons
37090           - Removed old debug code
37091
37092 2004-11-17  Jackson Harper  <jackson@ximian.com>
37093
37094         * XplatUIX11.cs: Use the new Mono.Unix namespace.
37095
37096 2004-11-17  Ravindra <rkumar@novell.com>
37097
37098         * ListView.cs: Added event handling for MouseMove/Up/Down.
37099         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
37100         * ThemeWin32Classic.cs: We need to clear the graphics context and
37101         draw column header in a proper state.
37102
37103
37104 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
37105
37106         *  Menu.cs: fixes signature
37107
37108 2004-11-16  Peter Bartok  <pbartok@novell.com>
37109
37110         * XplatUIX11.cs (GetMessage): Implemented generation of
37111           double click mouse messages
37112
37113 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
37114
37115         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
37116         not by menu
37117
37118 2004-11-11  Peter Bartok  <pbartok@novell.com>
37119
37120         * HandleData.cs: Added Visible property
37121         * XplatUIX11.cs (IsVisible): Now uses Visible property from
37122           HandleData
37123         * XplatUIX11.cs: Removed old debug leftovers
37124         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
37125         * Control.cs (WndProc): Removed old debug leftovers,
37126           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
37127           needed WM_SIZE handling
37128
37129 2004-11-11  Jackson Harper  <jackson@ximian.com>
37130
37131         * OwnerDrawPropertyBag.cs:
37132         * TreeViewImageIndexConverter.cs: Initial implementation
37133
37134 2004-11-10  Jackson Harper  <jackson@ximian.com>
37135
37136         * ThemeWin32Classic.cs:
37137         * TabControl.cs: instead of moving tabs by the slider pos just
37138         start drawing at the tab that is offset by the slider. This way
37139         scrolling always moves by exactly one tab.
37140
37141 2004-11-10  Jackson Harper  <jackson@ximian.com>
37142
37143         * TabControl.cs: You can only scroll left when the slider has
37144         already ben moved right.
37145         
37146 2004-11-10  Jackson Harper  <jackson@ximian.com>
37147
37148         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
37149         the clip area.
37150         
37151 2004-11-10  Jackson Harper  <jackson@ximian.com>
37152
37153         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
37154         clip area.
37155         
37156 2004-11-09  Jackson Harper  <jackson@ximian.com>
37157
37158         * TabControl.cs (CalcXPos): New helper method so we can determine
37159         the proper place to start drawing vertical tabs.
37160         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
37161         
37162 2004-11-09  Jackson Harper  <jackson@ximian.com>
37163
37164         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
37165         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
37166         and Bottom, left and right are illegal values for this and
37167         multiline is enabled when the alignment is set to left or right.
37168         (DrawTab): Each alignment block should draw the text itself now
37169         because Left requires special love. Also add rendering for Left
37170         aligned tabs.
37171         
37172 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
37173
37174         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
37175         does not destroy the windows, removes debugging messages
37176
37177 2004-11-09  jba  <jba-mono@optusnet.com.au>
37178
37179         * ThemeWin32Classic.cs
37180         (DrawButtonBase): Fix verticle text rect clipping in windows
37181         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37182         rendering and incorrect text rect clipping
37183         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37184         rendering and incorrect text rect clipping
37185         
37186 2004-11-08  Jackson Harper  <jackson@ximian.com>
37187
37188         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
37189         bottom when they are bottom aligned so the bottoms of the tabs get
37190         displayed.
37191         * TabControl.cs (DropRow): Move rows up instead of down when the
37192         tab control is bottom aligned.
37193
37194 2004-11-08 13:59  pbartok
37195
37196         * XplatUIX11.cs:
37197           - Added handling for various window styles
37198           - Added handling for popup windows
37199           - Added SetTopmost handling
37200
37201 2004-11-08 13:55  pbartok
37202
37203         * XplatUIWin32.cs:
37204           - Added argument to SetTopmost method
37205           - Fixed broken ClientToScreen function
37206
37207 2004-11-08 13:53  pbartok
37208
37209         * XplatUIStructs.cs:
37210           - Added missing WS_EX styles
37211
37212 2004-11-08 13:53  pbartok
37213
37214         * XplatUI.cs, XplatUIDriver.cs:
37215           - Added argument to SetTopmost
37216
37217 2004-11-08 13:52  pbartok
37218
37219         * X11Structs.cs:
37220           - Added XSetWindowAttributes structure
37221           - Improved XWindowAttributes structure
37222           - Added SetWindowValuemask enum
37223           - Added window creation arguments enum
37224           - Added gravity enum
37225           - Added Motif hints structure
37226           - Added various Motif flags and enums
37227           - Added PropertyMode enum for property functions
37228
37229 2004-11-08 13:50  pbartok
37230
37231         * Form.cs:
37232           - Fixed arguments for updated SetTopmost method
37233
37234 2004-11-08 13:49  pbartok
37235
37236         * ToolTip.cs:
37237           - Fixed arguments for updated SetTopmost function
37238           - Fixed usage of PointToClient
37239
37240 2004-11-08 13:44  pbartok
37241
37242         * MenuAPI.cs:
37243           - Added Clipping of children and siblings
37244
37245 2004-11-08 13:41  pbartok
37246
37247         * MainMenu.cs:
37248           - Removed SetMenuBarWindow call. We do this in Form.cs
37249
37250 2004-11-08 13:40  jackson
37251
37252         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
37253           scrolling jimmi in the correct location with bottom aligned tabs
37254
37255 2004-11-08 13:36  pbartok
37256
37257         * ContainerControl.cs:
37258           - Implemented BindingContext
37259           - Implemented ParentForm
37260
37261 2004-11-08 12:46  jackson
37262
37263         * TabControl.cs: Put bottom rendered tabs in the right location
37264
37265 2004-11-08 07:15  jordi
37266
37267         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
37268           removes dead code
37269
37270 2004-11-05 17:30  jackson
37271
37272         * TabControl.cs: When selected tabs are expanded make sure they
37273           don't go beyond the edges of the tab control
37274
37275 2004-11-05 14:57  jackson
37276
37277         * TabControl.cs: Reset show_slider so if the control is resized to
37278           a size where it is no longer needed it's not displayed anymore
37279
37280 2004-11-05 13:16  jackson
37281
37282         * TabControl.cs: Make tab pages non visible when added to the
37283           control
37284
37285 2004-11-05 12:42  jackson
37286
37287         * TabControl.cs: Implement SizeMode.FillToRight
37288
37289 2004-11-05 12:16  jackson
37290
37291         * Control.cs: Do not call CreateHandle if the handle is already
37292           created
37293
37294 2004-11-05 11:46  jackson
37295
37296         * TabControl.cs: Remove superflous call to CalcTabRows
37297
37298 2004-11-05 09:07  jackson
37299
37300         * XplatUIX11.cs: Update for Mono.Posix changes
37301
37302 2004-11-05 07:00  ravindra
37303
37304         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
37305           scrolling.
37306
37307 2004-11-04 22:47  jba
37308
37309         * ThemeWin32Classic.cs:
37310           - Fix Button rendering for FlatStyle = Flat or Popup
37311           - Fix RadioButton and CheckBox rendering when Appearance = Button
37312             (normal and flatstyle).
37313           - Correct outer rectangle color when drawing focus rectangle
37314           - Adjust button bounds to be 1 px smaller when focused
37315           - Make button not draw sunken 3d border when pushed (windows compat)
37316           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
37317           - Offset the text in RadioButton and Checkbox when being rendered as
37318           a button.
37319           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
37320           radiobuttons
37321           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
37322           - Fixed disabled text rendering for normally rendered radiobuttons
37323
37324 2004-11-04 10:26  jackson
37325
37326         * TabControl.cs: Recalculate tab rows when resizing
37327
37328 2004-11-04 07:47  jordi
37329
37330         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
37331           collection completion, drawing issues, missing features
37332
37333 2004-11-04 05:03  ravindra
37334
37335         * ScrollBar.cs:
37336                 - We need to recalculate the Thumb area when
37337                 LargeChange/maximum/minimum values are changed.
37338           - We set the 'pos' in UpdatePos() method to minimum, if it's less
37339                 than minimum. This is required to handle the case if large_change is
37340                 more than max, and use LargeChange property instead of large_change
37341                 variable.
37342           - We return max+1 when large_change is more than max, like MS does.
37343
37344 2004-11-04 04:29  ravindra
37345
37346         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
37347                 - Changed default value signatures (prefixed all with ListView).
37348                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
37349                 ListView.
37350           - Fixed calculations for ListViewItem and implemented Clone()
37351           method.
37352
37353 2004-11-04 04:26  ravindra
37354
37355         * Theme.cs, ThemeWin32Classic.cs:
37356                 - Changed default ListView values signatures (prefixed all with
37357                 ListView).
37358           - Fixed default size values for VScrollBar and HScrollBar.
37359                 - Fixed DrawListViewItem method.
37360
37361 2004-11-04 04:05  ravindra
37362
37363         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
37364
37365 2004-11-04 04:04  ravindra
37366
37367         * ImageList.cs: Implemented the missing overload for Draw method.
37368
37369 2004-11-03 19:29  jackson
37370
37371         * TabControl.cs: Handle dropping rows on selection properly
37372
37373 2004-11-03 11:59  jackson
37374
37375         * TabControl.cs: remove debug code
37376
37377 2004-11-03 11:52  jackson
37378
37379         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
37380           the scrolly widgerywoo
37381
37382 2004-11-02 13:52  jackson
37383
37384         * TabControl.cs: Resize the tab pages and tabs when the tab control
37385           is resized
37386
37387 2004-11-02 13:40  jackson
37388
37389         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
37390           selected tab to the bottom
37391
37392 2004-11-02 13:39  jackson
37393
37394         * TabPage.cs: Store the tab pages row
37395
37396 2004-11-02 12:33  jordi
37397
37398         * MenuItem.cs: fixes handle creation
37399
37400 2004-11-02 11:42  jackson
37401
37402         * TabControl.cs: signature fix
37403
37404 2004-11-02 08:56  jackson
37405
37406         * TabControl.cs: Calculate whether the tab is on an edge properly.
37407           Remove top secret debugging code
37408
37409 2004-11-01 19:57  jackson
37410
37411         * TabControl.cs: Add click handling, and proper sizing
37412
37413 2004-11-01 19:47  jackson
37414
37415         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
37416           tab controls
37417
37418 2004-11-01 19:39  jackson
37419
37420         * TabPage.cs: add internal property to store the bounds of a tab
37421           page
37422
37423 2004-10-30 04:23  ravindra
37424
37425         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
37426           values.
37427
37428 2004-10-30 04:21  ravindra
37429
37430         * ListView.cs, ListViewItem.cs: Added support for scrolling and
37431           fixed calculations.
37432
37433 2004-10-30 03:06  pbartok
37434
37435         * XplatUIX11.cs:
37436           - Removed extension of DllImported libs
37437
37438 2004-10-29 09:55  jordi
37439
37440         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
37441           navigation, itemcollection completion, menu fixes
37442
37443 2004-10-27 22:58  pbartok
37444
37445         * XplatUIX11.cs:
37446           - Now throws a nice error message when no X display could be opened
37447
37448 2004-10-26 13:51  jordi
37449
37450         * ListView.cs: removes warning
37451
37452 2004-10-26 03:55  ravindra
37453
37454         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
37455           ThemeWin32Classic.cs: Some formatting for my last checkins.
37456
37457 2004-10-26 03:36  ravindra
37458
37459         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
37460           control and default values.
37461
37462 2004-10-26 03:35  ravindra
37463
37464         * Theme.cs: Added some default values for ListView control.
37465
37466 2004-10-26 03:33  ravindra
37467
37468         * ToolBar.cs: ToolBar should use the user specified button size, if
37469           there is any. Added a size_specified flag for the same.
37470
37471 2004-10-26 03:33  ravindra
37472
37473         * ColumnHeader.cs: Added some internal members and calculations for
37474           ColumnHeader.
37475
37476 2004-10-26 03:32  ravindra
37477
37478         * ListViewItem.cs: Calculations for ListViewItem.
37479
37480 2004-10-26 03:31  ravindra
37481
37482         * ListView.cs: Added some internal members and calculations for
37483           ListView.
37484
37485 2004-10-22 13:31  jordi
37486
37487         * MenuAPI.cs: speedup menus drawing
37488
37489 2004-10-22 13:16  jackson
37490
37491         * XplatUIX11.cs: Make sure to update exposed regions when adding an
37492           expose event
37493
37494 2004-10-22 11:49  jackson
37495
37496         * Control.cs: oops
37497
37498 2004-10-22 11:41  jackson
37499
37500         * Control.cs: Check to see if the window should have its background
37501           repainted by X when drawing.
37502
37503 2004-10-22 11:31  jackson
37504
37505         * XplatUIX11.cs: When invalidating areas only use XClearArea if
37506           clear is true, this way we do not get flicker from X repainting the
37507           background
37508
37509 2004-10-22 11:28  jackson
37510
37511         * XEventQueue.cs: Queue properly
37512
37513 2004-10-21 09:38  jackson
37514
37515         * XEventQueue.cs: Fix access modifier
37516
37517 2004-10-21 09:36  jackson
37518
37519         * XEventQueue.cs: Don't loose messages
37520
37521 2004-10-21 09:22  jackson
37522
37523         * XEventQueue.cs: Don't loose messages
37524
37525 2004-10-20 04:15  jordi
37526
37527         * BootMode.cs: enum need it by SystemInfo
37528
37529 2004-10-19 21:58  pbartok
37530
37531         * XplatUIWin32.cs:
37532           - Small sanity check
37533
37534 2004-10-19 21:56  pbartok
37535
37536         * Form.cs:
37537           - Added private FormParentWindow class which acts as the container
37538             for our form and as the non-client area where menus are drawn
37539           - Added/Moved required tie-ins to Jordi's menus
37540           - Fixed/Implemented the FormStartPosition functionality
37541
37542 2004-10-19 21:52  pbartok
37543
37544         * Control.cs:
37545           - Removed unneeded locals
37546           - Added code to all size and location properties to understand and
37547             deal with the parent container of Form
37548
37549 2004-10-19 21:33  pbartok
37550
37551         * Application.cs:
37552           - Fixed to deal with new Form subclasses for menus
37553
37554 2004-10-19 17:48  jackson
37555
37556         * XEventQueue.cs: commit correct version of file
37557
37558 2004-10-19 16:50  jackson
37559
37560         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
37561
37562 2004-10-19 16:15  jordi
37563
37564         * MenuAPI.cs: MenuBarCalcSize returns the height
37565
37566 2004-10-19 08:31  pbartok
37567
37568         * Control.cs:
37569           - Added missing call to PreProcessMessage before calling OnXXXKey
37570           methods
37571
37572 2004-10-19 00:04  ravindra
37573
37574         * ToolTip.cs: Fixed constructor.
37575
37576 2004-10-18 09:31  jordi
37577
37578         * MenuAPI.cs: menuitems in menubars do not have shortcuts
37579
37580 2004-10-18 09:26  jordi
37581
37582         * MenuItem.cs: fixes MenuItem class signature
37583
37584 2004-10-18 08:56  jordi
37585
37586         * MenuAPI.cs: prevents windows from showing in the taskbar
37587
37588 2004-10-18 00:28  ravindra
37589
37590         * ToolTip.cs: Suppressed a warning message.
37591
37592 2004-10-18 00:27  ravindra
37593
37594         * Control.cs: Default value of visible property must be true.
37595
37596 2004-10-17 23:19  pbartok
37597
37598         * ToolTip.cs:
37599           - Complete implementation
37600
37601 2004-10-17 23:19  pbartok
37602
37603         * XplatUIX11.cs:
37604           - Added EnableWindow method
37605           - Added SetModal stub
37606           - Added generation of WM_ACTIVATE message (still needs testing)
37607           - Added SetTopMost stub
37608           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
37609
37610 2004-10-17 23:17  pbartok
37611
37612         * XplatUIWin32.cs:
37613           - Removed VirtualKeys to XplatUIStructs
37614           - Implemented SetTopMost method
37615           - Implemented EnableWindow method
37616           - Bugfix in ScreenToClient()
37617           - Bugfixes in ClientToScreen()
37618
37619 2004-10-17 22:51  pbartok
37620
37621         * XplatUIStructs.cs:
37622           - Added WS_EX styles to WindowStyles enumeration
37623
37624 2004-10-17 22:50  pbartok
37625
37626         * XplatUI.cs, XplatUIDriver.cs:
37627           - Added method for enabling/disabling windows
37628           - Added method for setting window modality
37629           - Added method for setting topmost window
37630
37631 2004-10-17 22:49  pbartok
37632
37633         * ThemeWin32Classic.cs:
37634           - Added ToolTip drawing code
37635
37636 2004-10-17 22:49  pbartok
37637
37638         * Theme.cs:
37639           - Added ToolTip abstracts
37640
37641 2004-10-17 22:47  pbartok
37642
37643         * Form.cs:
37644           - Fixed Form.ControlCollection to handle owner relations
37645           - Added Owner/OwnedForms handling
37646           - Implemented Z-Ordering for owned forms
37647           - Removed unneeded private overload of ShowDialog
37648           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
37649             so I hope)
37650           - Fixed Close(), had wrong default
37651           - Added firing of OnLoad event
37652           - Added some commented out debug code for Ownership handling
37653
37654 2004-10-17 22:16  pbartok
37655
37656         * Control.cs:
37657           - Fixed/implemented flat list of controls
37658
37659 2004-10-17 22:14  pbartok
37660
37661         * Application.cs:
37662           - Added code to simulate modal dialogs on Win32
37663
37664 2004-10-17 16:11  jordi
37665
37666         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
37667           mouse event
37668
37669 2004-10-17 13:39  jordi
37670
37671         * MenuAPI.cs: menu drawing fixes
37672
37673 2004-10-15 09:10  ravindra
37674
37675         * StructFormat.cs: General Enum.
37676
37677 2004-10-15 09:09  ravindra
37678
37679         * SizeGripStyle.cs: Enum for Form.
37680
37681 2004-10-15 09:08  ravindra
37682
37683         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
37684           in Theme for ListView.
37685
37686 2004-10-15 09:06  ravindra
37687
37688         * ColumnHeader.cs: Flushing some formatting changes.
37689
37690 2004-10-15 09:05  ravindra
37691
37692         * ListViewItem.cs: Implemented GetBounds method and fixed coding
37693           style.
37694
37695 2004-10-15 09:03  ravindra
37696
37697         * ListView.cs: Implemented Paint method and fixed coding style.
37698
37699 2004-10-15 07:34  jordi
37700
37701         * MenuAPI.cs: fix for X11
37702
37703 2004-10-15 07:32  ravindra
37704
37705         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
37706                 - Renamed Paint() method to Draw() for clarity. Also, moved
37707                 DrawImage() to OnPaint().
37708
37709 2004-10-15 07:25  ravindra
37710
37711         * CheckBox.cs, RadioButton.cs:
37712                 - Removed Redraw (), we get it from ButtonBase.
37713                 - Implemented Paint (), to do class specific painting.
37714
37715 2004-10-15 07:16  ravindra
37716
37717         * ButtonBase.cs:
37718                 - Redraw () is not virtual now.
37719                 - Added an internal virtual method Paint (), so that
37720                 derived classes can do their painting on their own.
37721                 - Modified OnPaint () to call Paint ().
37722
37723 2004-10-15 06:43  jordi
37724
37725         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
37726           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
37727
37728 2004-10-15 00:30  ravindra
37729
37730         * MessageBox.cs:
37731                 - MessageBox on windows does not have min/max buttons.
37732                 This change in CreateParams fixes this on Windows. We
37733                 still need to implement this windowstyle behavior in
37734                 our X11 driver.
37735
37736 2004-10-14 05:14  ravindra
37737
37738         * ToolBar.cs:
37739                 - Changed Redraw () to do a Refresh () always.
37740                 - Fixed the MouseMove event handling when mouse is pressed,
37741                 ie drag event handling.
37742                 - Replaced the usage of ToolBarButton.Pressed property to
37743                 ToolBarButton.pressed internal variable.
37744
37745 2004-10-14 05:10  ravindra
37746
37747         * ToolBarButton.cs:
37748                 - Added an internal member 'inside' to handle mouse move
37749                 with mouse pressed ie mouse drag event.
37750                 - Changed 'Pressed' property to return true only when
37751                 'inside' and 'pressed' are both true.
37752                 - Some coding style love.
37753
37754 2004-10-14 00:17  ravindra
37755
37756         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
37757           public method.
37758
37759 2004-10-14 00:15  ravindra
37760
37761         * ButtonBase.cs: Redraw () related improvements.
37762
37763 2004-10-14 00:14  ravindra
37764
37765         * MessageBox.cs: Moved InitFormSize () out of Paint method and
37766           removed unnecessary calls to Button.Show () method.
37767
37768 2004-10-13 17:50  pbartok
37769
37770         * XplatUIX11.cs:
37771           - Formatting fix
37772           - Removed destroying of window until we solve the problem of X
37773             destroying the window before us on shutdown
37774
37775 2004-10-13 16:32  pbartok
37776
37777         * ButtonBase.cs:
37778           - Now Redraws on MouseUp for FlatStyle Flat and Popup
37779
37780 2004-10-13 14:18  pbartok
37781
37782         * XplatUIX11.cs:
37783           - Added code to destroy the X window
37784
37785 2004-10-13 14:18  pbartok
37786
37787         * XplatUIWin32.cs:
37788           - Added code to destroy a window
37789
37790 2004-10-13 14:12  pbartok
37791
37792         * ButtonBase.cs:
37793           - Added the Redraw on Resize that got dropped in the last rev
37794
37795 2004-10-13 09:06  pbartok
37796
37797         * ThemeWin32Classic.cs:
37798           - Path from John BouAntoun:
37799             * Fix check rendering (centre correctly for normal style, offset
37800               correctly for FlatStyle).
37801             * Fix border color usage (use backcolor) for FlatStyle.Popup
37802             * Use checkbox.Capture instead of checkbox.is_pressed when
37803               rendering flatstyle states.
37804
37805 2004-10-12 21:48  pbartok
37806
37807         * ThemeWin32Classic.cs:
37808           - Removed all occurences of SystemColors and replaced them with the
37809             matching theme color
37810
37811 2004-10-12 21:41  pbartok
37812
37813         * ThemeWin32Classic.cs:
37814           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
37815             him using the function for flatstyle drawing
37816           - Changed functions to use the new version of CPDrawBorder3D
37817
37818 2004-10-12 21:15  pbartok
37819
37820         * ControlPaint.cs:
37821           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
37822             match MS documentation. They need to return defined colors if the
37823             passed color matches the configured control color. Thanks to John
37824             BouAntoun for pointing this out.
37825
37826 2004-10-12 20:57  pbartok
37827
37828         * Control.cs:
37829           - Fix from John BouAntoun: Raise ForeColorChanged event when text
37830             color is changed
37831
37832 2004-10-12 20:46  pbartok
37833
37834         * CheckBox.cs:
37835           - Fix from John BouAntoun: Now properly sets the Appearance property
37836
37837 2004-10-12 20:45  pbartok
37838
37839         * ThemeWin32Classic.cs:
37840           - Fixes from John BouAntoun: now handles forecolors and backcolors
37841             for flatstyle rendered controls much better; It also fixes normal
37842             checkbox rendering when pushed or disabled.
37843
37844 2004-10-08 02:50  jordi
37845
37846         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
37847           work
37848
37849 2004-10-07 08:56  jordi
37850
37851         * ThemeWin32Classic.cs: Removes deletion of cached brushes
37852
37853 2004-10-06 03:59  jordi
37854
37855         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
37856           XplatUIWin32.cs: removes warnings from compilation
37857
37858 2004-10-05 12:23  jackson
37859
37860         * RadioButton.cs: Fix ctor
37861
37862 2004-10-05 11:10  pbartok
37863
37864         * MessageBox.cs:
37865           - Partial implementation by Benjamin Dasnois
37866
37867 2004-10-05 10:15  jackson
37868
37869         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
37870           by John BouAntoun
37871
37872 2004-10-05 03:07  ravindra
37873
37874         * ToolBar.cs:
37875                 - Removed a private method, Draw ().
37876                 - Fixed the ButtonDropDown event handling.
37877                 - Fixed MouseMove event handling.
37878
37879 2004-10-05 03:04  ravindra
37880
37881         * ThemeWin32Classic.cs:
37882                 - Added DrawListView method and ListViewDefaultSize property.
37883                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
37884                 - Changed DOS style CRLF to Unix format (dos2unix).
37885
37886 2004-10-05 03:03  ravindra
37887
37888         * Theme.cs:
37889                 - Added DrawListView method and ListViewDefaultSize property.
37890
37891 2004-10-05 02:42  ravindra
37892
37893         * ToolBarButton.cs: Added an internal member dd_pressed to handle
37894           clicks on DropDown arrow.
37895
37896 2004-10-04 22:56  jackson
37897
37898         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
37899           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
37900           Control handle the buffers, derived classes should not have to
37901           CreateBuffers themselves.
37902
37903 2004-10-04 21:20  jackson
37904
37905         * StatusBar.cs: The control handles resizing the buffers now.
37906
37907 2004-10-04 21:18  jackson
37908
37909         * Control.cs: When resizing the buffers should be invalidated. This
37910           should be handled in Control not in derived classes.
37911
37912 2004-10-04 14:45  jackson
37913
37914         * TabPage.cs: oops
37915
37916 2004-10-04 02:14  pbartok
37917
37918         * LeftRightAlignment.cs:
37919           - Initial check-in
37920
37921 2004-10-04 01:09  jordi
37922
37923         * ThemeWin32Classic.cs: fixes right button position causing right
37924           button not showing on horizontal scrollbars
37925
37926 2004-10-02 13:12  pbartok
37927
37928         * XplatUIX11.cs:
37929           - Simplified the Invalidate method by using an X call instead of
37930             generating the expose ourselves
37931           - Added an expose when the window background is changed
37932           - Implemented ClientToScreen method
37933
37934 2004-10-02 13:08  pbartok
37935
37936         * XplatUIWin32.cs:
37937           - Added Win32EnableWindow method (test for implementing modal
37938           dialogs)
37939           - Added ClientToScreen method and imports
37940
37941 2004-10-02 13:07  pbartok
37942
37943         * XplatUI.cs, XplatUIDriver.cs:
37944           - Added ClientToScreen coordinate translation method
37945
37946 2004-10-02 13:06  pbartok
37947
37948         * KeyPressEventArgs.cs:
37949           - Fixed access level for constructor
37950
37951 2004-10-02 13:06  pbartok
37952
37953         * NativeWindow.cs:
37954           - Changed access level for the window_collection hash table
37955
37956 2004-10-02 13:05  pbartok
37957
37958         * Form.cs:
37959           - Added KeyPreview property
37960           - Added Menu property (still incomplete, pending Jordi's menu work)
37961           - Implemented ProcessCmdKey
37962           - Implemented ProcessDialogKey
37963           - Implemented ProcessKeyPreview
37964
37965 2004-10-02 13:02  pbartok
37966
37967         * Control.cs:
37968           - Added private method to get the Control object from the window
37969           handle
37970           - Implemented ContextMenu property
37971           - Implemented PointToScreen
37972           - Implemented PreProcessMessage
37973           - Implemented IsInputChar
37974           - Implemented IsInputKey
37975           - Implemented ProcessCmdKey
37976           - Completed ProcessKeyEventArgs
37977           - Fixed message loop to call the proper chain of functions on key
37978           events
37979           - Implemented ProcessDialogChar
37980           - Implemented ProcessDialogKey
37981           - Implemented ProcessKeyMessage
37982           - Implemented ProcessKeyPreview
37983           - Added RaiseDragEvent stub (MS internal method)
37984           - Added RaiseKeyEvent stub (MS internal method)
37985           - Added RaiseMouseEvent stub (MS Internal method)
37986           - Added RaisePaintEvent stub (MS Internal method)
37987           - Added ResetMouseEventArgs stub (MS Internal method)
37988           - Implemented RtlTranslateAlignment
37989           - Implemented RtlTranslateContent
37990           - Implemented RtlTranslateHorizontal
37991           - Implemented RtlTranslateLeftRight
37992           - Added generation of KeyPress event
37993
37994 2004-10-02 05:57  ravindra
37995
37996         * ListViewItem.cs: Added attributes.
37997
37998 2004-10-02 05:32  ravindra
37999
38000         * ListView.cs: Added attributes.
38001
38002 2004-10-01 11:53  jackson
38003
38004         * Form.cs: Implement the Close method so work on MessageBox can
38005           continue.
38006
38007 2004-09-30 14:06  pbartok
38008
38009         * XplatUIX11.cs:
38010           - Bug fixes
38011
38012 2004-09-30 11:34  jackson
38013
38014         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
38015
38016 2004-09-30 07:26  ravindra
38017
38018         * ListViewItemConverter.cs: Converter for ListViewItem.
38019
38020 2004-09-30 07:26  ravindra
38021
38022         * SortOrder.cs: Enum for ListView control.
38023
38024 2004-09-30 07:25  ravindra
38025
38026         * ColumnHeader.cs: Supporting class for ListView control.
38027
38028 2004-09-30 07:24  ravindra
38029
38030         * ListView.cs, ListViewItem.cs: Initial implementation.
38031
38032 2004-09-30 07:20  ravindra
38033
38034         * ItemActivation.cs: Enum for ListView Control.
38035
38036 2004-09-29 20:29  pbartok
38037
38038         * XplatUIX11.cs:
38039           - Added lookup of pixel value for background color; tries to get a
38040             color 'close' to the requested color, it avoids having to create a
38041             colormap.  Depending on the display this could mean the used color
38042             is slightly off the desired color. Might have to change it to a more
38043             resource intensive colormap approach, but it will work as a
38044           workaround to avoid red screens.
38045
38046 2004-09-29 14:27  jackson
38047
38048         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
38049
38050 2004-09-28 12:44  pbartok
38051
38052         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
38053           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
38054           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
38055           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
38056           TrackBar.cs, VScrollBar.cs:
38057           - Streamlined Theme interfaces:
38058             * Each DrawXXX method for a control now is passed the object for
38059               the control to be drawn in order to allow accessing any state the
38060               theme might require
38061
38062             * ControlPaint methods for the theme now have a CP prefix to avoid
38063               name clashes with the Draw methods for controls
38064
38065             * Every control now retrieves it's DefaultSize from the current
38066             theme
38067
38068 2004-09-28 12:17  jackson
38069
38070         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
38071           drawing
38072
38073 2004-09-24 14:57  jackson
38074
38075         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
38076           Gives us a nice little performance boost.
38077
38078 2004-09-24 12:02  jackson
38079
38080         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
38081           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
38082           Control and supporting classes. Initial checkin
38083
38084 2004-09-23 13:08  jackson
38085
38086         * Form.cs: Temp build fixage
38087
38088 2004-09-23 01:39  ravindra
38089
38090         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
38091           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
38092           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
38093           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
38094           EventHandlers needed by ListView Control.
38095
38096 2004-09-22 14:12  pbartok
38097
38098         * ScrollableControl.cs:
38099           - Implemented DockPadding property
38100           - Implemented AutoScroll property
38101           - Implemented AutoScrollMargin property
38102           - Implemented AutoScrollMinSize property
38103           - Implemented AutoScrollPosition property
38104           - Implemented DisplayRectangle property (still incomplete)
38105           - Implemented CreateParams property
38106           - Implemented HScroll property
38107           - Implemented VScroll property
38108           - Implemented OnVisibleChanged property
38109
38110 2004-09-22 14:09  pbartok
38111
38112         * Form.cs:
38113           - Added Form.ControllCollection class
38114           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
38115             RemoveOwnedForm (still incomplete, missing on-top and common
38116             minimize/maximize behaviour)
38117           - Added StartPosition property (still incomplete, does not use when
38118             creating the form)
38119           - Added ShowDialog() methods (still incomplete, missing forcing the
38120             dialog modal)
38121
38122 2004-09-22 14:05  pbartok
38123
38124         * Application.cs:
38125           - Added message loop for modal dialogs
38126
38127 2004-09-22 14:02  pbartok
38128
38129         * GroupBox.cs:
38130           - Fixed wrong types for events
38131
38132 2004-09-22 14:00  pbartok
38133
38134         * Shortcut.cs, FormWindowState.cs:
38135           - Fixed wrong values
38136
38137 2004-09-22 12:01  jackson
38138
38139         * Control.cs: Text is never null
38140
38141 2004-09-20 22:14  pbartok
38142
38143         * XplatUIWin32.cs:
38144           - Fixed accessibility level for Idle handler
38145
38146 2004-09-20 18:54  jackson
38147
38148         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38149           XplatUIX11.cs: New message loop that uses poll so we don't get a
38150           busy loop
38151
38152 2004-09-17 10:43  pbartok
38153
38154         * ScrollBar.cs:
38155           - Fixed behaviour of arrow buttons. Now properly behaves like
38156             Buttons (and like Microsoft's scrollbar arrow buttons)
38157
38158 2004-09-17 10:14  pbartok
38159
38160         * ScrollBar.cs:
38161           - Added missing release of keyboard/mouse capture
38162
38163 2004-09-17 06:18  jordi
38164
38165         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
38166           Theme.cs: Very early menu support
38167
38168 2004-09-16 17:45  pbartok
38169
38170         * XplatUIWin32.cs:
38171           - Fixed sending a window to the front
38172           - Added overload for SetWindowPos to avoid casting
38173
38174 2004-09-16 17:44  pbartok
38175
38176         * Control.cs:
38177           - Added SendToBack and BringToFront methods
38178
38179 2004-09-16 07:00  ravindra
38180
38181         * Copyright: Added Novell URL.
38182
38183 2004-09-16 07:00  ravindra
38184
38185         * ToolBar.cs: Invalidate should be done before redrawing.
38186
38187 2004-09-15 21:19  ravindra
38188
38189         * ColumnHeaderStyle.cs: Enum for ListView Control.
38190
38191 2004-09-15 21:18  ravindra
38192
38193         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
38194           ListView Control.
38195
38196 2004-09-13 18:26  jackson
38197
38198         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
38199           properly
38200
38201 2004-09-13 18:13  jackson
38202
38203         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
38204           a second thread and post messages into the main threads message
38205           queue. This makes timing much more consistent. Both win2K and XP
38206           have a minimum timer value of 15 milliseconds, so we now do this
38207           too.
38208
38209 2004-09-13 15:18  pbartok
38210
38211         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38212           XplatUIX11.cs:
38213           - Added Z-Ordering methods
38214
38215 2004-09-13 10:56  pbartok
38216
38217         * Form.cs:
38218           - Fixed #region names
38219           - Moved properties and methods into their proper #regions
38220
38221 2004-09-13 10:51  pbartok
38222
38223         * Form.cs:
38224           - Added Accept and CancelButton properties
38225           - Added ProcessDialogKey() method
38226
38227 2004-09-13 08:18  pbartok
38228
38229         * IWindowTarget.cs:
38230           - Initial check-in
38231
38232 2004-09-10 21:50  pbartok
38233
38234         * Control.cs:
38235           - Added DoDragDrop() [incomplete]
38236           - Properly implemented 'Visible' handling
38237           - Added SetVisibleCore()
38238           - Implemented FindChildAtPoint()
38239           - Implemented GetContainerControl()
38240           - Implemented Hide()
38241
38242 2004-09-10 19:28  pbartok
38243
38244         * Control.cs:
38245           - Moved methods into their appropriate #regions
38246           - Reordered methods within regions alphabetically
38247
38248 2004-09-10 18:57  pbartok
38249
38250         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38251           - Added method to retrieve text from window
38252
38253 2004-09-10 18:56  pbartok
38254
38255         * Control.cs:
38256           - Moved some internal functions into the internal region
38257           - Implemented FontHeight
38258           - Implemented RenderRightToLeft
38259           - Implemented ResizeRedraw
38260           - Implemented ShowFocusCues
38261           - Implemented ShowKeyboardCues
38262           - Implemented FromChildHandle
38263           - Implemented FromHandle
38264           - Implemented IsMnemonic
38265           - Implemented ReflectMessage
38266           - All public and protected Static Methods are now complete
38267
38268 2004-09-10 16:54  pbartok
38269
38270         * Control.cs:
38271           - Implemented remaining missing public instance properties
38272           - Alphabetized some out of order properties
38273
38274 2004-09-10 05:51  ravindra
38275
38276         * PictureBox.cs: Added a check for null image.
38277
38278 2004-09-10 00:59  jordi
38279
38280         * GroupBox.cs: remove cvs tag
38281
38282 2004-09-09 05:25  ravindra
38283
38284         * ToolBar.cs: Make redraw accessible from ToolBarButton.
38285
38286 2004-09-09 05:23  ravindra
38287
38288         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
38289           parent redraw.
38290
38291 2004-09-09 02:28  pbartok
38292
38293         * ThemeWin32Classic.cs:
38294           - Improve disabled string look
38295
38296 2004-09-09 01:15  jordi
38297
38298         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
38299           args and handler
38300
38301 2004-09-08 23:56  ravindra
38302
38303         * ItemBoundsPortion.cs: It's enum, not a class!
38304
38305 2004-09-08 23:47  ravindra
38306
38307         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
38308           Enums for Form.
38309
38310 2004-09-08 21:13  ravindra
38311
38312         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
38313           ListView control.
38314
38315 2004-09-08 21:03  ravindra
38316
38317         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
38318           avoid crash.
38319
38320 2004-09-08 21:01  ravindra
38321
38322         * ScrollableControl.cs: Removed unreachable code.
38323
38324 2004-09-08 06:45  jordi
38325
38326         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
38327
38328 2004-09-08 01:00  jackson
38329
38330         * XplatUIX11.cs: Only run the timers when updating the message
38331           queue. This effectively gives X messages a higher priority then
38332           timer messages. Timers still need love though
38333
38334 2004-09-07 14:01  jackson
38335
38336         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
38337           this for us and the handle is no longer valid.
38338
38339 2004-09-07 13:59  jackson
38340
38341         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
38342           loop that manages to not crash. TODO: Add poll and cleanup timers
38343
38344 2004-09-07 11:12  jordi
38345
38346         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
38347
38348 2004-09-07 03:40  jordi
38349
38350         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
38351           fixes, methods, multiple links
38352
38353 2004-09-06 06:55  jordi
38354
38355         * Control.cs: Caches ClientRectangle rectangle value
38356
38357 2004-09-05 02:03  jordi
38358
38359         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
38360           certain situations
38361
38362 2004-09-04 11:10  jordi
38363
38364         * Label.cs: Refresh when font changed
38365
38366 2004-09-02 16:24  pbartok
38367
38368         * Control.cs:
38369           - Added sanity check to creation of double buffer bitmap
38370
38371 2004-09-02 16:24  pbartok
38372
38373         * ButtonBase.cs:
38374           - Fixed selection of text color
38375           - Fixed handling of resize event; now properly recreates double
38376             buffering bitmap
38377           - Added missing assignment of TextAlignment
38378           - Added proper default for TextAlignment
38379
38380 2004-09-02 14:26  pbartok
38381
38382         * RadioButton.cs:
38383           - Added missing RadioButton.RadioButtonAccessibleObject class
38384
38385 2004-09-02 14:26  pbartok
38386
38387         * Control.cs:
38388           - Added missing Control.ControlAccessibleObject class
38389           - Started to implement Select()ion mechanisms, still very incomplete
38390
38391 2004-09-02 14:25  pbartok
38392
38393         * AccessibleObject.cs:
38394           - Added missing methods
38395
38396 2004-09-02 14:23  pbartok
38397
38398         * AccessibleNavigation.cs, AccessibleSelection.cs:
38399           - Initial check-in
38400
38401 2004-09-02 10:32  jordi
38402
38403         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
38404           pool for pens, brushes, and hatchbruses
38405
38406 2004-09-01 15:30  jackson
38407
38408         * StatusBar.cs: Fix typo
38409
38410 2004-09-01 14:44  pbartok
38411
38412         * RadioButton.cs:
38413           - Fixed state
38414
38415 2004-09-01 14:39  pbartok
38416
38417         * Button.cs, RadioButton.cs:
38418           - Functional initial check-in
38419
38420 2004-09-01 14:01  pbartok
38421
38422         * CheckBox.cs:
38423           - Added missing default
38424           - Added missing region mark
38425
38426 2004-09-01 09:10  jordi
38427
38428         * Label.cs: fixes method signatures, new methods, events, fixes
38429           autosize
38430
38431 2004-09-01 07:19  jordi
38432
38433         * Control.cs: Init string variables with an empty object
38434
38435 2004-09-01 04:20  jordi
38436
38437         * Control.cs: fires OnFontChanged event
38438
38439 2004-08-31 20:07  pbartok
38440
38441         * ButtonBase.cs:
38442           - Enabled display of strings
38443
38444 2004-08-31 20:05  pbartok
38445
38446         * Form.cs:
38447           - Added (partial) implementation of DialogResult; rest needs to be
38448             implemented when the modal loop code is done
38449
38450 2004-08-31 19:55  pbartok
38451
38452         * CheckBox.cs:
38453           - Fixed to match the removal of the needs_redraw concept
38454
38455 2004-08-31 19:55  pbartok
38456
38457         * ButtonBase.cs:
38458           - Removed the rather odd split between 'needs redraw' and redrawing
38459           - Now handles the events that require regeneration (ambient
38460             properties and size)
38461
38462 2004-08-31 19:41  pbartok
38463
38464         * Control.cs:
38465           - Added firing of BackColorChanged event
38466           - Added TopLevelControl property
38467           - Fixed handling of WM_ERASEBKGRND message
38468
38469 2004-08-31 12:49  pbartok
38470
38471         * ButtonBase.cs:
38472           - Removed debug
38473           - Minor fixes
38474
38475 2004-08-31 12:48  pbartok
38476
38477         * CheckBox.cs:
38478           - Finished (famous last words)
38479
38480 2004-08-31 04:35  jordi
38481
38482         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
38483           scrolling bugs, adds new methods
38484
38485 2004-08-30 14:42  pbartok
38486
38487         * CheckBox.cs:
38488           - Implemented CheckBox drawing code
38489
38490 2004-08-30 14:42  pbartok
38491
38492         * ButtonBase.cs:
38493           - Made Redraw() and CheckRedraw() virtual
38494           - Improved mouse up/down/move logic to properly track buttons
38495
38496 2004-08-30 09:44  pbartok
38497
38498         * CheckBox.cs:
38499           - Updated to fix broken build. Not complete yet.
38500
38501 2004-08-30 09:28  pbartok
38502
38503         * CheckState.cs:
38504           - Initial checkin
38505
38506 2004-08-30 09:17  pbartok
38507
38508         * Appearance.cs:
38509           - Initial check-in
38510
38511 2004-08-27 16:12  ravindra
38512
38513         * ToolBarButton.cs: Added TypeConverter attribute.
38514
38515 2004-08-27 16:07  ravindra
38516
38517         * ImageIndexConverter.cs: Implemented.
38518
38519 2004-08-27 14:17  pbartok
38520
38521         * Control.cs:
38522           - Removed unneeded stack vars
38523           - First attempt to fix sizing issues when layout is suspended
38524
38525 2004-08-25 15:35  jordi
38526
38527         * ScrollBar.cs: more fixes to scrollbar
38528
38529 2004-08-25 14:04  ravindra
38530
38531         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
38532           Added the missing divider code and grip for ToolBar Control.
38533
38534 2004-08-25 13:20  pbartok
38535
38536         * Control.cs:
38537           - Control now properly passes the ambient background color to child
38538             controls
38539
38540 2004-08-25 13:20  jordi
38541
38542         * ScrollBar.cs: small bug fix regarding bar position
38543
38544 2004-08-25 12:33  pbartok
38545
38546         * Timer.cs:
38547           - Now only calls SetTimer or KillTimer if the enabled state has
38548           changed
38549
38550 2004-08-25 12:33  pbartok
38551
38552         * XplatUIWin32.cs:
38553           - Fixed timer handling, now seems to work
38554           - Improved error message for window creation
38555
38556 2004-08-25 12:32  pbartok
38557
38558         * Control.cs:
38559           - Fixed generation of MouseUp message
38560
38561 2004-08-25 12:29  jordi
38562
38563         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
38564           and fixes for progressbar
38565
38566 2004-08-24 18:43  ravindra
38567
38568         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
38569           in ToolBar control.
38570
38571 2004-08-24 17:15  pbartok
38572
38573         * Panel.cs:
38574           - Added #region
38575           - Added missing events
38576           - Alphabetized
38577
38578 2004-08-24 17:14  pbartok
38579
38580         * StatusBar.cs, PictureBox.cs:
38581           - Now uses Control's CreateParams
38582
38583 2004-08-24 16:36  pbartok
38584
38585         * XplatUIX11.cs:
38586           - Fixed background color handling
38587           - Fixed sending of enter/leave events on a grab
38588
38589 2004-08-24 16:35  pbartok
38590
38591         * X11Structs.cs:
38592           - Refined definitions for CrossingEvent
38593
38594 2004-08-24 12:37  jordi
38595
38596         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
38597           formmating, methods signature, and adds missing events
38598
38599 2004-08-24 12:24  jordi
38600
38601         * Control.cs: fire OnEnabledChanged event
38602
38603 2004-08-24 11:17  pbartok
38604
38605         * XplatUIWin32.cs:
38606           - Implemented SetTimer() and KillTimer()
38607
38608 2004-08-24 11:16  pbartok
38609
38610         * XplatUIX11.cs:
38611           - Now uses Remove instead of Add to kill the timer
38612
38613 2004-08-24 10:16  jackson
38614
38615         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
38616           picture boxes in the theme now. Draw picture box borders and obey
38617           sizing modes
38618
38619 2004-08-24 05:49  jackson
38620
38621         * Timer.cs: Remove top secret debugging code
38622
38623 2004-08-24 05:34  jackson
38624
38625         * PictureBox.cs: Temp hack to make picture boxes draw their full
38626           image
38627
38628 2004-08-24 05:29  jackson
38629
38630         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38631           XplatUIX11.cs: Move timers to the driver level. On X they are
38632           queued by the driver and checked on idle.
38633
38634 2004-08-24 01:07  jackson
38635
38636         * XplatUIX11.cs: Use a queue for async messages instead of passing
38637           them as ClientMessages since that was totally broken. Also simply
38638           check for events and return an idle message if none are found. This
38639           gives us an idle handler, and prevents deadlocking when no messages
38640           are in the queue.
38641
38642 2004-08-23 18:19  ravindra
38643
38644         * XplatUIWin32.cs: Removed the unwanted destructor.
38645
38646 2004-08-23 17:27  pbartok
38647
38648         * ButtonBase.cs:
38649           - Finishing touches. Works now, just needs some optimizations.
38650
38651 2004-08-23 16:53  jordi
38652
38653         * ScrollBar.cs: small fix
38654
38655 2004-08-23 16:45  pbartok
38656
38657         * Application.cs:
38658           - Removed debug output
38659           - Simplifications
38660
38661 2004-08-23 16:43  jordi
38662
38663         * ScrollBar.cs: [no log message]
38664
38665 2004-08-23 16:10  pbartok
38666
38667         * Form.cs:
38668           - Fixed handling of WM_CLOSE message
38669           - Removed debug output
38670
38671 2004-08-23 16:09  pbartok
38672
38673         * Application.cs:
38674           - Added handling of Idle event
38675           - Added handling of form closing
38676           - Fixed reporting of MessageLoop property
38677           - Removed some unneeded code, should provide a bit of a speedup
38678
38679 2004-08-23 15:22  pbartok
38680
38681         * Control.cs:
38682           - Added InitLayout() method
38683           - Added code to properly perform layout when Anchor or Dock property
38684             is changed
38685           - Changed 'interpretation' of ResumeLayout. MS seems to have a
38686             LAMESPEC, tried to do it in a way that makes sense
38687
38688 2004-08-23 14:10  jordi
38689
38690         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
38691           properties and methods
38692
38693 2004-08-23 13:55  pbartok
38694
38695         * Control.cs:
38696           - Properly fixed Jordi's last fix
38697           - Now uses Cursor's Position property instead of calling XplatUI
38698           directly
38699
38700 2004-08-23 13:44  jordi
38701
38702         * PaintEventHandler.cs: Adding missing attribute
38703
38704 2004-08-23 13:39  pbartok
38705
38706         * Cursor.cs:
38707           - Implemented Position property
38708
38709 2004-08-23 13:39  pbartok
38710
38711         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38712           - Added method to move mouse cursor
38713
38714 2004-08-23 13:39  pbartok
38715
38716         * XplatUIX11.cs:
38717           - Fixed setting of background color
38718           - Added method to move mouse cursor
38719
38720 2004-08-23 13:16  jordi
38721
38722         * Control.cs: avoids null exception
38723
38724 2004-08-22 17:46  jackson
38725
38726         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
38727           PictureBox
38728
38729 2004-08-22 17:40  jackson
38730
38731         * XplatUIX11.cs: Add some missing locks
38732
38733 2004-08-22 15:10  pbartok
38734
38735         * Control.cs, Form.cs:
38736           - Removed OverlappedWindow style from Control, instead it's default
38737             now is child
38738           - Made form windows OverlappedWindow by default
38739
38740 2004-08-22 13:34  jackson
38741
38742         * ScrollBar.cs: Update the position through the Value property so
38743           the OnValueChanged event is raised.
38744
38745 2004-08-22 12:04  pbartok
38746
38747         * SWF.csproj:
38748           - Added Cursor.cs and UserControl.cs
38749
38750 2004-08-22 12:03  pbartok
38751
38752         * Cursor.cs:
38753           - Started implementation, not usable yet
38754
38755 2004-08-22 12:00  pbartok
38756
38757         * UserControl.cs:
38758           - Implemented UserControl (complete)
38759
38760 2004-08-21 19:20  ravindra
38761
38762         * ToolBar.cs: Correcting the formatting mess of VS.NET.
38763
38764 2004-08-21 18:49  ravindra
38765
38766         * ToolBar.cs: Probably this completes the missing attributes in
38767           toolbar control.
38768
38769 2004-08-21 18:03  ravindra
38770
38771         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
38772           Fixed toolbar control signatures.
38773
38774 2004-08-21 16:32  pbartok
38775
38776         * LinkLabel.cs:
38777           - Signature Fixes
38778
38779 2004-08-21 16:30  pbartok
38780
38781         * Label.cs:
38782           - Signature fixes
38783
38784 2004-08-21 16:19  pbartok
38785
38786         * Control.cs, Label.cs:
38787           - Signature fixes
38788
38789 2004-08-21 15:57  pbartok
38790
38791         * ButtonBase.cs:
38792           - Added loads of debug output for development
38793           - Fixed typo in method name
38794
38795 2004-08-21 15:52  pbartok
38796
38797         * ToolBarButtonClickEventArgs.cs:
38798           - Added missing base class
38799
38800 2004-08-21 14:53  pbartok
38801
38802         * Control.cs:
38803           - Updated to match new GrabWindow signature
38804
38805 2004-08-21 14:51  pbartok
38806
38807         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38808           - Added method to get default display size
38809
38810 2004-08-21 14:23  pbartok
38811
38812         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38813           - Added method to query current grab state
38814           - Added argument to allow confining a grab to a window
38815
38816 2004-08-21 14:22  pbartok
38817
38818         * Keys.cs:
38819           - Added [Flags] attribute so that modifiers can be used in bitwise
38820           ops
38821
38822 2004-08-21 14:21  pbartok
38823
38824         * TrackBar.cs, ScrollBar.cs:
38825           - Replaced direct XplatUI calls with their Control counterpart
38826
38827 2004-08-21 13:32  pbartok
38828
38829         * Control.cs:
38830           - Implemented Created property
38831
38832 2004-08-21 13:28  pbartok
38833
38834         * Control.cs:
38835           - Implemented ContainsFocus
38836
38837 2004-08-21 13:26  pbartok
38838
38839         * Control.cs:
38840           - Implemented CausesValidation
38841
38842 2004-08-21 13:21  pbartok
38843
38844         * Control.cs:
38845           - Implemented CanFocus
38846           - Implemented CanSelect
38847           - Implemented Capture
38848
38849 2004-08-21 12:35  pbartok
38850
38851         * XplatUIWin32.cs:
38852           - Fixed bug with Async message handling
38853           - Implemented getting the ModifierKeys
38854
38855 2004-08-21 12:32  jackson
38856
38857         * AsyncMethodResult.cs: Make sure we have the mutex before we
38858           release it. Fixes BeginInvoke on windows
38859
38860 2004-08-21 11:31  pbartok
38861
38862         * XplatUIWin32.cs, XplatUIX11.cs:
38863           - Drivers now return proper mouse state
38864
38865 2004-08-21 10:54  jackson
38866
38867         * Control.cs: Implement EndInvoke
38868
38869 2004-08-21 10:48  jackson
38870
38871         * Timer.cs: Remove unneeded finalizer
38872
38873 2004-08-20 19:52  ravindra
38874
38875         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
38876           in mouse event handling in the ToolBar control.
38877
38878 2004-08-20 19:50  ravindra
38879
38880         * ImageList.cs: Changed draw method to use the arguments passed in
38881           to draw the image.
38882
38883 2004-08-20 18:58  pbartok
38884
38885         * XplatUIStructs.cs:
38886           - Added private message for async communication
38887
38888 2004-08-20 17:38  ravindra
38889
38890         * Control.cs: Made RightToLeft property virtual and removed a
38891           Console.WriteLine.
38892
38893 2004-08-20 14:39  jordi
38894
38895         * ThemeGtk.cs: use style_attach
38896
38897 2004-08-20 14:39  pbartok
38898
38899         * XplatUIWin32.cs:
38900           - Added jackson's Async code from X11 to Win32
38901
38902 2004-08-20 14:09  pbartok
38903
38904         * SWF.csproj:
38905           - Added all new files
38906
38907 2004-08-20 14:09  pbartok
38908
38909         * Control.cs:
38910           - Added call to set window background color
38911
38912 2004-08-20 14:03  pbartok
38913
38914         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38915           - Added method for setting the window background
38916
38917 2004-08-20 14:02  pbartok
38918
38919         * XplatUIWin32.cs:
38920           - Added method for setting the background color
38921           - Added handling for erasing the window background
38922
38923 2004-08-20 13:45  jordi
38924
38925         * TrackBar.cs: fixes timer, new properties and methods
38926
38927 2004-08-20 13:34  jackson
38928
38929         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
38930           correct thread
38931
38932 2004-08-20 13:22  jackson
38933
38934         * Timer.cs: Timer Tick events are now handed through Controls Async
38935           mechanism so the callbacks are executed in the same thread as X
38936
38937 2004-08-20 13:19  jackson
38938
38939         * XplatUIDriver.cs: Expose functionality to send async messages
38940           through the driver
38941
38942 2004-08-20 13:18  jackson
38943
38944         * Control.cs: Implement Begininvoke
38945
38946 2004-08-20 13:14  jackson
38947
38948         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
38949           messages through the driver
38950
38951 2004-08-20 13:12  jackson
38952
38953         * XplatUIX11.cs: Lock before all X operations. Also added Async
38954           method functionality through XSendEvent
38955
38956 2004-08-20 13:11  jackson
38957
38958         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
38959           This will screw up on 64 bit systems)
38960
38961 2004-08-20 13:10  jackson
38962
38963         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
38964           Async messages through X/Win32
38965
38966 2004-08-19 19:39  pbartok
38967
38968         * XplatUIX11.cs:
38969           - Updated code to match new HandleData.DeviceContext type
38970
38971 2004-08-19 19:38  pbartok
38972
38973         * HandleData.cs:
38974           - Made DeviceContext a generic object to allow usage from various
38975           drivers
38976           - Added support for queueing Windows messages
38977
38978 2004-08-19 19:37  pbartok
38979
38980         * XplatUIWin32.cs:
38981           - Added generation of MouseEnter, MouseLeave and MouseHover events
38982           - Added cleanup on EndPaint
38983
38984 2004-08-19 19:17  pbartok
38985
38986         * Control.cs:
38987           - Added handling of WM_MOUSEHOVER
38988           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
38989           code
38990
38991 2004-08-19 18:55  jordi
38992
38993         * ThemeGtk.cs: fixes button order
38994
38995 2004-08-19 18:12  jordi
38996
38997         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
38998
38999 2004-08-19 17:09  pbartok
39000
39001         * Control.cs:
39002           - Added Right property
39003           - Added RightToLeft property
39004
39005 2004-08-19 16:27  jordi
39006
39007         * ThemeGtk.cs: experimental GTK theme support
39008
39009 2004-08-19 16:26  jordi
39010
39011         * ITheme.cs, Theme.cs: move themes from an interface to a class
39012
39013 2004-08-19 16:25  jordi
39014
39015         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
39016           theme enhancaments
39017
39018 2004-08-19 16:04  pbartok
39019
39020         * XplatUIX11.cs:
39021           - Added colormap basics
39022           - Added a way to re-initialize with a different display handle
39023           - Fixed setting of the window background color
39024           - Added various X11 imports related to colors and colormaps
39025
39026 2004-08-19 15:51  pbartok
39027
39028         * X11Structs.cs:
39029           - Removed packing hints (Paolo suggested this a while back)
39030           - fixed colormap type
39031           - Added default Atom types
39032           - Added Screen and color structs and enums
39033
39034 2004-08-19 15:39  pbartok
39035
39036         * ImageList.cs:
39037           - Added missing Draw() method
39038           - Added missing RecreateHandle event
39039
39040 2004-08-19 15:30  pbartok
39041
39042         * Form.cs:
39043           - Added handling of WM_CLOSE
39044
39045 2004-08-18 13:16  jordi
39046
39047         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
39048           a table
39049
39050 2004-08-18 09:56  jordi
39051
39052         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
39053
39054 2004-08-17 15:31  ravindra
39055
39056         * SWF.csproj: Updated project.
39057
39058 2004-08-17 15:25  pbartok
39059
39060         * Control.cs:
39061           - Drawing improvement; don't call UpdateBounds if we are not visible
39062             (or have been minimized)
39063
39064 2004-08-17 15:24  pbartok
39065
39066         * XplatUIWin32.cs:
39067           - Finished IsVisible
39068           - Added Win32GetWindowPlacement
39069
39070 2004-08-17 15:08  jackson
39071
39072         * Panel.cs: Initial checkin of the Panel
39073
39074 2004-08-17 14:25  pbartok
39075
39076         * Control.cs:
39077           - Fixed broken handling of default window sizes
39078
39079 2004-08-17 13:29  jackson
39080
39081         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
39082           has a large startup time.
39083
39084 2004-08-17 10:25  jackson
39085
39086         * HandleData.cs: union areas properly
39087
39088 2004-08-17 10:12  jackson
39089
39090         * HandleData.cs: union areas properly
39091
39092 2004-08-16 20:00  ravindra
39093
39094         * ToolBar.cs, ToolBarButton.cs: Added attributes.
39095
39096 2004-08-16 18:48  ravindra
39097
39098         * ToolBar.cs: Added attributes.
39099
39100 2004-08-16 17:17  ravindra
39101
39102         * SWF.csproj: Updated project.
39103
39104 2004-08-16 17:16  jackson
39105
39106         * XplatUIX11.cs: Check for more expose events before sending a
39107           WM_PAINT so they can all be grouped together. This makes dragging a
39108           window across another window redraw in a sane way.
39109
39110 2004-08-16 15:47  pbartok
39111
39112         * Control.cs:
39113           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
39114             support OnMouseEnter/Leave()
39115           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
39116             exposure handling
39117
39118 2004-08-16 15:46  pbartok
39119
39120         * XplatUIStructs.cs, XplatUIX11.cs:
39121           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
39122           OnMouseEnter/Leave()
39123
39124 2004-08-16 15:34  jackson
39125
39126         * XplatUIX11.cs: Group multiple expose events in HandleData, make
39127           sure messages get the message field set to WM_NULL if they are not
39128           handled.
39129
39130 2004-08-16 15:24  jackson
39131
39132         * HandleData.cs: HandleData is used for storing message information
39133           for window handles
39134
39135 2004-08-15 17:23  ravindra
39136
39137         * ColorDepth.cs: Added attribute.
39138
39139 2004-08-15 17:23  ravindra
39140
39141         * SWF.csproj: Updated project for ToolBar Control.
39142
39143 2004-08-15 17:20  ravindra
39144
39145         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
39146           control and also dos2unix format.
39147
39148 2004-08-15 17:13  ravindra
39149
39150         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
39151           ToolBarButtonClickEventArgs.cs,
39152           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
39153           ToolBarTextAlign.cs: First Implementation of ToolBar control.
39154
39155 2004-08-15 15:31  pbartok
39156
39157         * ButtonBase.cs:
39158           - First (mostly) working version
39159
39160 2004-08-13 16:15  pbartok
39161
39162         * Control.cs:
39163           - Fixed Anchor default
39164
39165 2004-08-13 15:43  pbartok
39166
39167         * Control.cs:
39168           - Changed GetCursorPos signature
39169
39170 2004-08-13 15:42  pbartok
39171
39172         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
39173           - Changed signature for GetCursorPos
39174
39175 2004-08-13 15:25  pbartok
39176
39177         * XplatUIX11.cs:
39178           - Cleanup
39179           - Fixed resizing/exposure handling
39180
39181 2004-08-13 15:22  jordi
39182
39183         * ThemeWin32Classic.cs: removes redundant code and fixes issues
39184           with tickposition
39185
39186 2004-08-13 14:55  jordi
39187
39188         * TrackBar.cs: change from wndproc to events
39189
39190 2004-08-13 13:00  jordi
39191
39192         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39193           XplatUIX11.cs: implements PointToClient (ScreenToClient)
39194
39195 2004-08-13 12:53  pbartok
39196
39197         * XplatUIWin32.cs:
39198           - Changed GetWindowPos to also provide client area size
39199           - Fixed broken prototypes for several win32 functions
39200
39201 2004-08-13 12:53  pbartok
39202
39203         * XplatUI.cs, XplatUIDriver.cs:
39204           - Changed GetWindowPos to also provide client area size
39205
39206 2004-08-13 12:52  pbartok
39207
39208         * XplatUIX11.cs:
39209           - Added generation of WM_POSCHANGED
39210           - Changed GetWindowPos to also provide client area size
39211
39212 2004-08-13 12:52  pbartok
39213
39214         * Control.cs:
39215           - Added Dispose() and destructor
39216           - Fixed resizing and bounds calculation
39217           - Fixed Layout
39218           - Added memory savings for invisible windows
39219
39220 2004-08-13 12:46  jordi
39221
39222         * TrackBar.cs: adds timer and grap window
39223
39224 2004-08-13 10:25  jackson
39225
39226         * Timer.cs: SWF Timer
39227
39228 2004-08-12 16:59  pbartok
39229
39230         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39231           - Implemented method to get current mouse position
39232
39233 2004-08-12 14:29  jordi
39234
39235         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
39236           enhancement, fix mouse problems, highli thumb, etc
39237
39238 2004-08-12 13:31  pbartok
39239
39240         * Control.cs:
39241           - Fixed Anchoring bugs
39242
39243 2004-08-12 13:01  jackson
39244
39245         * StatusBar.cs: Don't forget things
39246
39247 2004-08-12 12:54  jackson
39248
39249         * ThemeWin32Classic.cs: Handle owner draw status bars
39250
39251 2004-08-12 12:54  jackson
39252
39253         * StatusBar.cs: Implement missing properties, events, and methods.
39254           Handle mouse clicking
39255
39256 2004-08-12 10:19  jackson
39257
39258         * StatusBarPanelClickEventArgs.cs,
39259           StatusBarPanelClickEventHandler.cs: Classes for handling status
39260           bar panel click events
39261
39262 2004-08-12 10:10  jackson
39263
39264         * Control.cs: Add missing properties
39265
39266 2004-08-12 09:46  pbartok
39267
39268         * BindingsManagerBase.cs:
39269           - Name changed to BindingManagerBase.cs
39270
39271 2004-08-12 09:25  jordi
39272
39273         * ScrollableControl.cs: calls ctrlbase instead of exeception
39274
39275 2004-08-11 16:28  pbartok
39276
39277         * InputLanguageChangingEventArgs.cs:
39278           - Never check in before compiling. Fixes the last check-in
39279
39280 2004-08-11 16:26  pbartok
39281
39282         * InputLanguageChangingEventArgs.cs:
39283           - More signature fixes
39284
39285 2004-08-11 16:20  pbartok
39286
39287         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
39288           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
39289           ImageListStreamer.cs, InputLanguage.cs,
39290           InputLanguageChangedEventArgs.cs,
39291           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
39292           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
39293           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
39294           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39295           - Signature fixes
39296
39297 2004-08-11 16:16  pbartok
39298
39299         * Application.cs:
39300           - Fixed Signature
39301           - Added .Net 1.1 method
39302
39303 2004-08-11 15:25  pbartok
39304
39305         * SWF.csproj:
39306           - Fixed BindingManagerBase.cs filename
39307
39308 2004-08-11 15:22  pbartok
39309
39310         * BindingManagerBase.cs:
39311           - Was checked in with wrong filename
39312
39313 2004-08-11 14:50  pbartok
39314
39315         * SWF.csproj:
39316           - Updated
39317
39318 2004-08-11 13:41  jordi
39319
39320         * XplatUIWin32.cs: Fixes ClientRect
39321
39322 2004-08-11 13:19  pbartok
39323
39324         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39325           XplatUIX11.cs:
39326           - We had SetWindowPos and MoveWindow to set window positions and
39327             size, removed MoveWindow. We have GetWindowPos, so it made sense to
39328             keep SetWindowPos as matching counterpart
39329           - Added some X11 sanity checking
39330
39331 2004-08-11 12:59  pbartok
39332
39333         * Control.cs:
39334           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
39335             (It seems that SetBounds is just a front for SetBoundsCore and
39336              SetBoundsCore updates the underlying window system and
39337              UpdateBounds is responsible for updating the variables associated
39338              with the Control and sending the events)
39339           - Major cleanup of Size handling; we now have two sizes, client_size
39340             and bounds. Bounds defines the window with decorations, client_size
39341             without them.
39342
39343 2004-08-11 12:55  pbartok
39344
39345         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39346           - Added method to calculate difference between decorated window and
39347             raw client area
39348
39349 2004-08-11 12:54  pbartok
39350
39351         * Label.cs:
39352           - Forcing redraw on resize
39353
39354 2004-08-11 11:43  pbartok
39355
39356         * ImageList.cs:
39357           - Removed disposing of the actual images when the list is disposed
39358
39359 2004-08-11 09:13  pbartok
39360
39361         * Control.cs:
39362           - Now properly reparents windows
39363
39364 2004-08-11 08:37  pbartok
39365
39366         * Control.cs:
39367           - Duh!
39368
39369 2004-08-11 07:47  pbartok
39370
39371         * Control.cs:
39372           - Rewrote the collection stuff. Might not be as fast now, not
39373             keeping the number of children around and accessible directly, but
39374             it's more straightforward
39375
39376 2004-08-11 07:44  pbartok
39377
39378         * AccessibleObject.cs:
39379           - Fixed to match ControlCollection rewrite
39380
39381 2004-08-11 07:43  pbartok
39382
39383         * ImageList.cs:
39384           - Added missing creation of the collection list
39385
39386 2004-08-10 20:08  jackson
39387
39388         * StatusBar.cs: Get the paint message from WndProc
39389
39390 2004-08-10 19:31  jackson
39391
39392         * ThemeWin32Classic.cs: Create Brushes as little as possible
39393
39394 2004-08-10 19:20  jackson
39395
39396         * UICues.cs: Add Flags attribute
39397
39398 2004-08-10 19:19  jackson
39399
39400         * StatusBarPanel.cs: Signature cleanup
39401
39402 2004-08-10 19:10  jackson
39403
39404         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
39405           Initial implementation of status bar item drawing
39406
39407 2004-08-10 17:27  jordi
39408
39409         * TrackBar.cs: add missing methods, properties, and restructure to
39410           hide extra ones
39411
39412 2004-08-10 16:24  jackson
39413
39414         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
39415           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
39416           attribute
39417
39418 2004-08-10 13:21  jordi
39419
39420         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
39421           enhancements and standarize on win colors defaults
39422
39423 2004-08-10 12:52  jackson
39424
39425         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
39426           ThemeWin32Classic.cs: Implement DrawItem functionality
39427
39428 2004-08-10 12:47  jordi
39429
39430         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
39431
39432 2004-08-10 12:32  jordi
39433
39434         * Control.cs: throw ontextchange event
39435
39436 2004-08-10 11:43  pbartok
39437
39438         * Control.cs:
39439           - Added more to the still unfinished Dock/Anchor layout code
39440
39441 2004-08-10 11:39  pbartok
39442
39443         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
39444           - Added GetWindowPos method
39445
39446 2004-08-10 11:36  pbartok
39447
39448         * XplatUIWin32.cs:
39449           - Implemented several methods
39450
39451 2004-08-10 09:47  jackson
39452
39453         * TrackBar.cs: Allow control to handle buffering
39454
39455 2004-08-10 09:41  jackson
39456
39457         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
39458
39459 2004-08-10 09:24  jackson
39460
39461         * Label.cs, LinkLabel.cs: Let Control handle buffering.
39462
39463 2004-08-10 09:09  jackson
39464
39465         * StatusBar.cs: Let Control handle all the buffering.
39466
39467 2004-08-10 09:08  jackson
39468
39469         * Control.cs: Control will now handle the buffering code, so each
39470           control does not have to implement this.
39471
39472 2004-08-10 08:34  jackson
39473
39474         * XplatUIDriver.cs: Use default colors from the theme
39475
39476 2004-08-09 17:12  pbartok
39477
39478         * ImageList.cs:
39479           - Fixed several bugs Ravindra pointed out
39480
39481 2004-08-09 16:11  pbartok
39482
39483         * Control.cs:
39484           - Added incomplete dock layout code
39485           - Added support for mouse wheel
39486
39487 2004-08-09 16:09  pbartok
39488
39489         * XplatUIX11.cs:
39490           - Added handling for middle and right mousebutton
39491           - Added handling for mouse wheel
39492           - Added handling for key state and mouse state and position
39493           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
39494           messages
39495
39496 2004-08-09 15:40  jackson
39497
39498         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
39499           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
39500           checkin
39501
39502 2004-08-09 15:37  jackson
39503
39504         * StatusBar.cs: Initial implementation of StatusBar
39505
39506 2004-08-09 15:36  jackson
39507
39508         * ITheme.cs: Add support for drawing status bar and getting status
39509           bar item sizes
39510
39511 2004-08-09 15:35  pbartok
39512
39513         * MouseButtons.cs:
39514           - Fixed values
39515
39516 2004-08-09 15:34  jackson
39517
39518         * ThemeWin32Classic.cs: Add support for drawing status bar and get
39519           status bar item sizes
39520
39521 2004-08-09 15:21  jackson
39522
39523         * ThemeWin32Classic.cs: Use known colors for default control
39524           colours
39525
39526 2004-08-09 15:12  jackson
39527
39528         * ThemeWin32Classic.cs: Make the default font static, it is static
39529           in control so this doesn't change functionality and creating fonts
39530           is sloooooow.
39531
39532 2004-08-09 14:56  pbartok
39533
39534         * X11Structs.cs:
39535           - Added GrabMode enum
39536
39537 2004-08-09 14:55  pbartok
39538
39539         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39540           - Removed Run method, was only required for initial development
39541
39542 2004-08-09 14:51  pbartok
39543
39544         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39545           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
39546           capture
39547
39548 2004-08-09 13:48  pbartok
39549
39550         * XplatUIX11.cs:
39551           - Fixed default sizing for child windows
39552
39553 2004-08-09 12:56  pbartok
39554
39555         * XplatUIX11.cs:
39556           - Added generation of WM_DESTROY message
39557           - Added handling of window manager induced shutdown
39558
39559 2004-08-09 11:31  jackson
39560
39561         * ThemeWin32Classic.cs: New names for control properties
39562
39563 2004-08-09 11:25  jackson
39564
39565         * Control.cs: Use new color names
39566
39567 2004-08-09 11:02  jackson
39568
39569         * XplatUI.cs: Get default window properties from the theme
39570
39571 2004-08-09 11:01  jackson
39572
39573         * ITheme.cs: The theme engine now controls default window
39574           properties
39575
39576 2004-08-09 11:00  jackson
39577
39578         * ThemeWin32Classic.cs: Add default window color properties
39579
39580 2004-08-09 10:17  jackson
39581
39582         * ThemeWin32Classic.cs: Use correct default back color
39583
39584 2004-08-09 10:05  jackson
39585
39586         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
39587           the theme now.
39588
39589 2004-08-09 09:56  jackson
39590
39591         * XplatUI.cs: Remove defaults, these are handled by the theme now.
39592
39593 2004-08-09 09:54  jackson
39594
39595         * Control.cs: Get default properties from the theme.
39596
39597 2004-08-09 09:53  jackson
39598
39599         * ITheme.cs: Themes now handle default control properties
39600
39601 2004-08-09 09:53  jackson
39602
39603         * ThemeWin32Classic.cs: Themes now handle default control
39604           properties so coloring will be consistent
39605
39606 2004-08-08 16:54  jordi
39607
39608         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
39609
39610 2004-08-08 15:08  jordi
39611
39612         * XplatUIX11.cs: fixes keyboard crash
39613
39614 2004-08-08 13:47  jordi
39615
39616         * Label.cs: add cvs header info
39617
39618 2004-08-08 12:09  jackson
39619
39620         * ThemeWin32Classic.cs: Add pen_buttonface
39621
39622 2004-08-08 11:52  jordi
39623
39624         * Label.cs, LinkLabel.cs: [no log message]
39625
39626 2004-08-08 11:34  jordi
39627
39628         * ThemeWin32Classic.cs: Use Windows Standard Colours
39629
39630 2004-08-07 17:32  jordi
39631
39632         * TrackBar.cs: throw exceptions of invalid enums values
39633
39634 2004-08-07 17:31  jordi
39635
39636         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
39637           draw method name
39638
39639 2004-08-07 16:56  jackson
39640
39641         * HorizontalAlignment.cs: Initial checkin
39642
39643 2004-08-07 13:16  jordi
39644
39645         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
39646           methods
39647
39648 2004-08-07 13:05  jordi
39649
39650         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
39651           GetSysColor defines
39652
39653 2004-08-06 18:01  pbartok
39654
39655         * ThemeWin32Classic.cs:
39656           - Fixed some rounding issues with float/int
39657
39658 2004-08-06 18:00  jackson
39659
39660         * DockStyle.cs, AnchorStyles.cs:
39661
39662                   Add flags and serializable attributes.
39663
39664 2004-08-06 17:46  pbartok
39665
39666         * XplatUIX11.cs:
39667           - Implemented GetParent
39668
39669 2004-08-06 17:18  pbartok
39670
39671         * TrackBar.cs:
39672           - Fixed some rounding issues with float/int
39673
39674 2004-08-06 17:17  pbartok
39675
39676         * X11Structs.cs, XplatUIX11.cs:
39677           - Fixed Refresh and Invalidate
39678
39679 2004-08-06 15:30  pbartok
39680
39681         * Control.cs, X11Structs.cs, XplatUIX11.cs:
39682           - Fixed recursive loop when resizing
39683           - Improved/fixed redrawing on expose messages
39684
39685 2004-08-06 09:53  jordi
39686
39687         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
39688           keyboard navigation
39689
39690 2004-08-06 08:02  pbartok
39691
39692         * X11Structs.cs, XplatUIX11.cs:
39693           - Fixed reparenting
39694           - Fixed window border creation
39695
39696 2004-08-05 15:38  pbartok
39697
39698         * XplatUIX11.cs:
39699           - Attempted fix for reparenting problems
39700
39701 2004-08-04 15:14  pbartok
39702
39703         * Control.cs:
39704           - Fixed Invalidation bug (calculated wrong client area)
39705           - Added ClientSize setter
39706
39707 2004-08-04 15:13  pbartok
39708
39709         * Form.cs:
39710           - Added AutoScale properties
39711
39712 2004-08-04 15:13  pbartok
39713
39714         * SWF.csproj:
39715           - Added latest files
39716
39717 2004-08-04 14:11  pbartok
39718
39719         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39720           XplatUIX11.cs:
39721           - Added Invalidate handling
39722
39723 2004-08-03 17:09  jordi
39724
39725         * XplatUIDriver.cs: fixes spelling mistake
39726
39727 2004-07-27 09:53  jordi
39728
39729         * TrackBar.cs: fixes trackbar events, def classname, methods
39730           signature
39731
39732 2004-07-27 09:29  jordi
39733
39734         * ScrollBar.cs: fixes scrollbar events
39735
39736 2004-07-27 04:38  jordi
39737
39738         * Control.cs: changes to be able to run winforms samples
39739
39740 2004-07-26 11:42  jordi
39741
39742         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
39743           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
39744
39745 2004-07-26 05:41  jordi
39746
39747         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
39748           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
39749           implementation
39750
39751 2004-07-22 09:22  jordi
39752
39753         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
39754           check link overlapping, implement events, and fixes
39755
39756 2004-07-21 10:28  jordi
39757
39758         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
39759
39760 2004-07-21 10:19  jordi
39761
39762         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
39763           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
39764           LinkLabelLinkClickedEventArgs.cs,
39765           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
39766           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
39767           implementation
39768
39769 2004-07-19 13:09  jordi
39770
39771         * Control.cs, Label.cs: label control re-written: added missing
39772           functionlity, events, and properties
39773
39774 2004-07-19 10:49  jordi
39775
39776         * Control.cs: fixes SetBounds logic
39777
39778 2004-07-19 01:29  jordi
39779
39780         * Control.cs: Call RefreshWindow only if the window has created
39781
39782 2004-07-15 14:05  pbartok
39783
39784         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
39785           - Implemented ImageList and ImageList.ImageCollection classes
39786           - Added ColorDepth enumeration
39787           - Updated SWF VS.Net project
39788
39789 2004-07-15 11:06  jordi
39790
39791         * XplatUIStructs.cs: added MsgButons enum
39792
39793 2004-07-15 11:03  jordi
39794
39795         * Control.cs: added basic mouse handeling events
39796
39797 2004-07-15 03:38  jordi
39798
39799         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
39800           Vertical TrackBar control implementation
39801
39802 2004-07-13 09:33  jordi
39803
39804         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
39805
39806 2004-07-13 09:31  jordi
39807
39808         * Control.cs, Form.cs: commit: new properties and fixes form size
39809           problems
39810
39811 2004-07-09 14:13  miguel
39812
39813         * ProgressBar.cs: Spelling
39814
39815 2004-07-09 11:25  pbartok
39816
39817         * ProgressBar.cs:
39818           - Removed usage of Rectangle for drawing. Miguel pointed out it's
39819           faster
39820
39821 2004-07-09 11:17  miguel
39822
39823         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
39824
39825                 * ProgressBar.cs: Fixed spelling for `block'
39826
39827                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
39828                 style guidelines.
39829
39830                 Avoid using the += on rect.X, that exposed a bug in the compiler.
39831
39832 2004-07-08 23:21  pbartok
39833
39834         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
39835           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
39836           BaseCollection.cs, Binding.cs, BindingContext.cs,
39837           BindingMemberInfo.cs, BindingsCollection.cs,
39838           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
39839           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
39840           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
39841           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
39842           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
39843           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
39844           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
39845           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
39846           FrameStyle.cs, GiveFeedbackEventArgs.cs,
39847           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
39848           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
39849           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
39850           InputLanguageChangedEventArgs.cs,
39851           InputLanguageChangedEventHandler.cs,
39852           InputLanguageChangingEventArgs.cs,
39853           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
39854           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
39855           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
39856           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
39857           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
39858           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
39859           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
39860           QueryAccessibilityHelpEventArgs.cs,
39861           QueryAccessibilityHelpEventHandler.cs,
39862           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
39863           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
39864           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
39865           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
39866           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
39867           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
39868           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
39869           XplatUIX11.cs, lang.cs:
39870           - Initial check-in
39871
39872